/* Setterdock – Liniennetz bei Nacht. Ein Grund (Nachtblau-Emaille), acht Linienfarben, eine Signalfarbe für Aktionen. */

@font-face { font-family: "Spline Sans"; src: url("fonts/spline-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spline Sans"; src: url("fonts/spline-sans-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spline Sans Mono"; src: url("fonts/spline-sans-mono-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --night: #060b20;
  --night-2: #0a1230;
  --enamel: #0d1840;
  --enamel-line: #1b2a5e;
  --porcelain: #eef1f8;
  --text: #e8ecf7;
  --text-2: #a9b4d4;
  --text-3: #7f8bb0;
  --signal: #1556e0;
  --signal-hi: #2266f2;
  --trunk: #8fd0ff;

  --l-whatsapp: #2bd16b;
  --l-instagram: #f0479b;
  --l-facebook: #3d7bff;
  --l-email: #2f62ff;
  --l-anruf: #ffb02e;
  --l-webseite: #9a63ff;
  --l-sms: #1fc7c0;
  --l-google: #f2c63a;

  --ok: #2bd16b;
  --wait: #ffb02e;
  --need: #ff5a6a;

  --sans: "Spline Sans", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 96px);
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: var(--sans); font-size: 18px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--l-anruf); color: var(--night); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--trunk); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
html { scrollbar-color: var(--enamel-line) var(--night); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--porcelain); color: var(--night); padding: 8px 14px; border-radius: 999px; }

/* ---------- Kopfzeile ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 48px);
  padding: clamp(14px, 2.2vw, 34px) var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; font-size: clamp(22px, 1.95vw, 34px); letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 46px); margin-left: auto; font-size: clamp(15px, 1.05vw, 19px); }
.nav a { text-decoration: none; color: var(--text); opacity: 0.92; }
.nav a:hover { opacity: 1; text-decoration: underline; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6em; border: 0; cursor: pointer;
  background: var(--signal); color: #fff; font: inherit; font-weight: 600; text-decoration: none;
  border-radius: 999px; padding: 0.78em 1.5em; line-height: 1;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s cubic-bezier(.2,.8,.2,1);
}
.btn:hover { background: var(--signal-hi); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; }
.top .btn { font-size: clamp(15px, 1.1vw, 20px); }

/* ---------- Hero: das Liniennetz ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; background: var(--night); }
.hero-scene { position: absolute; inset: 0; perspective: 1600px; z-index: -1; }
.hero-scene svg { width: 100%; height: 100%; transform-origin: 64% 40%; transition: transform 0.9s cubic-bezier(.16,1,.3,1); will-change: transform; }
.hero-copy {
  position: relative; z-index: 2;
  padding: calc(clamp(14px, 2.2vw, 34px) * 2 + 60px) var(--gutter) 0;
  padding-top: max(150px, 27vh);
  max-width: 52vw;
}
.hero h1 { font-size: clamp(2.9rem, 5.45vw, 6rem); letter-spacing: -0.015em; word-spacing: 0.04em; }
.hero h1 .l1, .hero h1 .l2 { display: block; white-space: nowrap; }
.hero h1 .l2 { color: #5aa2ff; }
.hero .lede { margin-top: clamp(18px, 1.9vw, 34px); font-size: clamp(19px, 2vw, 34px); line-height: 1.3; color: #c6d6f3; font-weight: 500; max-width: 18ch; }
.hero .actions { margin-top: clamp(26px, 3vw, 56px); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero .actions .btn { font-size: clamp(17px, 1.45vw, 26px); }
.hero .hint { flex-basis: 100%; font-size: 15px; color: var(--text-3); }
.hero .hint a { color: var(--text-2); }

/* Linien im SVG */
.line-glow { fill: none; stroke-width: 26; stroke-linecap: round; opacity: 0.32; filter: url(#glow); }
.line-core { fill: none; stroke-width: 9; stroke-linecap: round; }
.line-hi { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 2.5; stroke-linecap: round; }
.stop { fill: #fff; }
.badge-ring { stroke: rgba(255, 255, 255, 0.35); stroke-width: 3; }
.badge-halo { opacity: 0.35; filter: url(#glow); }
.badge-icon { fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.badge-label { fill: #fff; font: 600 38px var(--sans); letter-spacing: 0; }
.label-pill { fill: rgba(7, 12, 34, 0.86); stroke: rgba(169, 180, 212, 0.22); stroke-width: 2; }
.train { filter: url(#trainglow); }
.tag-box { fill: rgba(10, 16, 40, 0.9); stroke: var(--l-anruf); stroke-width: 2.5; }
.tag-text { fill: #fff3cf; font: 500 25px var(--sans); }
.trunk-glow { stroke: var(--trunk); stroke-width: 30; opacity: 0.35; filter: url(#glow); fill: none; }
.trunk-core { stroke: #c7ecff; stroke-width: 10; fill: none; stroke-linecap: round; }
.trunk-arrow { stroke: #c7ecff; stroke-width: 10; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.station-ring { fill: var(--night); stroke: var(--signal-hi); stroke-width: 9; }
.station-label { fill: #fff; font: 600 38px var(--sans); paint-order: stroke; stroke: var(--night); stroke-width: 8px; }
.hub-pulse { fill: none; stroke: var(--trunk); stroke-width: 3; opacity: 0; }

.fo-card {
  font-family: var(--sans); color: var(--text); background: rgba(9, 18, 46, 0.92);
  border: 2px solid rgba(76, 139, 255, 0.55); border-radius: 18px; padding: 22px 24px; height: 100%;
  display: grid; gap: 18px; align-content: start; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.fo-card p { font-size: 25px; line-height: 1.3; display: flex; gap: 14px; }
.fo-card p svg { flex: 0 0 34px; width: 34px; height: 34px; color: #9cc3ff; }
.fo-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fo-card .b { font: 600 23px var(--sans); border-radius: 10px; padding: 14px 0; text-align: center; }
.fo-card .b.o { border: 2px solid rgba(169, 180, 212, 0.45); color: var(--text); }
.fo-card .b.f { background: var(--signal); color: #fff; }

/* ---------- Abschnitte ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 180px) var(--gutter); }
.section h2 { font-size: clamp(2.2rem, 4.2vw, 4.6rem); }
.section .intro { margin-top: 22px; max-width: 62ch; color: var(--text-2); font-size: clamp(18px, 1.3vw, 22px); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.note { font: 600 13px var(--sans); letter-spacing: 0.06em; color: var(--text-3); text-transform: uppercase; }

/* Fahrt einer Anfrage: Fortsetzung der Stammlinie */
.journey { padding-top: clamp(40px, 6vw, 90px); }
.journey-head { max-width: 760px; }
.track { position: relative; margin-top: clamp(50px, 6vw, 100px); list-style: none; padding: 0; --x: 58%; }
.track::before {
  content: ""; position: absolute; top: -40px; bottom: 0; left: var(--x); width: 8px; margin-left: -4px; border-radius: 8px;
  background: linear-gradient(#c7ecff, #8fd0ff 70%, rgba(143, 208, 255, 0.2));
  box-shadow: 0 0 24px rgba(143, 208, 255, 0.55);
}
.track .car {
  position: absolute; left: var(--x); top: 0; width: 26px; height: 54px; margin-left: -13px; border-radius: 14px;
  background: var(--porcelain); box-shadow: 0 0 0 5px rgba(6, 11, 32, 0.9), 0 0 34px 6px rgba(143, 208, 255, 0.9);
  transform: translateY(var(--car-y, 0px)); will-change: transform; z-index: 2;
}
.stn { position: relative; display: grid; grid-template-columns: var(--x) 1fr; align-items: center; min-height: clamp(230px, 24vw, 320px); }
.stn::after {
  content: ""; position: absolute; left: var(--x); top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: var(--night); border: 8px solid var(--c, var(--signal-hi)); transition: background 0.4s ease, box-shadow 0.4s ease;
}
.stn.passed::after { background: var(--c, var(--signal-hi)); box-shadow: 0 0 22px var(--c, var(--signal-hi)); }
.stn .txt { padding-right: clamp(36px, 5vw, 90px); text-align: right; justify-self: end; max-width: 560px; }
.stn .t { display: inline-flex; flex-wrap: wrap; justify-content: inherit; align-items: center; gap: 8px 10px; margin-top: 8px; font: 600 15px var(--sans); color: var(--c, var(--text-2)); letter-spacing: 0.02em; }
.stn h3 { margin-top: 0; font-size: clamp(1.5rem, 2.2vw, 2.4rem); letter-spacing: -0.02em; }
.stn .txt p { margin-top: 10px; color: var(--text-2); }
.stn .ui { padding-left: clamp(36px, 5vw, 90px); }
.soon { white-space: nowrap; font: 600 11.5px var(--sans); text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-2); border: 1px solid var(--enamel-line); border-radius: 999px; padding: 3px 9px; }
.terminus::after { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-width: 10px; }

/* Kleine Oberflächen-Ausschnitte */
.bubble { max-width: 380px; border-radius: 18px; padding: 14px 16px 10px; font-size: 16.5px; line-height: 1.4; box-shadow: 0 18px 40px -18px rgba(0,0,0,0.8); }
.bubble.in { background: #17224a; border-top-left-radius: 6px; }
.bubble.out { background: #13402a; border-top-right-radius: 6px; margin-left: 30px; }
.bubble small { display: block; text-align: right; margin-top: 4px; font: 500 12px var(--mono); color: rgba(232, 236, 247, 0.6); }
.call { display: flex; align-items: center; gap: 14px; max-width: 380px; background: #1a1f38; border-radius: 16px; padding: 14px 16px; }
.call svg { width: 28px; height: 28px; color: var(--need); flex: none; }
.call b { display: block; font-weight: 600; }
.call span { color: var(--text-2); font-size: 15px; }
.draft { max-width: 440px; background: #2b2410; border: 1px solid #6b5420; border-radius: 18px; padding: 16px 18px; box-shadow: 0 18px 40px -18px rgba(0,0,0,0.8); }
.draft .k { display: flex; align-items: center; gap: 8px; font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: 0.05em; color: #f2c66e; }
.draft .k svg { width: 16px; height: 16px; }
.draft p { margin-top: 10px; font-size: 16.5px; line-height: 1.45; color: #fbf0d4; }
.draft .meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 12.5px var(--sans); color: #f5ddb0; border: 1px solid #6b5420; border-radius: 999px; padding: 4px 10px; }
.approve { display: grid; gap: 12px; max-width: 420px; }
.approve .btns { display: flex; gap: 10px; }
.approve .btns span { flex: 1; text-align: center; border-radius: 12px; padding: 12px; font-weight: 600; }
.approve .btns .o { border: 1.5px solid var(--enamel-line); }
.approve .btns .f { background: var(--signal); }
.rule { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--text-2); border-bottom: 1px solid var(--enamel-line); padding: 8px 2px; }
.rule b { color: var(--need); font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: 0.04em; }
.member { display: flex; align-items: center; gap: 14px; max-width: 380px; background: #10301f; border: 1px solid #1f6b3e; border-radius: 16px; padding: 14px 16px; }
.member svg { width: 28px; height: 28px; color: var(--ok); flex: none; }

/* Abfahrtstafel */
.board-wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.board {
  background: #04070f; border-radius: 22px; padding: clamp(16px, 2vw, 30px); border: 1px solid #1a2350;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.board h3 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.3rem, 2vw, 2.1rem); padding: 4px 6px 16px; border-bottom: 1px solid #1a2350; }
.board h3 svg { width: 1.2em; height: 1.2em; }
.board table { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin-top: 8px; }
.board th { text-align: left; font: 600 12px var(--sans); letter-spacing: 0.08em; color: var(--text-3); text-transform: uppercase; padding: 4px 10px; }
.board td { background: #0b1124; padding: 14px 10px; font-size: 16px; }
.board td:first-child { border-radius: 10px 0 0 10px; font: 500 22px var(--mono); color: #f1f4ff; letter-spacing: 0.04em; }
.board td:last-child { border-radius: 0 10px 10px 0; }
.ln { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 6px 10px; font-weight: 600; font-size: 14px; color: #06101f; background: var(--c); }
.ln svg { width: 16px; height: 16px; }
.board td .soon { margin-left: 6px; }
.ln.on-dark { color: #fff; }
.st { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; }
.st::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--s); box-shadow: 0 0 10px var(--s); }
.st.flip { animation: flip 0.6s cubic-bezier(.2,.8,.2,1); }
@keyframes flip { 0% { transform: rotateX(90deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Weichen (Automatik-Stufen) */
.switch { margin-top: clamp(40px, 5vw, 80px); display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.switch::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--l-email), var(--l-whatsapp) 50%, var(--l-anruf)); opacity: 0.85; }
.lvl { position: relative; padding-top: 74px; padding-right: 32px; }
.lvl::before { content: attr(data-n); position: absolute; top: -6px; left: 0; width: 54px; height: 54px; border-radius: 50%; background: var(--night); border: 6px solid #fff; display: grid; place-content: center; font: 700 20px var(--sans); color: #fff; }
.lvl h3 { margin-top: 8px; font-size: clamp(1.4rem, 1.9vw, 2rem); }
.lvl p { margin-top: 10px; color: var(--text-2); max-width: 38ch; }
.guard { margin-top: clamp(50px, 6vw, 90px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.guard h3 { font-size: clamp(1.5rem, 2.2vw, 2.4rem); }
.guard ul { list-style: none; margin: 0; padding: 0; }
.guard li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--enamel-line); }
.guard li span:last-child { font: 600 12.5px var(--sans); text-transform: uppercase; letter-spacing: 0.05em; color: var(--need); text-align: right; }

/* Linienplan */
.legend { margin-top: clamp(40px, 5vw, 70px); list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(30px, 5vw, 90px); }
.legend li { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--enamel-line); }
.legend .sw { width: 54px; height: 10px; border-radius: 10px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.legend b { font-size: 19px; }
.legend small { display: block; color: var(--text-2); font-size: 15px; }
.legend .s { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); }
.legend .s.live { color: var(--ok); }

/* Datenschutz */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(30px, 5vw, 90px); }
.privacy dl { margin: 0; }
.privacy dt { font-weight: 600; font-size: 20px; padding-top: 22px; }
.privacy dd { margin: 6px 0 0; color: var(--text-2); padding-bottom: 22px; border-bottom: 1px solid var(--enamel-line); }

/* Schluss */
.final { text-align: left; background: radial-gradient(120% 140% at 80% 0%, #102158 0%, var(--night) 60%); }
.final .inner { max-width: 900px; }
.final h2 { font-size: clamp(2.6rem, 5vw, 5.4rem); }
.final p { margin-top: 20px; font-size: clamp(18px, 1.5vw, 24px); color: var(--text-2); max-width: 46ch; }
.final .btn { margin-top: 36px; font-size: clamp(17px, 1.4vw, 24px); }
.final .small { margin-top: 18px; font-size: 15px; color: var(--text-3); }

.foot { padding: 34px var(--gutter) 46px; display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; border-top: 1px solid var(--enamel-line); color: var(--text-3); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-left: auto; }
.foot a { color: var(--text-2); }

/* Rechtsseiten */
.legal { max-width: 760px; margin: 0 auto; padding: 140px var(--gutter) 100px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3.4rem); overflow-wrap: anywhere; hyphens: auto; }
.legal h2 { font-size: 1.6rem; letter-spacing: -0.01em; margin-top: 2.2em; }
.legal h3 { font-size: 1.25rem; letter-spacing: 0; margin-top: 1.6em; }
.legal p, .legal li, .legal address { color: var(--text-2); margin-top: 0.8em; font-style: normal; }
.legal ul { padding-left: 1.2em; }
.legal .stand { margin-top: 1.4em; font: 500 13px var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.legal-top { position: absolute; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); }

/* ---------- Bewegung ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scene svg { transition: none; }
}

/* ---------- Schmal ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .top .btn { margin-left: auto; padding: 0.7em 1.1em; }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-copy { max-width: none; padding-top: 108px; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 4rem); }
  .hero .lede { max-width: 22ch; }
  .hero-scene { position: relative; inset: auto; height: 85vw; margin: 18px 0 10px; z-index: 0; }
  /* Die Entwurfskarte wäre im kleinen Netz unlesbar; sie folgt direkt darunter groß in der Fahrt. */
  .fo-wrap, .hide-sm { display: none; }
  .badge-label { font-size: 58px; }
  .station-label { font-size: 56px; }
  .tag-text { font-size: 40px; }
  .board table { table-layout: fixed; }
  .board th:first-child, .board td:first-child { width: 70px; }
  .board td .soon { display: block; margin: 6px 0 0; width: fit-content; font-size: 11px; letter-spacing: 0.02em; padding: 2px 6px; }
  .track { --x: 22px; padding-top: 72px; }
  .stn { grid-template-columns: 1fr; padding-left: 58px; min-height: 0; padding-bottom: 54px; align-items: start; }
  .stn::after { top: 6px; margin-top: 0; }
  .stn .txt { text-align: left; justify-self: start; padding: 0; }
  .stn .ui { padding: 18px 0 0; }
  .terminus::after { top: 0; }
  .board-wrap, .guard, .privacy { grid-template-columns: 1fr; }
  .board td { padding: 12px 8px; font-size: 14.5px; }
  .board td:first-child { font-size: 17px; }
  .board .hide-sm { display: none; }
  .switch { grid-template-columns: 1fr; gap: 34px; }
  .switch::before { left: 23px; right: auto; top: 0; bottom: 0; width: 8px; height: auto; background: linear-gradient(var(--l-email), var(--l-whatsapp) 50%, var(--l-anruf)); }
  .lvl { padding: 6px 0 0 76px; min-height: 60px; }
  .lvl::before { top: 0; }
  .legend { grid-template-columns: 1fr; }
}

.stn .t .tm { font-family: var(--mono); font-weight: 500; }
.board td:nth-child(3) { white-space: nowrap; }
@media (min-width: 901px) { .board td:nth-child(2) { white-space: nowrap; } }
