/* ═══════════════════════════════════════════════════════════════════════════
   Midnight Compass — Auftritt seit 28.10.2026 (neu aufgebaut, eigenständig).

   Dieses Stylesheet gehört ALLEN Seiten von Midnight Compass. style.css bleibt
   als Datei auf dem Server (app.js und alte Zwischenstände), wird aber von keiner
   umgebauten Seite mehr geladen. Erzeugt von werkzeuge-compass-seite/bauen.py aus
   quellen/css/*.css — im Spiegel nicht von Hand ändern.

   ── FARBREGEL: Haus × App ───────────────────────────────────────────────────
   HAUS (mi-su.me, Quests, MISU AI): Schwarz und Weiß tragen die Seite. Gold NUR an
   dem, was man bedient (Verweise, Hauptknopf beim Überfahren, Linien beim
   Überfahren, Fokus) und an genau drei Zierstellen: der zweiten Zeile der
   Hauptüberschrift, dem kurzen Strich vor den Abschnittsüberschriften und dem
   echten Kompassstern (compass-star.png).
   APP (Compass, Palette „Midnight“): Grund #07070A, Flächen #0F0F13/#16161B, Gold
   #C9A227/#E3C766 — und das Rot der Tachonadel #E04A4A als Farbe der EIGENEN
   ZEICHNUNGEN (rote Zone 200–300, Nadel, Fahne, der Akzent jedes Symbols). Genau
   EINE Akzentfläche je Zeichnung; winzige Marken (Spiegelstriche, Punkt „live“)
   in Rot. Kein Blau, nirgends. Zustand nie allein über Farbe: immer ein Wort oder
   ein Zeichen dazu.
   Die Akzentfläche der Symbole hängt an --akzent-flaeche: ein Wert, ein Tausch.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  --ink:      #07070A;  /* Grund: das Nachtschwarz der App */
  --ink-2:    #0F0F13;  /* Bänder, gehobene Fläche */
  --ink-3:    #16161B;  /* Karte */
  --forest:   #26262B;  /* ruhige Fläche (aktiver Sprachknopf) */
  --slate:    #5E5E64;  /* leise */
  --olive:    #9A948A;  /* gedämpfte Beschriftung */
  --sage:     #C4C1BC;  /* Fließtext */
  --mint:     #F6F4EF;  /* hervorgehoben = Weiß */
  --paper:    #F6F4EF;  /* Überschriften = Weiß */

  --gold:      #C9A227; /* Bedienung (das Gold der App) */
  --gold-hell: #E3C766; /* Gold als Schrift auf Schwarz */
  --rot:       #C0313E; /* nur winzige Marken */
  --rot-hell:  #E25D69;

  --nadel:     #E04A4A; /* Tachonadel der App: Farbe der Zeichnungen */
  --akzent-flaeche: var(--nadel);

  --line:     rgba(244,242,238,.10);
  --line-2:   rgba(244,242,238,.20);

  /* Namen, die app.js, die Unterseiten und eingebettete Stile (alt) benutzen */
  --bg: var(--ink);
  --surface: var(--ink-3);
  --card-bg: var(--ink-3);
  --surface-1: var(--ink-2);
  --surface-2: #1F1F26;
  --surface-3: #25252B;
  --text: var(--paper);
  --text-1: var(--paper);
  --text-primary: var(--paper);
  --text-2: var(--sage);
  --text-secondary: var(--sage);
  --text-3: var(--olive);
  --text-muted: var(--olive);
  --border: var(--line);
  --border-2: var(--line-2);
  --accent: var(--gold);
  --gold-soft: var(--gold-hell);
  --blue: var(--gold);
  --blue-dim: rgba(201,162,39,.14);
  --blue-glow: rgba(201,162,39,.30);
  --purple: var(--gold);
  --orange: var(--gold-hell);
  --green: var(--paper);
  --red: var(--rot-hell);
  --radius: 12px;
  --radius-lg: 0px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);

  --font: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Noto Sans', sans-serif;
  --font-display: var(--font);
  --font-jp: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, sans-serif;
  --mono: 'M PLUS 1 Code', ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --font-mono: var(--mono);

  --page: 1180px;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); background: var(--ink); color: var(--sage);
  line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased;
  font-variant-emoji: text;   /* Pin, Pokal, Schloss, Sprechblase, Auto aus app.js: einfarbig in der Textfarbe, nicht bunt (kein Blau, kein Rosa) */
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: rgba(201,162,39,.28); color: var(--paper); }
section[id], :target { scroll-margin-top: calc(var(--nav-h) + 12px); }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Sprung zum Inhalt: erst beim Fokus sichtbar (Tastatur) */
.skip { position: fixed; left: 12px; top: 10px; z-index: 300; padding: 10px 18px; background: var(--mint); color: var(--ink); font-size: 14px; font-weight: 700;
        transform: translateY(-160%); transition: transform .15s var(--ease); }
.skip:focus, .skip:focus-visible { transform: none; outline: 2px solid var(--gold); outline-offset: 2px; }
main:focus { outline: none; }

/* Zustandsklassen, die app.js setzt */
.auth-only { display: none; }
body.mc-angemeldet .auth-only { display: inline-flex; }  /* ⚠️ Das Skript im Fuß schaltet die Klasse (die alte Regel versteckte .btn.auth-only für immer) */
.admin-only { display: none !important; }
.admin-mode .admin-only { display: inline-flex !important; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.navbar.scrolled {
  background: rgba(7,7,10,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--page); margin: 0 auto; height: 100%;
  padding: 0 28px; display: flex; align-items: center; gap: 22px;
}
.nav-logo { display: flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.4px;
            color: var(--paper); font-size: 16px; flex: none; white-space: nowrap; }
/* ⚠️ Der Stern ist ein PNG auf SCHWARZEM Quadrat: mix-blend-mode:screen setzt das Schwarz gegen den schwarzen Grund. */
.nav-mark { width: 26px; height: 26px; flex: none; mix-blend-mode: screen; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-item { position: relative; }
.nav-link { font-size: 13.5px; font-weight: 500; color: var(--sage); transition: color .15s, background .15s; white-space: nowrap; }
.nav-top { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; }
.nav-top::after {
  content: ''; width: 5px; height: 5px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .55; transition: transform .2s var(--ease), opacity .2s;
}
.nav-item:hover > .nav-top, .nav-item:focus-within > .nav-top, .nav-item.open > .nav-top { color: var(--paper); }
.nav-item:hover > .nav-top::after, .nav-item:focus-within > .nav-top::after, .nav-item.open > .nav-top::after { opacity: 1; transform: rotate(225deg) translate(-2px, -2px); }
.nav-link:hover { color: var(--paper); }
.nav-link:focus-visible { outline-offset: 5px; }
/* Fläche des Menüs: eckig, mit den Linien des Hauses an der Ecke */
.nav-menu {
  position: absolute; top: 100%; left: -6px; z-index: 60; min-width: 220px;
  display: flex; flex-direction: column; padding: 8px 0;
  background: rgba(15,15,19,.97); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 44px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.nav-menu::before, .nav-menu::after { content: ''; position: absolute; pointer-events: none; background: var(--line-2); }
.nav-menu::before { left: -11px; top: -1px; width: 30px; height: 1px; }
.nav-menu::after  { left: -1px; top: -11px; width: 1px; height: 30px; }
/* Die Brücke: ohne sie schließt das Menü, bevor der Zeiger es erreicht. */
.nav-item::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav-item:hover > .nav-menu, .nav-item:focus-within > .nav-menu, .nav-item.open > .nav-menu {
  opacity: 1; visibility: visible; transform: translateY(8px);
}
/* Escape: compass-neu.js setzt .zu am Eintrag, solange der Zeiger/Fokus noch darin ist; .zu verschwindet beim Verlassen */
.nav-item.zu > .nav-menu { opacity: 0; visibility: hidden; transform: translateY(-4px); }
.nav-item.zu > .nav-top::after { opacity: .55; transform: rotate(45deg); }
.nav-menu .nav-link { display: block; padding: 10px 20px; position: relative; }
.nav-menu .nav-link::before { content: ''; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: var(--gold); transition: width .25s var(--ease); }
.nav-menu .nav-link:hover::before, .nav-menu .nav-link.active::before { width: 12px; }
.nav-menu .nav-link:hover, .nav-menu .nav-link.active { color: var(--paper); padding-left: 26px; }
/* Gesperrtes Ziel bleibt im Menü und sagt es: kleines Schloss (Zeichen, nicht nur Farbe) */
.nav-link.nav-locked { opacity: .78; }
.nav-link.nav-locked::after, .mobile-nav-link.nav-locked::after {
  content: ''; display: inline-block; width: 10px; height: 11px; margin-left: 8px; vertical-align: -1px; background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11'><path d='M2 5V3.4a3 3 0 0 1 6 0V5h1v6H1V5zm1.4 0h3.2V3.4a1.6 1.6 0 0 0-3.2 0z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11'><path d='M2 5V3.4a3 3 0 0 1 6 0V5h1v6H1V5zm1.4 0h3.2V3.4a1.6 1.6 0 0 0-3.2 0z'/></svg>") center / contain no-repeat;
}
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-actions .btn { padding: 8px 18px; font-size: 13px; }
.admin-badge { display: none; padding: 3px 9px; font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase;
               color: var(--gold-hell); border: 1px solid var(--gold); white-space: nowrap; }
.admin-mode .admin-badge { display: inline-flex; align-items: center; }
.user-badge { padding: 3px 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .5px; color: var(--sage);
              border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.btn-icon { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center;
            color: var(--sage); border: 1px solid var(--line); border-radius: 10px; transition: color .15s, border-color .15s; }
.btn-icon:hover { color: var(--paper); border-color: var(--line-2); }
.lang-toggle { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn { font-size: 11px; font-weight: 700; letter-spacing: .6px; padding: 4px 10px; border-radius: 999px; color: var(--olive); transition: background .15s, color .15s; line-height: 1.4; }
.lang-btn:hover { color: var(--paper); }
.lang-btn.lang-active { background: var(--forest); color: var(--mint); }
.hamburger { display: none; }
.mobile-nav {
  display: none; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(7,7,10,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); padding: 6px 0 18px;
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain;
}
.mobile-nav.open { display: flex; }
.mobile-nav-head { padding: 16px 28px 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--olive); }
.mobile-nav-link { display: block; padding: 12px 28px; font-size: 15.5px; color: var(--sage); }
.mobile-nav-link:hover { color: var(--paper); }
.mobile-nav .admin-only { display: none !important; }
.admin-mode .mobile-nav .admin-only { display: block !important; }
/* Fortschritt durch die Seite: ein Wegstrich unten an der Leiste, in der Farbe der Zeichnungen (Zierde, nichts, was man bedient) */
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--nadel);
                transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* ── Knöpfe, Eyebrow, Verweise ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; font-size: 14.5px; font-weight: 700; line-height: 1.3; white-space: nowrap;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: var(--gold); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--paper); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(244,242,238,.05); }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn:disabled:hover { transform: none; background: var(--mint); }
.btn-mark { width: 18px; height: 18px; flex: none; color: var(--ink); }  /* Stern als Zeichen in der Textfarbe (das PNG hat einen schwarzen Grund und taugt nicht auf dem weißen Knopf) */
.btn-dl-ver { font-size: .84em; opacity: .66; font-weight: 700; }
.patreon-mark { font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; }
.btn-patreon-text { letter-spacing: 0; }
.btn-quiet { padding: 10px 2px; border-radius: 0; font-size: 14px; font-weight: 500; color: var(--sage); border: 0; background: none; }
.btn-quiet:hover { transform: none; color: var(--gold-hell); background: none; }
.btn-quiet .patreon-mark { padding-bottom: 2px; border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.btn-quiet:hover .patreon-mark { border-color: var(--gold); }
.btn-sm { padding: 6px 14px; font-size: 12.5px; }
/* „JOIN BETA“: im Ruhezustand sagt er, was er IST; beim Überfahren, was er KOSTET. Beide Texte stehen im selben Kasten. */
.btn-beta { position: relative; letter-spacing: .6px; font-family: var(--mono); font-size: 12px !important; text-transform: uppercase; }
.btn-beta .beta-rest, .btn-beta .beta-hover { transition: opacity .15s; }
.btn-beta .beta-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; letter-spacing: .2px; text-transform: none; font-family: var(--font); font-size: 13px; }
.btn-beta:hover .beta-rest, .btn-beta:focus-visible .beta-rest { opacity: 0; }
.btn-beta:hover .beta-hover, .btn-beta:focus-visible .beta-hover { opacity: 1; }
@media (hover: none) { .btn-beta .beta-hover { display: none; } }
.btn-danger { border: 1px solid var(--rot); color: var(--rot-hell); background: transparent; }
.btn-danger:hover { background: var(--rot); border-color: var(--rot); color: #fff; }
.btn-danger:disabled:hover { background: transparent; color: var(--rot-hell); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--olive);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; margin-bottom: 28px;
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--rot-hell); display: block; flex: none; }
.mc-note, .mq-note {
  border-left: 1px solid var(--line-2); padding: 2px 0 2px 16px;
  color: var(--olive); font-size: 13.5px; line-height: 1.7; margin: 18px 0; max-width: 64ch;
}
.mc-note a, .link { color: var(--gold-hell); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.mc-note a:hover, .link:hover { text-decoration-thickness: 2px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; padding: calc(var(--nav-h) + 76px) 0 150px; overflow: hidden;
  background:
    radial-gradient(55% 70% at 76% 46%, rgba(201,162,39,.055), transparent 70%),
    radial-gradient(120% 90% at 88% 16%, #1E1D1A 0%, #121211 48%, #0A0A0C 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
  --cut: 96px;
}
/* Die schräge Kante bekommt eine feine Linie, wie ein Schnitt auf der Bauzeichnung. */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--cut); pointer-events: none;
  background: linear-gradient(to bottom right, transparent calc(50% - 2px), rgba(244,242,238,.22) calc(50% - 2px), rgba(244,242,238,.22) 50%, transparent 50%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg svg { position: absolute; right: -6%; top: -8%; width: 90%; min-width: 760px; height: auto; opacity: .20; color: var(--olive); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,0) 55%, rgba(10,10,12,.6)); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.hero-in { position: relative; max-width: 640px; }
.hero-title {
  font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -3px; font-weight: 900;
  color: var(--paper); margin-bottom: 26px;
}
.hero-title .hero-accent { display: block; font-style: normal; color: var(--gold-hell); }
.hero-sub { font-size: clamp(16px, 1.55vw, 18.5px); max-width: 54ch; color: var(--sage); }
.hero-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.hero-more { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin-top: 10px; }
.hero-more .btn-quiet { color: var(--paper); padding: 10px 0 5px; border-bottom: 1px solid var(--line-2); transition: border-color .2s, color .2s; }
.hero-more .btn-quiet::after { content: ' →'; content: ' →' / ''; }
.hero-more .btn-quiet:hover { border-color: var(--gold); }
/* F4: wer angemeldet ist (auch wartend), wird nicht mehr zum Registrieren eingeladen — wie der Knopf JOIN BETA in der Leiste */
body.mc-angemeldet .hero-more { display: none; }
.download-hint { margin-top: 18px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--olive); min-height: 1em; max-width: 64ch; }
.download-hint a { color: var(--gold-hell); text-decoration: underline; text-underline-offset: 3px; }
.hero-emblem { position: relative; width: min(540px, 100%); justify-self: end; }
.hero-emblem .emb { width: 100%; height: auto; aspect-ratio: 1; }
.emb-cap { margin: 10px auto 0; max-width: 46ch; text-align: center; font-size: 12.5px; line-height: 1.65; color: var(--olive); }

/* Die Zeichnung: Tacho der App, darin der Stern des Logos; die Nadel steht auf dem echten Höchstwert. */
.emb text, .rdr text { font-family: var(--mono); fill: var(--olive); font-size: 9.5px; letter-spacing: .6px; }
.emb .e-num { font-size: 9.5px; text-anchor: middle; dominant-baseline: central; fill: var(--olive); letter-spacing: 0; }
.emb .z-linie { fill: none; stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.emb .z-fein { stroke-width: .8; stroke: var(--olive); }
.e-r0 { opacity: .55; }
.e-face { opacity: .35; }
.emb .e-sc-w { stroke-width: 1.8; opacity: .9; }
.emb .e-sc-r { stroke: var(--akzent-flaeche); stroke-width: 3.6; stroke-linecap: butt; }
.emb .e-tk-min { stroke: var(--olive); stroke-width: .9; }
.emb .e-tk-maj { stroke: var(--paper); stroke-width: 2; }
.emb .e-tk-rmin { stroke: var(--akzent-flaeche); stroke-width: 1; }
.emb .e-tk-rmaj { stroke: var(--akzent-flaeche); stroke-width: 2.4; }
.e-spin { fill: none; stroke: var(--olive); stroke-opacity: .4; stroke-width: 1; stroke-dasharray: 1.5 7; stroke-linecap: round; transform-box: view-box; transform-origin: 240px 240px; }
.e-axes { fill: none; stroke: var(--paper); stroke-opacity: .10; stroke-width: 1; }
.e-facet path { fill: rgba(244,242,238,.075); stroke: none; }
.emb .e-star-o { stroke-width: 1.5; stroke-linejoin: miter; }
.emb .e-ridge { stroke: var(--olive); stroke-opacity: .8; }
.e-disc { fill: var(--ink); stroke: none; }
.emb .e-disc-r { stroke: var(--paper); stroke-opacity: .5; }
.emb .e-micro { stroke: var(--olive); stroke-width: .8; }
.e-moon-r { fill: #0C0C0F; stroke: var(--olive); stroke-width: .9; }
.e-moon-lit { fill: var(--paper); stroke: none; }
.e-moon-bahn { fill: none; stroke: var(--olive); stroke-width: .8; stroke-dasharray: 2 3; stroke-linecap: round; }
.e-moon-pip { fill: var(--paper); }
.emb:not(.e-bereit) .e-moon-lit, .emb:not(.e-bereit) .e-moon-bahn, .emb:not(.e-bereit) .e-moon-pip { visibility: hidden; }
.e-kmh-box { fill: rgba(7,7,10,.7); stroke: var(--line-2); stroke-width: 1; }
.emb .e-kmh-n { font-size: 30px; fill: var(--paper); text-anchor: middle; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.emb .e-kmh-u { font-size: 8.4px; text-anchor: middle; fill: var(--olive); letter-spacing: 1.2px; }
.e-needle { transform-origin: 240px 240px; transform-box: view-box; transform: rotate(-125deg); }
.e-nd { fill: var(--nadel); }
.e-hub { fill: var(--ink); }
.e-hub-r { fill: none; stroke: var(--nadel); stroke-width: 2.2; }
.emb .e-meta-t { fill: var(--olive); font-size: 9.5px; }
.emb .e-hdg { fill: var(--nadel); }

/* Ablauf der Zeichnung beim Laden (≈ 3,5 s), danach pendelt die Nadel */
@media (prefers-reduced-motion: no-preference) {
  .hero-in > * { animation: einblenden .9s var(--ease) backwards; }
  .hero-in > :nth-child(2) { animation-delay: .1s; }
  .hero-in > :nth-child(3) { animation-delay: .2s; }
  .hero-in > :nth-child(4) { animation-delay: .3s; }
  .hero-in > :nth-child(5) { animation-delay: .4s; }
  .hero-in > :nth-child(6) { animation-delay: .5s; }
  .hero-emblem { animation: einblenden 1.1s var(--ease) .1s backwards; }
  /* Auf Telefon und Tablet steht das Zeichen UNTER dem Text: der Aufbau hält an, bis es im Bild ist
     (compass-neu.js setzt dann .ist-sichtbar). Nur mit Skript: ohne Skript gibt es .reveal-an nicht. */
  .reveal-an .hero-emblem:not(.ist-sichtbar) .emb,
  .reveal-an .hero-emblem:not(.ist-sichtbar) .emb * { animation-play-state: paused; }

  .emb .e-r0, .emb .e-face, .emb .e-sc-w, .emb .e-sc-r, .emb .e-tk, .emb .e-star-o, .emb .e-ridge, .emb .e-disc-r, .emb .e-micro { stroke-dasharray: 1; }
  .emb .e-r0   { animation: zeichnen 1.4s var(--ease) .10s backwards; }
  .emb .e-face { animation: zeichnen 1.4s var(--ease) .50s backwards; }
  .emb .e-sc-w { animation: zeichnen 1.7s var(--ease) .35s backwards; }
  .emb .e-sc-r { animation: zeichnen .9s var(--ease) 1.5s backwards; }
  .emb .e-tk-min  { animation: zeichnen 1.5s var(--ease) .20s backwards; }
  .emb .e-tk-maj  { animation: zeichnen 1.5s var(--ease) .40s backwards; }
  .emb .e-tk-rmin { animation: zeichnen 1s var(--ease) 1.5s backwards; }
  .emb .e-tk-rmaj { animation: zeichnen 1s var(--ease) 1.6s backwards; }
  .emb .e-nums { animation: aufblenden .9s ease 1.3s backwards; }
  .emb .e-axes { animation: aufblenden 1s ease 1.2s backwards; }
  .emb .e-star-o { animation: zeichnen 1.9s var(--ease) .80s backwards; }
  .emb .e-ridge  { animation: zeichnen 1.5s var(--ease) 1.5s backwards; }
  .emb .e-facet  { animation: aufblenden 1.1s ease 2s backwards; }
  .emb .e-disc   { animation: aufblenden .6s ease 1.5s backwards; }
  .emb .e-disc-r { animation: zeichnen 1.1s var(--ease) 1.6s backwards; }
  .emb .e-micro  { animation: zeichnen 1.2s var(--ease) 1.9s backwards; }
  .emb .e-moon   { animation: aufblenden 1s ease 2.3s backwards; }
  .emb .e-kmh    { animation: aufblenden .9s ease 2.6s backwards; }
  .emb .e-needle .e-nd, .emb .e-needle .e-hub, .emb .e-needle .e-hub-r { animation: aufblenden .6s ease 2.5s backwards; }
  .emb .e-meta   { animation: aufblenden .9s ease 1.6s backwards; }
  .emb .e-spin   { animation: drehen 140s linear infinite; }
}
@keyframes zeichnen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes wandern { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -.9999; } }
@keyframes aufblenden { from { opacity: 0; } }
@keyframes wachsen { from { transform: scale(.01); } }
@keyframes markersetzen { from { opacity: 0; transform: scale(.2); } }
@keyframes drehen { to { transform: rotate(360deg); } }
@keyframes ping { 0% { opacity: 0; transform: scale(.3); } 12% { opacity: .55; } 100% { opacity: 0; transform: scale(1); } }
@keyframes atmen { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes einblenden { from { opacity: 0; transform: translateY(24px); } }
@keyframes aufbauen { from { opacity: 0; transform: scaleY(.15); } to { opacity: 1; transform: none; } }
@keyframes blende { from { clip-path: inset(47% 0 47% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes gauge { from { width: 0; } }
@keyframes plus { from { transform: scaleX(0); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes modal-in { from { opacity: 0; transform: scale(.97) translateY(8px); } }

/* ── Leiste unter dem Hero: Stand der App, soweit gemessen ────────────────── */
.ribbon { border-block: 1px solid var(--line); background: var(--ink-2); position: relative; z-index: 2; }
.ribbon-in { display: flex; flex-wrap: wrap; gap: 8px 38px; padding-block: 15px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--olive); }
.ribbon-in b { font-weight: 400; color: var(--olive); margin-right: 8px; }
.ribbon-in em { font-style: normal; color: var(--paper); }
.ribbon-in .rb-live b::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--rot-hell); vertical-align: 1px; }

/* ── Kennzahlen: sechs echte Zahlen, die Zahlen laufen hoch, sobald sie im Bild sind ── */
.sec-stats { padding: 56px 0 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--ink-2); }
.stat-card { position: relative; padding: 26px 20px 22px; border-left: 1px solid var(--line); transition: background .25s; }
.stat-card:first-child { border-left: 0; }
.stat-card::before { content: ''; position: absolute; left: -1px; top: -1px; width: 22px; height: 2px; background: var(--rot-hell); }
.stat-card:first-child::before { left: 0; }
.stat-card:hover { background: var(--ink-3); }
.stat-icon { width: 30px; height: 30px; color: var(--olive); margin-bottom: 16px; }
.stat-icon svg { width: 100%; height: 100%; }
.stat-value { display: flex; align-items: baseline; gap: 6px; font-family: var(--mono); font-size: clamp(24px, 2.7vw, 34px); line-height: 1.1; color: var(--paper); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 11.5px; letter-spacing: .4px; color: var(--olive); }
.stat-label { margin-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.2px; line-height: 1.4; text-transform: uppercase; color: var(--olive); }

/* ── Abschnitte ──────────────────────────────────────────────────────────── */
.sec { padding: 100px 0; position: relative; }
.sec.alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.sec-label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--olive);
}
.sec-label::before { content: ''; width: 28px; height: 1px; background: var(--gold); flex: none; transition: width .5s var(--ease); }
.sec-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sec-label .n { font-family: var(--mono); font-weight: 400; color: var(--olive); letter-spacing: 1px; font-size: 0; }
/* Die Nummer zaehlt CSS, nicht der Text: Abschnitte, die das Tor versteckt (display:none), zaehlen nicht mit — sonst fehlten 01, 04, 06–09. */
body { counter-reset: sec; }
.sec-label { counter-increment: sec; }
.sec-label .n::before { content: counter(sec, decimal-leading-zero); font-size: 12px; letter-spacing: 1px; }
.section-active .sec-label::before { width: 56px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; margin-bottom: 52px; }
.sec-title { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -1.5px; font-weight: 900; color: var(--paper); max-width: 30ch; }
.sec-sub { margin-top: 16px; font-size: 16.5px; max-width: 60ch; color: var(--sage); }
.sub-h { font-size: 20px; font-weight: 900; letter-spacing: -.5px; color: var(--paper); margin: 64px 0 4px; }
.sub-p { font-size: 15px; color: var(--sage); max-width: 56ch; }
/* Gesperrter Abschnitt: nur die Zeile „Nur für Mitglieder“ — der Abschnitt schrumpft auf sie (acht Karten à 374 px waren eine Wand aus
   Leere). Der Abschnitt bleibt im Dokument, damit die Anker der Leiste ihn treffen. `[style*="display: none"]` = das Tor ist offen. */
section[id]:has(> .login-gate:not([style*="display: none"])) { padding: 8px 0; }
.sec.alt:has(> .login-gate:not([style*="display: none"])) { background: none; border-block: 0; }
section[id] > .login-gate:not([style*="display: none"]) {
  display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t b" "p b"; align-items: center; gap: 2px 28px;
  width: calc(100% - 56px) !important; max-width: calc(var(--page) - 56px) !important; margin: 0 auto !important; padding: 16px 24px !important; text-align: left !important;
}
section[id] > .login-gate:not([style*="display: none"]) h3 { grid-area: t; margin: 0 !important; font-size: 16px !important; letter-spacing: -.2px; }
section[id] > .login-gate:not([style*="display: none"]) p { grid-area: p; margin: 0 !important; font-size: 14px !important; line-height: 1.55; }
section[id] > .login-gate:not([style*="display: none"]) .btn { grid-area: b; }
.gate-kicker { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 1.4px; line-height: 1.4; text-transform: uppercase; color: var(--olive); }

h2, h3, .sec-title { text-wrap: balance; }

/* ── Karten (Grammatik von mi-su.me / Quests) ────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 30px); }
.cards.c3, .cards.c6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 0;
  padding: clamp(22px, 2.2vw, 30px);
  transition: border-color .35s, box-shadow .35s, transform .35s var(--ease);
}
.card::before, .card::after {
  content: ''; position: absolute; pointer-events: none; background: var(--line-2);
  transition: width .45s var(--ease), height .45s var(--ease), background-color .35s;
}
.card::before { left: -11px; top: -1px; width: 46px; height: 1px; }
.card::after  { left: -1px; top: -11px; width: 1px; height: 46px; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 14px 34px -14px rgba(0,0,0,.7); }
.card:hover::before { width: 96px; background: var(--gold); }
.card:hover::after  { height: 96px; background: var(--gold); }
a.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.card-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.card-icon { display: block; width: 60px; height: 60px; flex: none; color: var(--paper); }
.card-icon svg { width: 100%; height: 100%; }
.card-kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.4px; line-height: 1.5; text-transform: uppercase; color: var(--olive); text-align: right; padding-top: 2px; }
.card h3 { font-size: clamp(18px, 1.7vw, 21px); font-weight: 900; letter-spacing: -.4px; line-height: 1.25; color: var(--paper); }
.card p { font-size: 14.5px; color: var(--sage); }
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.card-punkte { display: grid; gap: 6px; font-size: 14px; color: var(--paper); }
.card-punkte li { position: relative; padding-left: 22px; line-height: 22px; }
.card-punkte li::before { content: ''; position: absolute; left: 0; top: 10px; width: 11px; height: 2px; background: var(--rot-hell); }
.card.klein { padding: 22px; gap: 10px; }
.card.klein .card-icon { width: 44px; height: 44px; }
.card.klein h3 { font-size: 16.5px; }
.card.klein p { font-size: 13.5px; }

.zeichnung { --strich: 2.2; --strich-fein: 1.2; overflow: visible; }
.zeichnung .z-linie { fill: none; stroke: currentColor; stroke-width: var(--strich); stroke-linecap: square; stroke-linejoin: miter; }
.zeichnung .z-fein { stroke-width: var(--strich-fein); }
.zeichnung .z-akzent { fill: var(--akzent-flaeche); }

/* Einblenden beim Scrollen. Ausgeblendet wird nur, wenn das Skript .reveal-an gesetzt hat. */
.reveal-an [data-reveal]:not(.ist-sichtbar) { opacity: 0; transform: translateY(24px); }
.reveal-an [data-reveal].ist-sichtbar { opacity: 1; animation: einblenden .8s var(--ease) var(--verzug, 0ms) backwards; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-an .ist-sichtbar .zeichnung .z-linie { stroke-dasharray: 1; animation: zeichnen 1.1s var(--ease) calc(var(--verzug, 0ms) + 200ms) both; }
  .reveal-an .ist-sichtbar .zeichnung .z-flaeche { transform-box: fill-box; transform-origin: 50% 100%; animation: aufbauen .9s var(--ease) calc(var(--verzug, 0ms) + 650ms) both; }
}

/* ── Funktionen: Telefonrahmen, zwei Funktionen nebeneinander (15 Stück untereinander wären ein Gang durch eine Wüste) ── */
.showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(52px, 6vw, 88px) clamp(36px, 5vw, 72px); margin: 8px 0 92px; counter-reset: sc; }
.showcase-row { display: flex; align-items: center; gap: clamp(22px, 2.8vw, 40px); counter-increment: sc; }
.showcase-phone { --pw: clamp(190px, 17.5vw, 238px); flex: 0 0 var(--pw); display: flex; justify-content: center; position: relative; }
.phone {
  position: relative; width: 100%; padding: 8px; border-radius: 36px;
  background: linear-gradient(160deg, #202025 0%, #0E0E11 60%);
  border: 1px solid var(--line-2);
  box-shadow: 0 34px 70px -22px rgba(0,0,0,.85), inset 0 0 0 1px rgba(0,0,0,.65);
}
.phone::before { content: ''; position: absolute; top: 14px; left: 50%; width: 46px; height: 5px; margin-left: -23px; border-radius: 3px; background: rgba(0,0,0,.7); z-index: 2; }
.phone img, .phone picture { display: block; width: 100%; height: auto; border-radius: 28px; background: #0B0B0E; }
/* Bauzeichnungs-Linien an der Ecke des Rahmens */
.showcase-phone::before, .showcase-phone::after { content: ''; position: absolute; pointer-events: none; background: var(--line-2); }
.showcase-phone::before { left: -12px; top: -1px; width: 46px; height: 1px; }
.showcase-phone::after  { left: -1px; top: -12px; width: 1px; height: 46px; }
.showcase-text { flex: 1; min-width: 0; }
.showcase-text::before { content: counter(sc, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 1.6px; color: var(--olive); margin-bottom: 14px; }
.showcase-text h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 900; letter-spacing: -.8px; line-height: 1.15; color: var(--paper); margin: 0 0 12px; }
.showcase-text p { font-size: 15px; line-height: 1.72; color: var(--sage); }
.wp-hl { color: var(--paper); font-weight: 700; border-bottom: 1px solid var(--line-2); }
.wp-mono { font-family: var(--mono); font-size: .9em; color: var(--paper); background: var(--ink-3); border: 1px solid var(--line); padding: 1px 6px; }

/* ── „So sieht es aus“: drei Telefone ────────────────────────────────────── */
.app-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 270px)); gap: clamp(28px, 5vw, 70px); justify-content: center; margin-top: 8px; }
.app-gallery figure { margin: 0; text-align: left; }
.app-gallery figure:nth-child(2) { margin-top: 56px; }
.app-gallery figcaption { margin-top: 18px; font-size: 14px; line-height: 1.6; color: var(--sage); }
.app-gallery figcaption::before { content: ''; display: block; width: 22px; height: 1px; background: var(--gold); margin-bottom: 12px; }

/* ── Das Spiel „Midnight Compass: Deutschland“ ────────────────────────────── */
.shot { position: relative; margin: 0; background: #08080A; border: 1px solid var(--line); }
.shot::before, .shot::after { content: ''; position: absolute; pointer-events: none; background: var(--line-2); z-index: 3; }
.shot::before { left: -11px; top: -1px; width: 46px; height: 1px; }
.shot::after  { left: -1px; top: -11px; width: 1px; height: 46px; }
.shot picture, .shot img { display: block; width: 100%; height: auto; }
.shot > div.shot-img { overflow: hidden; }
.shot figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 12px 16px 13px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--olive); }
.shot figcaption b { color: var(--paper); font-weight: 700; }
.shot figcaption span { font-family: var(--mono); font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase; }
.shot.game-hero { margin-bottom: clamp(20px, 2.4vw, 30px); }
.shot.game-hero figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; border-top: 0; padding: 70px clamp(18px, 3vw, 34px) clamp(16px, 2.4vw, 28px);
  background: linear-gradient(to top, rgba(7,7,10,.86), rgba(7,7,10,0)); font-size: clamp(14px, 1.5vw, 18px);
}
.shot.game-hero figcaption span { color: var(--sage); }
.shot-tag { position: absolute; top: 14px; right: 14px; z-index: 2; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--paper); background: rgba(7,7,10,.7); border: 1px solid var(--line-2); padding: 5px 10px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.game-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 30px); margin-bottom: clamp(20px, 2.4vw, 30px); }
.game-row.zwei { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.game-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; margin: clamp(56px, 7vw, 90px) 0; }
.game-split h3 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 900; letter-spacing: -.9px; line-height: 1.15; color: var(--paper); margin: 0 0 14px; max-width: 20ch; }
.game-split p { font-size: 16px; line-height: 1.75; color: var(--sage); max-width: 46ch; margin-bottom: 14px; }
.fig { position: relative; background: var(--ink-3); border: 1px solid var(--line); padding: clamp(14px, 2vw, 26px); }
.fig::before, .fig::after { content: ''; position: absolute; pointer-events: none; background: var(--line-2); }
.fig::before { left: -11px; top: -1px; width: 46px; height: 1px; }
.fig::after  { left: -1px; top: -11px; width: 1px; height: 46px; }
.fig .rdr { width: 100%; height: auto; max-width: 460px; margin: 0 auto; aspect-ratio: 1; }
.fig figcaption { margin-top: 14px; font-size: 12.5px; line-height: 1.65; color: var(--olive); border-top: 1px solid var(--line); padding-top: 12px; }
.game-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.game-note { margin: 0; }
.game-credit { margin: clamp(28px, 4vw, 48px) 0 0; max-width: 100ch; font-size: 12.5px; }

/* Das G-Radar (Demo): Ringe wie in der App, Punkt auf einer Driftbahn */
.rdr .z-linie { fill: none; stroke: var(--paper); stroke-width: 1.4; stroke-linecap: round; }
.rdr .z-fein { stroke: var(--olive); stroke-width: .9; }
.rdr .r-ring { opacity: .75; }
.rdr .r-cross { opacity: .55; }
.rdr .r-lab { font-size: 9.6px; fill: var(--olive); }
.rdr .r-road { fill: none; stroke: var(--paper); stroke-opacity: .10; stroke-width: 26; stroke-linecap: round; }
.rdr .r-road-m { fill: none; stroke: var(--paper); stroke-opacity: .32; stroke-width: 1.3; stroke-dasharray: 9 11; }
.rdr .r-trail-a, .rdr .r-trail-b { fill: none; stroke: var(--paper); stroke-linecap: round; stroke-linejoin: round; }
.rdr .r-trail-a { stroke-opacity: .16; stroke-width: 2; }
.rdr .r-trail-b { stroke-opacity: .55; stroke-width: 2.4; }
.rdr .r-halo { fill: var(--paper); fill-opacity: .2; }
.rdr .r-dot { fill: var(--paper); }
.rdr.drift .r-dot, .rdr.drift .r-trail-b { fill: var(--nadel); stroke: var(--nadel); }
.rdr.drift .r-trail-b { fill: none; }
.rdr.drift .r-halo { fill: var(--nadel); }
.rdr .r-t { font-size: 9.5px; fill: var(--olive); }
.rdr .r-demo-box { fill: none; stroke: var(--paper); stroke-opacity: .55; stroke-width: 1; }
.rdr .r-demo { fill: var(--paper); letter-spacing: 1.6px; }
.rdr .r-read { fill: var(--paper); }
.rdr.drift .r-read { fill: var(--nadel); }
/* Game: Bilder öffnen sich wie ein Kameraverschluss (Spalt von der Mitte nach außen) */
.reveal-an [data-blende]:not(.ist-sichtbar) .shot-img { clip-path: inset(47% 0 47% 0); }
@media (prefers-reduced-motion: no-preference) {
  .reveal-an [data-blende].ist-sichtbar .shot-img { animation: blende 1.15s var(--ease) var(--verzug, 0ms) both; }
  .reveal-an [data-blende].ist-sichtbar figcaption { animation: aufblenden .9s ease calc(var(--verzug, 0ms) + 600ms) backwards; }
}
@media (prefers-reduced-motion: reduce) { .reveal-an [data-blende]:not(.ist-sichtbar) .shot-img { clip-path: none; } }

/* ── Whitepaper ──────────────────────────────────────────────────────────── */
.wp-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.wp-grid .sec-head { position: sticky; top: calc(var(--nav-h) + 28px); display: block; margin-bottom: 0; }
.wp-list { display: block; }
.wp-block { padding: 26px 0 28px; border-top: 1px solid var(--line); }
.wp-block:first-child { border-top: 0; padding-top: 4px; }
.wp-h { font-size: clamp(17px, 1.7vw, 20px); font-weight: 900; letter-spacing: -.4px; line-height: 1.3; color: var(--paper); margin: 0 0 12px; }
.wp-block p { font-size: 15.5px; line-height: 1.78; color: var(--sage); max-width: 70ch; }
.wp-block p b { color: var(--paper); font-weight: 700; }

/* ── News ────────────────────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(20px, 2.4vw, 30px); }
.news-card { position: relative; display: flex; flex-direction: column; background: var(--ink-3); border: 1px solid var(--line); border-radius: 0; overflow: visible; transition: border-color .35s, transform .35s var(--ease), box-shadow .35s; }
.news-card::before, .news-card::after { content: ''; position: absolute; pointer-events: none; background: var(--line-2); transition: width .45s var(--ease), height .45s var(--ease), background-color .35s; }
.news-card::before { left: -11px; top: -1px; width: 46px; height: 1px; }
.news-card::after  { left: -1px; top: -11px; width: 1px; height: 46px; }
.news-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 14px 34px -14px rgba(0,0,0,.7); }
.news-card:hover::before { width: 96px; background: var(--gold); }
.news-card:hover::after { height: 96px; background: var(--gold); }
.news-card-img { width: 100%; height: 190px; object-fit: cover; display: block; background: var(--ink-2); }
.news-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card-date { font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--olive); }
.news-card-title { font-size: 18px; font-weight: 900; letter-spacing: -.3px; line-height: 1.3; color: var(--paper); }
.news-card-body-text { font-size: 14.5px; line-height: 1.65; color: var(--sage); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Chips, Umschalter, Suche (Rangliste, Markt, Wissen) ─────────────────── */
.filter-btn, .unit-btn, .kb-type-tab, .showoff-filter {
  padding: 6px 15px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--sage);
  border: 1px solid var(--line); transition: border-color .15s, color .15s, background .15s;
}
.filter-btn:hover, .kb-type-tab:hover, .showoff-filter:hover { border-color: var(--line-2); color: var(--paper); }
.filter-btn.active, .kb-type-tab.active, .showoff-filter.active { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.market-filters, .kb-filters, .ranking-tabs, .sprint-target-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.market-filters, .kb-filters { margin-bottom: 28px; }
.ranking-unit-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.unit-btn { border: 0; padding: 4px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .6px; color: var(--olive); }
.unit-btn:hover { color: var(--paper); }
.unit-btn.active { background: var(--forest); color: var(--mint); }
.rankings-header-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.rankings-search-row { position: relative; margin-bottom: 26px; max-width: 460px; }
.rankings-search-row input, .roads-search-input {
  width: 100%; font-size: 15px; color: var(--paper); background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 40px 11px 16px; outline: none; transition: border-color .15s;
}
.rankings-search-row input:focus { border-color: var(--gold); }
.rankings-search-row input::placeholder { color: var(--olive); opacity: 1; }
.rankings-search-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--olive); pointer-events: none; display: flex; }
.rankings-more, .market-more { text-align: center; margin-top: 34px; }

/* ── Rangliste: Fahrzeugkarten ───────────────────────────────────────────── */
.rankings-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(20px, 2.4vw, 30px); }
.ranking-skeleton { height: 460px; border: 1px solid var(--line); background: linear-gradient(90deg, var(--ink-3) 25%, var(--surface-2) 50%, var(--ink-3) 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
/* ⚠️ app.js setzt je Klasse Farben INLINE (Indigo für S, Blau für E). Die Klassenfarbe wird hier über die Inline-Werte
   erkannt und durch die Farben der Seite ersetzt; der Buchstabe (S…F) bleibt das eigentliche Zeichen. */
.car-card { --cc: var(--olive); --cc-dim: rgba(244,242,238,.08); --cc-shadow: rgba(0,0,0,.4); }
.car-card[style*="#5E5CE6"] { --cc: var(--gold-hell) !important; }
.car-card[style*="#FF453A"] { --cc: var(--nadel) !important; }
.car-card[style*="#FF9F0A"] { --cc: var(--gold) !important; }
.car-card[style*="#FFD60A"] { --cc: var(--paper) !important; }
.car-card[style*="#30D158"] { --cc: var(--sage) !important; }
.car-card[style*="#0A84FF"] { --cc: var(--olive) !important; }
.car-card[style*="#636366"] { --cc: var(--slate) !important; }
.car-card {
  position: relative; background: var(--ink-3); border: 1px solid var(--line); border-radius: 0; overflow: visible;
  transition: border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.car-card::before, .car-card::after { content: ''; position: absolute; pointer-events: none; z-index: 3; background: var(--line-2); transition: width .45s var(--ease), height .45s var(--ease), background-color .35s; }
.car-card::before { left: -11px; top: -1px; width: 46px; height: 1px; }
.car-card::after  { left: -1px; top: -11px; width: 1px; height: 46px; }
.car-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 14px 34px -14px rgba(0,0,0,.7); }
.car-card:hover::before { width: 96px; background: var(--gold); }
.car-card:hover::after { height: 96px; background: var(--gold); }
.car-card-me { outline: 1px solid var(--paper); outline-offset: 2px; }
.car-card-photo { position: relative; height: 200px; overflow: hidden; border-bottom: 1px solid var(--line); }
.car-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-card-photo-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--ink-2); }
.car-card-photo-placeholder svg { width: 72px; height: 72px; opacity: .3; color: var(--olive); }
.car-card-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 100px; pointer-events: none; background: linear-gradient(to bottom, rgba(22,22,27,0), var(--ink-3)); }
.car-card-photo-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 0 16px 12px; }
.car-card-name { font-size: 16px; font-weight: 900; letter-spacing: -.2px; line-height: 1.2; color: var(--paper); }
.car-card-origin { margin-top: 3px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--olive); }
.car-card-ovr { display: flex; flex-direction: column; align-items: center; flex: none; }
.car-card-ovr-letter { width: 46px; height: 46px; display: grid; place-items: center; font-size: 25px; font-weight: 900; line-height: 1; color: var(--ink); background: var(--cc) !important; }
.car-card-ovr-label { margin-top: 4px; font-family: var(--mono); font-size: 9px; letter-spacing: 1.4px; color: var(--olive); }
.car-card-rank-badge { position: absolute; top: 12px; left: 12px; z-index: 2; min-width: 34px; height: 26px; padding: 0 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; background: rgba(7,7,10,.72); border: 1px solid var(--line-2); color: var(--sage); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.car-card-rank-badge.gold { background: var(--gold-hell); color: var(--ink); border-color: var(--gold-hell); }
.car-card-rank-badge.silver { background: var(--sage); color: var(--ink); border-color: var(--sage); }
.car-card-rank-badge.bronze { background: var(--olive); color: var(--ink); border-color: var(--olive); }
.car-card-body { padding: 4px 18px 18px; }
.car-card-driver { display: flex; align-items: center; gap: 8px; padding: 10px 0 2px; font-size: 14px; font-weight: 700; color: var(--paper); }
.you-badge { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; padding: 2px 7px; color: var(--paper); border: 1px solid var(--line-2); }
.car-card-divider { display: flex; align-items: center; gap: 8px; padding: 12px 0 4px; }
.car-card-divider-bar { width: 11px; height: 2px; background: var(--cc); flex: none; }
.car-card-divider-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.6px; color: var(--olive); text-transform: uppercase; }
.car-card-divider-line { flex: 1; height: 1px; background: var(--line); }
.car-stat-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.car-stat-label { flex: 1; font-family: var(--mono); font-size: 10px; letter-spacing: .6px; color: var(--olive); text-transform: uppercase; }
.car-stat-value { font-family: var(--mono); font-size: 13px; color: var(--paper); white-space: nowrap; font-variant-numeric: tabular-nums; }
.car-stat-value.muted { color: var(--slate); }
.car-card-delete { display: flex; justify-content: flex-end; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.delete-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; font-size: 13px; color: var(--rot-hell); border: 1px solid var(--rot); transition: background .15s, color .15s; }
.delete-btn:hover { background: var(--rot); color: #fff; }
/* Klassen-Plaketten: Buchstabe = Aussage, Fläche in den Farben der Seite */
.pill-speed, .pill-perf { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 6px; font-family: var(--mono); font-size: 11px; line-height: 1; color: var(--ink); background: var(--olive); }
.cls-S { background: var(--gold-hell); color: var(--ink); }
.cls-A { background: var(--nadel); color: var(--ink); }
.cls-B { background: var(--gold); color: var(--ink); }
.cls-C { background: var(--paper); color: var(--ink); }
.cls-D { background: var(--sage); color: var(--ink); }
.cls-E { background: var(--olive); color: var(--ink); }
.cls-F { background: var(--slate); color: var(--paper); }
.recent-activity { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.recent-activity-title { font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--olive); margin-bottom: 12px; }
.recent-activity-list { display: grid; gap: 7px; }
.activity-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--sage); }
.activity-name { font-weight: 700; color: var(--paper); flex: none; }
.activity-car { color: var(--olive); flex: none; }
.activity-speed { margin-left: auto; font-family: var(--mono); color: var(--paper); flex: none; }
.activity-time { font-family: var(--mono); font-size: 11px; color: var(--olive); flex: none; margin-left: 8px; }

/* ── Veranstaltungen ─────────────────────────────────────────────────────── */
.events-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.calendar-card { display: block; padding: 22px; }
.calendar-card:hover, .upcoming-card:hover { transform: none; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-title { font-weight: 900; font-size: 15px; letter-spacing: -.2px; color: var(--paper); }
.cal-nav { width: 32px; height: 32px; display: grid; place-items: center; font-size: 18px; color: var(--sage); border: 1px solid var(--line); transition: color .15s, border-color .15s; }
.cal-nav:hover { color: var(--paper); border-color: var(--gold); }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; }
.cal-weekdays span { text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--olive); padding: 4px 0; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-cell { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative; font-family: var(--mono); font-size: 12.5px; color: var(--olive); transition: background .15s; }
.cal-cell.empty { pointer-events: none; }
.cal-cell.today { outline: 1px solid var(--paper); outline-offset: -1px; color: var(--paper); }
.cal-cell.has-event { cursor: pointer; color: var(--paper); }
.cal-cell.has-event:hover { background: var(--surface-2); }
.cal-dot { width: 5px; height: 5px; background: var(--rot-hell); }
.day-panel { display: none; margin-top: 18px; background: var(--ink-2); border: 1px solid var(--line); }
.day-panel.visible { display: block; }
.day-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--paper); }
.day-panel-list { padding: 12px; max-height: 280px; overflow-y: auto; }
.day-event-item { padding: 10px 12px; margin-bottom: 8px; background: var(--ink-3); border: 1px solid var(--line); }
.day-event-item:last-child { margin-bottom: 0; }
.day-event-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.day-event-title { font-size: 13px; font-weight: 700; color: var(--paper); }
.day-event-meta { font-size: 11.5px; color: var(--olive); display: flex; gap: 10px; flex-wrap: wrap; }
.day-event-fee, .day-event-count { color: var(--sage); }
.day-event-type { font-family: var(--mono); font-size: 10px; letter-spacing: .8px; padding: 2px 6px; white-space: nowrap; flex: none; border: 1px solid var(--line-2); color: var(--sage); }
.upcoming-card { display: block; padding: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; }
.card-header h3 { font-size: 17px; }
.badge { font-family: var(--mono); font-size: 11px; letter-spacing: .8px; padding: 2px 10px; color: var(--paper); border: 1px solid var(--line-2); }
.upcoming-list { padding: 4px 24px 22px; overflow-y: auto; max-height: 520px; }
.event-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.event-row:last-child { border-bottom: 0; }
.event-row-date { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 8px 6px; border: 1px solid var(--line-2); }
.event-row-date .month { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--olive); }
.event-row-date .day { font-family: var(--mono); font-size: 22px; line-height: 1.05; color: var(--paper); }
.event-row-info { flex: 1; min-width: 0; }
.event-row-title { font-size: 15px; font-weight: 700; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-row-loc { font-size: 12.5px; color: var(--olive); margin-top: 2px; }
.event-row-count { font-size: 12.5px; color: var(--olive); white-space: nowrap; }
.event-row-count strong { color: var(--paper); font-family: var(--mono); font-weight: 400; }
.event-row[style*="f97316"] { border-left-color: var(--gold) !important; }
.map-marker-pin { width: 12px; height: 12px; background: var(--gold) !important; border: 2px solid var(--paper); box-shadow: none !important; }

/* ── Markt und Wissen ────────────────────────────────────────────────────── */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(20px, 2.4vw, 30px); }
.listing-card, .topic-card {
  position: relative; background: var(--ink-3); border: 1px solid var(--line); border-radius: 0; cursor: pointer;
  transition: border-color .35s, box-shadow .35s, transform .35s var(--ease); animation: einblenden .6s var(--ease) backwards;
}
.listing-card::before, .listing-card::after, .topic-card::before, .topic-card::after { content: ''; position: absolute; pointer-events: none; background: var(--line-2); transition: width .45s var(--ease), height .45s var(--ease), background-color .35s; }
.listing-card::before, .topic-card::before { left: -11px; top: -1px; width: 46px; height: 1px; }
.listing-card::after, .topic-card::after { left: -1px; top: -11px; width: 1px; height: 46px; }
.listing-card:hover, .topic-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 14px 34px -14px rgba(0,0,0,.7); }
.listing-card:hover::before, .topic-card:hover::before { width: 96px; background: var(--gold); }
.listing-card:hover::after, .topic-card:hover::after { height: 96px; background: var(--gold); }
.listing-img { width: 100%; height: 180px; object-fit: cover; background: var(--surface-2); }
.listing-img-placeholder { height: 180px; display: grid; place-items: center; background: var(--ink-2); border-bottom: 1px solid var(--line); color: var(--olive); font-size: 36px; }
.listing-body { padding: 18px 20px 20px; }
.listing-category-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.listing-category { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--olive); }
.listing-title { font-size: 16px; font-weight: 900; letter-spacing: -.2px; color: var(--paper); margin-bottom: 4px; line-height: 1.3; }
.listing-car { font-size: 13px; color: var(--olive); margin-bottom: 8px; }
.listing-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.listing-price { font-size: 17px; font-weight: 900; color: var(--paper); }
.listing-seller { font-size: 12px; color: var(--olive); }
.kb-type-tabs { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.kb-type-tab { border: 0; padding: 7px 18px; font-size: 13.5px; font-weight: 700; color: var(--olive); }
.kb-type-tab.active { background: var(--forest); color: var(--mint); }
.kb-vehicle-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; align-items: center; }
.kb-vehicle-field { flex: 1; min-width: 140px; }
.kb-year-input { width: 100px; flex: 0 0 100px; }
.kb-clear-btn { flex: 0 0 auto; padding: 0 14px; height: 44px; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(20px, 2.4vw, 30px); margin-bottom: 32px; }
.topic-card-photo { width: 100%; height: 160px; object-fit: cover; display: block; background: var(--surface-2); }
.topic-card-photo-placeholder { height: 160px; display: grid; place-items: center; font-size: 34px; color: var(--olive); background: var(--ink-2); border-bottom: 1px solid var(--line); }
.topic-card-body { padding: 18px 20px 20px; }
.topic-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.topic-card-cat, .td-cat { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; color: var(--paper); border: 1px solid var(--line-2); background: transparent; border-radius: 0; }
.topic-card-vehicle { font-size: 12.5px; color: var(--olive); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic-card-title { font-size: 16.5px; font-weight: 900; letter-spacing: -.2px; color: var(--paper); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-card-excerpt { font-size: 14px; color: var(--sage); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-card-footer { display: flex; align-items: center; gap: 14px; }
.topic-stat { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12px; color: var(--olive); }
.topic-stat svg { width: 13px; height: 13px; }
.topic-stat.upvoted { color: var(--paper); }
.topic-steps-badge { font-family: var(--mono); font-size: 11px; padding: 2px 7px; color: var(--paper); border: 1px solid var(--line-2); }

/* ── Freunde und Nachrichten ─────────────────────────────────────────────── */
#friends-signedout { max-width: 640px; text-align: center; display: block; }
#friends-signedout p { color: var(--sage); margin: 0 0 6px; }
.friends-col { max-width: 640px; }
@media (min-width: 1000px) {
  .friends-col { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 64px); align-items: start; }
  .friends-search { grid-column: 1 / -1; max-width: 640px; }
  .friends-colbox > .friends-sub:first-child { margin-top: 8px; }
}
.friend-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; background: var(--ink-3); border: 1px solid var(--line); margin-bottom: 8px; }
.friend-name { font-weight: 700; color: var(--paper); }
.friends-sub { margin: 26px 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--olive); display: flex; align-items: center; gap: 12px; }
.friends-sub::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.unread-badge { min-width: 22px; height: 22px; padding: 0 6px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: var(--ink); background: var(--rot-hell); }
.empty-msg { color: var(--olive); font-size: 14px; padding: 24px 0; text-align: center; font-family: var(--mono); letter-spacing: .3px; }

/* ── Coins, Häuser, Mitgliedschaft ───────────────────────────────────────── */
.houses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); margin-top: 22px; }
.house { flex-direction: row; align-items: center; gap: 16px; padding: 20px 22px; }
.house .card-icon { width: 46px; height: 46px; }
.house b { display: block; font-size: 15px; font-weight: 900; color: var(--paper); letter-spacing: -.2px; }
.house span.t { display: block; font-size: 12.5px; line-height: 1.5; color: var(--olive); }
.card.kreis { border-color: var(--line-2); }
.ms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 32px); margin-top: 8px; }
.ms-card { gap: 0; }
.ms-card--best { border-color: var(--paper); }
.ms-card--best::before, .ms-card--best::after { background: var(--paper); }
.ms-band { position: absolute; top: -13px; right: 22px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; padding: 4px 11px; background: var(--paper); color: var(--ink); }
.ms-name { font-size: 18px; font-weight: 900; letter-spacing: -.3px; color: var(--paper); margin: 0 0 8px; }
.ms-price { font-size: 40px; font-weight: 900; letter-spacing: -1.6px; line-height: 1.05; color: var(--paper); }
.ms-per { font-size: 13px; color: var(--olive); margin: 4px 0 18px; }
.ms-coins { display: flex; align-items: baseline; gap: 10px; padding: 13px 15px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--ink-2); }
.ms-coins b { font-family: var(--mono); font-size: 22px; font-weight: 400; color: var(--paper); }
.ms-coins span { font-size: 12.5px; color: var(--olive); }
.ms-list { display: grid; gap: 9px; margin: 0 0 24px; }
.ms-list li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 22px; color: var(--paper); }
.ms-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 11px; height: 2px; background: var(--rot-hell); }
.ms-btn { margin-top: auto; width: 100%; }
.ms-how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 32px); margin-top: 32px; }
.ms-how .ms-note { margin-top: 12px; }
.ms-note { font-size: 14px; line-height: 1.7; color: var(--sage); max-width: 62ch; margin-top: 22px; }
.ms-note strong { color: var(--paper); }
.ms-legal { font-size: 13px; line-height: 1.75; color: var(--olive); max-width: 78ch; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.ms-legal strong { color: var(--sage); }

/* ── Fuß: die Familie ────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 54px 0 40px; background: var(--ink); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 36px 60px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.3px; color: var(--paper); font-size: 17px; }
.foot-brand img { width: 30px; height: 30px; mix-blend-mode: screen; }
.foot-lead { margin-top: 12px; max-width: 34ch; font-size: 13.5px; line-height: 1.7; color: var(--olive); }
.foot-fam h4 { font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--olive); margin-bottom: 14px; }
.foot-fam ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 24px; }
.foot-fam a { display: inline-block; padding: 6px 0; font-size: 14px; color: var(--sage); border-bottom: 1px solid transparent; transition: color .15s; }
.foot-fam a:hover { color: var(--gold-hell); }
.foot-fam a[aria-current] { color: var(--paper); font-weight: 700; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding-top: 24px; font-size: 13px; color: var(--olive); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--sage); }
.foot-links a:hover { color: var(--gold-hell); }
.foot-copy { font-family: var(--mono); font-size: 11.5px; letter-spacing: .6px; }

/* ── Fenster (zwei Muster: .modal > .modal-box und .modal-overlay > .modal) ─── */
.modal { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-box, .modal-overlay > .modal, .modal-card {
  position: relative; z-index: 1; width: min(640px, 100%); max-height: 88vh; display: flex; flex-direction: column;
  background: var(--ink-3); border: 1px solid var(--line-2); border-radius: 0; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  animation: modal-in .22s ease;
}
.modal-box::before, .modal-box::after { content: ''; position: absolute; pointer-events: none; background: var(--line-2); }
.modal-box::before { left: -11px; top: -1px; width: 46px; height: 1px; }
.modal-box::after  { left: -1px; top: -11px; width: 1px; height: 46px; }
.modal-box-sm { max-width: 420px !important; }
.modal-box-lg { max-width: 760px !important; }
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; padding: 20px; overflow-y: auto;
                 background: rgba(0,0,0,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-overlay.open { display: flex; }
.modal-overlay > .modal, .modal-overlay > .modal-card { display: flex !important; position: relative !important; inset: auto !important; padding: 0; width: 100%; overflow-y: auto; align-items: stretch; justify-content: flex-start; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.modal-header h3, .modal-title { font-size: 18px; font-weight: 900; letter-spacing: -.3px; color: var(--paper); }
.modal-close { width: 30px; height: 30px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; color: var(--olive); transition: color .15s, border-color .15s; flex: none; }
.modal-close:hover { color: var(--paper); border-color: var(--gold); }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; color: var(--sage); }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
body.modal-open { overflow: hidden; }

/* ── Formulare ───────────────────────────────────────────────────────────── */
.form-row, .form-group { margin-bottom: 18px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.form-3col { display: grid; grid-template-columns: 1fr 1fr 80px; gap: 8px; }
.form-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--olive); letter-spacing: .3px; margin-bottom: 7px; }
.form-hint { font-size: 11.5px; color: var(--olive); font-weight: 400; }
.form-input {
  width: 100%; font: inherit; font-size: 15px; color: var(--paper); background: var(--ink-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .15s;
}
.form-input:focus, .input:focus { border-color: var(--gold); }
.form-input::placeholder, .input::placeholder { color: var(--olive); opacity: 1; }
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.form-select { cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23C4C1BC' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
.form-select option { background: var(--ink-2); color: var(--paper); }
.form-error { color: var(--rot-hell); font-size: 12.5px; margin-top: 8px; }
/* Die Felder der Formularseiten tragen class="input" (die alte style.css hatte dafür keine Regel) */
.input { width: 100%; font: inherit; font-size: 15px; color: var(--paper); background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none; transition: border-color .15s; }
#picker-map { height: 220px; overflow: hidden; border: 1px solid var(--line-2); margin-top: 4px; }
.tire-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tire-preset-btn { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--sage); font-family: var(--mono); font-size: 11px; white-space: nowrap; transition: border-color .12s, color .12s, background .12s; }
.tire-preset-btn:hover { border-color: var(--gold); color: var(--paper); }
.tire-preset-btn.active { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.tire-size-display { text-align: center; font-family: var(--mono); font-size: 20px; color: var(--paper); padding: 8px 0 4px; }
.upload-zone { border: 1px dashed var(--line-2); min-height: 100px; cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; transition: border-color .15s, background .15s; }
.upload-zone:hover { border-color: var(--gold); background: rgba(201,162,39,.06); }
#ev-upload-prompt, #ls-upload-prompt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; color: var(--olive); font-size: 13px; pointer-events: none; }
.upload-icon { font-size: 26px; }
.upload-preview-hidden { display: none; width: 100%; }
.upload-preview-hidden img { width: 100%; max-height: 200px; object-fit: cover; display: block; height: auto; }

/* Themen-Fenster (Wissen) */
.kb-vtype-btns { display: flex; gap: 10px; margin-bottom: 4px; }
.kb-vtype-btn { flex: 1; padding: 8px 0; border: 1px solid var(--line); color: var(--sage); font-size: 14px; transition: all .15s; }
.kb-vtype-btn.active { background: var(--mint); border-color: var(--mint); color: var(--ink); font-weight: 700; }
.td-body { padding: 0 !important; }
.td-cover { width: 100%; height: 220px; object-fit: cover; display: block; }
.td-content { padding: 20px 24px 24px; }
.td-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.td-vehicle { font-size: 13px; color: var(--olive); }
.td-title { font-size: 22px; font-weight: 900; letter-spacing: -.4px; color: var(--paper); margin-bottom: 10px; }
.td-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.td-action-btn { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--sage); padding: 6px 12px; border: 1px solid var(--line); transition: color .15s, border-color .15s; }
.td-action-btn:hover, .td-action-btn.active { color: var(--paper); border-color: var(--gold); }
.td-body-text { font-size: 15px; line-height: 1.75; color: var(--sage); margin-bottom: 20px; white-space: pre-wrap; }
.td-media-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: thin; }
.td-media-item { flex: 0 0 180px; height: 130px; overflow: hidden; background: var(--ink-2); position: relative; border: 1px solid var(--line); }
.td-media-item img { width: 100%; height: 100%; object-fit: cover; }
.td-media-item.video-thumb { cursor: pointer; }
.td-media-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.4); }
.td-media-play svg { width: 44px; height: 44px; color: #fff; opacity: .9; }
.td-divider { border: none; border-top: 1px solid var(--line); margin: 0 0 20px; }
.td-section-label { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--olive); text-transform: uppercase; margin-bottom: 14px; }
.td-comments { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.td-comment { background: var(--ink-2); border: 1px solid var(--line); padding: 12px 14px; }
.td-comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.td-comment-author { font-size: 13px; font-weight: 700; color: var(--paper); }
.td-comment-own .td-comment-author { color: var(--gold-hell); }
.td-comment-you { font-family: var(--mono); font-size: 9.5px; letter-spacing: .6px; color: var(--ink); background: var(--paper); padding: 1px 5px; }
.td-comment-date { font-family: var(--mono); font-size: 11px; color: var(--olive); margin-left: auto; }
.td-comment-body { font-size: 14px; color: var(--sage); line-height: 1.55; }
.td-add-comment { display: flex; flex-direction: column; gap: 8px; }
.td-comment-row { display: flex; gap: 8px; align-items: flex-start; }
.td-comment-row textarea { flex: 1; background: var(--ink-2); border: 1px solid var(--line); color: var(--paper); padding: 10px 14px; font-size: 14px; resize: none; min-height: 72px; outline: none; transition: border-color .15s; }
.td-comment-row textarea:focus { border-color: var(--gold); }
.td-comment-send { background: var(--mint); color: var(--ink); padding: 10px 14px; font-size: 15px; font-weight: 700; margin-top: 2px; transition: background .15s; }
.td-comment-send:hover { background: var(--gold); }
.td-comment-send:disabled { opacity: .4; cursor: not-allowed; }
.td-steps { margin: 20px 0; }
.td-step { display: flex; gap: 14px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.td-step:last-child { border-bottom: none; margin-bottom: 0; }
.td-step-num { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--paper); border: 1px solid var(--line-2); margin-top: 2px; }
.td-step-content { flex: 1; min-width: 0; }
.td-step-title { font-weight: 700; font-size: 15px; color: var(--paper); margin-bottom: 6px; }
.td-step-body { font-size: 14px; color: var(--sage); line-height: 1.65; margin-bottom: 10px; white-space: pre-wrap; }
.td-step-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.td-step-photos img { width: 120px; height: 90px; object-fit: cover; cursor: zoom-in; border: 1px solid var(--line); }
.td-step-video { display: block; position: relative; width: 200px; height: 112px; overflow: hidden; margin-top: 10px; border: 1px solid var(--line); }
.td-step-video img { width: 100%; height: 100%; object-fit: cover; }
.ct-photo-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ct-photo-thumb { position: relative; width: 72px; height: 72px; overflow: hidden; }
.ct-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ct-photo-thumb button { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.7); color: #fff; width: 18px; height: 18px; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.ct-video-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ct-video-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sage); background: var(--ink-2); padding: 6px 10px; }
.ct-video-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-video-item button { color: var(--rot-hell); font-size: 14px; }
.ct-step { background: var(--ink-2); border: 1px solid var(--line); padding: 14px; margin-bottom: 12px; }
.ct-step-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ct-step-num { font-family: var(--mono); font-size: 12px; color: var(--olive); text-transform: uppercase; letter-spacing: .8px; }
.ct-step-media { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.ct-step-media-thumb { position: relative; width: 64px; height: 48px; }
.ct-step-media-thumb img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); }
.ct-step-media-thumb button { position: absolute; top: -4px; right: -4px; background: var(--rot); color: #fff; width: 18px; height: 18px; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.ct-step-photo-btn, .ct-step-video-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 36px; border: 1px dashed var(--line-2); cursor: pointer; font-size: 18px; transition: border-color .15s; }
.ct-step-photo-btn:hover, .ct-step-video-btn:hover { border-color: var(--gold); }
.kb-video-add { display: flex; gap: 8px; margin-bottom: 6px; }
.kb-video-add input { flex: 1; }

/* ── Hinweis, Platzhalter, Gerüst ────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(90px); z-index: 999;
  background: var(--ink-3); color: var(--paper); border: 1px solid var(--line-2); padding: 12px 24px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow); opacity: 0; pointer-events: none; white-space: nowrap;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .3s;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-left: 3px solid var(--paper); }
.toast.error { border-left: 3px solid var(--rot-hell); color: var(--rot-hell); }
.skeleton, .skeleton-card { background: linear-gradient(90deg, var(--ink-3) 25%, var(--surface-2) 50%, var(--ink-3) 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; border: 1px solid var(--line); }
.skeleton { height: 60px; margin-bottom: 10px; }
.skeleton-card { height: 300px; }
.skeleton-list { padding: 20px; }

/* ── „Nur für Mitglieder“: die Karte, die das Skript einsetzt ─────────────── */
.login-gate { position: relative; background: var(--ink-3); border: 1px solid var(--line-2); border-radius: 0; }
.login-gate::before, .login-gate::after { content: ''; position: absolute; pointer-events: none; background: var(--line-2); }
.login-gate::before { left: -11px; top: -1px; width: 46px; height: 1px; }
.login-gate::after  { left: -1px; top: -11px; width: 1px; height: 46px; }
.login-gate h3 { font-size: 22px !important; font-weight: 900; letter-spacing: -.5px; color: var(--paper); }
.login-gate p { color: var(--sage) !important; font-size: 15px; line-height: 1.7; }   /* das Skript setzt ein Grau inline — hier gilt die Farbe der Seite */

/* Die acht Abschnitte der Mitglieder-App liegen im Dokument (app.js braucht sie), sind aber nicht Teil der Seite. */
#sprint, #duels, #showoff, #map, #hazards, #rides, #roads, #mystery { display: none !important; }

/* ── Leaflet (Karten in Fenstern und im versteckten Abschnitt) ───────────── */
.leaflet-container { background: #0A0A0D; font-family: var(--font); }
.leaflet-tile-pane { filter: brightness(.9) contrast(1.05) grayscale(.4); }
.leaflet-popup-content-wrapper { background: var(--ink-3); color: var(--paper); border-radius: 0; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.leaflet-popup-tip { background: var(--ink-3); }
.leaflet-popup-content { margin: 12px 14px; }
.map-popup { min-width: 160px; font-family: var(--font); }
.map-popup strong { display: block; font-size: 13px; margin-bottom: 4px; }
.map-popup div { font-size: 11px; color: var(--sage); margin-top: 2px; }
.leaflet-control-zoom a { background: var(--ink-3) !important; color: var(--paper) !important; border-color: var(--line-2) !important; border-radius: 0 !important; }
.leaflet-bar { border: none !important; box-shadow: var(--shadow) !important; }
.section-map { padding: 0; }
#events-map { height: 520px; width: 100%; border-block: 1px solid var(--line); }

/* ═══════════════════════════════════════════════════════════════════════════
   UNTERSEITEN (Umbau 28.10.2026, zweiter Block)
   Datenschutz, Entwicklung, Werkstatt, Registrieren, Konto löschen, Sneak Peek, Spiel.
   Gleicher Kopf (Leiste + Titelfläche mit Konturen) und gleicher Fuß wie die Startseite.
   Die Konturen kommen als Bild aus compass-kontur.svg, damit sie nicht in jeder Seite stehen.
   Seitenklassen am <body>: pg (alle), pg-ds, pg-entw, pg-ws, pg-rg, pg-dl, pg-sp, pg-spiel.
   Alles, was die Skripte der Seiten selbst bauen (.ws-*, .rg-*, .dl-*, .sp-*, .sg-*, .dv-*,
   .login-gate), ist hier gestaltet — die Skripte bleiben unverändert.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Gerüst: Fuß bleibt unten, auch bei kurzer Seite ─────────────────────── */
body.pg { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.pg > main, body.pg > .pg-main { flex: 1 0 auto; width: 100%; }   /* width: sonst schrumpft main mit margin:auto in der Spalte auf den Inhalt */
body.pg > .footer { flex: none; }
.nav-back { display: inline-flex; align-items: center; gap: 6px; padding: 9px 4px; font-size: 13.5px; font-weight: 500; color: var(--sage); white-space: nowrap; transition: color .15s; }
.nav-back:hover { color: var(--paper); }
.nav-back .pfeil { display: inline-block; transition: transform .25s var(--ease); }
.nav-back:hover .pfeil { transform: translateX(-3px); }
/* Sprachknopf, den die Unterseiten mit „.on“ markieren (die Startseite nimmt „.lang-active“) */
.lang-btn.on { background: var(--forest); color: var(--mint); }

/* ── Titelfläche ─────────────────────────────────────────────────────────── */
.pg-hero {
  position: relative; overflow: hidden; --cut: 44px;
  padding: calc(var(--nav-h) + 52px) 0 calc(var(--cut) + 30px);
  background: radial-gradient(60% 90% at 84% 30%, rgba(201,162,39,.05), transparent 70%), radial-gradient(120% 90% at 88% 16%, #1B1A17 0%, #101010 52%, #08080A 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
/* die schräge Kante bekommt eine feine Linie, wie auf der Startseite */
.pg-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--cut); pointer-events: none;
  background: linear-gradient(to bottom right, transparent calc(50% - 2px), rgba(244,242,238,.22) calc(50% - 2px), rgba(244,242,238,.22) 50%, transparent 50%);
}
.pg-hero::before {
  content: ''; position: absolute; right: -6%; top: -14%; width: 90%; min-width: 760px; aspect-ratio: 1200 / 760;
  background: url(compass-kontur.svg) no-repeat center / contain; opacity: .15; pointer-events: none;
}
.pg-hero-in { position: relative; max-width: 880px; }
.pg-hero-in.schmal { max-width: 720px; }
.pg-hero-in.breit { max-width: 1100px; }
.pg-hero .eyebrow { margin-bottom: 22px; }
.pg-title { font-size: clamp(36px, 5vw, 62px); line-height: 1.02; letter-spacing: -2.2px; font-weight: 900; color: var(--paper); margin-bottom: 18px; text-wrap: balance; }
.pg-lead, .dv-lead { max-width: 60ch; font-size: 17px; color: var(--sage); }
.dv-note, .pg-note { max-width: 62ch; font-size: 13.5px; line-height: 1.7; color: var(--olive); margin-top: 16px; padding-left: 16px; border-left: 1px solid var(--line-2); }
.pg-stand { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--olive); margin: -6px 0 16px; }
.pg-links { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 22px; }
.pg-links a { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 14.5px; font-weight: 500; color: var(--paper); border-bottom: 1px solid var(--line-2); transition: color .15s, border-color .2s; }
.pg-links a:hover { color: var(--gold-hell); border-color: var(--gold); }

.pg-wrap, .dv-wrap { max-width: 880px; margin: 0 auto; padding: 44px 28px 110px; position: relative; }
.pg-wrap.schmal { max-width: 720px; }
.pg-wrap.breit { max-width: 1100px; }
.dv-wrap { padding-top: 56px; }

@media (prefers-reduced-motion: no-preference) {
  .pg-hero-in > * { animation: einblenden .9s var(--ease) backwards; }
  .pg-hero-in > :nth-child(2) { animation-delay: .1s; }
  .pg-hero-in > :nth-child(3) { animation-delay: .2s; }
  .pg-hero-in > :nth-child(4) { animation-delay: .3s; }
  .pg-hero-in > :nth-child(5) { animation-delay: .4s; }
}

/* Überschriften in den Lesespalten: ohne diese Regeln erbt jede Überschrift das Grau des Fließtexts */
.pg-wrap h2, .dv-wrap h2 { color: var(--paper); font-weight: 900; line-height: 1.2; }
.pg-wrap h3 { color: var(--paper); font-weight: 900; }
.pg-wrap a:not(.btn):not(.link), .dv-wrap a:not(.btn) { text-underline-offset: 4px; }
.link-leise { display: inline-flex; gap: 8px; margin-bottom: 26px; font-size: 14px; color: var(--sage); transition: color .15s; }
.link-leise:hover { color: var(--gold-hell); }

/* ── Karten der kleinen Seiten ───────────────────────────────────────────── */
.pg-card { display: block; padding: clamp(24px, 3vw, 36px); }
.pg-card:hover { transform: none; box-shadow: none; }
.pg-card:hover::before { width: 46px; background: var(--line-2); }
.pg-card:hover::after { height: 46px; background: var(--line-2); }
.pg-sub, .rg-sub, .ws-sub { display: flex; align-items: center; gap: 12px; margin: 30px 0 11px; font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: 1.6px; text-transform: uppercase; color: var(--olive); }
.pg-sub::after, .rg-sub::after, .ws-sub::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pg-card > .pg-sub:first-child, .rg-sub:first-child, .ws-sub:first-child { margin-top: 0; }
[lang-block] { display: none; }
[lang-block].on { display: block; }
select.form-input { cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23C4C1BC' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
select.form-input option { background: var(--ink-2); color: var(--paper); }
textarea.form-input { resize: vertical; min-height: 90px; line-height: 1.6; }
.form-input[readonly] { color: var(--sage); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--gold); }

/* ── Datenschutz: Lesetext, eine ruhige Spalte ───────────────────────────── */
.doc { counter-reset: kap; }
.doc h2 { counter-increment: kap; display: flex; align-items: baseline; gap: 14px; margin: 58px 0 10px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.8px; }
.doc h2:first-child { margin-top: 0; }
/* kurzer Strich (Gold, Zierde) und Kapitelnummer vor dem Text: Reihenfolge über order */
.doc h2::before { content: ''; order: -2; width: 22px; height: 1px; background: var(--gold); flex: none; align-self: center; }
.doc h2::after { content: counter(kap, decimal-leading-zero); order: -1; font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 1px; color: var(--olive); }
.doc h3 { margin: 24px 0 4px; font-size: 17px; letter-spacing: -.3px; }
.doc p, .doc li { margin: 10px 0; max-width: 68ch; font-size: 16px; line-height: 1.78; color: var(--sage); }
.doc ul { padding-left: 0; }
.doc li { position: relative; padding-left: 22px; }
.doc li::before { content: ''; position: absolute; left: 0; top: 13px; width: 11px; height: 2px; background: var(--rot-hell); }
.doc strong { color: var(--paper); font-weight: 700; }
.doc em { color: var(--paper); font-style: italic; }
.doc a:not(.btn) { color: var(--gold-hell); text-decoration: underline; text-decoration-thickness: 1px; }
.doc a:not(.btn):hover { text-decoration-thickness: 2px; }
.doc code { font-family: var(--mono); font-size: .9em; color: var(--paper); background: var(--ink-3); border: 1px solid var(--line); padding: 1px 6px; overflow-wrap: anywhere; }
.doc .card { display: block; margin: 26px 0; padding: clamp(22px, 2.4vw, 30px); }
.doc .card h3 { margin: 22px 0 4px; font-size: clamp(17px, 1.6vw, 19px); }
.doc .card h3:first-child { margin-top: 0; }
.doc .card p { max-width: none; font-size: 15px; line-height: 1.72; }
.doc .card:hover { transform: none; box-shadow: none; }
.doc .card:hover::before { width: 46px; background: var(--line-2); }
.doc .card:hover::after { height: 46px; background: var(--line-2); }
html[lang="ja"] .doc h2, html[lang="ja"] .doc h3 { letter-spacing: -.01em; line-height: 1.4; }
html[lang="ja"] .doc p, html[lang="ja"] .doc li { line-height: 1.95; }

/* ── Entwicklung (und Spiel): Chronik an einer Linie ─────────────────────── */
.dv-rail { position: relative; padding-left: 46px; }
.dv-rail:empty { display: none; }
.dv-rail::before { content: ''; position: absolute; left: 10px; top: 8px; bottom: 30px; width: 1px; background: var(--line-2); }
/* der Wegstrich in der Farbe der Zeichnungen (Tachonadel): wächst mit dem Lesen (compass-neu.js setzt --dv-prog) */
.dv-rail::after { content: ''; position: absolute; left: 9px; top: 8px; width: 3px; height: var(--dv-prog, 0px); max-height: calc(100% - 38px); background: var(--nadel); pointer-events: none; }
.dv-entry { position: relative; margin-bottom: 52px; }
.dv-entry::before { content: ''; position: absolute; left: -43px; top: 6px; width: 11px; height: 11px; background: var(--ink); border: 2px solid var(--paper); transform: rotate(45deg); }
.dv-entry.minor::before { width: 8px; height: 8px; left: -41px; top: 8px; border-color: var(--olive); border-width: 1.5px; }
.dv-when { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--olive); }
/* ⚠️ Das Skript der Seite setzt class="dv-title" auf die Überschrift JEDES Eintrags (h2 hier, h3 im Spiel) — deshalb nur im Eintrag */
.dv-entry .dv-title { font-size: clamp(20px, 2.3vw, 25px); font-weight: 900; letter-spacing: -.6px; line-height: 1.25; color: var(--paper); margin: 6px 0 12px; text-wrap: balance; }
.dv-body { color: var(--sage); font-size: 15px; line-height: 1.7; max-width: 68ch; }
.dv-body p { margin: 0 0 11px; }
.dv-body b { color: var(--paper); font-weight: 700; }
.dv-body code, .dv-apk code { font-family: var(--mono); font-size: .9em; color: var(--paper); background: var(--ink-3); border: 1px solid var(--line); padding: 1px 6px; }
.dv-body ul { margin: 0; }
.dv-body li { position: relative; margin: 0 0 6px; padding-left: 20px; }
.dv-body li::before { content: ''; position: absolute; left: 0; top: 12px; width: 10px; height: 2px; background: var(--rot-hell); }
.dv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.dv-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; padding: 3px 9px; color: var(--olive); border: 1px solid var(--line); }
.dv-tag.v { color: var(--paper); border-color: var(--line-2); }
.dv-apk { margin-top: 10px; font-size: 12.5px; color: var(--olive); }
.dv-kicker { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; color: var(--olive); }
.dv-wait { margin: 30px 0; color: var(--olive); }
.dv-foot { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 13px; color: var(--olive); text-align: center; }

/* Bilder je Eintrag. Entwicklung: kleine Telefone; Spiel: 16:9 zu zweit. */
.dv-shots { margin: 18px 0 0; }
.dv-shot { margin: 0; }
.dv-shot figcaption { font-size: 11.5px; line-height: 1.45; color: var(--olive); }
body.pg-entw .dv-shots { display: flex; flex-wrap: wrap; gap: 16px; }
body.pg-entw .dv-shot { width: 150px; }
body.pg-entw .dv-shot img { width: 100%; height: auto; padding: 5px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(160deg, #202025 0%, #0E0E11 60%); box-shadow: 0 18px 38px -16px rgba(0,0,0,.8); }
body.pg-entw .dv-shot figcaption { margin-top: 8px; text-align: center; }
body.pg-spiel .dv-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
body.pg-spiel .dv-shot { position: relative; }
body.pg-spiel .dv-shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink-2); border: 1px solid var(--line); }
body.pg-spiel .dv-shot::before { content: ''; position: absolute; left: -9px; top: -1px; width: 34px; height: 1px; background: var(--line-2); z-index: 1; }
body.pg-spiel .dv-shot::after { content: ''; position: absolute; left: -1px; top: -9px; width: 1px; height: 34px; background: var(--line-2); z-index: 1; }
body.pg-spiel .dv-shot figcaption { margin-top: 8px; }
body.pg-spiel #sg-content > h2 { margin: 56px 0 28px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.8px; display: flex; align-items: center; gap: 14px; }
body.pg-spiel #sg-content > h2::before { content: ''; width: 22px; height: 1px; background: var(--gold); flex: none; }

/* Zugang zur Seite sperren: Karte, die das Skript einsetzt (Entwicklung, Sneak Peek, Spiel) */
.pg-wrap > .login-gate, .dv-wrap > .login-gate, #sp-content .login-gate, #sg-content .login-gate { margin-top: 20px; }

/* Spiel: der Kasten mit der aktuellen Fassung (APK, Windows-Installer) */
.sg-apk { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 0 0 22px; padding: 22px 26px; background: var(--ink-3); border: 1px solid var(--line); }
.sg-apk::before { content: ''; position: absolute; left: -11px; top: -1px; width: 46px; height: 1px; background: var(--line-2); pointer-events: none; }
.sg-apk::after { content: ''; position: absolute; left: -1px; top: -11px; width: 1px; height: 46px; background: var(--line-2); pointer-events: none; }
.sg-apk .what { flex: 1; min-width: 240px; }
.sg-apk .ver { margin-top: 6px; font-family: var(--mono); font-size: 24px; font-weight: 400; letter-spacing: -.5px; color: var(--paper); }
.sg-apk .meta { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--olive); }
.sg-apk .msg { margin-top: 10px; min-height: 1em; font-size: 13px; color: var(--sage); }
.sg-apk .btn { flex: none; }
#sg-content > .dv-lead { margin: 30px 0 0; }
#sg-content > .dv-note { margin: 14px 0 34px; }

/* Sneak Peek: Seite, die die API befüllt */
.sp-lead { max-width: 64ch; margin: 0 0 40px; font-size: 17px; line-height: 1.7; color: var(--sage); }
.sp-sec { margin: 0 0 64px; }
.sp-sec h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.8px; }
.sp-sec h2::before { content: ''; width: 22px; height: 1px; background: var(--gold); flex: none; }
.sp-body { max-width: 66ch; font-size: 15.5px; line-height: 1.75; color: var(--sage); }
.sp-body p { margin: 0 0 11px; }
.sp-shots { display: grid; gap: 22px; margin: 22px 0 0; }
.sp-shot { position: relative; margin: 0; }
.sp-shot img { width: 100%; display: block; aspect-ratio: 1600 / 738; object-fit: cover; background: var(--ink-2); border: 1px solid var(--line); }
.sp-shot::before { content: ''; position: absolute; left: -9px; top: -1px; width: 34px; height: 1px; background: var(--line-2); z-index: 1; }
.sp-shot::after { content: ''; position: absolute; left: -1px; top: -9px; width: 1px; height: 34px; background: var(--line-2); z-index: 1; }
.sp-shot figcaption { margin-top: 9px; font-size: 12.5px; line-height: 1.5; color: var(--olive); }
.sp-note { max-width: 70ch; margin: 10px 0 6px; font-size: 13.5px; line-height: 1.7; color: var(--olive); padding-left: 16px; border-left: 1px solid var(--line-2); }
.sp-credit { margin-top: 14px; font-size: 12px; color: var(--olive); }
.sp-wait { margin: 30px 0; color: var(--olive); }

/* ── Werkstatt: Liste, Kalender, Anfrage ─────────────────────────────────── */
.ws-lead { max-width: 62ch; }
.ws-grid { display: grid; gap: clamp(18px, 2.2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
/* Die Karten und die freien Tage sind echte <button>: per Tab erreichbar, mit Tastatur zu drücken */
.ws-card { position: relative; display: block; width: 100%; padding: 22px 24px; text-align: left; font: inherit; color: inherit; cursor: pointer;
           background: var(--ink-3); border: 1px solid var(--line); border-radius: 0;
           transition: border-color .3s, transform .35s var(--ease), box-shadow .35s; }
.ws-card::before, .ws-card::after { content: ''; position: absolute; pointer-events: none; background: var(--line-2); transition: width .45s var(--ease), height .45s var(--ease), background-color .35s; }
.ws-card::before { left: -11px; top: -1px; width: 46px; height: 1px; }
.ws-card::after { left: -1px; top: -11px; width: 1px; height: 46px; }
.ws-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 14px 34px -14px rgba(0,0,0,.7); }
.ws-card:hover::before, .ws-card.on::before { width: 96px; background: var(--gold); }
.ws-card:hover::after, .ws-card.on::after { height: 96px; background: var(--gold); }
.ws-card.on { border-color: var(--paper); background: #1B1B21; }
.ws-card:focus-visible, .ws-day:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.ws-card h3 { margin: 0 0 3px; font-size: 19px; font-weight: 900; letter-spacing: -.4px; line-height: 1.25; color: var(--paper); }
.ws-city { font-size: 13.5px; color: var(--olive); }
.ws-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ws-chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; padding: 3px 9px; color: var(--sage); border: 1px solid var(--line-2); }
.ws-empty { padding: 26px 0; color: var(--olive); }
.ws-panel { position: relative; margin-top: 40px; padding: clamp(24px, 3vw, 38px); background: var(--ink-3); border: 1px solid var(--line-2); border-radius: 0; }
.ws-panel::before { content: ''; position: absolute; left: -11px; top: -1px; width: 46px; height: 1px; background: var(--line-2); pointer-events: none; }
.ws-panel::after { content: ''; position: absolute; left: -1px; top: -11px; width: 1px; height: 46px; background: var(--line-2); pointer-events: none; }
#ws-name { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.9px; color: var(--paper); font-weight: 900; }
#ws-desc { max-width: 62ch; margin: 14px 0 0; color: var(--sage); }
.ws-blurb { margin: 0 0 14px; font-size: 13.5px; line-height: 1.65; color: var(--sage); }
.ws-blurb strong { color: var(--paper); }
.ws-label.ws-check { display: flex; align-items: center; gap: 10px; margin-bottom: 0; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--sage); cursor: pointer; }
.ws-monthbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; max-width: 560px; }
.ws-monthbar strong { flex: 1; font-size: 16px; font-weight: 900; color: var(--paper); letter-spacing: -.2px; }
.ws-monthbar .btn { padding: 7px 16px; font-size: 15px; }
.ws-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 560px; }
.ws-dow { padding: 2px 0 6px; text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--olive); }
.ws-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font: inherit; font-family: var(--mono); font-size: 14px; color: var(--slate); background: transparent; border: 1px solid var(--line); border-radius: 0; }
/* frei = Rahmen und helle Zahl; vergeben = durchgestrichen (nicht nur eine Farbe); gewählt = gefüllt */
.ws-day.free { color: var(--paper); border-color: rgba(244,242,238,.42); background: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.ws-day.free:hover { border-color: var(--gold); background: #1F1F26; transform: translateY(-1px); }
.ws-day.taken { color: var(--slate); text-decoration: line-through; background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(244,242,238,.05) 5px 6px); }
.ws-day.on { background: var(--mint); color: var(--ink); border-color: var(--mint); font-weight: 700; }
.ws-day.pad { background: transparent; border: 0; }
.ws-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; max-width: 560px; font-size: 12.5px; color: var(--sage); }
.ws-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 7px; vertical-align: -2px; border: 1px solid var(--line-2); }
.ws-legend .lg-free { background: var(--ink-2); border-color: rgba(244,242,238,.42); }
.ws-legend .lg-taken { background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(244,242,238,.35) 3px 4px); border-color: var(--slate); }
.ws-legend .lg-picked { background: var(--mint); border-color: var(--mint); }
.ws-form { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.ws-form .full { grid-column: 1 / -1; }
.ws-label { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .3px; color: var(--olive); }
.ws-label input[type="checkbox"] { width: 16px; height: 16px; flex: none; }
.ws-note { margin: 22px 0 0; padding: 4px 0 4px 16px; max-width: 62ch; font-size: 13.5px; line-height: 1.7; color: var(--olive); border-left: 1px solid var(--line-2); }
.ws-msg, .rg-msg, .dl-msg { display: none; margin-top: 16px; padding: 12px 16px; font-size: 13.5px; line-height: 1.6; color: var(--paper); background: var(--ink-2); border-left: 2px solid var(--line-2); }
.ws-msg.err, .rg-msg.err, .dl-msg.err { display: block; border-left-color: var(--rot-hell); }
.ws-msg.ok, .rg-msg.ok, .dl-msg.ok { display: block; border-left-color: var(--paper); }
.dl-msg.done { display: block; border-left-color: var(--rot-hell); font-weight: 700; }
/* Meine Termine */
.ws-book { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px; margin-bottom: 10px; background: var(--ink-3); border: 1px solid var(--line); }
.ws-book b, .ws-book div[style*="font-weight"] { color: var(--paper); }
.ws-status { flex: none; padding: 3px 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--line-2); }
.st-pending { color: var(--olive); }
.st-accepted { color: var(--ink); background: var(--mint); border-color: var(--mint); }
.st-declined { color: var(--rot-hell); border-color: var(--rot-hell); text-decoration: line-through; }
#ws-mine-wrap { margin-top: 56px; }
#ws-login .modal-box { width: min(420px, 94vw); }
#ws-login .ws-msg { margin-top: 12px; }

/* ── Registrieren, Konto löschen ─────────────────────────────────────────── */
.rg-types { display: grid; gap: 10px; }
.rg-type { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 14px 16px; background: var(--ink-2); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.rg-type:hover { border-color: var(--line-2); }
.rg-type.on { border-color: var(--paper); background: var(--ink-3); }
.rg-type input { margin: 3px 0 0; flex: none; }
.rg-type b { display: block; font-size: 14.5px; font-weight: 900; color: var(--paper); }
.rg-type span { font-size: 13px; color: var(--sage); }
.rg-label, .dl-label { display: block; margin: 0 0 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .3px; color: var(--olive); }
.rg-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; font-size: 13.5px; color: var(--sage); cursor: pointer; }
.rg-consent input { margin: 3px 0 0; flex: none; }
.rg-consent a, .rg-legal .body a { color: var(--gold-hell); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rg-legal { margin-top: 34px; }
.rg-legal details { background: var(--ink-3); border: 1px solid var(--line); padding: 0 20px; margin-bottom: 12px; transition: border-color .2s; }
.rg-legal details[open] { border-color: var(--line-2); }
.rg-legal summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 700; color: var(--paper); }
.rg-legal summary::-webkit-details-marker { display: none; }
.rg-legal summary::after { content: '+'; color: var(--gold); font-family: var(--mono); font-size: 18px; font-weight: 400; }
.rg-legal details[open] summary::after { content: '−'; }
.rg-legal .body { padding: 0 0 18px; font-size: 14px; line-height: 1.7; color: var(--sage); }
.rg-legal .body p { margin: 0 0 10px; }
.rg-legal dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 14px; }
.rg-legal dt { color: var(--olive); }
.rg-legal dd { margin: 0; color: var(--sage); }
.rg-legal a:focus-visible, .rg-legal summary:focus-visible { outline-offset: 4px; }

.dl-step { display: none; }
.dl-step.on { display: block; }
/* Die Warnung ist der Punkt der Seite, keine Fußnote: Rot als Randlinie, die Liste mit roten Strichen */
.dl-warn { margin: 0 0 32px; padding: 6px 0 6px 20px; border-left: 2px solid var(--rot-hell); }
.dl-warn h2 { margin: 0 0 12px; font-size: 17px; font-weight: 900; letter-spacing: -.3px; color: var(--paper); }
.dl-warn ul { display: grid; gap: 4px; margin: 0; }
.dl-warn li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 22px; color: var(--sage); }
.dl-warn li::before { content: ''; position: absolute; left: 0; top: 10px; width: 11px; height: 2px; background: var(--rot-hell); }
.dl-warn b { color: var(--paper); }
.dl-code { letter-spacing: .38em; font-family: var(--mono); font-size: 20px; text-align: center; font-weight: 400; }
.dl-done { padding: 14px 0 6px; text-align: center; }
.dl-done .mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; font-size: 24px; line-height: 1; color: var(--paper); border: 1px solid var(--line-2); }
.dl-sent { margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: var(--sage); }
.dl-done h2 { margin: 0 0 12px; color: var(--paper); font-weight: 900; }   /* Abstand zum Absatz: ohne ihn klebt die Meldung an der Überschrift */
.dl-done p { max-width: 52ch; margin-inline: auto; }
.dl-foot-text { margin-top: 26px; max-width: 62ch; font-size: 13px; line-height: 1.7; color: var(--olive); }
.dl-foot-text a { color: var(--gold-hell); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ── Japanisch: keine negative Laufweite auf Kana/Kanji, mehr Zeilenhöhe, ruhigere Mono-Beschriftungen ── */
html[lang="ja"] body { line-height: 1.85; }
html[lang="ja"] .hero-sub, html[lang="ja"] .sec-sub, html[lang="ja"] .card p, html[lang="ja"] .showcase-text p, html[lang="ja"] .wp-block p { line-height: 1.9; }
html[lang="ja"] .sec-title, html[lang="ja"] .card h3, html[lang="ja"] .showcase-text h3, html[lang="ja"] .game-split h3,
html[lang="ja"] .wp-h, html[lang="ja"] .ms-name, html[lang="ja"] .sub-h, html[lang="ja"] .login-gate h3 { letter-spacing: -.01em; line-height: 1.35; }
html[lang="ja"] .eyebrow, html[lang="ja"] .stat-label, html[lang="ja"] .ribbon-in, html[lang="ja"] .card-kicker, html[lang="ja"] .sec-label,
html[lang="ja"] .shot figcaption span, html[lang="ja"] .mobile-nav-head { letter-spacing: .06em; }
html[lang="ja"] .btn, html[lang="ja"] .btn-quiet { letter-spacing: .02em; }

/* ── Schmale Fenster ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .showcase { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .showcase-phone { --pw: 230px; }
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .btn-beta { display: none !important; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.c3, .cards.c6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .houses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-card:nth-child(4) { border-left: 0; }
  .stat-card:nth-child(n+4) { border-top: 1px solid var(--line); }
  .stat-card:nth-child(4)::before { left: 0; }
}
@media (max-width: 980px) {
  .emb .e-kmh-u { font-size: 10.5px; }   /* das Zeichen ist hier 420 px breit statt 540: die Schrift in Zeichnungseinheiten waechst mit */
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-emblem { justify-self: center; width: min(420px, 86vw); order: 2; }
  .hero { padding-bottom: 120px; }
  .events-layout, .game-split, .wp-grid { grid-template-columns: 1fr; }
  .wp-grid .sec-head { position: static; margin-bottom: 30px; }
  .ms-grid { grid-template-columns: 1fr; max-width: 560px; }
  .ms-how { grid-template-columns: 1fr; }
  .cards.c2 { grid-template-columns: 1fr; }
  .game-row, .game-row.zwei { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .app-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sec { padding: 72px 0; }
  .sec-stats { padding: 40px 0 16px; }
  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 64px; --cut: 44px; }
  .hero-bg svg { right: -40%; opacity: .18; }
  .wrap, .nav-inner, .dv-wrap { padding-left: 20px; padding-right: 20px; }
  .cards, .cards.c3, .cards.c6, .cards.c2, .houses { grid-template-columns: 1fr; }
  .market-grid, .kb-grid, .news-grid, .rankings-list { grid-template-columns: 1fr; }
  .form-2col { grid-template-columns: 1fr; gap: 0; }
  .pg-hero { padding-top: calc(var(--nav-h) + 34px); padding-bottom: 26px; }
  .pg-wrap { padding: 32px 20px 80px; }
  .pg-hero::before, .dv-hero::before { right: -40%; opacity: .12; }
  .rg-legal dl { grid-template-columns: 1fr; gap: 2px 0; }
  .sec-head { margin-bottom: 38px; }
  .emb .e-meta-d { display: none; }
  .emb .e-meta-t { font-size: 13px; }
  .emb .e-num { font-size: 13px; }
  .emb .e-kmh-u { font-size: 13px; letter-spacing: .4px; }
  .rdr .r-meta-d { display: none; }   /* wie beim Emblem: die Zweitbeschriftung entfaellt, die Ringe sagen die Skala */
  .rdr .r-t, .rdr .r-lab { font-size: 13.5px; }
  /* D1: gesperrte Zeile schmal: Knopf unter den Text */
  section[id] > .login-gate:not([style*="display: none"]) { width: calc(100% - 40px) !important; max-width: none !important; grid-template-columns: 1fr; grid-template-areas: "t" "p" "b"; gap: 4px; padding: 16px 18px !important; }
  section[id] > .login-gate:not([style*="display: none"]) .btn { justify-self: start; margin-top: 10px; }
  .dv-rail { padding-left: 38px; }
  .dv-entry::before { left: -35px; } .dv-entry.minor::before { left: -33px; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .showcase-phone { --pw: min(260px, 78vw); flex-basis: auto; width: var(--pw); align-self: center; }
  .showcase-phone::before, .showcase-phone::after { display: none; }
  .app-gallery { grid-template-columns: 1fr; gap: 42px; justify-content: center; }
  .app-gallery figure { max-width: 270px; margin-inline: auto; }
  .app-gallery figure:nth-child(2) { margin-top: 0; }
  .game-row, .game-row.zwei { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card:nth-child(n) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .stat-card:nth-child(odd) { border-left: 0; }
  .stat-card:nth-child(-n+2) { border-top: 0; }
  .stat-card::before { left: -1px; }
  .stat-card:nth-child(odd)::before { left: 0; }
  .stat-card { padding: 20px 16px 18px; }
  .rankings-header-right { justify-content: flex-start; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .nav-logo span { display: none; }
  .nav-inner { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn:not(#user-signin-btn):not(.nav-keep) { display: none !important; }   /* .nav-keep: Knöpfe der Unterseiten (Werkstatt: Anmelden) */
  .nav-actions .btn#user-signin-btn, .nav-actions .btn.nav-keep { padding: 7px 14px; }
  .lang-btn { padding: 7px 8px; }
  .user-badge { max-width: clamp(36px, calc(100vw - 272px), 140px); }
  .hero-btns .btn { flex: 1 1 100%; }
  .download-hint { min-height: 5.1em; }   /* der Hinweis wechselt alle 5 s zwischen DE und EN: drei Zeilen reservieren, damit nichts darunter springt */
  .hero-title { letter-spacing: -2px; }
  .ribbon-in { gap: 6px 22px; font-size: 10.5px; }
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal-overlay > .modal, .modal-overlay > .modal-card { max-height: 92vh; }
  .toast { white-space: normal; width: calc(100% - 32px); text-align: center; }
  .events-layout { gap: 24px; }
  .calendar-card { padding: 16px; }
  .kb-vehicle-row { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
  .kb-vehicle-field { flex: 1 1 100%; }
  .kb-year-input { flex: 1 1 0; width: auto; }
  .kb-clear-btn { flex: 0 0 48px; padding: 0; height: auto; }
  .td-step-photos img { width: 90px; height: 68px; }
}

@media (max-width: 380px) {
  .emb .e-meta-t, .emb .e-num, .emb .e-kmh-u, .rdr .r-t, .rdr .r-lab { font-size: 15px; }
}

/* ── Unterseiten, schmale Fenster ────────────────────────────────────────── */
@media (max-width: 900px) {
  .ws-form { grid-template-columns: 1fr; }
  body.pg-spiel .dv-shots { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dv-wrap { padding: 40px 20px 80px; }
  .pg-hero { --cut: 30px; padding-bottom: calc(var(--cut) + 22px); }
  .pg-title { letter-spacing: -1.6px; }
  .pg-lead, .dv-lead { font-size: 16px; }
  .doc p, .doc li { font-size: 15.5px; }
  .ws-panel { padding: 22px 18px; }
  .ws-cal { gap: 4px; }
  .sg-apk { padding: 20px 20px; }
  .sg-apk .btn { width: 100%; }
}
@media (max-width: 600px) {
  /* nur der Pfeil bleibt sichtbar; der Text bleibt für Vorlesegeräte */
  .nav-back .rest { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.pg-entw .dv-shot { width: calc(50% - 8px); }
  .rg-legal details { padding: 0 16px; }
  .ws-book { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; } .navbar { display: none; } }
