/* ==========================================================================
   Drehstuhlkameraden – Community Website
   Design: taktisch mit Augenzwinkern · Farben aus dem Logo abgeleitet
   ========================================================================== */

/* ---------- Fonts (lokal gehostet, DSGVO-freundlich) ---------- */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Saira Stencil One"; src: url("../fonts/saira-stencil-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #0d0f0b;
  --bg-2: #12150f;
  --surface: #171b13;
  --surface-2: #1e2319;
  --line: #2c3225;
  --line-strong: #414a33;

  --fg: #ebe9de;
  --fg-muted: #aeb09c;
  --fg-dim: #868a76;

  --olive: #6b7848;
  --olive-dk: #4f5a34;
  --olive-bright: #a9ba74;
  --tan: #c9b483;
  --tan-hover: #dac796;
  --on-tan: #14160f;

  --ok: #8fd16a;
  --warn: #e6b04a;
  --off: #e5675f;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-stencil: "Saira Stencil One", "Barlow Condensed", system-ui, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 40px -24px rgba(0,0,0,.8);
  --ease: cubic-bezier(.2,.7,.2,1);
  --maxw: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--tan); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--tan-hover); }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; margin: 0 0 var(--space-4); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 800; letter-spacing: -.005em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.45rem; letter-spacing: .02em; }
strong { color: var(--fg); font-weight: 600; }
::selection { background: var(--olive); color: #fff; }

:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: var(--space-4); top: -60px; z-index: 100;
  background: var(--tan); color: var(--on-tan); padding: var(--space-3) var(--space-4);
  font-weight: 600; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-5); }
@media (max-width: 600px) { .container { padding: 0 var(--space-4); } }

.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; }

/* Topografischer Karten-Hintergrund + Körnung */
.topo {
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(107,120,72,.18), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%236b7848' stroke-opacity='.14' stroke-width='1.2'%3E%3Cpath d='M0 101.6 L15 106.3 L30 109.8 L45 111.9 L60 112.7 L75 112.4 L90 111.1 L105 109.0 L120 106.6 L135 104.0 L150 101.4 L165 99.1 L180 97.2 L195 95.7 L210 94.5 L225 93.4 L240 92.5 L255 91.3 L270 89.8 L285 87.8 L300 85.0 L315 81.6 L330 77.5 L345 72.9 L360 67.9 L375 62.9 L390 58.1 L405 53.9 L420 50.6 L435 48.5 L450 47.9 L465 48.9 L480 51.4 L495 55.5 L510 60.9 L525 67.3 L540 74.4 L555 81.8 L570 89.0 L585 95.7 L600 101.6'/%3E%3Cpath d='M0 131.2 L15 136.4 L30 140.1 L45 142.4 L60 143.3 L75 142.8 L90 141.1 L105 138.6 L120 135.5 L135 132.1 L150 128.7 L165 125.5 L180 122.6 L195 120.1 L210 118.0 L225 116.3 L240 114.7 L255 113.1 L270 111.3 L285 109.2 L300 106.6 L315 103.4 L330 99.6 L345 95.4 L360 90.9 L375 86.3 L390 82.0 L405 78.2 L420 75.4 L435 73.7 L450 73.5 L465 74.8 L480 77.7 L495 82.1 L510 87.8 L525 94.7 L540 102.2 L555 110.0 L570 117.7 L585 124.9 L600 131.2'/%3E%3Cpath d='M0 161.1 L15 166.5 L30 170.5 L45 172.8 L60 173.6 L75 172.9 L90 170.9 L105 167.8 L120 164.0 L135 159.8 L150 155.4 L165 151.2 L180 147.4 L195 143.9 L210 141.0 L225 138.5 L240 136.3 L255 134.3 L270 132.4 L285 130.2 L300 127.7 L315 124.8 L330 121.5 L345 117.8 L360 113.9 L375 109.9 L390 106.2 L405 103.0 L420 100.7 L435 99.5 L450 99.7 L465 101.4 L480 104.7 L495 109.4 L510 115.5 L525 122.7 L540 130.6 L555 138.8 L570 146.9 L585 154.5 L600 161.1'/%3E%3Cpath d='M0 308.0 L15 308.2 L30 306.9 L45 304.0 L60 299.6 L75 293.7 L90 286.4 L105 278.2 L120 269.5 L135 260.6 L150 252.2 L165 244.6 L180 238.3 L195 233.7 L210 230.9 L225 230.1 L240 231.1 L255 233.9 L270 238.1 L285 243.4 L300 249.3 L315 255.6 L330 261.7 L345 267.3 L360 272.3 L375 276.4 L390 279.7 L405 282.2 L420 284.0 L435 285.3 L450 286.5 L465 287.7 L480 289.1 L495 290.9 L510 293.2 L525 295.8 L540 298.8 L555 301.7 L570 304.5 L585 306.7 L600 308.0'/%3E%3Cpath d='M0 332.8 L15 332.3 L30 330.6 L45 327.3 L60 322.6 L75 316.4 L90 309.0 L105 300.7 L120 291.8 L135 282.8 L150 274.3 L165 266.6 L180 260.2 L195 255.6 L210 252.8 L225 252.2 L240 253.5 L255 256.7 L270 261.5 L285 267.5 L300 274.3 L315 281.5 L330 288.6 L345 295.4 L360 301.4 L375 306.5 L390 310.6 L405 313.7 L420 315.9 L435 317.5 L450 318.7 L465 319.6 L480 320.5 L495 321.7 L510 323.2 L525 324.9 L540 326.9 L555 328.9 L570 330.8 L585 332.2 L600 332.8'/%3E%3Cpath d='M0 356.7 L15 355.6 L30 353.3 L45 349.7 L60 344.7 L75 338.4 L90 330.9 L105 322.5 L120 313.7 L135 304.7 L150 296.2 L165 288.6 L180 282.3 L195 277.8 L210 275.2 L225 274.8 L240 276.5 L255 280.2 L270 285.6 L285 292.4 L300 300.0 L315 308.2 L330 316.4 L345 324.1 L360 331.1 L375 337.1 L390 342.0 L405 345.7 L420 348.3 L435 350.0 L450 351.0 L465 351.6 L480 352.0 L495 352.4 L510 352.9 L525 353.7 L540 354.6 L555 355.6 L570 356.4 L585 356.9 L600 356.7'/%3E%3Cpath d='M0 449.0 L15 443.9 L30 439.3 L45 435.2 L60 432.2 L75 430.4 L90 429.9 L105 431.0 L120 433.5 L135 437.3 L150 442.4 L165 448.3 L180 454.7 L195 461.3 L210 467.7 L225 473.6 L240 478.7 L255 482.8 L270 485.7 L285 487.6 L300 488.3 L315 488.1 L330 487.2 L345 485.7 L360 484.0 L375 482.2 L390 480.5 L405 479.1 L420 478.0 L435 477.1 L450 476.4 L465 475.7 L480 474.9 L495 473.7 L510 472.1 L525 469.8 L540 466.8 L555 463.1 L570 458.8 L585 454.0 L600 449.0'/%3E%3Cpath d='M0 472.1 L15 467.4 L30 463.1 L45 459.5 L60 456.7 L75 455.2 L90 455.1 L105 456.5 L120 459.3 L135 463.5 L150 468.9 L165 475.3 L180 482.2 L195 489.3 L210 496.2 L225 502.6 L240 508.2 L255 512.6 L270 515.9 L285 517.9 L300 518.7 L315 518.4 L330 517.1 L345 515.2 L360 512.9 L375 510.3 L390 507.9 L405 505.5 L420 503.5 L435 501.8 L450 500.3 L465 498.9 L480 497.6 L495 496.1 L510 494.2 L525 491.8 L540 488.9 L555 485.4 L570 481.3 L585 476.8 L600 472.1'/%3E%3Cpath d='M0 495.2 L15 491.1 L30 487.2 L45 484.0 L60 481.8 L75 480.7 L90 480.9 L105 482.6 L120 485.8 L135 490.4 L150 496.2 L165 502.9 L180 510.2 L195 517.8 L210 525.1 L225 531.9 L240 537.9 L255 542.6 L270 546.1 L285 548.2 L300 548.9 L315 548.4 L330 546.8 L345 544.4 L360 541.4 L375 538.1 L390 534.7 L405 531.5 L420 528.5 L435 525.9 L450 523.6 L465 521.6 L480 519.7 L495 517.8 L510 515.7 L525 513.3 L540 510.5 L555 507.2 L570 503.5 L585 499.5 L600 495.2'/%3E%3Cellipse cx='420' cy='210' rx='26' ry='14'/%3E%3Cellipse cx='420' cy='210' rx='52' ry='28'/%3E%3Cellipse cx='160' cy='400' rx='22' ry='12'/%3E%3Cellipse cx='160' cy='400' rx='46' ry='24'/%3E%3Cellipse cx='160' cy='400' rx='72' ry='38'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 600px 600px;
}
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 var(--space-5);
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--tan); color: var(--on-tan); }
.btn-primary:hover { background: var(--tan-hover); color: var(--on-tan); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.02); color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--olive-bright); color: var(--fg); background: rgba(169,186,116,.06); }
.btn-sm { min-height: 44px; padding: 0 var(--space-4); font-size: 1rem; }
.btn:active { transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(13,15,11,.82);
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(13,15,11,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--space-5); }
.brand { display: flex; align-items: center; gap: var(--space-3); color: var(--fg); text-decoration: none; min-height: 44px; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-stencil); font-size: 1.3rem; letter-spacing: .03em; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .28em; color: var(--fg-dim); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3);
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-muted); text-decoration: none; border-radius: var(--radius);
  transition: color .2s var(--ease);
}
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--olive-bright); border-radius: 0; }
.nav-links .btn { margin-left: var(--space-3); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: transparent; color: var(--fg); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-3) var(--space-4) var(--space-5); background: rgba(13,15,11,.98); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .nav-links.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .nav-links a:not(.btn) { display: flex; min-height: 52px; font-size: 1.2rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--olive-bright); padding-left: var(--space-4); }
  .nav-links .btn { margin: var(--space-4) 0 0; width: 100%; }
}
@media (max-width: 420px) { .brand-name small { display: none; } .brand-name { font-size: 1.1rem; } }

/* ---------- Kleine Bausteine ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-stencil); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-bright);
  margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,.02);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted);
  white-space: nowrap;
}
.chip-warn { border-color: rgba(230,176,74,.45); color: var(--warn); background: rgba(230,176,74,.07); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot-pulse { position: relative; }
.dot-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; opacity: 0; animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

/* HUD-Ecken für Karten */
.hud { position: relative; }
.hud::before, .hud::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--olive-bright); opacity: .55; pointer-events: none;
}
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius-lg); }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius-lg); }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: var(--space-9) 0 var(--space-8); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-7); align-items: center; position: relative; z-index: 1; }
.hero h1 .accent { color: var(--tan); display: block; }
.hero-lead { font-size: 1.25rem; color: var(--fg-muted); max-width: 34em; margin-bottom: var(--space-6); }
.hero-lead strong { color: var(--fg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero-badge { margin-bottom: var(--space-5); }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual .patch {
  width: min(100%, 440px); height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(0,0,0,.65));
  transform: rotate(-6deg);
  animation: patch-in 1s var(--ease) both;
}
@keyframes patch-in { from { opacity: 0; transform: rotate(-16deg) scale(.92); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
.hero-visual .ring {
  position: absolute; inset: 50% auto auto 50%; width: min(115%, 520px); aspect-ratio: 1; transform: translate(-50%,-50%);
  border: 1px dashed rgba(169,186,116,.25); border-radius: 50%;
}
.hero-visual .ring-2 { width: min(135%, 610px); border-style: solid; border-color: rgba(169,186,116,.08); }
.hero-visual .crosshair { position: absolute; inset: 0; pointer-events: none; }
.coord {
  position: absolute; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .18em; color: var(--fg-dim); text-transform: uppercase;
}
.coord-tl { top: 2%; left: 0; } .coord-br { bottom: 2%; right: 0; text-align: right; }

@media (max-width: 900px) {
  .hero { padding: var(--space-7) 0 var(--space-7); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-visual { order: -1; }
  .hero-visual .patch { width: min(62vw, 300px); }
  .coord { display: none; }
}


/* ---------- Sections ---------- */
.section { padding: var(--space-9) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-tight { padding-bottom: 0; }
.section-tight + .section { border-top: 0; padding-top: var(--space-8); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: end; margin-bottom: var(--space-7); }
.section-head p { color: var(--fg-muted); font-size: 1.15rem; margin: 0; max-width: 32em; }
.section-num { font-family: var(--font-stencil); color: var(--olive); }
@media (max-width: 800px) {
  .section { padding: var(--space-8) 0; }
  .section-head { grid-template-columns: 1fr; gap: var(--space-3); margin-bottom: var(--space-6); }
}

/* ---------- Aufbau-Banner ---------- */
.notice {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-5); align-items: center;
  padding: var(--space-5) var(--space-6);
  border: 1px solid rgba(230,176,74,.35); border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(-45deg, rgba(230,176,74,.06) 0 14px, transparent 14px 28px),
    var(--surface);
}
.notice-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(230,176,74,.12); color: var(--warn); }
.notice-icon svg { width: 26px; height: 26px; }
.notice h3 { margin: 0 0 4px; font-size: 1.35rem; }
.notice p { margin: 0; color: var(--fg-muted); }
@media (max-width: 760px) { .notice { grid-template-columns: 1fr; padding: var(--space-5); } }

/* ---------- Server ---------- */
.server-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-5); }
@media (max-width: 900px) { .server-grid { grid-template-columns: 1fr; } }

.status-card { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); }
.status-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.status-label { font-family: var(--font-stencil); letter-spacing: .14em; font-size: .9rem; color: var(--fg-dim); }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 1rem;
  border: 1px solid var(--line-strong); color: var(--fg-muted); white-space: nowrap;
}
.status-pill[data-state="online"] { color: var(--ok); border-color: rgba(143,209,106,.4); background: rgba(143,209,106,.08); }
.status-pill[data-state="offline"] { color: var(--off); border-color: rgba(229,103,95,.4); background: rgba(229,103,95,.08); }
.status-pill[data-state="unknown"] { color: var(--warn); border-color: rgba(230,176,74,.35); background: rgba(230,176,74,.06); }

.server-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1.2; text-transform: none; letter-spacing: .01em; margin: 0; overflow-wrap: anywhere; }

.players { display: grid; gap: var(--space-2); }
.players-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.players-count { font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.players-count small { font-size: 1.4rem; color: var(--fg-dim); font-weight: 600; }
.players-cap { color: var(--fg-dim); font-family: var(--font-head); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.bar { height: 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--olive), var(--olive-bright)); border-radius: inherit; transition: width .8s var(--ease); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: var(--space-4); min-width: 0; }
.stat dt { font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 2px; }
.stat dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.status-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; font-size: .95rem; color: var(--fg-dim); }
.status-foot a { display: inline-flex; align-items: center; min-height: 44px; }

.connect { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); }
.connect h3 { margin: 0; }
.copy-row { display: grid; gap: var(--space-2); }
.copy-row label, .copy-label { font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-dim); }
.copy-field { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.copy-field code { flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 var(--space-4); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.05rem; color: var(--fg); overflow-wrap: anywhere; min-height: 48px; }
.copy-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-width: 112px; justify-content: center; padding: 0 var(--space-4); min-height: 48px;
  border: 0; border-left: 1px solid var(--line-strong); background: var(--surface-2); color: var(--fg);
  font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.copy-btn:hover { background: var(--olive-dk); }
.copy-btn svg { width: 18px; height: 18px; }
.copy-btn.is-copied { background: var(--olive); color: #fff; }
.copy-hint { font-size: .95rem; color: var(--fg-dim); margin: 0; }

.spec-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.spec-list .chip { color: var(--fg); }
.spec-list .chip svg { width: 16px; height: 16px; color: var(--olive-bright); }

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.platform { display: flex; align-items: center; gap: 10px; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); font-family: var(--font-head); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 1.05rem; }
.platform svg { width: 22px; height: 22px; color: var(--olive-bright); flex: none; }


/* Loadout */
.loadout { margin-top: var(--space-5); display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--space-5); }
.loadout-item { padding: var(--space-5); }
.loadout-item .ico { width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; background: rgba(107,120,72,.18); color: var(--olive-bright); margin-bottom: var(--space-4); }
.loadout-item .ico svg { width: 24px; height: 24px; }
.loadout-item h3 { font-size: 1.3rem; margin-bottom: var(--space-2); }
.loadout-item p { color: var(--fg-muted); margin: 0; font-size: 1rem; }
@media (max-width: 1000px) { .loadout { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .loadout { grid-template-columns: 1fr; } }

/* ---------- Mitmachen ---------- */
.join-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-7); align-items: start; }
.join-wrap .lead { font-size: 1.2rem; color: var(--fg-muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: step; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-5); padding: var(--space-5); align-items: start; }
.step-num { font-family: var(--font-stencil); font-size: 2.4rem; line-height: 1; color: var(--tan); }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--fg-muted); }
.ideas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
@media (max-width: 900px) { .join-wrap { grid-template-columns: 1fr; gap: var(--space-6); } }
@media (max-width: 480px) { .step { grid-template-columns: 1fr; gap: var(--space-2); } }

/* ---------- Roadmap ---------- */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--space-4); position: relative; }
.phase { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); position: relative; }
.phase-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.phase-id { font-family: var(--font-stencil); color: var(--fg-dim); letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; }
.phase h3 { margin: 0; }
.phase ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.phase li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; color: var(--fg-muted); font-size: 1rem; line-height: 1.45; }
.phase li svg { width: 18px; height: 18px; margin-top: 2px; }
.phase li.done svg { color: var(--ok); }
.phase li.doing svg { color: var(--warn); }
.phase li.todo svg { color: var(--fg-dim); }
.phase .chip { font-size: .8rem; min-height: 28px; padding: 2px 10px; }
.phase[data-status="done"] { border-top: 3px solid var(--ok); }
.phase[data-status="doing"] { border-top: 3px solid var(--warn); background: linear-gradient(180deg, rgba(230,176,74,.06), var(--surface) 40%); }
.phase[data-status="todo"] { border-top: 3px solid var(--line-strong); }
.phase[data-status="open"] { border: 1px dashed var(--olive); background: transparent; box-shadow: none; }
.chip-ok { color: var(--ok); border-color: rgba(143,209,106,.4); }
@media (max-width: 1000px) { .roadmap { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .roadmap { grid-template-columns: 1fr; } }

/* ---------- Regel-Teaser ---------- */
.rules-teaser { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-4); margin-bottom: var(--space-6); }
.rule-mini { padding: var(--space-5); display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; }
.rule-mini .para { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--olive-bright); line-height: 1; min-width: 2.2ch; }
.rule-mini h3 { margin-bottom: 6px; font-size: 1.3rem; }
.rule-mini p { margin: 0; color: var(--fg-muted); font-size: 1rem; }
@media (max-width: 700px) { .rules-teaser { grid-template-columns: 1fr; } }

/* ---------- CTA-Band ---------- */
.cta-band { position: relative; overflow: hidden; padding: var(--space-9) 0; border-top: 1px solid var(--line); text-align: center; }
.cta-band .container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-band h2 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
.cta-band p { color: var(--fg-muted); font-size: 1.2rem; max-width: 36em; margin-bottom: var(--space-6); }
.cta-band .btn { min-height: 56px; font-size: 1.3rem; padding: 0 var(--space-6); }
.discord-icon-lg { width: 64px; height: 64px; color: var(--tan); margin-bottom: var(--space-5); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: var(--space-7) 0 var(--space-6); font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); margin-bottom: var(--space-6); }
.footer-brand { display: flex; gap: var(--space-4); align-items: flex-start; }
.footer-brand img { width: 72px; height: 72px; flex: none; }
.footer-brand p { color: var(--fg-dim); margin: var(--space-2) 0 0; font-size: .95rem; }
.footer-title { font-family: var(--font-head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); font-size: .9rem; margin-bottom: var(--space-3); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--fg-muted); text-decoration: none; }
.footer-links a:hover { color: var(--fg); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: var(--space-5); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; color: var(--fg-dim); font-size: .9rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Unterseiten (Regelwerk, Rechtliches) ---------- */
.page-hero { padding: var(--space-8) 0 var(--space-7); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.page-hero p { color: var(--fg-muted); font-size: 1.2rem; max-width: 40em; margin: 0; }
.breadcrumb { font-family: var(--font-head); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; color: var(--fg-dim); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--fg); }

.doc-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-7); padding-top: var(--space-8); padding-bottom: var(--space-9); align-items: start; }
.toc { position: sticky; top: 96px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 var(--space-4); margin-left: -1px; border-left: 2px solid transparent; color: var(--fg-muted); text-decoration: none; font-weight: 500; line-height: 1.25; }
.toc a span { font-family: var(--font-head); font-weight: 700; color: var(--fg-dim); font-size: .95rem; min-width: 2.6ch; }
.toc a:hover { color: var(--fg); }
.toc a.is-active { color: var(--fg); border-left-color: var(--tan); }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: var(--space-5); padding-top: var(--space-6); }
  .toc { position: static; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; border-left: 0; gap: 0 var(--space-3); }
  .toc a { border-left: 0; border-bottom: 1px solid var(--line); padding: 0; }
}

.rule-section { padding: var(--space-6); margin-bottom: var(--space-5); }
.rule-section h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); display: flex; gap: var(--space-4); align-items: baseline; margin-bottom: var(--space-5); }
.rule-section h2 .para { font-family: var(--font-head); font-weight: 800; color: var(--olive-bright); font-size: .8em; }
.rule-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-4); counter-reset: rule; }
.rule-list > li { position: relative; padding-left: 52px; counter-increment: rule; color: var(--fg-muted); }
.rule-list > li::before {
  content: attr(data-n); position: absolute; left: 0; top: 1px;
  font-family: var(--font-head); font-weight: 700; color: var(--tan); font-size: 1rem; letter-spacing: .04em;
  min-width: 40px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--bg-2);
}
.rule-list strong { color: var(--fg); }
.callout { margin-top: var(--space-5); padding: var(--space-4) var(--space-5); border-left: 3px solid var(--olive-bright); background: rgba(107,120,72,.1); border-radius: 0 var(--radius) var(--radius) 0; color: var(--fg-muted); font-size: 1rem; }
.callout strong { color: var(--olive-bright); }
.penalties { width: 100%; border-collapse: collapse; margin-top: var(--space-2); font-size: 1rem; }
.penalties th, .penalties td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); vertical-align: top; }
.penalties th { font-family: var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); font-weight: 600; font-size: .9rem; }
.penalties td:first-child { color: var(--fg); font-weight: 600; white-space: nowrap; }
.penalties td { color: var(--fg-muted); }
.table-scroll { overflow-x: auto; }
.draft-note { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-5); border: 1px dashed rgba(230,176,74,.45); border-radius: var(--radius); color: var(--fg-muted); margin-bottom: var(--space-6); font-size: 1rem; }
.draft-note svg { width: 22px; height: 22px; color: var(--warn); flex: none; margin-top: 2px; }

.legal { max-width: 760px; padding-top: var(--space-8); padding-bottom: var(--space-9); }
.legal h2 { font-size: 1.8rem; margin-top: var(--space-7); }
.legal h3 { font-size: 1.3rem; margin-top: var(--space-5); }
.legal p, .legal li { color: var(--fg-muted); }
.legal address { font-style: normal; color: var(--fg); line-height: 1.7; }
.ph { background: rgba(230,176,74,.14); color: var(--warn); padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Feinschliff Mobil ---------- */
.copy-field code { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 480px) {
  .copy-field code { padding: 0 var(--space-3); font-size: .98rem; }
  .copy-btn { min-width: 0; padding: 0 var(--space-3); font-size: .88rem; }
  .platforms { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .platform { justify-content: center; padding: var(--space-3) var(--space-2); font-size: .95rem; gap: 6px; }
  .platform svg { width: 18px; height: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .status-card, .connect, .rule-section { padding: var(--space-5); }
}

/* ---------- Spielerverlauf ---------- */
.history-card { margin-top: var(--space-5); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.history-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.range-switch { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.range-switch button { appearance: none; border: 0; background: transparent; color: var(--fg-muted); font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; min-height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.range-switch button:hover { color: var(--fg); }
.range-switch button[aria-pressed="true"] { background: var(--tan); color: var(--on-tan); }
.range-switch button:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }
.history-summary { margin: 0; font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .04em; color: var(--fg-muted); }
.history-summary:empty { display: none; }
.history-summary b { color: var(--fg); font-weight: 700; }
.history-chart { position: relative; min-height: 220px; transition: opacity .2s var(--ease); }
.history-card[aria-busy="true"] .history-chart { opacity: .55; }
.history-chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.hist-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.hist-axis { stroke: var(--line-strong); stroke-width: 1; }
.hist-label { fill: var(--fg-dim); font-family: var(--font-head); font-size: 12px; letter-spacing: .04em; }
.hist-line { fill: none; stroke: var(--olive-bright); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hist-point { fill: var(--olive-bright); }
.hist-stop-top { stop-color: var(--olive-bright); stop-opacity: .28; }
.hist-stop-bottom { stop-color: var(--olive-bright); stop-opacity: 0; }
.hist-guide { stroke: var(--fg-dim); stroke-width: 1; stroke-dasharray: 3 3; }
.hist-dot { fill: var(--tan); stroke: var(--bg); stroke-width: 2; }
.hist-tip { position: absolute; top: 4px; left: 0; transform: translateX(12px); pointer-events: none; z-index: 2; display: flex; flex-direction: column; gap: 2px; white-space: nowrap; padding: 8px 12px; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); font-size: .9rem; color: var(--fg-muted); }
.hist-tip strong { font-family: var(--font-head); font-size: 1rem; letter-spacing: .04em; color: var(--fg); }
.hist-tip.flip { transform: translateX(calc(-100% - 12px)); }
.hist-tip[hidden] { display: none; }
.history-note { margin: 0; font-size: .95rem; color: var(--fg-dim); }
.history-note:empty { display: none; }
@media (max-width: 600px) {
  .history-card { padding: var(--space-5); }
  .range-switch { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; border-radius: var(--radius); }
  .range-switch button { padding: 0 4px; font-size: .8rem; letter-spacing: .04em; border-radius: calc(var(--radius) - 2px); }
}

/* ---------- Sprachumschaltung ---------- */
.lang-switch { display: inline-flex; flex: none; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 34px; padding: 0 10px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .9rem; letter-spacing: .1em; color: var(--fg-muted); text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.lang-switch a:hover { color: var(--fg); }
.lang-switch a[aria-current="true"] { background: var(--tan); color: var(--on-tan); }
.lang-switch a:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }
@media (min-width: 901px) { .nav-links { margin-left: auto; } }
@media (max-width: 900px) {
  .lang-switch { margin-left: auto; }
  .nav-toggle { order: 3; }
}
@media (max-width: 480px) {
  .nav { gap: var(--space-3); }
  .lang-switch a { min-width: 36px; padding: 0 8px; font-size: .85rem; letter-spacing: .06em; }
}
@media (max-width: 420px) {
  .nav { gap: var(--space-2); }
  .brand { gap: var(--space-2); min-width: 0; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lang-switch a { min-width: 32px; padding: 0 6px; }
  .nav-toggle { width: 44px; height: 44px; }
}
