/* =========================================================================
   Legion – Wardogs Community
   Farben, Schriften und Abstände sind oben als Variablen gesammelt.
   ========================================================================= */

/* Schriften: lokal gehostet in assets/fonts/ (eingebunden über assets/fonts/fonts.css,
   erzeugt von tools/self-host-fonts.js). Die Seite lädt nichts von Google – sonst ginge
   die IP jedes Besuchers dorthin. Fehlen die Dateien, greifen die Ersatzschriften in --font-*. */

:root {
  --bg: #0a0d10;
  --bg-2: #0d1115;
  --surface: #12171c;
  --surface-2: #171d23;
  --surface-3: #1f262e;
  --line: rgba(190, 205, 220, 0.08);
  --line-2: rgba(190, 205, 220, 0.14);
  --line-3: rgba(190, 205, 220, 0.3);

  --text: #e3e7ea;
  --text-2: #b3bcc4;
  --muted: #86919b;
  --dim: #58636d;

  --accent: #f2c230;
  --accent-2: #ffd95a;
  --accent-ink: #151208;
  --accent-soft: rgba(242, 194, 48, 0.1);
  --accent-line: rgba(242, 194, 48, 0.38);

  --up: #46d68c;
  --down: #ff6b6b;
  --lonestar: #4da3ff;
  --valkyra: #ff5f6d;
  --manticore: #3fd98a;
  --violet: #b99bff;

  --font-display: "Saira Extra Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --wrap: 1240px;
  --gutter: 24px;
  color-scheme: dark;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4, h5, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.dim { color: var(--dim); }
.num { font-variant-numeric: tabular-nums; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.btn svg { transition: transform 0.18s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line-3); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-2); background: rgba(255, 255, 255, 0.03); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 11.5px; }

.icon-btn {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: transparent;
  color: var(--text-2); cursor: pointer; text-decoration: none;
  transition: color 0.18s, border-color 0.18s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-3); }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 16, 0.84);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 64px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); flex: none; }
.brand-mark { width: 44px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 25px;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 0.9;
}
.brand-sub {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}

.nav { display: flex; gap: 2px; }
.nav a {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none;
  padding: 8px 11px; white-space: nowrap; transition: color 0.18s, background-color 0.18s;
}
.nav a::before { content: "/"; color: var(--dim); margin-right: 6px; transition: color 0.18s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a:hover::before { color: var(--accent); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.online-pill {
  display: flex; align-items: center; gap: 9px;
  height: 36px; padding: 0 12px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 12.5px; text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.online-pill b { font-weight: 600; }
.dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--up); box-shadow: 0 0 0 3px rgba(70, 214, 140, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(70, 214, 140, 0); } }
.mini-bar { width: 42px; height: 4px; background: var(--surface-3); position: relative; overflow: hidden; }
.mini-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width 0.6s; }
.menu-btn { display: none; }

/* Sprachumschalter */
.lang-switch { display: flex; height: 36px; border: 1px solid var(--line-2); flex: none; }
.lang-switch button {
  background: none; border: 0; padding: 0 9px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--muted); transition: color 0.18s, background-color 0.18s;
}
.lang-switch button + button { border-left: 1px solid var(--line-2); }
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.nav-lang { display: none; }

/* ---------- Panels ---------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  min-width: 0;
}
/* HUD-Eckwinkel */
.hud::before {
  --c: var(--line-3);
  content: ""; position: absolute; inset: -1px; pointer-events: none; z-index: 1;
  background:
    linear-gradient(var(--c), var(--c)) top left / 12px 1px,
    linear-gradient(var(--c), var(--c)) top left / 1px 12px,
    linear-gradient(var(--c), var(--c)) top right / 12px 1px,
    linear-gradient(var(--c), var(--c)) top right / 1px 12px,
    linear-gradient(var(--c), var(--c)) bottom left / 12px 1px,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 12px,
    linear-gradient(var(--c), var(--c)) bottom right / 12px 1px,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 12px;
  background-repeat: no-repeat;
}
.hud-accent::before {
  --c: var(--accent);
  background-size: 16px 2px, 2px 16px, 16px 2px, 2px 16px, 16px 2px, 2px 16px, 16px 2px, 2px 16px;
}

.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); min-height: 54px;
}
.panel-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
}
.panel-title::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; }
.head-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; text-align: right; }
.panel-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 20px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
}
.panel-foot a { color: var(--text-2); text-decoration: none; letter-spacing: 0.04em; }
.panel-foot a:hover { color: var(--accent); }

.live-badge {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 8px; color: var(--accent);
  border: 1px dashed var(--accent-line); cursor: help;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(190, 205, 220, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 205, 220, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(90% 80% at 50% 30%, #000 30%, transparent 85%);
  mask-image: radial-gradient(90% 80% at 50% 30%, #000 30%, transparent 85%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 60% at 18% 32%, rgba(242, 194, 48, 0.07), transparent 65%),
    linear-gradient(180deg, transparent 55%, var(--bg));
}
.topo { position: absolute; inset: 0; }
.topo svg { width: 100%; height: 100%; }
.topo path { fill: none; stroke: rgba(190, 210, 230, 0.075); stroke-width: 1; }
.topo path.major { stroke: rgba(190, 210, 230, 0.14); }
.topo .mark { stroke: var(--accent); stroke-opacity: 0.45; stroke-width: 1.2; fill: none; }
.hero-coords {
  position: absolute; left: var(--gutter); bottom: 18px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--dim);
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px; align-items: start;
  padding-top: 76px; padding-bottom: 72px;
}
/* Logo mit Blutspritzern; das freigestellte Bild hat rundum weich auslaufenden Rand */
.hero-emblem {
  display: block; width: clamp(170px, 19vw, 240px); height: auto;
  margin: -34px 0 8px -26px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(84px, 12.5vw, 184px);
  line-height: 0.8; letter-spacing: 0.01em; text-transform: uppercase;
  margin: 26px 0 0; margin-left: -0.04em;
  overflow-wrap: anywhere;
}
.hero-title.is-long { font-size: clamp(60px, 8.5vw, 124px); }
.hazard {
  width: 210px; height: 10px; margin-top: 26px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, transparent 8px 16px);
}
.hero-tagline {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(25px, 2.6vw, 33px); line-height: 1.1; letter-spacing: 0.015em;
  margin-top: 26px;
}
.slash { color: var(--accent); font-weight: 700; margin-right: 4px; }
.hero-intro { color: var(--text-2); font-size: 16px; max-width: 52ch; margin-top: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* Fair Play direkt unter den Hauptknöpfen: „Spieler melden“, „Sperre anfechten“ (wardogsbot.com) */
.hero-fair { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* Desktop: unter dem Live-Panel (rechte Spalte); Handy/Tablet: Zeile unter „Mitspielen“ */
.hero-side { min-width: 0; }
.hero-fair-side { margin-top: 14px; }
.hero-fair-side .btn-fair { flex: 1 1 0; justify-content: center; }
.hero-fair-copy { display: none; }
.hero-fair[hidden], .hero-fair .btn[hidden] { display: none; }
.btn-fair { gap: 8px; border-color: var(--line-3); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-fair:hover { border-color: var(--accent); color: var(--text); }
.btn-fair svg:first-child { color: var(--accent); }
.btn-fair:hover svg:first-child { transform: none; }
/* Hinweis unter den Fair-Play-Knöpfen: Die Formulare liegen bei einem externen Dienst (wardogsbot.com).
   Wie die Knöpfe zweimal im HTML: am Desktop unter dem Live-Panel, auf Handy/Tablet unter „Mitspielen“. */
.fair-note { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }
.fair-note-copy { display: none; }
.fair-note[hidden] { display: none; }

.hero-meta {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start;
  margin: 44px 0 0; border-top: 1px solid var(--line-2);
}
.hero-meta div { padding: 16px 30px 0 0; margin-right: 30px; border-right: 1px solid var(--line); }
.hero-meta div:last-child { border-right: 0; margin-right: 0; }
.hero-meta dt {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.hero-meta dd {
  margin: 4px 0 0; font-family: var(--font-display); font-weight: 700;
  font-size: 28px; line-height: 1; letter-spacing: 0.02em;
}

/* Live-Panel */
.live-panel { background: linear-gradient(180deg, rgba(18, 23, 28, 0.92), rgba(13, 17, 21, 0.96)); }
.live-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; }
.live-num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 76px; line-height: 0.78; letter-spacing: 0.01em; font-variant-numeric: tabular-nums;
}
.live-of { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.live-pct { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--accent); line-height: 1; }
.segbar { display: grid; grid-template-columns: repeat(40, 1fr); gap: 3px; padding: 0 20px 20px; }
.segbar i { height: 12px; background: var(--surface-3); transition: background-color 0.4s; }
.segbar i.on { background: var(--accent); }

.srv-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.srv {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) 118px 64px;
  align-items: center; gap: 12px;
  padding: 7px 20px; border-bottom: 1px solid var(--line);
}
.srv:last-child { border-bottom: 0; }
.srv:hover { background: rgba(255, 255, 255, 0.02); }
.srv-nr { font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); }
.srv-info { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.srv-map {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.2;
}
.srv-mode { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-load { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.srv-bar { height: 4px; background: var(--surface-3); position: relative; }
.srv-bar i { position: absolute; inset: 0 auto 0 0; background: var(--text-2); transition: width 0.6s; }
.srv.is-full .srv-bar i { background: var(--accent); }
.srv-count { font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 26px; text-align: right; }
.tag {
  justify-self: end;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  padding: 3px 6px; border: 1px solid;
}
.tag-full { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.tag-open { color: var(--up); border-color: rgba(70, 214, 140, 0.32); }

/* ---------- Sektionen ---------- */
.section { padding-top: 88px; }
.section-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end; gap: 18px;
  padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line-2);
}
.section-no {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.14em; padding-bottom: 7px;
}
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(38px, 4.6vw, 56px); line-height: 0.88;
  text-transform: uppercase; letter-spacing: 0.01em;
}
.section-desc { color: var(--muted); font-size: 14px; max-width: 40ch; text-align: right; padding-bottom: 3px; }

/* ---------- 01 Bilanz ---------- */
.stats { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 16px; }
.stat-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
.stat-num small { font-size: 0.5em; margin-left: 4px; color: var(--text-2); font-weight: 600; }
.stat-num.is-none small { display: none; } /* „–“ ohne Einheit */
.stat-note { font-size: 13px; color: var(--muted); }
.stat-note b { color: var(--text-2); font-weight: 600; }
.delta { font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap; margin-left: 4px; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }

.stat-hero { padding: 24px; display: flex; flex-direction: column; }
.stat-hero .stat-num { font-size: clamp(66px, 7.4vw, 108px); line-height: 0.8; margin: 22px 0 14px; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 76px; margin-top: auto; padding-top: 26px; }
.spark i { flex: 1; background: var(--surface-3); min-height: 3px; transition: background-color 0.2s; }
.spark i:hover { background: var(--text-2); }
.spark i.today { background: var(--accent); }
.spark-axis {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--dim); letter-spacing: 0.06em;
}

.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 22px 24px; display: flex; flex-direction: column; }
.stat .stat-num { font-size: clamp(44px, 4.4vw, 58px); line-height: 0.86; margin: 16px 0 10px; }
.stat:hover { border-color: var(--line-2); }

/* ---------- 02 Leaderboard ---------- */
.board-wrap { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 16px; align-items: start; }

.tabs { display: flex; border: 1px solid var(--line-2); }
.tab {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 12px; background: none; border: 0; color: var(--muted); cursor: pointer;
  transition: color 0.18s, background-color 0.18s;
}
.tab + .tab { border-left: 1px solid var(--line-2); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }

.av {
  --h: 200;
  position: relative; flex: none;
  width: 34px; height: 34px; border-radius: 7px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, hsl(var(--h) 22% 30%), hsl(var(--h) 26% 18%));
  color: hsl(var(--h) 55% 84%);
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.av-lg { width: 58px; height: 58px; border-radius: 11px; font-size: 23px; }

.ptag { font-family: var(--font-mono); font-size: 0.86em; color: var(--muted); }

.podium {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end; gap: 14px; padding: 30px 24px 0;
}
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.pod-name {
  margin-top: 12px; max-width: 100%; font-weight: 600; font-size: 14.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pod-val {
  font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1;
  margin: 6px 0 14px; font-variant-numeric: tabular-nums;
}
.pod-block {
  width: 100%;
  display: flex; justify-content: center; padding-top: 6px;
  background: linear-gradient(180deg, var(--surface-3), rgba(31, 38, 46, 0));
  border-top: 2px solid var(--line-3);
  font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: 1;
  color: var(--dim);
}
.pod-1 .pod-block {
  height: 118px; border-top-color: var(--accent); color: var(--accent);
  background: linear-gradient(180deg, rgba(242, 194, 48, 0.14), rgba(242, 194, 48, 0));
}
.pod-1 .av { box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px rgba(242, 194, 48, 0.12); }
.pod-1 .pod-val { color: var(--accent); font-size: 38px; }
.pod-2 .pod-block { height: 86px; }
.pod-3 .pod-block { height: 62px; }

.board-list { list-style: none; margin: 0; padding: 4px 24px 10px; }
.board-row {
  display: grid; grid-template-columns: 26px 34px minmax(0, 1fr) auto;
  align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.board-row:last-child { border-bottom: 0; }
.row-rank { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.row-name { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-weight: 500; font-size: 14.5px; }
.row-name > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-bar { display: block; height: 2px; background: var(--surface-3); position: relative; }
.row-bar i { position: absolute; inset: 0 auto 0 0; background: var(--text-2); opacity: 0.55; }
.row-val {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  font-variant-numeric: tabular-nums; min-width: 64px; text-align: right;
}

/* Clan der Woche (.rudel-*) */
.rudel-top { display: flex; align-items: center; gap: 18px; padding: 24px 22px 20px; }
.crest {
  flex: none; width: 82px; height: 92px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
  background: var(--accent); position: relative;
}
.crest::after {
  content: ""; position: absolute; inset: 3px;
  clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
  background: linear-gradient(170deg, #2a2412, #14120b);
}
.crest span {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: 0.02em; color: var(--accent);
}
.rudel-name { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 0.95; text-transform: uppercase; }
.rudel-motto { margin-top: 6px; color: var(--muted); font-size: 13.5px; font-style: italic; }
.rudel-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); margin: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.rudel-stats div { padding: 14px 22px; }
.rudel-stats div:nth-child(odd) { border-right: 1px solid var(--line); }
.rudel-stats div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
.rudel-stats dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.rudel-stats dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.mini-head {
  padding: 18px 22px 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.rudel-list { list-style: none; margin: 0; padding: 0 22px 14px; }
.rudel-list li {
  display: grid; grid-template-columns: 26px auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.rudel-list li:last-child { border-bottom: 0; }
.rl-tag { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.rl-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-val { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---------- 03 Auslastung ---------- */
.load-wrap { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; }
.chart { position: relative; padding: 18px 18px 10px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .gl { stroke: var(--line-2); stroke-dasharray: 2 4; }
.chart .ax { fill: var(--dim); font-family: var(--font-mono); }
.chart .bar { fill: var(--surface-3); transition: fill 0.15s; }
.chart .bar.hot { fill: #4a5561; }
.chart .bar.now { fill: var(--accent); }
.chart .bar.is-hover { fill: var(--text-2); }
.chart .bar.now.is-hover { fill: var(--accent-2); }
.chart .now-label { fill: var(--accent); font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.1em; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 4px 18px 16px; font-size: 13px; color: var(--muted); }
.chart-foot b { color: var(--text); font-weight: 600; }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key i { width: 10px; height: 10px; display: inline-block; }

.tip {
  position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none;
  padding: 7px 10px; background: var(--bg); border: 1px solid var(--line-3);
  font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap;
  transform: translate(-50%, -100%); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.tip b { color: var(--accent); font-weight: 600; }

.heat-wrap { padding: 18px 20px 16px; }
.heat { display: grid; grid-template-columns: 26px repeat(7, minmax(0, 1fr)); gap: 5px; }
.heat-day {
  text-align: center; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px;
}
.heat-day.today { color: var(--accent); }
.heat-h { font-family: var(--font-mono); font-size: 10.5px; color: var(--dim); align-self: center; }
.heat-cell {
  height: 26px; border-radius: 2px;
  background: color-mix(in oklab, var(--accent) var(--p), var(--surface-3));
  transition: transform 0.15s;
}
.heat-cell:hover { transform: scale(1.12); outline: 1px solid var(--text); }
.heat-cell.peak { outline: 1px solid var(--text); outline-offset: 1px; }
.heat-foot { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.heat-foot b { color: var(--text); font-weight: 600; }
.legend { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; color: var(--dim); }
.legend i { width: 18px; height: 8px; border-radius: 1px; background: color-mix(in oklab, var(--accent) var(--p), var(--surface-3)); }

/* ---------- 04 Gefechte ---------- */
.ops-wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.ops { display: flex; flex-direction: column; }

.featured { padding: 22px 22px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--accent-soft), transparent 70%); }
.feat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.feat-map {
  font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 0.85;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.feat-sub { margin-top: 8px; font-size: 13px; color: var(--muted); }
.feat-clock { text-align: right; flex: none; }
.feat-clock b {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.feat-clock span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tug { display: flex; gap: 3px; height: 14px; margin: 20px 0 14px; }
.tug i { display: block; height: 100%; transition: flex-grow 0.8s; }
.factions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fac { border-left: 3px solid var(--c); padding-left: 10px; }
.fac-name { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.fac-val { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fac.lead .fac-val::after {
  content: attr(data-lead); margin-left: 8px; vertical-align: 5px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c);
}
.feat-mvp { margin-top: 16px; font-size: 13px; color: var(--muted); }
.feat-mvp b { color: var(--text); font-weight: 600; }

.table-scroll { overflow-x: auto; }
.rounds { width: 100%; border-collapse: collapse; }
.rounds th {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim); text-align: left;
  padding: 12px 22px 10px; border-bottom: 1px solid var(--line);
}
.rounds td { padding: 11px 22px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.rounds tr:last-child td { border-bottom: 0; }
.rounds tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.rounds .num { text-align: right; font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.r-map { display: block; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.04em; }
.r-sub { display: block; font-size: 12px; color: var(--muted); }
.state {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--up)); }
.state.live { color: var(--up); }
.state.live::before { animation: blink 1.4s steps(2, start) infinite; }
.state.won { color: var(--text-2); }
.state.won::before { border-radius: 1px; }
@keyframes blink { to { visibility: hidden; } }

.funk { display: flex; flex-direction: column; }
.rx { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.rx i { width: 7px; height: 7px; border-radius: 50%; background: var(--down); animation: blink 1.2s steps(2, start) infinite; }
.funk-list {
  list-style: none; margin: 0; padding: 0; flex: 1;
  max-height: 640px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
  mask-image: linear-gradient(180deg, #000 82%, transparent);
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
}
.funk-item {
  display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 4px 14px;
  padding: 12px 20px; border-bottom: 1px dashed var(--line-2);
}
.funk-item time { grid-row: span 2; font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); padding-top: 1px; font-variant-numeric: tabular-nums; }
.funk-type { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c); }
.funk-msg { font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.funk-msg b { color: var(--text); font-weight: 600; }
.funk-item.is-new { animation: radio-in 0.6s ease-out; }
@keyframes radio-in {
  from { opacity: 0; transform: translateY(-8px); background: var(--accent-soft); }
  to { opacity: 1; transform: none; background: transparent; }
}

/* ---------- Mitspielen ---------- */
.join {
  position: relative; margin-top: 104px;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.join::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, var(--bg) 10px 20px);
}
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 64px; padding-bottom: 64px; }
.join-intro {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 18px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line-2);
}
.join-intro .section-no { padding-bottom: 7px; }
.join-intro p { color: var(--text-2); font-size: 14px; max-width: 44ch; text-align: right; padding-bottom: 3px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { position: relative; padding: 22px; border: 1px solid var(--line-2); background: var(--bg-2); display: flex; flex-direction: column; }
.step-no { font-family: var(--font-display); font-weight: 800; font-size: 54px; line-height: 0.8; color: var(--accent); }
.step h3 { margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.step p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.copy { display: flex; margin-top: 14px; border: 1px solid var(--line-3); }
.copy code {
  flex: 1; min-width: 0; padding: 10px 12px; background: var(--bg);
  font-family: var(--font-mono); font-size: 14px; font-weight: 600; letter-spacing: 0.12em; color: var(--accent);
  overflow: hidden; text-overflow: ellipsis;
}
.copy-btn {
  flex: none; border: 0; border-left: 1px solid var(--line-3); background: var(--surface-3); cursor: pointer;
  padding: 0 14px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background-color 0.18s, color 0.18s;
}
.copy-btn:hover { background: var(--accent); color: var(--accent-ink); }
.copy-btn.done { background: var(--up); color: #06140c; }
.copy-group { margin-top: 14px; }
.copy-group[hidden] { display: none; }
.copy-group p { margin-top: 0; }
.copy-group .copy { margin-top: 8px; }
/* Server-ID: lang, darum kleiner und mit Umbruch statt Abschneiden; ein Klick markiert alles */
.copy-id code { font-size: 12px; letter-spacing: 0.02em; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; -webkit-user-select: all; user-select: all; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.step-link { margin-top: auto; padding-top: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.step-link:hover { color: var(--accent); }
/* Satz zum Widerspruch bei „Mach dir einen Namen“ (.step-note); seit E28 nicht im HTML,
   bleibt für die spätere Veröffentlichung (entwuerfe/rechtliches/README.md) */
.step .step-note { font-size: 13px; }
.step-note a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.step-note a:hover { color: var(--accent); text-decoration-color: var(--accent); }
/* ---------- Footer ---------- */
.footer { padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer-brand p { margin-top: 18px; color: var(--muted); font-size: 14px; max-width: 38ch; }
.footer h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.footer ul a { color: var(--text-2); text-decoration: none; transition: color 0.18s; }
.footer ul a:hover { color: var(--accent); }
.footer ul .footer-note { font-size: 12.5px; color: var(--muted); }
.status-list li { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.status-list b { color: var(--text); font-weight: 600; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--dim);
}
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Live-Daten: Status und Leerzustände ---------- */
.live-badge.is-live { color: var(--up); border-style: solid; border-color: rgba(70, 214, 140, 0.32); cursor: default; }
.live-badge.is-delayed { color: var(--accent); border-style: solid; }
.live-badge.is-loading { color: var(--muted); border-color: var(--line-3); cursor: default; }
.live-badge.is-offline { color: var(--down); border-style: solid; border-color: rgba(255, 107, 107, 0.36); }
/* Ohne Daten (lädt/offline): kein grüner Online-Punkt, kein blinkender Empfang */
.no-feed .dot { background: var(--dim); box-shadow: none; animation: none; }
.no-feed .rx i { background: var(--dim); animation: none; }
#liveTime.is-stale, #ftTime.is-stale, #featClock.is-stale { color: var(--accent); }
.srv.is-off { opacity: 0.55; }
.tag-off { color: var(--muted); border-color: var(--line-2); }
.srv-empty { padding: 10px 20px; font-size: 13px; color: var(--muted); list-style: none; }
.empty { padding: 22px; font-size: 13.5px; color: var(--muted); }
.featured .empty, .heat-wrap .empty, .chart .empty { padding: 4px 0; }
.pod.is-vacant { opacity: 0.35; }
.spark i.none, .spark i.none:hover { background: transparent; border-bottom: 1px dashed var(--line-2); }
.chart .bar.none:not(.now) { fill: var(--line-2); }
.heat-cell.is-none { background: transparent; outline: 1px dashed var(--line-2); outline-offset: -1px; }
.heat-cell.is-none:hover { transform: none; }
.state.ended { color: var(--muted); }
.funk-empty { padding: 16px 20px; font-size: 13.5px; color: var(--muted); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1320px) {
  .topbar-inner { gap: 22px; }
  .nav a { padding: 8px 8px; letter-spacing: 0.06em; }
  .nav a::before { margin-right: 4px; }
  .online-pill .mini-bar, .online-pill .dim { display: none; }
}

/* Navigation wird zum Ausklappmenü */
@media (max-width: 1100px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line-2);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    display: none;
  }
  .topbar.nav-open .nav { display: flex; }
  .nav a { padding: 14px 0; font-size: 13px; border-bottom: 1px solid var(--line); letter-spacing: 0.1em; }
  .online-pill .mini-bar, .online-pill .dim { display: revert; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 56px; }
  .hero-fair-copy { display: flex; }
  .hero-fair-side { display: none; }
  .fair-note-copy { display: block; }
  .fair-note-side { display: none; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .board-wrap, .load-wrap, .ops-wrap { grid-template-columns: minmax(0, 1fr); }
  .funk-list { max-height: 460px; }
  .join-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 14.5px; }
  .topbar-inner { gap: 12px; }
  .brand-sub { display: none; }
  .online-pill .mini-bar, .online-pill .dim { display: none; }
  .topbar-right .btn { display: none; }
  .head-lang { display: none; }
  .nav .nav-lang { display: flex; align-self: flex-start; margin-top: 14px; }
  .nav .nav-lang button { padding: 0 14px; }

  .hero-title { margin-top: 20px; }
  /* Handy: Hero kompakter, damit „Mitspielen“ und die Fair-Play-Knöpfe im ersten Bildschirm liegen
     (sichtbare Höhe mit Browserleisten oft nur ~640 px) */
  .hero-grid { padding-top: 20px; }
  .hero-emblem { width: 96px; margin: -16px 0 4px -14px; }
  .hero-title { margin-top: 16px; }
  .hazard { margin-top: 16px; }
  .hero-tagline { margin-top: 16px; }
  .hero-intro { font-size: 15px; margin-top: 10px; }
  .hero-cta { margin-top: 18px; }
  .hero-fair-copy { flex-wrap: nowrap; }
  .hero-fair-copy .btn-fair {
    flex: 1 1 0; min-width: 0; justify-content: center;
    padding: 0 8px; gap: 6px; font-size: 11px; letter-spacing: 0.04em;
  }
  .hero-fair-copy .btn-fair svg:last-child { display: none; }
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-meta div { margin-right: 0; padding-right: 16px; }
  .hero-meta div:nth-child(2n) { border-right: 0; padding-left: 16px; }
  .hero-meta div:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 16px; }
  .hero-coords { display: none; }
  .live-num { font-size: 62px; }
  .segbar { grid-template-columns: repeat(24, 1fr); }
  .segbar i:nth-child(n + 25) { display: none; }
  .srv { grid-template-columns: 22px minmax(0, 1fr) 84px 56px; gap: 10px; padding: 8px 16px; }
  .srv-info { flex-direction: column; gap: 0; }
  .srv-bar { display: none; }
  .srv-load { grid-template-columns: 1fr; }
  .srv-count { text-align: right; }

  .section { padding-top: 64px; }
  .section-head { grid-template-columns: auto minmax(0, 1fr); }
  .section-desc { grid-column: 1 / -1; text-align: left; max-width: none; }
  .join-intro { grid-template-columns: auto minmax(0, 1fr); }
  .join-intro p { grid-column: 1 / -1; text-align: left; max-width: none; }

  .stats-grid { gap: 10px; }
  .stat { padding: 18px 16px; }
  .stat-hero { padding: 20px 16px; }

  .panel-head { padding: 12px 16px; flex-wrap: wrap; }
  .podium { padding: 24px 12px 0; gap: 8px; }
  .av-lg { width: 46px; height: 46px; font-size: 18px; }
  .pod-val { font-size: 24px; }
  .pod-1 .pod-val { font-size: 28px; }
  .pod-block { font-size: 36px; }
  .board-list { padding: 4px 16px 10px; }
  .rudel-top { padding: 20px 16px 18px; }
  .rudel-stats div { padding: 12px 16px; }
  .rudel-list, .mini-head { padding-left: 16px; padding-right: 16px; }

  .chart { padding: 14px 10px 6px; }
  .heat-wrap { padding: 16px; }
  .heat { gap: 4px; }
  .heat-cell { height: 22px; }

  .featured { padding: 18px 16px; }
  .feat-map { font-size: 36px; }
  .factions { gap: 8px; }
  .rounds th, .rounds td { padding-left: 16px; padding-right: 16px; }
  .rounds th:nth-child(2), .rounds td:nth-child(2) { display: none; }
  .funk-item { grid-template-columns: 1fr; padding: 12px 16px; }
  .funk-item time { grid-row: auto; }

  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
