/* Herkunft: Gestaltungsvorlage „Aurora“ aus uThema (https://thema.ugur.at/)
   Quelle:   https://thema.ugur.at/themes/aurora/theme.css
   Geladen:  2026-10-09 per curl, Original 31404 Byte, SHA-256 bc1114fcda60c4e37e1246907c4d8e3407e3fe60dcab62e2598fd736d223f692
   Hinweis:  Datei unverändert übernommen – nur dieser Kopf ist ergänzt. Eigene Ergänzungen stehen in site.css. */
/* Thema „Aurora" – Nachtblau, Nordlicht-Bänder (Grün → Cyan → Violett), Glaskarten, „Signalstrecke".
   Kontrast (WCAG, Luminanz-Formel), Werte je Hintergrund:
   Spalten: Grund #070b18 / Glas ca. #151b2c / Band-Kern ohne Glas #19655c (hellster je gemessener Punkt, Bänder seither um 10 % gedimmt, nachgemessen #17574b) / Glas über Band-Kern ca. #204b49
   #eef2ff Text                               17.55 / 15.33 /  6.14 /  8.68
   #cfd7e6 Sekundär hell (.lead, .sub, .note) 13.57 / 11.85 /  4.75 /  6.71
   #aab5cc Sekundär (nur auf Glas)             9.52 /  8.32 /  3.33 /  4.71
   #6ee7b7 Grün                               12.87 / 11.25 /  4.51 /  6.37
   #67e8f9 Cyan                               13.54 / 11.83 /  4.74 /  6.69
   #c4b5fd Violett                            10.63 /  9.29 /  3.72 /  5.26
   #fcd34d Amber                              13.61 / 11.89 /  4.76 /  6.73
   #fda4af Rot                                10.38 /  9.07 /  3.63 /  5.13
   #9aa6bd Grau (nur auf Glas/Plakette)        8.00 /  6.99 /  2.80 /  3.96
   #06101a auf #34d399 9.96 (Verlauf-Knopf)
   #06101a auf #22d3ee 10.59 (Verlauf-Knopf)
   #06101a auf #a78bfa 7.04 (Verlauf-Knopf)
   Verlaufstext Grün→Cyan→Violett nur in grosser Schrift (h1-Zeile, Kennzahl, Überschriften ≥ 24 px).
   Die Bänder liegen mit Deckkraft ≤ .5 und blur(90px) im Hintergrund; der hellste Punkt wurde im Bild gemessen (s. o.).
   Direkt auf Bändern steht nur Text, Sekundär hell, Grün, Cyan (≥ 4.5); Violett-Kicker dort in #ddd6fe (4.95).
   Grau steht nur in Zustands-Plaketten mit eigenem dunklem Grund (rgba(7,11,24,.5)) → ≥ 5.5. Alle Textpaare ≥ 4.5:1. */
:root {
  --bg: #070b18;
  --text: #eef2ff;
  --muted: #aab5cc;
  --muted-hi: #cfd7e6;
  --green: #6ee7b7;
  --green-2: #34d399;
  --cyan: #67e8f9;
  --cyan-2: #22d3ee;
  --violet: #c4b5fd;
  --violet-2: #a78bfa;
  --amber: #fcd34d;
  --danger: #fda4af;
  --grey: #9aa6bd;
  --ink: #06101a;
  --glass: rgba(12, 17, 34, .38);
  --glass-hi: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .22);
  --edge: rgba(255, 255, 255, .2);
  --grad: linear-gradient(100deg, #34d399, #22d3ee 50%, #a78bfa);
  --grad-v: linear-gradient(180deg, #34d399, #22d3ee 50%, #a78bfa);
  --r-lg: 22px;
  --r-md: 16px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --wrap: 1200px;
  --pad: 24px;
  /* Signalstrecke: Spalten links | Leitung | rechts */
  --cols: minmax(0, 5fr) 88px minmax(0, 7fr);
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip; position: relative;
  font: 16px/1.6 var(--sans); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
code, pre { font-family: var(--mono); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hintergrund: Nordlicht-Bänder (lang gestreckt, schräg, sehr langsam) ---------- */
.aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.band {
  position: absolute; left: -20%; width: 140%; border-radius: 50%;
  filter: blur(90px); opacity: .5; will-change: transform;
}
.band.a1 { top: 20px; height: 300px; transform: rotate(-11deg);
  background: linear-gradient(90deg, transparent 4%, rgba(52, 211, 153, .95) 26%, rgba(34, 211, 238, .8) 52%, rgba(167, 139, 250, .55) 76%, transparent 96%);
  animation: sway1 52s ease-in-out infinite alternate; }
.band.a2 { top: 560px; height: 220px; transform: rotate(-6deg); opacity: .45;
  background: linear-gradient(90deg, transparent 8%, rgba(167, 139, 250, .9) 30%, rgba(34, 211, 238, .75) 58%, rgba(52, 211, 153, .6) 80%, transparent 97%);
  animation: sway2 44s ease-in-out infinite alternate; }
.band.a3 { top: 1150px; height: 240px; transform: rotate(9deg); opacity: .45;
  background: linear-gradient(90deg, transparent 10%, rgba(52, 211, 153, .8) 34%, rgba(167, 139, 250, .8) 70%, transparent 95%);
  animation: sway3 58s ease-in-out infinite alternate; }
.band.a4 { top: auto; bottom: 380px; height: 220px; transform: rotate(-8deg); opacity: .42;
  background: linear-gradient(90deg, transparent 6%, rgba(34, 211, 238, .8) 30%, rgba(52, 211, 153, .75) 55%, rgba(167, 139, 250, .7) 80%, transparent 96%);
  animation: sway2 48s ease-in-out infinite alternate-reverse; }
.band.a5 { top: 2150px; height: 260px; transform: rotate(7deg); opacity: .5;
  background: linear-gradient(90deg, transparent 10%, rgba(34, 211, 238, .7) 35%, rgba(167, 139, 250, .8) 65%, transparent 92%);
  animation: sway3 56s ease-in-out infinite alternate-reverse; }
.band.a6 { top: 2900px; height: 240px; transform: rotate(-9deg); opacity: .46;
  background: linear-gradient(90deg, transparent 8%, rgba(167, 139, 250, .8) 30%, rgba(52, 211, 153, .7) 62%, transparent 94%);
  animation: sway1 50s ease-in-out infinite alternate; }
@keyframes sway1 { from { transform: translateX(-6%) rotate(-11deg) scaleY(1); } to { transform: translateX(7%) rotate(-7deg) scaleY(1.25); } }
@keyframes sway2 { from { transform: translateX(6%) rotate(-6deg) scaleY(1.1); } to { transform: translateX(-7%) rotate(-10deg) scaleY(.85); } }
@keyframes sway3 { from { transform: translateX(-4%) rotate(9deg); } to { transform: translateX(6%) rotate(5deg) scaleY(1.2); } }
/* feine Sterne, sehr leise */
.aurora::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1400px; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 31%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 6%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 52%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 61%, #fff 50%, transparent 51%);
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
}
.page { position: relative; z-index: 1; }

/* ---------- Glas ---------- */
.glass {
  background: linear-gradient(var(--glass-hi), var(--glass-hi)), var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line);
  border-top-color: var(--edge);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 60px -30px rgba(0, 0, 0, .8);
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font: 600 15px/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: box-shadow .25s, transform .2s, border-color .25s;
}
.btn-primary { background: var(--grad); color: var(--ink); box-shadow: 0 0 26px -8px rgba(52, 211, 153, .8), 0 0 40px -16px rgba(167, 139, 250, .9); }
.btn-primary:hover { box-shadow: 0 0 34px -4px rgba(52, 211, 153, .7), 0 0 50px -10px rgba(167, 139, 250, .9); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .05); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--green); box-shadow: 0 0 20px -6px rgba(52, 211, 153, .7); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(7, 11, 24, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -.01em; min-height: 44px; flex: none; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--ink); background: var(--grad); box-shadow: 0 0 18px -4px rgba(52, 211, 153, .8); }
.brand-mark svg.i { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.brand b { color: var(--green); font-weight: 700; }
.nav { display: flex; gap: 2px; margin-left: 18px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.bar-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.today { color: var(--muted); font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; white-space: nowrap; }
.today:hover { color: var(--green); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); color: var(--text); cursor: pointer; place-items: center; }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; }
.menu-btn[aria-expanded="true"] .m { display: none; }
.menu { border-top: 1px solid var(--line); padding: 8px 0 16px; }
.menu[hidden] { display: none; }
.menu a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 12px; text-decoration: none; color: var(--text); font-size: 17px; }
.menu a:hover { background: rgba(255, 255, 255, .06); }
.menu a small { margin-left: auto; color: var(--muted); font: 500 12px/1 var(--mono); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  font-size: 14px; color: var(--muted-hi); border: 1px solid var(--line); background: rgba(7, 11, 24, .55);
}
h1 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.03; letter-spacing: -.035em; margin: 22px 0 22px; font-weight: 800; text-wrap: balance; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted-hi); max-width: 54ch; margin: 0 0 30px; text-wrap: pretty; }
.lead strong { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted-hi); font-size: 14px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg.i { width: 16px; height: 16px; color: var(--green); stroke-width: 2.4; }

/* Statuspunkte */
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--grey); box-shadow: 0 0 0 3px rgba(154, 166, 189, .15); }
.dot.ok { background: var(--green-2); box-shadow: 0 0 10px 1px rgba(52, 211, 153, .8); animation: pulse 2.4s ease-in-out infinite; }
.dot.warn { background: var(--amber); box-shadow: 0 0 10px 1px rgba(252, 211, 77, .6); }
.dot.bad { background: var(--danger); box-shadow: 0 0 10px 1px rgba(253, 164, 175, .7); }
@keyframes pulse { 50% { box-shadow: 0 0 2px 0 rgba(52, 211, 153, .4); } }

/* ---------- Hero-Terminal (tippt den Anmeldebefehl, dann /models) ---------- */
.tty { overflow: hidden; border-radius: 18px; }
.tty-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lights { display: flex; gap: 7px; flex: none; }
.lights span { width: 11px; height: 11px; border-radius: 50%; }
.lights span:nth-child(1) { background: #fb7185; } .lights span:nth-child(2) { background: #fbbf24; } .lights span:nth-child(3) { background: var(--green-2); }
.tty-title { flex: 1; text-align: center; color: var(--muted); font: 500 13px/1 var(--mono); margin-right: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tty-body { padding: 20px 22px 22px; font: 14px/1.75 var(--mono); color: var(--text); }
.ln { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.75em; }
.ln .p { color: var(--green); }
.ln .ok { color: var(--green); }
.ln .dim { color: var(--muted); }
.cur { display: inline-block; width: .6em; height: 1.15em; margin-left: 1px; vertical-align: -.2em; background: var(--green); box-shadow: 0 0 10px rgba(110, 231, 183, .8); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pick { margin-top: 12px; border: 1px solid rgba(110, 231, 183, .28); border-radius: 12px; background: rgba(4, 8, 18, .6); overflow: hidden; transition: opacity .35s, transform .35s; }
.pick-head { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; }
.pick-head span:last-child { color: var(--muted); font-weight: 400; }
.pick-search { padding: 7px 14px; color: var(--muted); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.pick-group { padding: 8px 14px 2px; color: var(--violet); font-size: 12.5px; letter-spacing: .06em; }
.pick-list { list-style: none; margin: 0; padding: 0 6px 8px; min-height: calc(3 * 1.75em + 8px); } /* Platz für 3 Zeilen: kein Höhensprung */
.pick-more { color: var(--muted); }
.pick-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 10px; border-radius: 8px; }
.pick-list li .st { color: var(--muted); font-size: 12.5px; flex: none; }
.pick-list li .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pick-list li.sel { background: var(--grad); color: var(--ink); }
.pick-list li.sel .st { color: var(--ink); }
/* Animationszustände (nur mit JS gesetzt) */
.tty.run .pick.off { opacity: 0; transform: translateY(6px); }
.tty.run .ln.off { visibility: hidden; }

/* ---------- Signalstrecke ---------- */
.route { position: relative; padding-top: 24px; padding-bottom: 24px; }
.route::before, .route::after {
  content: ""; position: absolute; top: 0; bottom: 33px; pointer-events: none; /* endet in der Mitte des End-Knotens */
  left: calc(var(--pad) + (100% - 2 * var(--pad) - 88px) * 5 / 12 + 44px);
  background: var(--grad-v); border-radius: 2px;
}
.route::before { width: 2px; margin-left: -1px; }
.route::after { width: 10px; margin-left: -5px; filter: blur(8px); opacity: .7; }
.route-start { display: grid; grid-template-columns: var(--cols); align-items: center; margin-bottom: 0; }
.route-start .node, .route-end .node { grid-column: 2; justify-self: center; }
.route-end { display: grid; grid-template-columns: var(--cols); align-items: end; margin-top: 16px; }
.route-end p { grid-column: 3; margin: 0; color: var(--muted-hi); font-size: 15px; }
.route-start p { grid-column: 3; margin: 0; color: var(--muted-hi); font: 500 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.node {
  position: relative; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #0a1122; border: 2px solid var(--green); color: var(--green);
  font: 700 14px/1 var(--mono);
  box-shadow: 0 0 0 6px rgba(7, 11, 24, .9), 0 0 24px 2px rgba(52, 211, 153, .55);
}
.node.c { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 0 6px rgba(7, 11, 24, .9), 0 0 24px 2px rgba(34, 211, 238, .55); }
.node.v { border-color: var(--violet); color: var(--violet); box-shadow: 0 0 0 6px rgba(7, 11, 24, .9), 0 0 24px 2px rgba(167, 139, 250, .6); }
.node.s { width: 18px; height: 18px; background: var(--green-2); border: 0; }
.node.s.v { background: var(--violet-2); }

.station { display: grid; grid-template-columns: var(--cols); align-items: start; padding: 64px 0; scroll-margin-top: 84px; }
.station > .node { grid-column: 2; grid-row: 1; justify-self: center; margin-top: 2px; }
.station .left { grid-column: 1; grid-row: 1; min-width: 0; }
.station .right { grid-column: 3; grid-row: 1; min-width: 0; }
.kicker { display: inline-block; font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin: 14px 0 14px; }
.kicker.c { color: var(--cyan); } .kicker.v { color: #ddd6fe; } /* #ddd6fe auf Band-Kern 4.95 */
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 800; text-wrap: balance; }
.sub { color: var(--muted-hi); font-size: 17px; margin: 0; text-wrap: pretty; }
h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
p code, li code, .note code { font-size: .9em; color: var(--green); background: rgba(52, 211, 153, .1); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.sticky { position: sticky; top: 100px; }

/* Aushängeschild an Station 01 */
.sign { margin-top: 28px; padding: 26px 26px 22px; position: relative; overflow: hidden; }
.sign::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); }
.sign .big { display: flex; align-items: baseline; gap: 12px; font: 800 clamp(48px, 6vw, 72px)/1 var(--sans); letter-spacing: -.03em; }
.sign .big small { font-size: .42em; letter-spacing: -.01em; color: var(--text); -webkit-text-fill-color: var(--text); }
.sign .kinds { margin: 10px 0 0; font-size: 18px; color: var(--text); font-weight: 600; }
.sign .live { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted-hi); font-size: 14px; }
.sign .live .dot { margin-top: 7px; }
.sign .live a { color: var(--cyan); }
.sign .live code { white-space: nowrap; font-size: 13px; color: var(--green); overflow-wrap: anywhere; }
.note { margin: 20px 0 0; color: var(--muted-hi); font-size: 15px; }

/* Kompakte Modell-Liste */
.mlist { padding: 8px 8px 10px; }
.mgroup { margin: 0; padding: 14px 14px 6px; font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.mgroup::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mgroup.ready { color: var(--green); }
.mrows { list-style: none; margin: 0; padding: 0; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 11px 14px; border-radius: 14px; }
.mrow + .mrow { border-top: 1px solid rgba(255, 255, 255, .05); }
.mrow.is-ready { background: linear-gradient(90deg, rgba(52, 211, 153, .10), rgba(34, 211, 238, .04) 60%, transparent); border-top-color: transparent; }
.mname { font: 600 15px/1.35 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrole { color: var(--muted-hi); font-size: 14px; line-height: 1.4; }
.mmeta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; grid-row: span 2; align-self: center; }
.tag { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; color: var(--muted-hi); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); white-space: nowrap; font-variant-numeric: tabular-nums; }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 3px 11px 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(7, 11, 24, .5); white-space: nowrap; }
.state.ok { color: var(--green); border-color: rgba(110, 231, 183, .4); }
.state.warn { color: var(--amber); border-color: rgba(252, 211, 77, .35); }
.state.bad { color: var(--danger); border-color: rgba(253, 164, 175, .4); }
.state.off { color: var(--grey); }
.state .dot { width: 7px; height: 7px; }
.empty { padding: 26px; text-align: center; color: var(--muted-hi); }
.empty a { color: var(--cyan); }

/* Stationen „So funktioniert's" direkt auf der Leitung */
/* Liste und Einträge lösen sich ins Stationsraster auf (role=list/listitem im HTML hält die Semantik) */
#ablauf { row-gap: 22px; }
.st-head { grid-column: 1; grid-row: 1; max-width: 460px; }
.stops, .stop { display: contents; }
.stop > .node { grid-column: 2; justify-self: center; align-self: center; }
.stop:nth-child(1) > * { grid-row: 1; } .stop:nth-child(2) > * { grid-row: 2; }
.stop:nth-child(3) > * { grid-row: 3; } .stop:nth-child(4) > * { grid-row: 4; }
.stop .card { align-self: center; padding: 22px 24px; position: relative; max-width: 440px; display: flex; gap: 16px; align-items: flex-start; }
.stop:nth-child(odd) .card { grid-column: 3; }
.stop:nth-child(even) .card { grid-column: 1; justify-self: end; }
/* kurzer Leuchtarm von der Leitung zur Karte */
.stop .card::before { content: ""; position: absolute; top: 50%; width: 44px; height: 2px; }
.stop:nth-child(odd) .card::before { right: 100%; background: linear-gradient(90deg, rgba(34, 211, 238, .9), rgba(34, 211, 238, .1)); }
.stop:nth-child(even) .card::before { left: 100%; background: linear-gradient(90deg, rgba(34, 211, 238, .1), rgba(34, 211, 238, .9)); }
.stop .ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; color: var(--cyan); border: 1px solid rgba(103, 232, 249, .35); background: rgba(34, 211, 238, .08); }
.stop p { margin: 0; color: var(--muted-hi); font-size: 15px; }

/* Code-Terminal */
.term { overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(4, 8, 18, .6); border: 1px solid var(--line); }
.tabs button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted-hi); font: 600 14px/1 var(--sans); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--grad); }
.tabs button:focus-visible { border-radius: 999px; }
.copy { margin-left: auto; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); color: var(--text); font: 600 14px/1 var(--sans); cursor: pointer; }
.copy:hover { border-color: var(--green); }
.copy.done { color: var(--green); border-color: var(--green); }
.panel { padding: 20px 20px 22px; }
.panel > p { margin: 0 0 14px; color: var(--muted-hi); font-size: 15px; }
.panel > p:last-child { margin: 14px 0 0; }
.panel a { color: var(--cyan); }
pre { margin: 0; padding: 16px 18px; border-radius: 12px; background: rgba(3, 6, 14, .75); border: 1px solid rgba(255, 255, 255, .07); overflow-x: auto; font-size: 13.5px; line-height: 1.7; color: var(--text); tab-size: 2; max-width: 100%; }
pre .s { color: var(--green); }
pre .k { color: var(--violet); }
.os { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.os button { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--muted-hi); font: 500 14px/1 var(--sans); cursor: pointer; }
.os button[aria-pressed="true"] { color: var(--text); border-color: var(--violet); box-shadow: 0 0 14px -6px rgba(167, 139, 250, .9); }
.endpoints { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.endpoints li { padding: 14px 18px; border-radius: var(--r-md); min-width: 0; }
.endpoints small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.endpoints code { color: var(--cyan); font-size: 14px; overflow-wrap: anywhere; }

/* Warum hier */
.sec { padding: 96px 0; scroll-margin-top: 84px; }
.why { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.why-list { list-style: none; margin: 0; padding: 8px 28px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.why-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 0; align-content: start; }
.why-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
.why-list .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.why-list li:nth-child(3n+1) .ico { color: var(--green); background: rgba(52, 211, 153, .1); border: 1px solid rgba(110, 231, 183, .3); }
.why-list li:nth-child(3n+2) .ico { color: var(--cyan); background: rgba(34, 211, 238, .1); border: 1px solid rgba(103, 232, 249, .3); }
.why-list li:nth-child(3n) .ico { color: var(--violet); background: rgba(167, 139, 250, .12); border: 1px solid rgba(196, 181, 253, .3); }
.why-list h3 { font-size: 17px; }
.why-list p { margin: 0; color: var(--muted-hi); font-size: 15px; }
.bigfig { margin: 30px 0 0; font: 800 clamp(40px, 5vw, 64px)/1 var(--sans); letter-spacing: -.03em; }
.bigfig + p { margin: 8px 0 0; color: var(--muted-hi); }

/* Abschluss */
.cta { position: relative; padding: 60px 40px; text-align: center; border-radius: 28px; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--muted-hi); font-size: 18px; margin: 0 auto 28px; max-width: 52ch; }
.cta .actions { justify-content: center; }

/* Fusszeile */
footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted-hi); font-size: 14px; background: rgba(7, 11, 24, .7); margin-top: 96px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; border-radius: 8px; }
footer nav a:hover { color: var(--green); }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
  /* ohne JS: Links als umbrechende Zeile unter der Marke; mit JS (Klasse .js) übernimmt der Menü-Knopf */
  .bar { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; margin: 0 0 6px; flex-wrap: wrap; }
  .js .bar { flex-wrap: nowrap; }
  .js .nav { display: none; }
  .js .menu-btn { display: grid; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 720px; }
  .tty { max-width: 620px; }
  .today, .bar-actions .btn-ghost { display: none; }
  /* Leitung an den linken Rand */
  :root { --cols: 44px minmax(0, 1fr); }
  .route::before, .route::after { left: calc(var(--pad) + 22px); }
  .station { grid-template-columns: var(--cols); padding: 48px 0; }
  .station > .node { grid-column: 1; }
  .station .left, .station .right, .st-head { grid-column: 2; padding-left: 14px; }
  .station .right { grid-row: 2; margin-top: 28px; }
  .route-start .node, .route-end .node { grid-column: 1; }
  .route-start p, .route-end p { grid-column: 2; padding-left: 14px; }
  #ablauf { row-gap: 16px; }
  .st-head { margin-bottom: 12px; }
  .stop > .node { grid-column: 1; }
  .stop:nth-child(1) > * { grid-row: 2; } .stop:nth-child(2) > * { grid-row: 3; }
  .stop:nth-child(3) > * { grid-row: 4; } .stop:nth-child(4) > * { grid-row: 5; }
  .stop:nth-child(n) .card { grid-column: 2; justify-self: stretch; max-width: none; margin-left: 14px; }
  .stop:nth-child(n) .card::before { left: auto; right: 100%; width: 14px; background: linear-gradient(90deg, rgba(34, 211, 238, .9), rgba(34, 211, 238, .3)); }
  .sticky { position: static; }
  .why { grid-template-columns: 1fr; gap: 28px; }
  .why-list li:nth-child(n+2) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  :root { --pad: 16px; }
  .bar { min-height: 60px; gap: 10px; }
  .bar-actions { gap: 8px; }
  .bar-actions .btn-primary { padding: 10px 16px; }
  .lg { display: none; }
  .pill { font-size: 13px; padding: 7px 14px; gap: 8px; }
  .hero { padding: 40px 0 24px; }
  h1 { font-size: clamp(32px, 9.4vw, 52px); }
  .actions .btn { flex: 1 1 100%; }
  .tty-body { padding: 14px 14px 16px; font-size: 12.5px; min-height: 0; }
  .tty-title { margin-right: 0; text-align: right; font-size: 12px; }
  .pick-head, .pick-search { padding-left: 10px; padding-right: 10px; }
  .pick-group { padding-left: 10px; }
  .pick-list li { padding: 3px 8px; }
  .station { padding: 40px 0; }
  .station .left, .station .right, .st-head { padding-left: 8px; }
  .route-start p, .route-end p { padding-left: 8px; }
  .stop:nth-child(n) .card { margin-left: 8px; padding: 18px; gap: 14px; }
  .stop:nth-child(n) .card::before { width: 8px; }
  .mlist { padding: 4px 2px 6px; }
  .mgroup { padding: 12px 10px 4px; }
  .mrow { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .mmeta { grid-row: auto; justify-content: flex-start; margin-top: 4px; }
  .mname { white-space: normal; overflow-wrap: anywhere; }
  .mrole { order: 1; }
  .mmeta { order: 2; }
  pre.wrapok { white-space: pre-wrap; overflow-wrap: anywhere; }
  .panel { padding: 14px; }
  pre { padding: 12px; font-size: 12.5px; }
  .term-bar { padding: 10px; gap: 10px; }
  .term-bar .lights { display: none; }
  .tabs { flex: 1 1 auto; }
  .tabs button { flex: 1; padding: 0 8px; }
  .copy { margin-left: 0; flex: 1 1 100%; }
  .sign { padding: 22px 20px 18px; }
  .why-list { padding: 4px 18px; grid-template-columns: 1fr; }
  .why-list li { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .sec { padding: 64px 0; }
  .cta { padding: 40px 20px; }
  footer { margin-top: 64px; }
  /* schmalere, weniger unscharfe Bänder: schont mobile GPUs, bleibt aber sichtbar */
  .band { filter: blur(50px); left: -40%; width: 180%; opacity: .42 !important; }
  .band.a1 { top: 20px; height: 200px; }
  .band.a2 { top: 560px; height: 150px; }
  .band.a3 { top: 1500px; height: 170px; }
  .band.a5 { top: 3000px; height: 170px; }
  .band.a6 { top: 4200px; height: 170px; }
  .glass { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
@media (max-width: 380px) {
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn-primary:hover { transform: none; }
}
