/* JustinZocktCommunity – gemeinsames Stylesheet (keine externen Schriften, keine Bilder) */
:root {
  --bg: #0f0b0c;
  --bg-2: #160f11;
  --card: #1b1315;
  --card-2: #221719;
  --line: #34252a;
  --text: #f4eeef;
  --muted: #bfaeb1;
  --faint: #8f7d81;
  --red: #ff1f3d;
  --red-dark: #b3001b;
  --red-text: #ff6b80;
  --grad: linear-gradient(135deg, #ff1f3d 0%, #b3001b 100%);
  --ok: #3ddc84;
  --warn: #ffc857;
  --radius: 14px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(900px 420px at 85% -120px, rgba(255, 31, 61, .16), transparent 70%),
    radial-gradient(700px 380px at -10% 0, rgba(179, 0, 27, .12), transparent 70%);
  background-repeat: no-repeat;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--red-text); text-underline-offset: 3px; }
a:hover { color: #ff9aa8; }
:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 6.8vw, 3.2rem); font-weight: 800; overflow-wrap: break-word; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); font-weight: 800; margin-top: 1.8em; }
h3 { font-size: 1.25rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: .25em 0; }
code, kbd {
  font-family: var(--mono); font-size: .9em; background: #2a1c20; border: 1px solid #3c2a2f;
  padding: .08em .4em; border-radius: 6px; color: #ffe3e7; white-space: nowrap;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(15, 11, 12, .9);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 4px 18px rgba(255, 31, 61, .35); }
.brand-mark svg { width: 20px; height: 20px; }
.brand small { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a { display: block; padding: .45rem .7rem; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--text); background: var(--card-2); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 31, 61, .18); box-shadow: inset 0 0 0 1px rgba(255, 31, 61, .45); }
.nav-toggle {
  display: none; margin-left: auto; background: var(--card-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: .5rem .8rem; font: inherit; font-weight: 700; cursor: pointer;
}
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); display: none; margin: 0; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 10px 20px 16px; }
  .nav a { padding: .7rem .8rem; font-size: 1.02rem; }
  .no-js .nav { position: static; display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.25rem; border-radius: 12px;
  font: inherit; font-weight: 750; text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 22px rgba(255, 31, 61, .28); }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost { background: var(--card-2); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: #fff; border-color: #5a3d44; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2rem 0; }

/* ---------- Seitenkopf / Hero ---------- */
.page-head { padding-top: 54px; padding-bottom: 18px; }
.page-head p.lead { font-size: 1.18rem; color: var(--muted); max-width: 760px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red-text); margin-bottom: .6rem; }
.hero { padding: 72px 0 40px; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; }
.ip-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 1.6rem 0 1rem; padding: 10px 10px 10px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; max-width: 560px;
}
.ip-box .ip { font-family: var(--mono); font-size: clamp(1.05rem, 3.6vw, 1.35rem); font-weight: 700; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ip-box .label { width: 100%; font-size: .8rem; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: -6px; }
.copy-btn { white-space: nowrap; }
.copy-btn.copied { background: #1f6f45; box-shadow: none; }

/* ---------- Status ---------- */
.status-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; max-width: 560px; }
.status-line { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
.dot.off { background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.status-meta { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.player-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.player-list li { margin: 0; background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .7rem; font-size: .9rem; }

/* ---------- Karten / Grids ---------- */
section { padding: 6px 0 10px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 1.2rem 0; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin: 1.2rem 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; font-size: 1.12rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
a.card { display: block; color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: rgba(255, 31, 61, .55); color: var(--text); }
a.card .more { color: var(--red-text); font-weight: 700; font-size: .95rem; }
.icon { font-size: 1.7rem; line-height: 1; margin-bottom: .55rem; display: block; }
.card p { color: var(--muted); }
.callout { border-left: 4px solid var(--red); background: linear-gradient(90deg, rgba(255, 31, 61, .1), rgba(255, 31, 61, .02)); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 1.2rem 0; }
.callout.info { border-left-color: #5aa9ff; background: linear-gradient(90deg, rgba(90, 169, 255, .1), rgba(90, 169, 255, .02)); }
.callout.warn { border-left-color: var(--warn); background: linear-gradient(90deg, rgba(255, 200, 87, .1), rgba(255, 200, 87, .02)); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.badge { display: inline-block; font-size: .78rem; font-weight: 800; padding: .12rem .55rem; border-radius: 999px; background: rgba(255, 31, 61, .16); color: #ffc2cb; border: 1px solid rgba(255, 31, 61, .4); vertical-align: middle; white-space: nowrap; }
.badge.gray { background: var(--card-2); color: var(--muted); border-color: var(--line); }
.badge.green { background: rgba(61, 220, 132, .12); color: #9ff0c4; border-color: rgba(61, 220, 132, .4); }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* ---------- Schritte ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.4rem 0; }
.steps > li { counter-increment: s; position: relative; padding: 18px 20px 18px 74px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 14px; }
.steps > li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.15rem; }
.steps h3 { margin: 0 0 .35rem; font-size: 1.12rem; }
.steps p:last-child, .steps ul:last-child { margin-bottom: 0; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0 1.4rem; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
caption { text-align: left; padding: 10px 14px; color: var(--muted); font-size: .9rem; caption-side: top; }
th, td { text-align: left; padding: .6rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--card-2); font-weight: 750; white-space: nowrap; position: sticky; top: 0; }
tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.hl td { background: rgba(255, 31, 61, .07) !important; }

/* ---------- Ausklappbar ---------- */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; }
details > summary { cursor: pointer; padding: 14px 18px; font-weight: 750; list-style: none; display: flex; align-items: center; gap: 10px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸"; color: var(--red-text); transition: transform .15s; display: inline-block; }
details[open] > summary::before { transform: rotate(90deg); }
details > .details-body { padding: 0 18px 16px; }
details .table-wrap { margin-top: 0; }

/* ---------- Inhaltsverzeichnis ---------- */
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 1rem 0 2rem; }
.toc h2 { font-size: 1.05rem; margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { columns: 2 260px; margin: 0; }
.toc li { break-inside: avoid; }

/* ---------- Regeln ---------- */
.rule-section { scroll-margin-top: 90px; }
.rules { list-style: none; padding: 0; }
.rules li { padding: .55rem 0 .55rem 3.4rem; position: relative; border-bottom: 1px dashed #2c2024; }
.rules li:last-child { border-bottom: 0; }
.rules .nr { position: absolute; left: 0; top: .55rem; font-family: var(--mono); font-weight: 700; color: var(--red-text); font-size: .92rem; }
.rules li:target { background: rgba(255, 209, 102, .08); }

/* ---------- Titel-Galerie ---------- */
.titles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.title-card { background: #120d0e; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.title-card h3 { margin: 0 0 .6rem; font-size: 1rem; color: var(--muted); }
.title-card ul { list-style: none; padding: 0; margin: 0; }
.title-card li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: .35rem 0; border-bottom: 1px solid #241a1d; }
.title-card li:last-child { border-bottom: 0; }
.title-card .lvl { font-size: .82rem; color: var(--faint); font-weight: 700; white-space: nowrap; }
.mc-title { font-family: var(--mono); font-size: 1.02rem; }
.mc-title.grad { -webkit-background-clip: text; background-clip: text; color: transparent; }
.mc-title.bold { font-weight: 800; }

/* ---------- Skills ---------- */
.skill-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0; }
.skill-nav a { text-decoration: none; padding: .45rem .9rem; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); color: var(--text); font-weight: 650; }
.skill-nav a:hover { border-color: rgba(255, 31, 61, .55); }
.skill-head { display: flex; align-items: center; gap: 14px; margin-top: 2.6rem; }
.skill-head .big { font-size: 2.2rem; width: 58px; height: 58px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; flex: none; }
.skill-head h2 { margin: 0; }
.skill-head p { margin: 0; color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 1rem 0; }
.kv div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kv b { display: block; font-size: 1.25rem; }
.kv span { color: var(--muted); font-size: .88rem; }

/* ---------- Adventskalender ---------- */
.advent { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 1.2rem 0; }
.door { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; overflow: hidden; }
.door .day { font-size: 2rem; font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.door .theme { font-weight: 750; margin: .35rem 0 .45rem; }
.door ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .94rem; }
.door.special { border-color: rgba(255, 200, 87, .55); background: linear-gradient(160deg, rgba(255, 200, 87, .08), var(--card) 55%); }
.door.special::after { content: "★"; position: absolute; top: 10px; right: 14px; color: var(--warn); font-size: 1.1rem; }
.door.xmas { border-color: rgba(255, 31, 61, .7); background: linear-gradient(160deg, rgba(255, 31, 61, .16), var(--card) 60%); grid-column: 1 / -1; }

/* ---------- Befehle ---------- */
.search { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 8px 6px 16px; margin: 1rem 0; position: sticky; top: 74px; z-index: 5; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; padding: .6rem 0; }
.search input:focus { outline: none; }
.search:focus-within { border-color: rgba(255, 31, 61, .6); box-shadow: 0 0 0 3px rgba(255, 31, 61, .18); }
.cmd-count { color: var(--faint); font-size: .88rem; white-space: nowrap; padding-right: 8px; }
.cmd-group h2 { font-size: 1.35rem; }
.cmd { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: 6px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cmd:last-child { border-bottom: 0; }
.cmd code { white-space: normal; overflow-wrap: anywhere; }
.cmd .alias { display: block; color: var(--faint); font-size: .84rem; margin-top: 4px; }
.cmd p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .cmd { grid-template-columns: 1fr; } }
.no-results { display: none; }
[hidden] { display: none !important; }

/* ---------- Socials ---------- */
.socials { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 1rem 0; }
.social { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; font-weight: 700; }
.social:hover { color: #fff; border-color: rgba(255, 31, 61, .55); }
.social svg { width: 26px; height: 26px; flex: none; }
.social small { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; }

/* ---------- Platzhalter ---------- */
.placeholder { background: #ffc857; color: #1a1200; font-weight: 800; padding: .05em .4em; border-radius: 5px; }

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 34px 0 40px; background: var(--bg-2); color: var(--muted); font-size: .94rem; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--faint); }

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .hero { padding: 44px 0 26px; }
  .page-head { padding-top: 36px; padding-bottom: 10px; }
  .steps > li { padding: 64px 16px 16px; }
  .steps > li::before { top: 14px; left: 16px; }
  .ip-box { padding: 12px; }
  .ip-box .btn { width: 100%; }
  .titles { grid-template-columns: 1fr; }
  th, td { padding: .5rem .6rem; }
}
@media print { .site-header, .site-footer, .search, .btn { display: none !important; } body { background: #fff; color: #000; } }

/* Ranglisten */
.rank-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.25rem; }
.rank-tab { background: var(--card-2); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; font: inherit; cursor: pointer; }
.rank-tab[aria-selected="true"] { background: linear-gradient(90deg, var(--red), var(--red-dark)); border-color: transparent; color: #fff; font-weight: 600; }
.rank-table td:first-child { width: 4.5rem; font-weight: 700; }
.rank-table tr.top1 td { color: #ffd76a; }
.rank-table tr.top2 td { color: #d9e2ec; }
.rank-table tr.top3 td { color: #e8a36b; }
