/* ==========================================================================
   TrainTechSolutions · Unterseiten (App-Präsentationen, Rechtliches)
   Gleiche Gestaltung wie die Fahrt: Geist, warmes Weiß, Kupfer und Stahl
   ========================================================================== */

:root {
  --bg: #05070a;
  --bg-2: #080b10;
  --ink: #f3f0e8;
  --ink-2: rgba(243, 240, 232, .68);
  --ink-3: rgba(243, 240, 232, .42);
  --ink-em: rgba(243, 240, 232, .48);
  --line: rgba(243, 240, 232, .10);
  --kupfer: #e0a070;
  --stahl: #8cc0e6;
  --green: #48f08d;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(20px, 5.5vw, 88px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); overflow-x: hidden; }
html body { color: var(--ink); }
body button { color: inherit; font: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--ink-em); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--kupfer); color: #000; }
:focus-visible { outline: 1px solid var(--kupfer); outline-offset: 4px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--kupfer); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.kicker span + span { color: var(--ink-3); }
.kicker span + span::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--ink-3); vertical-align: middle; margin-right: 14px; }

/* Körnung über allem, wie auf der Fahrt */
.fx-grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 30; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(5) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .fx-grain { animation: none; } }

/* ---------- Kopfzeile ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(18px + env(safe-area-inset-top, 0px)) var(--pad) 18px; transition: background .4s, backdrop-filter .4s; }
.topbar.is-fest { background: rgba(5, 7, 10, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__zeichen { display: block; height: 40px; width: 40px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5)); transition: transform .5s var(--ease); }
.brand:hover .brand__zeichen { transform: scale(1.08); }
.brand__wort { font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.brand__wort b { font-weight: 600; color: var(--kupfer); }
.topnav { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(10, 13, 18, .38); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border: 1px solid var(--line); }
.topnav a { font-size: 13.5px; padding: 8px 15px; border-radius: 999px; color: var(--ink-2); transition: color .3s, background .3s; white-space: nowrap; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .08); }
.topbar__cta { display: flex; align-items: center; gap: 18px; }
.link-quiet { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); transition: color .3s; white-space: nowrap; }
.link-quiet:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: var(--h); padding: 0 26px; border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; transition: transform .5s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .4s; }
.btn svg { width: 15px; height: 15px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--light { background: var(--ink); color: #07090c; }
.btn--light:hover { background: #fff; box-shadow: 0 0 34px rgba(255, 255, 255, .32); }
.btn--ghost { border: 1px solid rgba(243, 240, 232, .42); background: rgba(14, 17, 22, .52); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: #fff; border-color: rgba(255, 236, 205, .95); background: rgba(243, 240, 232, .13); box-shadow: 0 0 0 1px rgba(255, 214, 160, .35), 0 0 30px rgba(224, 160, 112, .38), inset 0 0 18px rgba(255, 214, 160, .14); }
.btn--kupfer { border: 1px solid rgba(224, 160, 112, .6); background: rgba(224, 160, 112, .1); }
.btn--kupfer:hover { color: #fff; border-color: var(--kupfer); background: rgba(224, 160, 112, .2); box-shadow: 0 0 30px rgba(224, 160, 112, .42); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 13.5px; }

/* ---------- Kopf der App-Seite ---------- */
.app-kopf { position: relative; padding: clamp(120px, 18vh, 190px) var(--pad) 0; }
.app-kopf::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none; z-index: -1;
  background: radial-gradient(900px 480px at 12% 10%, rgba(140, 192, 230, .10), transparent 62%), radial-gradient(760px 420px at 88% 0%, rgba(224, 160, 112, .10), transparent 60%); }
.app-kopf h1 { font-size: clamp(3rem, 7.4vw, 7.6rem); line-height: .92; letter-spacing: -.055em; font-weight: 500; max-width: 14ch; }
.app-kopf h1 em { display: block; }
.app-kopf .lead { margin-top: 28px; max-width: 560px; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.55; color: var(--ink-2); }
.meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.meta span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.meta span:first-child { color: var(--kupfer); border-color: rgba(224, 160, 112, .4); }
.app-kopf .cta-row { margin-top: 32px; }

/* ---------- Präsentation: Schnelldurchlauf als Fahrt über eine Strecke ---------- */
.reel-rahmen { padding: 56px var(--pad) 0; }
.praes {
  --akzent: var(--kupfer);
  position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; border-radius: 28px; overflow: hidden;
  aspect-ratio: 4 / 3.6; min-height: 440px; max-height: 84vh;
  border: 1px solid rgba(255, 255, 255, .08); outline: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  background: radial-gradient(110% 70% at 62% 8%, color-mix(in srgb, var(--akzent) 15%, transparent), transparent 62%), linear-gradient(180deg, #0f1318, #07090c);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.praes[data-akzent="stahl"] { --akzent: var(--stahl); }
.praes--breit { aspect-ratio: 16 / 9.4; }
.praes:focus-visible { box-shadow: 0 0 0 2px var(--akzent), 0 40px 120px rgba(0, 0, 0, .55); }
.praes__buehne { position: relative; overflow: hidden; container-type: size; touch-action: pan-y; }
.praes__buehne::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 6%; height: 18%; background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .55), transparent 70%); pointer-events: none; z-index: 0; }

/* Geräte: Lage je Modus über Container-Einheiten, damit die Canvas-Größe beim Wechsel gleich bleibt.
   Die Bildfläche hat genau das Seitenverhältnis der App-Bilder (Rechner 1200 × 717, Handy 440 × 929) –
   so passt jedes Bild ganz hinein, nichts wird am Rand abgeschnitten */
.geraet { position: absolute; left: 50%; top: 50%; z-index: 1; transition: transform .9s var(--ease), opacity .6s var(--ease); will-change: transform; }
.geraet__schirm { position: relative; overflow: hidden; background: #0b0d10; }
.geraet canvas { display: block; width: 100%; height: 100%; }
.geraet--pc { width: min(84cqw, 134cqh); }
.geraet--pc canvas { height: auto; aspect-ratio: 1200 / 717; }
.geraet--pc .geraet__schirm { border: clamp(5px, 1.1cqw, 10px) solid #0b0d10; border-bottom-width: clamp(8px, 1.6cqw, 14px); border-radius: 14px 14px 6px 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 70px rgba(0, 0, 0, .55); }
.geraet__fuss { display: block; height: clamp(8px, 1.8cqw, 15px); margin: 0 -6.5%; border-radius: 2px 2px 16px 16px; background: linear-gradient(180deg, #3a414b, #1a1e24 55%, #0f1216); box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }
.geraet__fuss::before { content: ''; display: block; width: 16%; height: 38%; margin: 0 auto; border-radius: 0 0 8px 8px; background: rgba(0, 0, 0, .35); }
.geraet--handy { --rand: clamp(4px, 1.1cqh, 9px); z-index: 2; height: 88cqh; width: calc((88cqh - 2 * var(--rand)) * 440 / 929 + 2 * var(--rand)); }
.geraet--handy .geraet__schirm { height: 100%; border: var(--rand) solid #090b0e; border-radius: clamp(18px, 5.6cqh, 38px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 70px rgba(0, 0, 0, .6), -20px 0 60px rgba(0, 0, 0, .35); }
.geraet--handy .geraet__schirm::after { content: ''; position: absolute; left: 50%; top: .9%; width: 4.2%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #050607; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .08); z-index: 2; }
.praes__buehne[data-modus="paar"] .geraet--pc { transform: translate(calc(-50% - 9cqw), calc(-50% - 2cqh)) scale(.9); }
.praes__buehne[data-modus="paar"] .geraet--handy { transform: translate(calc(-50% + 33cqw), calc(-50% + 5cqh)) scale(.8); }
.praes__buehne[data-modus="pc"] .geraet--pc { transform: translate(-50%, -50%); }
.praes__buehne[data-modus="pc"] .geraet--handy { transform: translate(calc(-50% + 52cqw), calc(-50% + 12cqh)) scale(.7); opacity: 0; }
.praes__buehne[data-modus="handy"] .geraet--handy { transform: translate(-50%, -50%); }
.praes__buehne[data-modus="handy"] .geraet--pc { transform: translate(calc(-50% - 44cqw), calc(-50% - 2cqh)) scale(.78); opacity: 0; }

.praes__marke, .praes__pause { position: absolute; top: 16px; z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; pointer-events: none; }
.praes__marke { left: 18px; color: var(--ink-3); }
.praes__pause { right: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; color: var(--ink); background: rgba(10, 13, 18, .72); border: 1px solid rgba(255, 255, 255, .12); opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .5s var(--ease); }
.praes__pause i { width: 7px; height: 9px; border-left: 2px solid var(--akzent); border-right: 2px solid var(--akzent); }
.praes.is-halt .praes__pause { opacity: 1; transform: none; }
/* Lange Bildschirme: greifen und ziehen oder Mausrad */
.praes__buehne.is-rollbar .geraet canvas { cursor: grab; }
.praes__buehne.is-greift .geraet canvas { cursor: grabbing; }

/* Unten: Station, Titel, Satz und das Streckenband mit dem Zug */
.praes__fuss { position: relative; z-index: 3; padding: 4px 22px 16px; }
.praes__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-height: 52px; }
.praes__nr { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--akzent); }
.praes__titel { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.praes__skizze { display: none; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; }
.praes.is-skizze .praes__skizze { display: inline-block; }
.praes__satz { flex-basis: 100%; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.praes__strecke { position: relative; height: 34px; margin-top: 10px; }
.praes__gleis { position: absolute; left: 3%; right: 3%; top: 23px; height: 2px; border-radius: 1px; background: rgba(243, 240, 232, .14); }
.praes__gefahren { position: absolute; left: -3.2%; top: 0; bottom: 0; width: 0; border-radius: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--akzent) 30%, transparent), var(--akzent) 60px); box-shadow: 0 0 12px color-mix(in srgb, var(--akzent) 60%, transparent); }
/* Links der Fahrplan: alle Stationen an einer Streckenlinie, die gezeigte aufgeklappt mit Erklärung.
   Nur auf breiten Bildschirmen – dort ersetzt er das Band unten, die Geräte bekommen die volle Höhe */
.praes__fahrplan { display: none; }
.praes__skizze-marke { display: none; }
@media (min-width: 980px) {
  .praes { grid-template-columns: clamp(250px, 25%, 330px) minmax(0, 1fr); }
  .praes__fahrplan { display: block; grid-row: 1 / span 2; position: relative; z-index: 3; overflow-y: auto; scrollbar-width: none; padding: 24px 18px 22px 24px; border-right: 1px solid rgba(255, 255, 255, .06); background: linear-gradient(90deg, rgba(5, 7, 10, .45), rgba(5, 7, 10, .12)); }
  .praes__fahrplan::-webkit-scrollbar { display: none; }
  .praes__buehne { grid-column: 2; }
  .praes__fuss { display: none; }
  .praes__marke { left: 22px; }
  .praes.is-skizze .praes__skizze-marke { display: block; position: absolute; right: 18px; bottom: 16px; z-index: 3; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 13, 18, .6); pointer-events: none; }
}
.praes__plankopf { margin: 0 0 12px 28px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.praes__strang { position: relative; }
.praes__halte { list-style: none; }
.praes__halte li { position: relative; padding-left: 28px; }
.praes__halte li::before { content: ''; position: absolute; z-index: 1; left: 3.5px; top: 12.5px; width: 9px; height: 9px; box-sizing: border-box; border-radius: 50%; background: #0b0e12; border: 1.5px solid rgba(243, 240, 232, .38); transition: background .3s, border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.praes__halte li.is-vorbei::before { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 45%, #0b0e12); }
.praes__halte li.is-an::before { border-color: var(--akzent); background: var(--akzent); transform: scale(1.3); box-shadow: 0 0 12px var(--akzent); }
.praes__halte button { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline; width: 100%; padding: 7px 0; text-align: left; font-size: 14px; line-height: 20px; color: var(--ink-3); transition: color .3s; }
.praes__halte button:hover, .praes__halte button:focus-visible { color: var(--ink-2); }
.praes__halte button span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; }
.praes__halte button b { font-weight: 500; }
.praes__halte li.is-an button { color: var(--ink); }
.praes__halte li.is-an button span { color: var(--akzent); }
.praes__erklaerung { overflow: hidden; max-height: 0; padding-left: 30px; font-size: 13px; line-height: 1.45; color: var(--ink-2); transition: max-height .5s var(--ease), padding .5s var(--ease); }
.praes__halte li.is-an .praes__erklaerung { max-height: 96px; padding-bottom: 12px; }
/* Fortschritt der gezeigten Station als feine Linie unter der Erklärung */
.praes__halte li.is-an::after { content: ''; position: absolute; left: 58px; right: 0; bottom: 2px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--akzent) calc(var(--fahrt, 0) * 100%), rgba(243, 240, 232, .08) 0); }
.praes__linie { position: absolute; left: 7px; width: 2px; border-radius: 1px; background: rgba(243, 240, 232, .14); pointer-events: none; }
.praes__linie-gefahren { position: absolute; left: 0; top: 0; width: 100%; border-radius: 1px; background: linear-gradient(180deg, color-mix(in srgb, var(--akzent) 30%, transparent), var(--akzent) 60px); box-shadow: 0 0 12px color-mix(in srgb, var(--akzent) 60%, transparent); }
.praes__linie-gefahren b { position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; z-index: 2; border-radius: 50%; background: #fff6ea; box-shadow: 0 0 0 4px color-mix(in srgb, var(--akzent) 25%, transparent), 0 0 20px 4px color-mix(in srgb, var(--akzent) 85%, transparent); }

.praes__station { position: absolute; top: 15px; width: 26px; height: 18px; margin-left: -13px; display: grid; place-items: center; z-index: 1; }
.praes__station::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #0b0e12; border: 1.5px solid rgba(243, 240, 232, .45); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.praes__station.is-vorbei::before { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 45%, #0b0e12); }
.praes__station.is-an::before { border-color: var(--akzent); background: var(--akzent); transform: scale(1.35); box-shadow: 0 0 12px var(--akzent); }
.praes__station:hover::before, .praes__station:focus-visible::before { border-color: var(--ink); transform: scale(1.35); }
.praes__station span { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; padding: 5px 9px; border-radius: 8px; font-size: 12px; background: rgba(10, 13, 18, .92); border: 1px solid rgba(255, 255, 255, .12); color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); }
.praes__station:hover span, .praes__station:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
/* Lichtpunkt an der Spitze der gefahrenen Strecke – wie im Fahrplan links */
.praes__licht { position: absolute; top: 19px; width: 10px; height: 10px; margin-left: -5px; z-index: 2; border-radius: 50%; background: #fff6ea; box-shadow: 0 0 0 4px color-mix(in srgb, var(--akzent) 25%, transparent), 0 0 20px 4px color-mix(in srgb, var(--akzent) 85%, transparent); pointer-events: none; }

@media (max-width: 760px) {
  .praes, .praes.praes--breit { aspect-ratio: auto; height: min(600px, 96vw + 130px); min-height: 0; border-radius: 22px; }
  .praes__buehne[data-modus="paar"] .geraet--pc { transform: translate(calc(-50% - 6cqw), calc(-50% - 14cqh)) scale(.94); }
  .praes__buehne[data-modus="paar"] .geraet--handy { transform: translate(calc(-50% + 28cqw), calc(-50% + 10cqh)) scale(.66); }
  .praes__fuss { padding: 2px 16px 12px; }
  .praes__titel { font-size: 16px; }
  .praes__satz { font-size: 13px; }
  .praes__station span { display: none; }
}

/* ---------- Vorführung (js/vorfuehrung.js): Streckenlinie, Steuerleiste, Einleitung, Ankunft ---------- */
body { --vf: var(--kupfer); --vf-rgb: 224, 160, 112; }
body.vf-stahl { --vf: var(--stahl); --vf-rgb: 140, 192, 230; }
.vf-linie { position: absolute; z-index: 5; left: calc(var(--pad) / 2 - 1px); width: 2px; border-radius: 1px; background: rgba(243, 240, 232, .1); pointer-events: none; }
.vf-linie__gefahren { position: absolute; left: 0; top: 0; width: 100%; border-radius: 1px; background: linear-gradient(180deg, rgba(var(--vf-rgb), .15), var(--vf) 120px); box-shadow: 0 0 14px rgba(var(--vf-rgb), .55); }
.vf-linie__gefahren b { position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; z-index: 2; border-radius: 50%; background: #fff6ea; box-shadow: 0 0 0 4px rgba(var(--vf-rgb), .25), 0 0 24px 6px rgba(var(--vf-rgb), .85); }
.vf-linie__halt { position: absolute; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; z-index: 1; border-radius: 50%; background: var(--bg); border: 2px solid rgba(243, 240, 232, .3); transition: border-color .4s, box-shadow .4s; }
.vf-linie__halt::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--vf); transform: scale(0); transition: transform .5s var(--ease); }
.vf-linie__halt.is-erreicht { border-color: var(--vf); box-shadow: 0 0 0 5px rgba(var(--vf-rgb), .1), 0 0 18px rgba(var(--vf-rgb), .4); }
.vf-linie__halt.is-erreicht::after { transform: scale(1); }
.vf-linie__halt.is-jetzt { animation: vf-puls 1.6s ease-in-out infinite; }
@keyframes vf-puls { 50% { box-shadow: 0 0 0 11px rgba(var(--vf-rgb), 0), 0 0 30px rgba(var(--vf-rgb), .75); } }

.vf-leiste { position: fixed; z-index: 45; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 14px; width: min(660px, calc(100vw - 24px)); padding: 9px 9px 9px 18px; border-radius: 999px; background: rgba(10, 13, 18, .8); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(var(--vf-rgb), .35); opacity: 0; transform: translate(-50%, 140%); pointer-events: none; transition: transform .7s var(--ease), opacity .5s; }
body.vf-an .vf-leiste { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.vf-leiste__lampe { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: vf-blinken 1.4s ease-in-out infinite; }
@keyframes vf-blinken { 50% { opacity: .45; } }
body.vf-angehalten .vf-leiste__lampe { background: #ffd75e; box-shadow: 0 0 12px #ffd75e; animation: none; }
.vf-leiste__text { display: grid; gap: 2px; min-width: 0; flex: 0 1 auto; }
.vf-leiste__text small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
body.vf-angehalten .vf-leiste__text small::after { content: ' · angehalten'; color: #ffd75e; }
.vf-leiste__text b { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vf-leiste__strecke { position: relative; flex: 1 1 140px; height: 2px; margin: 0 12px; border-radius: 1px; background: rgba(243, 240, 232, .14); }
.vf-leiste__gefahren { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 1px; background: var(--vf); box-shadow: 0 0 10px rgba(var(--vf-rgb), .7); transition: width .25s linear; }
.vf-leiste__punkt { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; box-sizing: border-box; border-radius: 50%; background: #0b0e12; border: 1.5px solid rgba(243, 240, 232, .4); transition: background .3s, border-color .3s, box-shadow .3s; }
.vf-leiste__punkt.is-erreicht { border-color: var(--vf); background: var(--vf); }
.vf-leiste__punkt.is-jetzt { box-shadow: 0 0 0 4px rgba(var(--vf-rgb), .2), 0 0 12px var(--vf); }
.vf-knopf { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); color: var(--ink); transition: background .3s, border-color .3s; }
.vf-knopf:hover, .vf-knopf:focus-visible { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .32); }
.vf-knopf svg { width: 15px; height: 15px; fill: currentColor; }
.vf-knopf .vf-weiter, body.vf-angehalten .vf-knopf .vf-pause { display: none; }
body.vf-angehalten .vf-knopf .vf-weiter { display: block; }

/* Halte: der Abschnitt bekommt Licht, seine Punkte leuchten nacheinander auf */
.band { transition: background 1s; }
.band.vf-halt { background: radial-gradient(900px 420px at 16% 34%, rgba(var(--vf-rgb), .07), transparent 70%); }
.services li { transition: border-color .5s, background .5s, transform .6s var(--ease); }
.services li.ist-dran { border-top-color: var(--vf); background: linear-gradient(180deg, rgba(var(--vf-rgb), .13), transparent 85%); box-shadow: inset 0 2px 0 var(--vf), 0 -10px 30px -18px rgba(var(--vf-rgb), .9); transform: translateY(-4px); }
.services li.ist-dran b { color: #fff; }
.services li.ist-dran span { color: var(--ink-2); }
.services li.war-dran { border-top-color: rgba(var(--vf-rgb), .45); }
.finale.vf-halt .cta-row .btn--light { animation: vf-ruf 1.8s ease-in-out infinite; }
@keyframes vf-ruf { 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, .06), 0 0 40px rgba(255, 255, 255, .35); } }

/* Einleitung: Abfahrt wie am Bahnsteig – App, Fahrplan der Halte, Fallblatt-Countdown */
.vf-einleitung { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; cursor: pointer; background: radial-gradient(1000px 600px at 50% 42%, rgba(var(--vf-rgb), .13), transparent 62%), rgba(5, 7, 10, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .6s var(--ease); }
.vf-einleitung.is-da { opacity: 1; }
.vf-einleitung__karte { width: min(900px, 100%); text-align: center; transform: translateY(16px) scale(.98); transition: transform .9s var(--ease); }
.vf-einleitung.is-da .vf-einleitung__karte { transform: none; }
.vf-einleitung__kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--vf); }
.vf-einleitung h2 { margin-top: 18px; font-size: clamp(3rem, 9vw, 8rem); line-height: .92; letter-spacing: -.055em; font-weight: 500; }
.vf-einleitung__plan { position: relative; display: flex; margin: 44px auto 0; list-style: none; }
.vf-einleitung__plan::before, .vf-einleitung__plan::after { content: ''; position: absolute; left: var(--rand); top: 5px; height: 2px; }
.vf-einleitung__plan::before { right: var(--rand); background: rgba(243, 240, 232, .15); }
.vf-einleitung__plan::after { width: 0; background: var(--vf); box-shadow: 0 0 12px var(--vf); }
.vf-einleitung.is-da .vf-einleitung__plan::after { animation: vf-plan 3s var(--ease) .2s forwards; }
@keyframes vf-plan { to { width: calc(100% - 2 * var(--rand)); } }
.vf-einleitung__plan li { position: relative; flex: 1; padding: 24px 4px 0; font-family: var(--mono); font-size: 10.5px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.vf-einleitung__plan li::before { content: ''; position: absolute; z-index: 1; left: 50%; top: 0; width: 12px; height: 12px; margin-left: -6px; box-sizing: border-box; border-radius: 50%; background: #0b0e12; border: 2px solid var(--vf); }
.vf-einleitung__abfahrt { margin-top: 46px; font-size: 18px; color: var(--ink-2); }
.vf-fallblatt { display: inline-block; min-width: 1.5em; margin-left: 12px; padding: 4px 12px; border-radius: 7px; background: linear-gradient(180deg, #152030 50%, #0e1622 50%); border: 1px solid rgba(255, 255, 255, .12); font-family: var(--mono); font-size: 32px; font-weight: 500; color: #ffd75e; vertical-align: middle; }
.vf-fallblatt.is-kippt { animation: vf-kippen .5s var(--ease); }
@keyframes vf-kippen { from { transform: perspective(240px) rotateX(80deg); opacity: .2; } to { transform: none; opacity: 1; } }
.vf-einleitung__tipp { margin-top: 24px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--ink-3); }

/* Ankunft: Endstation mit Anfrage, Nochmal, nächster App und Messe-Modus */
.vf-ankunft { position: fixed; z-index: 46; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); width: min(740px, calc(100vw - 24px)); padding: 22px 24px 20px; border-radius: 24px; background: linear-gradient(180deg, rgba(16, 22, 30, .93), rgba(8, 11, 16, .95)); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 90px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(var(--vf-rgb), .55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; transform: translate(-50%, 30px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.vf-ankunft.is-da { opacity: 1; transform: translate(-50%, 0); }
.vf-ankunft__kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--vf); }
.vf-ankunft h3 { margin-top: 8px; font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.vf-ankunft__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.vf-ankunft__zu { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; color: var(--ink-3); }
.vf-ankunft__zu:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
@media (max-width: 760px) {
  .vf-linie { display: none; }
  .vf-leiste { gap: 10px; padding-left: 14px; }
  .vf-leiste__strecke { display: none; }
  .vf-leiste__text { flex: 1; }
  .vf-einleitung__plan li { font-size: 9px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  .vf-linie__halt.is-jetzt, .vf-leiste__lampe, .vf-fallblatt.is-kippt, .finale.vf-halt .cta-row .btn--light, .vf-einleitung.is-da .vf-einleitung__plan::after { animation: none; }
}

/* ---------- Inhalt ---------- */
.band { padding: clamp(80px, 12vh, 140px) var(--pad) 0; }
.band h2 { font-size: clamp(2.3rem, 4.6vw, 4.6rem); line-height: .97; letter-spacing: -.048em; font-weight: 500; max-width: 16ch; }
.band > p { margin-top: 22px; max-width: 560px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.services { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; list-style: none; }
.services li { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.services b { display: block; font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.services b::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--kupfer); box-shadow: 0 0 10px var(--kupfer); margin: 0 12px 2px 0; vertical-align: middle; }
.services li:nth-child(even) b::before { background: var(--stahl); box-shadow: 0 0 10px var(--stahl); }
.services span { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
@media (max-width: 1000px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

.schritte { counter-reset: schritt; }
.schritte li b::before { counter-increment: schritt; content: counter(schritt, decimal-leading-zero); width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--kupfer); margin-right: 12px; }
.schritte li:nth-child(even) b::before { background: none; box-shadow: none; }

/* Abschluss mit Anfrage und Downloads */
.finale { margin-top: clamp(90px, 14vh, 160px); padding: clamp(80px, 14vh, 150px) var(--pad) 36px; border-top: 1px solid var(--line); background: radial-gradient(900px 380px at 20% 0%, rgba(224, 160, 112, .08), transparent 60%), var(--bg); }
.finale h2 { font-size: clamp(2.8rem, 6.4vw, 6.6rem); letter-spacing: -.055em; line-height: .93; font-weight: 500; max-width: 13ch; }
.finale > p:not(.kicker) { margin-top: 24px; max-width: 560px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hinweis { margin-top: 22px; max-width: 620px; font-family: var(--mono); font-size: 11px; line-height: 1.6; letter-spacing: .03em; color: var(--ink-3); }
.finale__grid { margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; border-top: 1px solid var(--line); padding-top: 28px; }
.finale__grid div { display: grid; gap: 10px; align-content: start; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.finale__grid a:hover { color: var(--ink); }
.footer { margin-top: 90px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.footer a:hover { color: var(--ink); }
.footer b { font-weight: 500; color: var(--ink-2); }
@media (max-width: 760px) { .finale__grid { grid-template-columns: 1fr 1fr; } }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.da { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Rechtliches ---------- */
.recht { max-width: 760px; padding: clamp(130px, 20vh, 200px) var(--pad) 40px; margin: 0 auto; }
.recht h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.05em; line-height: .95; font-weight: 500; }
.recht h2 { margin-top: 44px; font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--kupfer); }
.recht p { margin-top: 12px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.recht a { border-bottom: 1px solid rgba(224, 160, 112, .45); }
.recht-fuss { max-width: 760px; margin: 0 auto; padding: 0 var(--pad) 40px; }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  .topnav, .link-quiet { display: none; }
  .topbar { padding: calc(14px + env(safe-area-inset-top, 0px)) var(--pad) 14px; }
  .brand__zeichen { height: 30px; width: 30px; }
  .brand__wort { font-size: 16px; }
  .app-kopf h1 { font-size: clamp(2.7rem, 13vw, 4.4rem); }
  .cta-row .btn { flex: 1 1 auto; }
  .cta-row a[href$=".exe"] { display: none; }
}
