/* =========================================================
   eysec – Design-System „Stellwerk“ (siehe CLAUDE.md)
   ========================================================= */

/* ---------- 1. Schriften (lokal) ---------- */
@font-face { font-family: "Big Shoulders"; src: url("fonts/bigshoulders.woff2") format("woff2"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("fonts/hanken.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("fonts/hanken-kursiv.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrainsmono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ---------- 2. Tokens ---------- */
:root {
  --tafel: #EEF1F5;
  --tafel-tief: #E2E7EE;
  --tafel-hell: #F8FAFC;
  --graphit: #0E1215;
  --graphit-2: #1A2026;
  --graphit-3: #36404B;
  --spur: #0A6FDB;          /* Markenblau für Flächen mit weißer Schrift (Kontrast ≥ 4,5) */
  --spur-hell: #5AB0FF;     /* Markenblau auf dunklem Grund */
  --marke: #0287FE;         /* Logo-Blau (Visitenkarte) */
  --signal: #E7A21C;        /* nur Status: prüfe/gestört */
  --lampe: #3DB874;         /* nur Status: läuft */
  --grau: #56616D;
  /* fest: Flächen, die in beiden Modi dunkel bleiben (Stellwerk, Spiele, Kontakt …) */
  --nacht: #0E1215;
  --nacht-2: #171D23;
  --nacht-3: #28313B;
  --hell: #EEF2F6;
  --grau-hell: #A5AFBA;
  --linie: rgba(14, 18, 21, .14);
  --linie-hell: rgba(232, 237, 242, .14);

  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --text: "Hanken", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --rand: clamp(16px, 4vw, 40px);
  --breite: 1240px;
  --radius: 6px;
  --radius-karte: 10px;
  --kopf-hoehe: 68px;
  --schatten: 0 1px 0 rgba(255,255,255,.6) inset, 0 1px 2px rgba(14,18,21,.08), 0 8px 24px -12px rgba(14,18,21,.25);
}

/* ---------- 3. Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-hoehe) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--tafel); color: var(--graphit);
  font-family: var(--text); font-size: 1rem; line-height: 1.6;
  overflow-wrap: break-word; hyphens: auto;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--spur); text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .98; letter-spacing: .005em; margin: 0; text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 5.2vw, 4rem); max-width: 22ch; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--marke); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--marke); color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--nacht); color: var(--hell); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { left: 8px; }

.huelle { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }

.etikett {
  font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--grau); margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .6em;
}
.etikett::before { content: ""; width: 1.6em; height: 2px; background: currentColor; flex: none; }

/* ---------- 4. Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em; border-radius: var(--radius);
  background: var(--spur); color: #fff; border: 2px solid var(--spur);
  font-family: var(--text); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.knopf:hover { background: var(--nacht); border-color: var(--nacht); }
.knopf--rahmen { background: transparent; color: var(--graphit); border-color: var(--graphit); }
.knopf--rahmen:hover { background: var(--nacht); color: var(--hell); }
.knopf--klein { min-height: 42px; padding: .45em 1em; font-size: .92rem; }
.knopf--signal { background: var(--marke); border-color: var(--marke); color: #fff; }
.knopf--signal:hover { background: var(--hell); border-color: var(--hell); color: var(--nacht); }
.knopf--hell { background: var(--hell); border-color: var(--hell); color: var(--nacht); }
.knopf--hell:hover { background: var(--marke); border-color: var(--marke); }
@media (max-width: 34rem) { .knopf { white-space: normal; max-width: 100%; text-align: center; } }

.link-knopf {
  background: none; border: 0; padding: .5em 0; min-height: 44px; cursor: pointer;
  font: 700 .95rem var(--text); color: var(--spur); text-decoration: underline; text-underline-offset: .25em;
}
.link-aussen, .link-still { font-family: var(--mono); font-size: .8rem; color: var(--grau); }
.link-aussen { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.link-aussen::after { content: "↗"; margin-left: .35em; }
.link-aussen:hover { color: var(--spur); }

.marken { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.marken li {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .04em;
  padding: .25em .6em; border: 1px solid var(--linie); border-radius: 3px; color: var(--grau);
}

/* ---------- 5. Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50; height: var(--kopf-hoehe);
  background: rgba(232,237,242, .94); border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.kopf.gescrollt { border-bottom-color: var(--linie); background: rgba(232,237,242, .98); }
.kopf__innen { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marke {
  display: inline-flex; align-items: center; gap: .45em; text-decoration: none; color: var(--graphit);
  font-family: var(--display); font-weight: 900; font-size: 1.9rem; letter-spacing: .02em; line-height: 1;
  min-height: 44px;
}
.marke__lampe {
  width: .42em; height: .42em; border-radius: 50%; background: var(--lampe);
  box-shadow: 0 0 0 3px rgba(61,184,116,.22), 0 0 12px rgba(61,184,116,.7);
}
.nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.8rem); }
.nav a:not(.knopf) {
  color: var(--graphit); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .6em 0; border-bottom: 2px solid transparent;
}
.nav a:not(.knopf):hover { border-bottom-color: var(--spur); }
.nav .knopf { color: #fff; }
.burger { display: none; }

@media (max-width: 1080px) {
  .burger {
    display: grid; place-content: center; gap: 5px; width: 48px; height: 48px;
    background: none; border: 1px solid var(--linie); border-radius: var(--radius); cursor: pointer;
  }
  .burger span { width: 22px; height: 2px; background: var(--graphit); transition: transform .25s, opacity .25s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--kopf-hoehe) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--tafel); padding: .5rem var(--rand) 1.5rem; border-bottom: 1px solid var(--linie);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.3);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.offen { visibility: visible; opacity: 1; transform: none; }
  .nav a:not(.knopf) { padding: .9em 0; border-bottom: 1px solid var(--linie); font-size: 1.05rem; }
  .nav .knopf { margin-top: 1rem; }
}

/* ---------- 6. Hero + Stellpult (Signatur) ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero__raster { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__titel { font-size: clamp(3.2rem, 8.4vw, 7.2rem); line-height: .9; margin-bottom: 1.4rem; }
.hero__titel span { color: var(--spur); }
.hero__lead { font-size: 1.12rem; max-width: 36rem; color: var(--graphit-3); }
.hero__knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.4rem; }
.kennzahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--linie); }
.kennzahlen div { padding: 1rem .8rem 0 0; display: flex; flex-direction: column-reverse; }
.kennzahlen div + div { padding-left: .9rem; border-left: 1px solid var(--linie); }
.kennzahlen dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.kennzahlen dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--grau); margin-top: .35rem; hyphens: manual; }

.pult {
  margin: 0; background: var(--nacht); color: var(--hell); border-radius: 14px;
  padding: 1.1rem 0 0; box-shadow: 0 30px 60px -30px rgba(14,18,21,.55), 0 0 0 1px rgba(0,0,0,.4);
  position: relative; overflow: hidden;
}
.pult::before { /* Blechkante */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 6px var(--nacht-2);
}
.pult__kopf {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0 1.4rem .9rem; border-bottom: 1px solid var(--linie-hell);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
}
.pult__schild { background: var(--tafel); color: var(--graphit); padding: .25em .6em; border-radius: 2px; font-weight: 700; }
.pult__uhr { color: var(--marke); font-variant-numeric: tabular-nums; letter-spacing: .08em; font-size: .9rem; }
.pult__gleise { list-style: none; margin: 0; padding: .4rem 0; }

.gleis {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "lampe name status" "lampe domain status";
  column-gap: .9rem; padding: .48rem 1.4rem; cursor: pointer;
  border-bottom: 1px solid rgba(232,237,242,.06);
}
.gleis:last-child { border-bottom: 0; }
.gleis:hover, .gleis:focus-visible { background: var(--nacht-2); }
/* das Gleis: eine Linie hinter der Zeile, leuchtet bei „läuft“ */
.gleis::before {
  content: ""; position: absolute; left: 1.4rem; right: 1.4rem; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--nacht-3), var(--nacht-3)); transition: background .6s;
}
.gleis.laeuft::before { background: linear-gradient(90deg, rgba(61,184,116,.55), rgba(2,135,254,.35) 60%, rgba(2,135,254,.1)); }
.gleis::after { /* der „Zug“: ein Lichtpunkt, der einmal über das Gleis fährt */
  content: ""; position: absolute; bottom: -2px; left: 1.4rem; width: 40px; height: 6px; border-radius: 3px;
  background: radial-gradient(closest-side, #fff, rgba(61,184,116,.8), transparent); opacity: 0;
}
.gleis.zug::after { animation: zug 1.4s cubic-bezier(.4,.1,.3,1) forwards; }
@keyframes zug { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(calc(var(--gleisbreite, 400px) - 40px)); } }

.gleis__lampe {
  grid-area: lampe; width: 14px; height: 14px; border-radius: 50%;
  background: #3B4652; box-shadow: inset 0 -2px 3px rgba(0,0,0,.4);
}
.gleis.pruefe .gleis__lampe { background: var(--signal); animation: blinken .9s steps(2, jump-none) infinite; }
.gleis.laeuft .gleis__lampe { background: var(--lampe); box-shadow: 0 0 0 3px rgba(61,184,116,.2), 0 0 14px rgba(61,184,116,.85); }
.gleis.stoerung .gleis__lampe { background: var(--signal); box-shadow: 0 0 10px rgba(231,162,28,.7); }
@keyframes blinken { 0% { opacity: 1; } 100% { opacity: .25; } }

.gleis__name { grid-area: name; font-family: var(--display); font-weight: 700; font-size: 1.22rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; }
.gleis__art { display: none; }
.gleis__domain { grid-area: domain; font-family: var(--mono); font-size: .74rem; color: var(--grau-hell); }
.gleis__status {
  grid-area: status; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--grau-hell); text-align: right; min-width: 8.5em;
}
.gleis.laeuft .gleis__status { color: var(--lampe); }
.gleis.stoerung .gleis__status { color: var(--signal); }
@media (min-width: 1100px) {
  .gleis { grid-template-columns: 22px minmax(0, 1fr) auto auto; grid-template-areas: "lampe name art status" "lampe domain art status"; }
  .gleis__art { display: block; grid-area: art; font-family: var(--mono); font-size: .68rem; color: var(--grau-hell); text-transform: uppercase; letter-spacing: .06em; padding-right: .4rem; }
}
.pult__fuss {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .7rem 1.4rem; background: var(--nacht-2);
  font-family: var(--mono); font-size: .76rem; color: var(--grau-hell);
}
#pult-summe strong { color: var(--lampe); font-weight: 700; }
.pult__neu {
  background: none; border: 1px solid var(--linie-hell); color: var(--hell); border-radius: 4px;
  font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: .5em .9em; min-height: 40px; cursor: pointer;
}
.pult__neu:hover { border-color: var(--marke); color: var(--marke); }

@media (max-width: 960px) {
  .hero__raster { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kennzahlen div:nth-child(3) { border-left: 0; padding-left: 0; }
  .kennzahlen div:nth-child(n+3) { border-top: 1px solid var(--linie); margin-top: 1rem; }
  .gleis { padding-inline: 1rem; column-gap: .7rem; }
  .gleis::before { left: 1rem; right: 1rem; }
  .gleis__status { min-width: 0; font-size: .66rem; }
  .pult__kopf, .pult__fuss { padding-inline: 1rem; }
}

/* ---------- 7. Sektionen ---------- */
.sektion { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.sektion--dunkel { background: var(--nacht); color: var(--hell); }
.sektion--dunkel .etikett { color: var(--grau-hell); }
.sektion--dunkel a:not(.knopf) { color: var(--spur-hell); }
.sektion--dunkel .marken li { border-color: var(--linie-hell); color: var(--grau-hell); }
.sektion--dunkel .link-knopf { color: var(--spur-hell); }
.sektion--dunkel .link-aussen, .sektion--dunkel .link-still { color: var(--grau-hell); }
.sektion--tief { background: var(--tafel-tief); }
.sektion__kopf { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sektion__lead { font-size: 1.1rem; max-width: 44rem; margin-top: 1.2rem; color: var(--graphit-3); }
.sektion--dunkel .sektion__lead { color: var(--grau-hell); }

/* Software (4 Produkte, 2×2) */
.produkte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.produkt { display: flex; flex-direction: column; background: var(--nacht-2); border-radius: var(--radius-karte); padding: 12px 12px 1.2rem; border: 1px solid var(--linie-hell); }
.produkt__bild { border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; background: #000; margin-bottom: 1.2rem; }
.produkt__bild img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.produkt > :not(.produkt__bild) { margin-inline: .5rem; }
.produkt__art, .ref__art { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--marke); margin-bottom: .4rem; }
.produkt h3 { font-size: 2.2rem; margin-bottom: .7rem; }
.produkt p:not(.produkt__art) { color: var(--grau-hell); font-size: .98rem; }
.produkt__fuss, .ref__fuss { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--linie-hell); padding-top: .4rem; }
.software__dach { margin-top: 2.2rem; font-family: var(--mono); font-size: .85rem; color: var(--grau-hell); }
@media (max-width: 960px) { .produkte { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* Referenzen */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: -1rem 0 2rem; }
.filter__chip {
  font: 600 .92rem var(--text); color: var(--graphit); background: transparent; cursor: pointer;
  border: 1.5px solid var(--linie); border-radius: 999px; padding: .5em 1.1em; min-height: 44px;
}
.filter__chip span { font-family: var(--mono); font-size: .75rem; color: var(--grau); margin-left: .3em; }
.filter__chip[aria-pressed="true"] { background: var(--nacht); color: var(--hell); border-color: var(--nacht); }
.filter__chip[aria-pressed="true"] span { color: var(--marke); }

.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.ref { display: flex; flex-direction: column; background: var(--tafel-hell); border-radius: var(--radius-karte); padding: 12px 12px 1.1rem; box-shadow: var(--schatten); }
.ref > :not(.ref__bilder) { margin-inline: .5rem; }
.ref__bilder { position: relative; margin-bottom: 1.3rem; padding-right: 14%; }
.ref__gross { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; background: var(--nacht); }
.ref__handy {
  position: absolute; right: 0; bottom: -10px; width: 26%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top;
  border-radius: 9px; border: 3px solid var(--nacht); background: var(--nacht); box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
}
.ref h3 { font-size: 2rem; margin-bottom: .6rem; }
.ref p:not(.ref__art) { font-size: .98rem; color: var(--graphit-3); }
.ref__art { color: var(--spur); }
.ref__fuss { border-top-color: var(--linie); }
@media (max-width: 960px) { .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .refs { grid-template-columns: minmax(0, 1fr); } }

/* Im Detail */
.vergleich { border-radius: var(--radius-karte); overflow: hidden; background: var(--tafel-hell); box-shadow: var(--schatten); }
.vergleich__zeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.vergleich__zeile span { padding: 1rem 1.3rem; border-top: 1px solid var(--linie); }
.vergleich__zeile span:first-child { color: var(--grau); text-decoration: line-through; text-decoration-color: rgba(86,97,109,.45); }
.vergleich__zeile span:last-child { font-weight: 600; border-left: 3px solid var(--lampe); }
.vergleich__zeile--kopf span { border-top: 0; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none !important; background: var(--nacht); color: var(--hell) !important; font-weight: 500; }
.vergleich__zeile--kopf span:last-child { color: var(--lampe) !important; }
.detail__schluss { margin-top: 1.8rem; font-size: 1.1rem; max-width: 46rem; }
@media (max-width: 560px) {
  .vergleich__zeile span { padding: .8rem .9rem; font-size: .92rem; }
}

/* Spiele */
.spiele { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--linie-hell); border: 1px solid var(--linie-hell); border-radius: var(--radius-karte); overflow: hidden; }
.spiel a {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "bild name" "bild text" "bild tech";
  column-gap: 1rem; align-content: start; height: 100%; padding: 1.3rem; background: var(--nacht);
  color: var(--hell) !important; text-decoration: none; transition: background .2s;
}
.spiel a:hover { background: var(--nacht-2); }
.spiel img { grid-area: bild; width: 72px; height: 72px; border-radius: 16px; }
.spiel__name { grid-area: name; font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; line-height: 1.05; margin-bottom: .3rem; }
.spiel__text { grid-area: text; font-size: .9rem; color: var(--grau-hell); line-height: 1.5; }
.spiel__tech { grid-area: tech; font-family: var(--mono); font-size: .68rem; color: var(--marke); text-transform: uppercase; letter-spacing: .06em; margin-top: .5rem; }
.spiele__alle { margin-top: 2rem; }
@media (max-width: 960px) { .spiele { grid-template-columns: minmax(0, 1fr); } }

/* Leistungen */
.leistungen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.leistung { padding: 1.6rem 1.4rem 1.3rem; border-top: 4px solid var(--spur); background: var(--tafel-hell); border-radius: 0 0 var(--radius-karte) var(--radius-karte); box-shadow: var(--schatten); display: flex; flex-direction: column; }
.leistung h3 { font-size: 1.75rem; margin-bottom: .8rem; }
.leistung p { color: var(--graphit-3); }
.leistung__beleg { margin-top: auto; margin-bottom: 0; font-family: var(--mono); font-size: .74rem; color: var(--grau) !important; }
@media (max-width: 960px) { .leistungen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .leistungen { grid-template-columns: minmax(0, 1fr); } }

/* Ablauf: Strecke mit Halten */
.strecke { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; position: relative; }
.strecke::before { content: ""; position: absolute; top: 21px; left: 22px; right: calc((100% - 5.6rem) / 5 - 22px); height: 3px; background: var(--spur); }
.halt { position: relative; }
.halt__nr {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--tafel); border: 3px solid var(--spur); font-family: var(--display); font-weight: 900; font-size: 1.3rem; margin-bottom: 1rem;
}
.halt:last-child .halt__nr { background: var(--lampe); border-color: var(--lampe); color: var(--nacht); }
.halt h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.halt p { font-size: .95rem; color: var(--graphit-3); }
@media (max-width: 860px) {
  .strecke { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .strecke::before { top: 22px; bottom: 22px; left: 20px; right: auto; width: 3px; height: auto; }
  .halt { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 1.1rem; padding-bottom: 1.4rem; }
  .halt__nr { grid-row: span 2; }
}

/* Kontakt */
.kontakt { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.kontakt__text p { color: var(--grau-hell); font-size: 1.05rem; margin-top: 1.2rem; }
.kontakt__karte { font-style: normal; margin-top: 1.8rem; padding: 1.2rem 1.3rem; border-left: 3px solid var(--marke); background: var(--nacht-2); line-height: 1.7; }
.kontakt__karte strong { display: block; font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .02em; }
.kontakt__gebiet { font-size: .92rem !important; }
.formular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.1rem; background: var(--nacht-2); padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--radius-karte); border: 1px solid var(--linie-hell); }
.feld { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .35rem; }
.feld--halb { grid-column: span 1; }
.feld--versteckt { position: absolute; left: -9999px; }
.feld label { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grau-hell); }
.feld input, .feld select, .feld textarea {
  font: 400 16px var(--text); color: var(--hell); background: var(--nacht); width: 100%;
  border: 1.5px solid var(--nacht-3); border-radius: var(--radius); padding: .75em .85em; min-height: 48px;
}
.feld textarea { resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--marke); }
.einwilligung { grid-column: 1 / -1; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .7rem; font-size: .88rem; color: var(--grau-hell); cursor: pointer; }
.einwilligung input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--marke); }
.formular__fehler { grid-column: 1 / -1; margin: 0; color: var(--marke); font-weight: 600; }
.formular .knopf { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 860px) {
  .kontakt { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .feld--halb { grid-column: 1 / -1; }
}

/* Fuß */
.fuss { background: #090C0F; color: var(--grau-hell); padding: 2rem 0; }
.fuss__innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.marke--fuss { color: var(--hell); font-size: 1.6rem; }
.fuss nav { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; }
.fuss nav a { padding-inline: .3rem; color: var(--hell); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.fuss nav a:hover { color: var(--marke); }
.fuss__klein { font-family: var(--mono); font-size: .74rem; }

/* ---------- 8. Fallstudien-Dialog ---------- */
.dialog {
  width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0;
  border-radius: 14px; background: var(--tafel-hell); color: var(--graphit); box-shadow: 0 40px 80px -20px rgba(0,0,0,.6);
}
.dialog::backdrop { background: rgba(9,12,15, .72); }
.dialog__innen { position: relative; padding: clamp(1.4rem, 4vw, 2.8rem); }
.dialog__zu {
  position: sticky; top: 0; float: right; margin: -.6rem -.6rem 0 1rem; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--nacht); color: var(--hell);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.dialog__zu:hover { background: var(--spur); }
.fall__art { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--spur); }
.dialog h3 { font-size: clamp(2rem, 4.4vw, 3rem); margin: .3rem 0 1.6rem; max-width: 24ch; }
.fall__raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; margin: 0 0 1.8rem; clear: both; }
.fall__raster dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grau); margin-bottom: .35rem; display: flex; align-items: center; gap: .5em; }
.fall__raster dt::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--spur); }
.fall__raster div:last-child dt::before { background: var(--lampe); }
.fall__raster dd { margin: 0; color: var(--graphit-3); }
.fall__bilder { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin-bottom: 1.6rem; }
.fall__bilder img { border-radius: 8px; box-shadow: var(--schatten); background: var(--nacht); }
.fall__bilder img:last-child { aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
@media (max-width: 640px) { .fall__raster { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 9. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.sichtbar { opacity: 1; transform: none; }
.ref.ausgefiltert { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gleis.pruefe .gleis__lampe { animation: none; }
  .gleis.zug::after { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- 10. Rechtsseiten + Danke ---------- */
.recht { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: 5rem; max-width: 820px; }
.recht h1 { font-size: clamp(3rem, 8vw, 5rem); margin-bottom: 2rem; }
.recht h2 { font-size: 1.6rem; margin: 2.2rem 0 .7rem; max-width: none; }
.recht p { color: var(--graphit-3); }
.recht__stand { font-family: var(--mono); font-size: .8rem; margin-top: 3rem; }
.danke { min-height: calc(100dvh - var(--kopf-hoehe) - 110px); display: grid; align-content: center; padding-block: 4rem; }
.danke h1 { font-size: clamp(3rem, 9vw, 6rem); margin-bottom: 1.2rem; }
.danke p { font-size: 1.15rem; max-width: 36rem; color: var(--graphit-3); }
.danke .marke__lampe { display: inline-block; font-size: 3rem; margin-bottom: 1.5rem; }

/* ---------- 11. Über mich ---------- */
.person { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.person__bild { margin: 0; position: sticky; top: calc(var(--kopf-hoehe) + 24px); }
.person__bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius-karte); background: #000; box-shadow: 0 30px 60px -30px rgba(14,18,21,.6); }
.person__bild figcaption { margin-top: .9rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--grau); display: flex; flex-direction: column; gap: .2rem; }
.person__bild figcaption strong { font-family: var(--display); font-size: 1.5rem; letter-spacing: .02em; color: var(--graphit); }
.person__bild figcaption strong::before { content: ""; display: inline-block; width: .45em; height: .45em; border-radius: 50%; background: var(--lampe); margin-right: .45em; vertical-align: .12em; box-shadow: 0 0 10px rgba(61,184,116,.7); }
.person h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); max-width: 20ch; margin-bottom: 1.6rem; }
.person__lead { font-size: 1.15rem; }
.person p { color: var(--graphit-3); }

.fahrplan { list-style: none; margin: 2.2rem 0 0; padding: 0; border-left: 3px solid var(--spur); }
.fahrplan li { position: relative; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0 0 1.3rem 1.4rem; }
.fahrplan li::before { content: ""; position: absolute; left: -9px; top: .35rem; width: 15px; height: 15px; border-radius: 50%; background: var(--tafel); border: 3px solid var(--spur); }
.fahrplan__jetzt::before { background: var(--lampe) !important; border-color: var(--lampe) !important; box-shadow: 0 0 12px rgba(61,184,116,.7); }
.fahrplan__zeit { font-family: var(--mono); font-size: .8rem; color: var(--grau); padding-top: .2rem; }
.fahrplan__was { color: var(--graphit-3); font-size: .95rem; }
.fahrplan__was strong { display: block; color: var(--graphit); font-size: 1.02rem; }

.nachweise { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.nachweise li { background: var(--nacht); color: var(--hell); border-radius: var(--radius); padding: 1rem 1rem .9rem; border-top: 3px solid var(--marke); }
.nachweise strong { display: block; font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; line-height: 1.05; margin-bottom: .35rem; hyphens: manual; }
.nachweise span { font-family: var(--mono); font-size: .7rem; color: var(--grau-hell); }

@media (max-width: 860px) {
  .person { grid-template-columns: minmax(0, 1fr); }
  .person__bild { position: static; max-width: 420px; }
  .nachweise { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .fahrplan li { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}

/* ---------- 12. Reise: vom Zettel zum System (Scroll-Animation) ---------- */
/* EINE Sektion mit fester Höhe, EINE sticky Bühne, alles darin per JS aus EINEM Fortschrittswert */
.reise { display: none; position: relative; height: 420vh; background: var(--nacht); color: var(--hell); }
.reise.an { display: block; }
.reise__buehne {
  position: sticky; top: var(--kopf-hoehe); height: calc(100dvh - var(--kopf-hoehe)); overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 60%, rgba(2,135,254, .28), transparent 60%),
    linear-gradient(rgba(232,237,242,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(232,237,242,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--graphit);
}
.reise__welt { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.reise__welt > * { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform, opacity; }

.r-zettel {
  width: 230px; height: 120px; padding: 16px 18px; border-radius: 3px;
  background: #F3EFE4; color: #2A2622; box-shadow: 0 10px 24px -8px rgba(0,0,0,.6);
  font: italic 500 21px/1.25 var(--text);
}
.r-zettel::before { content: ""; position: absolute; top: -9px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: rgba(231,162,28,.55); }
.r-zettel small { display: block; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #9A3B2A; margin-bottom: 6px; font-style: normal; }
.r-zettel--blase { background: #DCF8C6; border-radius: 16px 16px 16px 4px; }
.r-zettel--blase::before { display: none; }
.r-zettel--blase small { color: #0A6FDB; }
.r-zettel--telefon { background: var(--signal); color: var(--nacht); display: grid; place-items: center; text-align: center; font-style: normal; font-weight: 800; }
.r-zettel--telefon::before { display: none; }
.r-zettel--telefon svg { width: 46px; height: 46px; }
.r-zettel .r-glut { position: absolute; inset: 0; border-radius: inherit; background: var(--lampe); box-shadow: 0 0 18px var(--lampe); opacity: 0; }

.r-gleise { width: 100%; height: 100%; overflow: visible; }
.r-gleise .schwelle { stroke: rgba(232,237,242,.18); stroke-width: 16; stroke-dasharray: 3 22; }
.r-gleise .schiene { stroke: var(--spur-hell); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(61,184,116,.6)); }

.r-wagen {
  width: 420px; border-radius: 10px; overflow: hidden; background: var(--nacht-2);
  box-shadow: 0 24px 40px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(232,237,242,.12);
}
.r-wagen img { width: 420px; height: 262px; object-fit: cover; object-position: top; display: block; }
.r-wagen__leiste {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px;
  font: 700 19px var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--hell);
}
.r-wagen__leiste span:last-child { margin-left: auto; font: 400 13px var(--mono); text-transform: none; color: var(--grau-hell); letter-spacing: 0; }
.r-lampe { width: 13px; height: 13px; border-radius: 50%; background: #3B4652; flex: none; transition: background .3s, box-shadow .3s; }
.r-wagen.gruen .r-lampe { background: var(--lampe); box-shadow: 0 0 0 3px rgba(61,184,116,.22), 0 0 14px rgba(61,184,116,.9); }

.reise__texte { position: absolute; left: var(--rand); right: var(--rand); top: clamp(14px, 3.2vh, 34px); max-width: var(--breite); margin-inline: auto; pointer-events: none; }
.reise__kapitel { position: absolute; left: 0; top: 0; max-width: 40rem; opacity: 0; transform: translateY(12px); transition: opacity .45s, transform .45s; }
.reise__kapitel.ist-aktiv { opacity: 1; transform: none; }
.reise__etikett { font: 500 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--marke); margin: 0 0 .4rem; }
.reise__kapitel h2 { font-size: clamp(1.9rem, min(5.4vw, 7vh), 4.2rem); max-width: none; margin: 0 0 .35rem; }
.reise__kapitel p:last-child { margin: 0; color: var(--grau-hell); font-size: clamp(.9rem, 2vh, 1.1rem); }
.reise__zaehler { color: var(--lampe); font-weight: 700; font-family: var(--mono); }
.reise__balken { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(232,237,242,.08); }
.reise__balken span { display: block; height: 100%; width: 0; background: var(--marke); }

@media (max-width: 760px) { .reise { height: 380vh; } }
/* Bewegung reduziert: nur das Endbild, ohne Scrollweg */
@media (prefers-reduced-motion: reduce) {
  .reise { height: auto; }
  .reise__buehne { position: relative; top: 0; height: min(100dvh, 860px); }
  .reise__kapitel { transition: none; }
  .reise__balken { display: none; }
}

/* ---------- 13. Scroll-Szenen (szenen.js) ---------- */
/* Durchblick: vier Bildschirme übereinander im 16:10-Rahmen */
.durchblick { position: relative; overflow: hidden; aspect-ratio: 16 / 10; display: block; }
.ref__gross.durchblick { width: 100%; border-radius: 6px; background: var(--nacht); }
.durchblick .durchblick__streifen { width: 100% !important; height: auto !important; object-fit: initial !important; display: block; will-change: transform; }
.durchblick::after { /* feiner Bildschirm-Glanz */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 -40px 40px -40px rgba(0,0,0,.5);
}

/* Vorher/Nachher wird abgehakt */
.vergleich--an .vergleich__zeile:not(.vergleich__zeile--kopf) span:first-child {
  text-decoration: none; transition: color .5s, background-size .6s ease;
  background: linear-gradient(currentColor, currentColor) calc(1.3rem - 2px) 55% / 0 1.5px no-repeat; color: var(--graphit-3);
}
.vergleich--an .vergleich__zeile.erledigt span:first-child { background-size: var(--tw, 60%) 1.5px; color: var(--grau); }
.vergleich--an .vergleich__zeile:not(.vergleich__zeile--kopf) span:last-child {
  opacity: .18; transform: translateX(18px); border-left-color: var(--grau-hell); transition: opacity .5s, transform .5s, border-color .5s;
}
.vergleich--an .vergleich__zeile.erledigt span:last-child { opacity: 1; transform: none; border-left-color: var(--lampe); }

/* Ablauf: Lok fährt die Strecke (Position aus szenen.js, gemessen an den Halte-Punkten) */
.strecke-rahmen { position: relative; }
.strecke__zug { display: none; }
.strecke--an .strecke__zug {
  display: block; position: absolute; z-index: 4; transition: none; width: 40px; height: 22px; margin: -11px 0 0 -20px;
  border-radius: 6px 11px 11px 6px; background: var(--nacht); box-shadow: 0 6px 14px -4px rgba(0,0,0,.5);
}
.strecke--an .strecke__zug::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--graphit); border-bottom: 0; }
.strecke__zug span { position: absolute; right: 5px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--lampe); box-shadow: 0 0 10px var(--lampe), 14px 0 24px 6px rgba(61,184,116,.35); }
.strecke--an .strecke__zug.senkrecht { display: none; }
.strecke__licht { position: absolute; z-index: 1; background: var(--marke); box-shadow: 0 0 10px rgba(2,135,254,.7); border-radius: 2px; pointer-events: none; }
.strecke--an .halt { opacity: .4; transition: opacity .4s; }
.strecke--an .halt.erreicht { opacity: 1; }
.strecke--an .halt.erreicht .halt__nr { background: var(--spur); color: #fff; }
.strecke--an .halt:last-child.erreicht .halt__nr { background: var(--lampe); border-color: var(--lampe); color: var(--nacht); box-shadow: 0 0 16px rgba(61,184,116,.7); }
.strecke--an .halt:last-child:not(.erreicht) .halt__nr { background: var(--tafel); border-color: var(--spur); color: var(--graphit); }
.halt__nr { z-index: 3; }

/* Fahrplan zeichnet sich */
.fahrplan--an { position: relative; border-left-color: rgba(2,135,254,.25); --p: 0; }
.fahrplan--an::after { content: ""; position: absolute; left: -3px; top: 0; width: 3px; height: calc(var(--p) * 100%); background: var(--spur); }
.fahrplan--an li { opacity: .4; transition: opacity .4s; }
.fahrplan--an li.erreicht { opacity: 1; }
.fahrplan--an li.erreicht::before { background: var(--spur); }
.fahrplan--an li.fahrplan__jetzt:not(.erreicht)::before { background: var(--tafel) !important; border-color: var(--spur) !important; box-shadow: none; }

/* Spiele: Münzen drehen sich ins Bild */
.muenzen--an .spiel a { perspective: 600px; }
.muenzen--an .spiel img { will-change: transform; backface-visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  .durchblick .durchblick__streifen { transform: none !important; }
}

/* ---------- 14. Die Fahrt (3D, fahrt.js) ---------- */
.fahrt__canvas, .fahrt__schilder { display: none; }
.reise.fahrt-an { height: 900vh; }
.reise.fahrt-an .reise__welt { display: none; }
.reise.fahrt-an .fahrt__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.reise.fahrt-an .fahrt__schilder { display: block; position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.reise.fahrt-an .reise__buehne::after { /* Lesbarkeit der Kapiteltexte oben */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 34%; pointer-events: none;
  background: linear-gradient(rgba(11,15,19,.92), rgba(11,15,19,.55) 55%, transparent);
}
.reise.fahrt-an .reise__texte { z-index: 2; }
.reise.fahrt-an .reise__balken { z-index: 2; }
.fahrt__schild {
  position: absolute; left: 0; top: 0; opacity: 0; display: grid; grid-template-columns: auto auto; column-gap: .55rem; align-items: center;
  padding: .55rem .85rem .6rem; margin-top: -10px; border-radius: 6px; white-space: nowrap;
  background: rgba(11,15,19, .82); border: 1px solid rgba(232,237,242,.14); backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.8);
}
.fahrt__schild strong { font: 800 1.15rem var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--hell); }
.fahrt__schild span:last-child { grid-column: 1 / -1; font: 400 .72rem var(--mono); color: var(--grau-hell); }
.fahrt__lampe { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.fahrt__schild.gruen .fahrt__lampe { background: var(--lampe); box-shadow: 0 0 10px var(--lampe); }
.fahrt__schild.gruen { border-color: rgba(61,184,116,.45); }
@media (max-width: 760px) { .reise.fahrt-an { height: 800vh; } .fahrt__schild strong { font-size: .95rem; } }


/* ---------- 15. Dark Mode (data-theme="dunkel" an <html>, Schalter im Kopf) ---------- */
:root[data-theme="dunkel"] {
  --tafel: #0B0F13;
  --tafel-tief: #10161C;
  --tafel-hell: #161D24;
  --graphit: #EEF2F6;
  --graphit-3: #AEB8C2;
  --grau: #8D98A4;
  --spur: #0A6FDB;
  --linie: rgba(232,237,242, .14);
  --schatten: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 28px -14px rgba(0,0,0,.7);
  color-scheme: dark;
}
:root[data-theme="dunkel"] body { background: var(--tafel); }
:root[data-theme="dunkel"] .kopf { background: rgba(11,15,19, .92); }
:root[data-theme="dunkel"] .kopf.gescrollt { background: rgba(11,15,19, .97); }
:root[data-theme="dunkel"] a,
:root[data-theme="dunkel"] .link-knopf,
:root[data-theme="dunkel"] .hero__titel span,
:root[data-theme="dunkel"] .ref__art,
:root[data-theme="dunkel"] .fall__art { color: var(--spur-hell); }
:root[data-theme="dunkel"] .knopf, :root[data-theme="dunkel"] .nav .knopf { color: #fff; }
:root[data-theme="dunkel"] .knopf--rahmen { color: var(--graphit); }
:root[data-theme="dunkel"] .knopf--signal { color: #fff; }
:root[data-theme="dunkel"] .knopf--hell { color: var(--nacht); }
:root[data-theme="dunkel"] .nav a:not(.knopf), :root[data-theme="dunkel"] .marke { color: var(--graphit); }
:root[data-theme="dunkel"] .sektion--dunkel, :root[data-theme="dunkel"] .reise { background: #0A0D10; }
:root[data-theme="dunkel"] .ref__gross, :root[data-theme="dunkel"] .vergleich__zeile span:last-child { color: var(--graphit); }
:root[data-theme="dunkel"] .person__bild img { box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
:root[data-theme="dunkel"] .fahrplan li::before { background: var(--tafel); }
:root[data-theme="dunkel"] .vergleich__zeile span:first-child { text-decoration-color: rgba(174,184,194,.5); }

/* Schalter im Kopf: Sprache + Hell/Dunkel */
.kopf__werkzeug { display: flex; align-items: center; gap: .4rem; }
.sprache { display: inline-flex; border: 1px solid var(--linie); border-radius: 999px; padding: 3px; font: 600 .78rem var(--mono); }
.sprache a, .sprache span { display: grid; place-items: center; min-width: 40px; min-height: 36px; padding: 0 .55rem; border-radius: 999px; text-decoration: none; color: var(--grau) !important; }
.sprache [aria-current="true"] { background: var(--graphit); color: var(--tafel) !important; }
.thema {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: none; border: 1px solid var(--linie); color: var(--graphit);
}
.thema:hover { border-color: var(--spur); }
.thema svg { width: 20px; height: 20px; }
.thema .mond { display: none; }
:root[data-theme="dunkel"] .thema .sonne { display: none; }
:root[data-theme="dunkel"] .thema .mond { display: block; }
@media (max-width: 1080px) {
  .kopf__werkzeug { margin-left: auto; margin-right: .4rem; }
}
@media (max-width: 400px) {
  .marke { font-size: 1.6rem; }
  .sprache a, .sprache span { min-width: 34px; padding: 0 .4rem; }
  .thema { width: 40px; height: 40px; }
}

.kopf__innen > .marke { order: 0; }
.kopf__innen > .nav { order: 1; margin-left: auto; }
.kopf__innen > .kopf__werkzeug { order: 2; }
.kopf__innen > .burger { order: 3; }

:root[data-theme="dunkel"] .fuss nav a { color: var(--hell); }
:root[data-theme="dunkel"] .fuss nav a:hover { color: var(--marke); }

/* ---------- 16. Logo (Wortmarke EYSEC, Orbitron 900 als Pfade, tools/logo.py) ---------- */
.marke .logo { height: 22px; width: auto; display: block; overflow: visible; }
.marke--fuss .logo { height: 20px; }
.logo__sec { fill: var(--marke); }
@media (max-width: 400px) { .marke .logo { height: 18px; } }

/* ---------- 17. Fahrt: Monitor-Nahansicht (fahrt.js, Fokus) ---------- */
.reise__tipp { display: inline-block; margin-left: .3em; color: var(--spur-hell); font-weight: 600; }
.fahrt__schild { cursor: pointer; }
.fahrt__ansehen { grid-column: 1 / -1; font: 600 .7rem var(--mono); font-style: normal; color: var(--spur-hell); margin-top: .3rem; letter-spacing: .04em; }
.reise.fokus-an .reise__texte, .reise.fokus-an .reise__balken, .reise.fokus-an .reise__buehne::after { opacity: 0; transition: opacity .4s; }
.fahrt__fokus { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fahrt__fokus[hidden] { display: none !important; }
.fahrt__fokus-leiste {
  pointer-events: auto; position: absolute; left: 50%; top: clamp(10px, 2.2vh, 22px); transform: translateX(-50%);
  width: min(1100px, calc(100% - 2 * var(--rand))); display: flex; align-items: center; gap: .8rem 1.2rem; flex-wrap: wrap;
  padding: .55rem .6rem .55rem .55rem; border-radius: 12px; background: rgba(11,15,19, .86);
  border: 1px solid rgba(232,237,242,.14); backdrop-filter: blur(8px); box-shadow: 0 18px 40px -20px #000;
  animation: fokusRein .5s ease .5s both;
}
@keyframes fokusRein { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.fahrt__zurueck {
  min-height: 44px; padding: .5em 1em; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--marke); color: #fff; font: 700 .95rem var(--text);
}
.fahrt__zurueck:hover { background: var(--hell); }
.fahrt__fokus-titel { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.fahrt__fokus-titel strong { font: 800 1.3rem var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--hell); }
.fahrt__fokus-titel span { font: 400 .74rem var(--mono); color: var(--grau-hell); }
.fahrt__fokus-link { margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; padding: 0 .9em; border-radius: 8px; border: 1px solid rgba(232,237,242,.2); color: var(--hell) !important; text-decoration: none; font: 600 .9rem var(--text); }
.fahrt__fokus-link:hover { border-color: var(--marke); color: var(--spur-hell) !important; }
.fahrt__fokus-balken { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(232,237,242,.1); }
.fahrt__fokus-balken span { display: block; height: 100%; width: 0; background: var(--marke); }
.fahrt__fokus-tipp { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font: 500 .72rem var(--mono); color: var(--grau-hell); letter-spacing: .05em; animation: fokusRein2 .5s ease 1s both; }
@keyframes fokusRein2 { from { opacity: 0; } to { opacity: .9; } }
@media (max-width: 600px) {
  .fahrt__fokus-leiste { gap: .5rem; }
  .fahrt__fokus-link { margin-left: 0; }
  .fahrt__fokus-titel strong { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { .fahrt__fokus-leiste, .fahrt__fokus-tipp { animation: none; } }

/* ---------- Zweite Seite: 3mmooo.de (Sternenhimmel wie dort, Planeten-Punkte in deren Farben) ---------- */
.mmseite {
  position: relative; overflow: hidden; color: var(--hell); padding: clamp(4rem, 9vw, 7rem) 0;
  background:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 34% 78%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 14%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 72% 62%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 88% 30%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 6% 70%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 46% 46%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(ellipse 60% 70% at 80% 55%, rgba(255,170,60,.10), transparent 70%),
    #05070A;
  border-top: 1px solid var(--linie-hell);
}
.mmseite__raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.mmseite h2 { color: var(--hell); }
.mmseite .etikett { color: var(--grau-hell); }
.mmseite h2 span { color: #E9A64B; }
.mmseite__lead { color: var(--grau-hell); font-size: 1.08rem; margin: 1.2rem 0 1.4rem; max-width: 36rem; }
.mmseite__planeten { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; }
.mmseite__planeten li { display: grid; grid-template-columns: 14px 5.2rem minmax(0, 1fr); gap: .7rem; align-items: baseline; font-size: .95rem; color: var(--grau-hell); }
.mmseite__planeten i { width: 10px; height: 10px; border-radius: 50%; background: var(--p); box-shadow: 0 0 10px var(--p); align-self: center; }
.mmseite__planeten b { font-family: var(--mono); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--hell); }
.mmseite__bild { display: block; border-radius: var(--radius-karte); overflow: hidden; border: 1px solid var(--linie-hell);
  box-shadow: 0 30px 80px -30px rgba(255,170,60,.35), 0 0 0 6px rgba(255,255,255,.03); transition: transform .4s ease, box-shadow .4s ease; }
.mmseite__bild img { display: block; width: 100%; height: auto; }
.mmseite__bild:hover { transform: translateY(-4px); box-shadow: 0 40px 90px -30px rgba(255,170,60,.5), 0 0 0 6px rgba(255,255,255,.05); }
@media (max-width: 900px) {
  .mmseite__raster { grid-template-columns: minmax(0, 1fr); }
  .mmseite__bild { order: -1; }
}
@media (max-width: 420px) {
  .mmseite__planeten li { grid-template-columns: 14px minmax(0, 1fr); }
  .mmseite__planeten span { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .mmseite__bild, .mmseite__bild:hover { transition: none; transform: none; } }
