/* =====================================================================
   ZALEGEL NETWORK – Website v3 „Abendrot“
   Layout: fotogetrieben. Echte Ingame-Screenshots im Abendlicht tragen jede Seite, Text steht davor wie auf
   einem Spielplakat. Bildunterschriften im Stil eines Minecraft-Tooltips. Ein warmes Dunkel statt Lila.
   ===================================================================== */
:root {
  --night: #0f0b12;
  --dusk: #17111b;
  --ember: #211821;
  --ember-2: #2c2029;
  --line: #3a2b34;
  --line-strong: #54404b;

  --text: #f7f0e8;
  --text-2: #c2b3b4;
  --text-3: #8a7a80;

  --gold: #ffc93c;
  --gold-hi: #ffd76a;
  --on-gold: #1d1406;
  --sunset: #ff8a3d;
  --stadt: #ffb020;
  --mw: #ff5252;
  --smp: #4ade80;
  --lobby: #7cb6ff;
  --cb: #38d6e8;
  --discord: #5865f2;

  --accent: var(--gold);

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --r: 6px;
  --r-lg: 14px;
  --wrap: 1240px;
  --pad-l: max(20px, env(safe-area-inset-left, 0px));
  --pad-r: max(20px, env(safe-area-inset-right, 0px));
  --head: 68px;
  color-scheme: dark;
}
.a-stadt { --accent: var(--stadt); } .a-mw { --accent: var(--mw); } .a-smp { --accent: var(--smp); } .a-lobby { --accent: var(--lobby); } .a-cb { --accent: var(--cb); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--night); color: var(--text); font: 400 1.0625rem/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--gold) 45%, transparent); }
p { margin: 0; }
code { font: 500 .86em var(--f-mono); color: var(--gold-hi); background: color-mix(in srgb, var(--ember-2) 80%, transparent); border: 1px solid var(--line); border-radius: 4px; padding: .1em .4em; white-space: nowrap; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
.display { font: 900 clamp(3rem, 9vw, 7.5rem)/.86 var(--f-display); text-transform: uppercase; letter-spacing: -.005em; }
h1 { font: 900 clamp(2.8rem, 7vw, 5.5rem)/.9 var(--f-display); text-transform: uppercase; }
h2 { font: 800 clamp(2.1rem, 4.4vw, 3.4rem)/.95 var(--f-display); text-transform: uppercase; letter-spacing: .005em; }
h3 { font: 700 1.2rem/1.3 var(--f-body); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 .78rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--text-2); max-width: 54ch; }
.prose { color: var(--text-2); max-width: 60ch; }
.prose strong, .lead strong { color: var(--text); font-weight: 600; }
.small { font-size: .875rem; } .muted { color: var(--text-2); } .faint { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 300; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: var(--r); font-weight: 700; }
.skip:focus { left: 12px; }

.wrap { max-width: calc(var(--wrap) + 40px); margin-inline: auto; padding-left: var(--pad-l); padding-right: var(--pad-r); }
.stack { display: grid; gap: var(--g, 16px); align-content: start; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--g, 12px); }
.grid { display: grid; gap: var(--g, 20px); }
.grid > * { min-width: 0; }
.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .c3, .c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .c2, .c3, .c4 { grid-template-columns: 1fr; } }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.tight { padding-block: clamp(40px, 6vw, 72px); }
.band { background: var(--dusk); border-block: 1px solid var(--line); }
.head-block { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 64ch; }
.head-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
@media (max-width: 860px) { .head-split { grid-template-columns: 1fr; } }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }

/* ---------- Kopfzeile ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--night); z-index: 201; }
.site-head { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 200; transition: background-color .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.site-head.solid, .site-head.open { background: color-mix(in srgb, var(--night) 94%, transparent); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: var(--head); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; image-rendering: pixelated; }
.brand b { font: 900 1.45rem/1 var(--f-display); letter-spacing: .03em; text-transform: uppercase; }
.brand b span { color: var(--gold); }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { position: relative; text-decoration: none; padding: 8px 12px; font-weight: 600; font-size: .95rem; color: var(--text-2); border-radius: var(--r); }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--nav-c, var(--gold)); }
.head-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.head-actions .menu-btn { display: none; }
@media (max-width: 1060px) {
  .nav, .head-actions .hide-m { display: none; }
  .head-actions .menu-btn { display: inline-flex; }
  .site-head.open .nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 8px var(--pad-r) 20px var(--pad-l); background: var(--night); border-bottom: 1px solid var(--line); max-height: calc(100dvh - var(--head)); overflow-y: auto; }
  .site-head.open .nav a { padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-head.open .nav a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); }
}

/* ---------- Knöpfe ---------- */
.btn { --bg: var(--ember-2); --fg: var(--text); --bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: var(--r);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); font: 700 .95rem/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.btn:hover { --bg: var(--line); }
.btn:active { transform: translateY(1px); }
.btn-gold { --bg: var(--gold); --fg: var(--on-gold); --bd: var(--gold); box-shadow: 0 6px 24px -8px color-mix(in srgb, var(--gold) 70%, transparent); }
.btn-gold:hover { --bg: var(--gold-hi); --bd: var(--gold-hi); }
.btn-ghost { --bg: color-mix(in srgb, var(--night) 40%, transparent); --bd: color-mix(in srgb, var(--text) 25%, transparent); backdrop-filter: blur(6px); }
.btn-ghost:hover { --bg: color-mix(in srgb, var(--night) 65%, transparent); }
.btn-discord { --bg: var(--discord); --fg: #fff; --bd: var(--discord); }
.btn-discord:hover { --bg: #4752c4; --bd: #4752c4; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .85rem; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 1.02rem; }
.btn-icon { width: 40px; padding: 0; height: 40px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
@media (prefers-reduced-motion: no-preference) { .hero-photo img { animation: drift 30s ease-in-out infinite alternate; } }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1%, -1%); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(15,11,18,.55) 0%, rgba(15,11,18,0) 22%, rgba(15,11,18,.15) 50%, rgba(15,11,18,.92) 82%, var(--night) 100%),
  linear-gradient(90deg, rgba(15,11,18,.75) 0%, rgba(15,11,18,0) 60%); }
.hero .wrap { width: 100%; padding-block: calc(var(--head) + 64px) clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hero-text { display: grid; gap: 22px; }
.hero-text .lead { color: #eadfd6; }
.hero-logo { width: min(340px, 70%); image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(0,0,0,.5)); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { min-height: 0; } }

/* Seitenkopf mit Foto */
.page-hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(70vh, 640px); display: grid; align-items: end; }
.page-hero .hero-photo img { object-position: center; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,11,18,.6) 0%, rgba(15,11,18,.1) 35%, rgba(15,11,18,.85) 78%, var(--night) 100%); }
.page-hero .wrap { width: 100%; padding-block: calc(var(--head) + 80px) clamp(36px, 5vw, 64px); display: grid; gap: 18px; }
.page-hero .lead { color: #eadfd6; }
.page-hero.plain { min-height: 0; background: radial-gradient(90% 120% at 15% 0%, color-mix(in srgb, var(--accent) 16%, var(--dusk)) 0%, var(--night) 70%); }
.page-hero.plain::after { display: none; }
.crumbs { display: flex; gap: 8px; font-size: .82rem; color: var(--text-3); list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { text-decoration: none; color: var(--text-2); }

/* ---------- Beitreten-Karte ---------- */
.join { background: color-mix(in srgb, var(--night) 72%, transparent); backdrop-filter: blur(14px); border: 1px solid color-mix(in srgb, var(--text) 16%, transparent); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 14px; max-width: 460px; width: 100%; justify-self: end; }
@media (max-width: 900px) { .join { justify-self: stretch; max-width: none; } }
.join-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.join-top strong { font: 800 1.35rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.join-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 10px 10px 12px; border-radius: var(--r); background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.join-row .ed { font: 700 .72rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.join-row .addr { font: 600 1rem/1.3 var(--f-mono); color: var(--text); overflow-wrap: anywhere; }
.join-row .addr small { display: block; font: 500 .75rem/1.3 var(--f-body); color: var(--text-3); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-2); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.status.on i { background: var(--smp); box-shadow: 0 0 0 4px color-mix(in srgb, var(--smp) 25%, transparent); }
.status.off i { background: var(--mw); }
.status b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- Befehlsband ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--dusk); overflow: hidden; }
.ticker-track { display: flex; gap: 48px; width: max-content; padding-block: 16px; font: 600 .95rem/1 var(--f-mono); color: var(--text-3); white-space: nowrap; }
.ticker-track span b { color: var(--gold); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .ticker-track { animation: tick 60s linear infinite; } .ticker:hover .ticker-track { animation-play-state: paused; } }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Kapitel (Spielmodus mit Foto) ---------- */
.chapter { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.chapter.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.chapter.flip .shot { order: 2; }
@media (max-width: 900px) { .chapter, .chapter.flip { grid-template-columns: 1fr; } .chapter.flip .shot { order: 0; } }
.chapter + .chapter { margin-top: clamp(64px, 9vw, 120px); }
.chapter-text { display: grid; gap: 18px; }
.chapter-num { font: 900 clamp(4rem, 9vw, 7rem)/.8 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 70%, transparent); }
.chapter-text h2 { color: var(--text); }
.chapter-text h2 em { font-style: normal; color: var(--accent); }

/* ---------- Screenshots ---------- */
.shot { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--ember); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.r169 { aspect-ratio: 16 / 9; } .shot.r43 { aspect-ratio: 4 / 3; } .shot.r11 { aspect-ratio: 1; } .shot.wide { aspect-ratio: 21 / 8; }
.shot.r169, .shot.r43, .shot.r11, .shot.wide { max-width: 100%; }
.shot.ui { background: #1b1b1b; display: grid; place-items: center; padding: 12px; }
.shot.ui img { width: auto; max-height: 100%; object-fit: contain; image-rendering: pixelated; border-radius: 4px; }
.shot figcaption { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); }

/* Bildunterschrift im Minecraft-Tooltip-Stil */
.tooltip { display: inline-block; padding: 7px 10px; font: 500 .82rem/1.35 var(--f-body); color: #f2ecff;
  background: rgba(16, 0, 16, .94); border: 2px solid; border-image: linear-gradient(180deg, #5000ff, #28007f) 1;
  box-shadow: 0 0 0 1px rgba(16,0,16,.94); }
.tooltip b { color: var(--gold-hi); font-weight: 700; display: block; }

/* Platzhalter für Fotos, die noch fehlen */
.shot.missing { display: grid; place-items: center; text-align: center; padding: 24px; border-style: dashed; border-color: var(--line-strong);
  background: repeating-linear-gradient(135deg, var(--ember) 0 14px, color-mix(in srgb, var(--ember) 70%, var(--dusk)) 14px 28px); box-shadow: none; }
.shot.missing .ph { display: grid; gap: 8px; justify-items: center; max-width: 36ch; }
.shot.missing .ph .icon { width: 30px; height: 30px; color: var(--accent); }
.shot.missing .ph b { font: 800 1.2rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.shot.missing .ph span { font-size: .85rem; color: var(--text-2); }
.shot.missing .ph code { font-size: .78rem; }

/* Galerie */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 30%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.gallery .shot { scroll-snap-align: start; aspect-ratio: 4 / 3; }
@media (max-width: 640px) { .gallery { grid-auto-columns: 82%; } }

/* ---------- Merkmale ---------- */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.feats > div { padding: 26px 26px 28px 0; display: grid; gap: 8px; align-content: start; border-bottom: 1px solid var(--line); min-width: 0; }
.feats > div:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.feats .icon { width: 26px; height: 26px; color: var(--accent); }
.feats p { color: var(--text-2); font-size: .95rem; }
@media (max-width: 900px) {
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .feats > div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } .feats > div:nth-child(even) { padding-left: 0; border-left: 0; } }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); }
.checks li::before { content: ""; width: 14px; height: 14px; margin-top: .4em; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); box-shadow: inset -3px -3px 0 rgba(0,0,0,.3); }
.checks strong { color: var(--text); font-weight: 600; }

/* ---------- Zahlen ---------- */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.figures div { padding: 6px 24px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.figures div:first-child { border-left: 0; padding-left: 0; }
.figures strong { font: 900 clamp(2.6rem, 5vw, 3.8rem)/.9 var(--f-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.figures span { color: var(--text-2); font-size: .92rem; }
@media (max-width: 760px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } .figures div:nth-child(3) { border-left: 0; padding-left: 0; } }

/* ---------- Schritte ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--line); position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 900 2.4rem/1 var(--f-display); color: var(--accent); }
.steps li::after { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--accent); }
.steps p { color: var(--text-2); font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Karten (sparsam) ---------- */
.card { background: var(--ember); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card p { color: var(--text-2); font-size: .95rem; }

/* Spielmodus-Kacheln mit Foto */
.mode { position: relative; display: grid; align-content: end; min-height: 420px; padding: 24px; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; isolation: isolate; border: 1px solid var(--line); }
.mode img, .mode .missing-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.mode::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,11,18,0) 25%, rgba(15,11,18,.92) 80%); }
.mode:hover img { transform: scale(1.05); }
.mode .tag { font: 700 .74rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.mode h3 { font: 900 2.6rem/.9 var(--f-display); text-transform: uppercase; margin: 8px 0 10px; }
.mode p { color: #e3d7cf; font-size: .95rem; max-width: 40ch; }
.mode .go { margin-top: 16px; display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--accent); }
.mode .server { position: absolute; top: 18px; right: 18px; }
.missing-bg { background: repeating-linear-gradient(135deg, var(--ember) 0 14px, var(--dusk) 14px 28px); }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font: 700 .72rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--p, var(--text-2)); background: color-mix(in srgb, var(--p, var(--text-2)) 14%, rgba(15,11,18,.7)); border: 1px solid color-mix(in srgb, var(--p, var(--text-2)) 35%, transparent); width: max-content; justify-self: start; }
.pill.gold { --p: var(--gold); } .pill.stadt { --p: var(--stadt); } .pill.mw { --p: var(--mw); } .pill.smp { --p: var(--smp); } .pill.lobby { --p: var(--lobby); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ember); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { font: 800 1.05rem/1.1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; background: var(--dusk); color: var(--text); position: sticky; top: 0; }
tbody td { color: var(--text-2); font-variant-numeric: tabular-nums; }
tbody td:first-child { color: var(--text); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--ember-2) 70%, transparent); }
.num, td.c, th.c { text-align: center; }
.yes { color: var(--smp); font-weight: 700; } .no { color: var(--text-3); }
th.col-vip { color: #ffe066; } th.col-vipp { color: #ffd23f; } th.col-held { color: var(--smp); } th.col-legend { color: #fff; } th.col-myt { color: #c9a0ff; }

/* ---------- Ränge ---------- */
.ranks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .ranks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ranks { grid-template-columns: 1fr; } }
.rank { --rc: var(--text-2); display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: 22px 20px; border-radius: var(--r-lg); background: var(--ember); border: 1px solid var(--line); border-top: 3px solid var(--rc); min-width: 0; }
.rank.vip { --rc: #ffe066; } .rank.vipp { --rc: #ffd23f; } .rank.held { --rc: var(--smp); } .rank.legend { --rc: #ffffff; } .rank.myt { --rc: #c9a0ff; background: linear-gradient(180deg, color-mix(in srgb, #c9a0ff 12%, var(--ember)), var(--ember) 45%); }
.rank h3 { font: 900 2.1rem/.9 var(--f-display); text-transform: uppercase; color: var(--rc); }
.rank .price { font-size: .85rem; color: var(--text-3); }
.rank .chat { font: 500 .78rem/1.5 var(--f-mono); background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; color: var(--text-2); overflow-wrap: anywhere; }
.rank .chat b { color: var(--rc); }
.rank ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .9rem; color: var(--text-2); }
.rank li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; }
.rank li::before { content: ""; width: 7px; height: 7px; margin-top: .55em; background: var(--rc); }
.rank li.inh { color: var(--text-3); font-style: italic; }

/* ---------- Hinweis ---------- */
.note { display: grid; grid-template-columns: 22px 1fr; gap: 4px 14px; padding: 16px 18px; border-radius: var(--r); background: color-mix(in srgb, var(--n, var(--lobby)) 9%, var(--ember)); border: 1px solid color-mix(in srgb, var(--n, var(--lobby)) 35%, var(--line)); }
.note .icon { grid-row: span 2; color: var(--n, var(--lobby)); width: 20px; height: 20px; margin-top: 2px; }
.note strong { font-weight: 700; }
.note p { color: var(--text-2); font-size: .92rem; }
.note.warn { --n: var(--stadt); } .note.ok { --n: var(--smp); }

/* ---------- Befehle ---------- */
.cmds { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ember); overflow: hidden; }
.cmds div { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.cmds div:last-child { border-bottom: 0; }
.cmds code { background: none; border: 0; padding: 0; white-space: normal; }
.cmds span { color: var(--text-2); font-size: .93rem; }
@media (max-width: 640px) { .cmds div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Klassen ---------- */
.classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.classes > div { background: var(--ember); padding: 18px; display: grid; gap: 6px; align-content: start; }
.classes h3 { font: 800 1.45rem/1 var(--f-display); text-transform: uppercase; }
.classes .role { font: 700 .7rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.classes p { color: var(--text-2); font-size: .88rem; }
.classes .abil { margin-top: 4px; font-size: .8rem; color: var(--mw); font-weight: 700; }
.filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.filter button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); font: 600 .85rem/1 var(--f-body); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--text); color: var(--night); border-color: var(--text); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 800 1.6rem/1 var(--f-display); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 22px; color: var(--text-2); max-width: 68ch; }

/* ---------- Abschluss ---------- */
.finale { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); border: 1px solid var(--line); padding: clamp(32px, 6vw, 72px); display: grid; gap: 22px; }
.finale img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.finale::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,11,18,.95) 0%, rgba(15,11,18,.7) 50%, rgba(15,11,18,.35) 100%); }
.finale .lead { color: #eadfd6; }

/* ---------- Fuß ---------- */
.foot { border-top: 1px solid var(--line); background: var(--dusk); padding-block: 56px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--text-2); font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot h4 { margin: 0 0 14px; font: 800 1.05rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { text-decoration: none; color: var(--text-2); }
.foot a:hover { color: var(--gold); }
.foot-logo { width: 200px; image-rendering: pixelated; margin-bottom: 14px; }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .8rem; color: var(--text-3); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); z-index: 300; display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: var(--r); background: var(--gold); color: var(--on-gold); font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Einblenden beim Scrollen – Inhalte sind ohne JS sichtbar */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .site-head .wrap { gap: 12px; }
  .brand b { font-size: 1.2rem; }
  .brand b span { display: none; }
  .join-row { grid-template-columns: 1fr auto; }
  .join-row .ed { grid-column: 1 / -1; }
}
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ---------- Rechtliches (Impressum, Datenschutz) ---------- */
.legal { max-width: 76ch; display: grid; gap: 14px; }
.legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 22px; }
.legal p { color: var(--text-2); }
.legal a { color: var(--gold-hi); }
mark.todo { background: color-mix(in srgb, var(--gold) 28%, transparent); color: var(--gold-hi); border: 1px dashed var(--gold); border-radius: 4px; padding: 0 .3em; }
.chapter.solo { grid-template-columns: minmax(0, 1fr); max-width: 72ch; }
