/* Stage Kings, Direktiv „Triumph“ (GESTALTUNG.md): Schwarz, Burgund, Weiß nach der Farbkarte „Caesar“ des Inhabers.
   Diese Datei: Grundlagen, gemeinsame Bausteine (Knöpfe, Fokus, Schalter), Preloader, Hauptmenü mit dem Bahnen-Fächer.
   Die übrigen Bildschirme stehen in schirme.css, das HUD in hud.css.
   Flächen sind flach, Linien haarfein (1 px), keine Schlagschatten, keine runden Ecken über 2 px, kein Glas, kein Neon.
   Satin (weicher diagonaler Verlauf Burgund → Burgund-tief mit schmaler Glanzkante) ist das einzige Schmuckmittel.
   Bewegung im Spiel nur mit transform und opacity. */

:root {
  --schwarz: #000000; --burgund: #6d001a; --weiss: #ffffff;
  --burgund-hell: #c2183f; --burgund-tief: #3d000f; --rose: #e58a9c;
  --graphit: #161616; --rauch: #8c8c8c; --nebel: #d9d9d9;
  --satin: linear-gradient(115deg, #3d000f 0%, #6d001a 28%, #7f0d27 43%, #b02a49 48.4%, #7a0b23 52%, #6d001a 66%, #3d000f 100%);
  --f-kopf: 'Sora', 'Arial Black', 'Segoe UI', system-ui, sans-serif;
  --f-text: 'Instrument Sans', system-ui, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --sicher-o: env(safe-area-inset-top, 0px);
  --sicher-u: env(safe-area-inset-bottom, 0px);
  --sicher-l: env(safe-area-inset-left, 0px);
  --sicher-r: env(safe-area-inset-right, 0px);
  --fokus: #ffffff;
  --streifen-h: clamp(26px, 4.6vh, 40px);
  --glanz: 0 0 12px rgba(0, 0, 0, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: var(--weiss); font-family: var(--f-text); -webkit-text-size-adjust: 100%; }
body { position: fixed; inset: 0; overscroll-behavior: none; touch-action: none; }
#buehne { position: fixed; inset: 0; width: 100%; height: 100%; display: block; background: #d9d9d9; }
#ui { position: fixed; inset: 0; pointer-events: none; font: 16px/1.4 var(--f-text); -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
input, textarea { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
.visuell-versteckt, .aus-sicht { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.ico svg { width: 100%; height: 100%; }

/* ---------- sichtbarer Fokus (Tastatur, Gamepad): weiße 2-px-Linie innen, auf weißen Flächen schwarz ---------- */
#ui :focus { outline: none; }
#ui :focus-visible, html[data-eingabe="pad"] #ui :focus, html[data-eingabe="tastatur"] #ui button:focus { outline: 2px solid var(--fokus); outline-offset: -4px; }
.hell { --fokus: #000000; }

/* ---------- Bildschirme ---------- */
.screen { position: absolute; inset: 0; pointer-events: none; visibility: hidden; opacity: 0; transition: opacity .26s ease-out, visibility 0s .26s; }
.screen.offen { pointer-events: auto; visibility: visible; opacity: 1; transition: opacity .26s ease-out; }
@keyframes bahn-ein { from { opacity: 0; transform: translateY(5%); } to { opacity: 1; transform: none; } }
@keyframes bahn-links { from { opacity: 0; transform: translateX(-30%); } to { opacity: 1; transform: none; } }
@keyframes bahn-rechts { from { opacity: 0; transform: translateX(14%); } to { opacity: 1; transform: none; } }

/* ---------- Knöpfe ---------- */
.knopf { pointer-events: auto; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 44px; padding: .7em 1.3em; border: 1px solid var(--weiss); border-radius: 0; background: transparent; color: var(--weiss); font: 800 .8rem/1.1 var(--f-kopf); letter-spacing: .14em; text-transform: uppercase; text-align: center; touch-action: manipulation; transition: background-color .2s, color .2s; }
.knopf:hover { background: var(--weiss); color: var(--schwarz); }
.knopf.haupt { background: var(--weiss); color: var(--schwarz); }
.knopf.haupt:hover, .knopf.haupt:focus-visible, html[data-eingabe="pad"] .knopf.haupt:focus { background: var(--satin); color: var(--weiss); border-color: var(--weiss); }
.knopf.gross { width: 100%; min-height: 56px; font-size: .95rem; letter-spacing: .2em; }
.knopf.klein { min-height: 36px; padding: .5em 1em; font-size: .64rem; }
.knopf:disabled, .knopf[aria-disabled="true"] { opacity: .4; cursor: default; }
.knopf:disabled:hover { background: transparent; color: var(--weiss); }
.knopf.haupt:disabled:hover { background: var(--weiss); color: var(--schwarz); }
.mit-icon { display: inline-flex; align-items: center; gap: .6em; }
.hell .knopf { border-color: var(--schwarz); color: var(--schwarz); }
.hell .knopf:hover { background: var(--schwarz); color: var(--weiss); }
.hell .knopf.haupt { background: var(--schwarz); color: var(--weiss); }
.hell .knopf.haupt:hover, .hell .knopf.haupt:focus-visible { background: var(--satin); color: var(--weiss); }
.hell .knopf:disabled:hover { background: transparent; color: var(--schwarz); }
.knopf.zurueck { min-height: 36px; padding: .5em .9em; font-size: .64rem; border-color: rgba(255, 255, 255, .55); }
.hell .knopf.zurueck { border-color: rgba(0, 0, 0, .5); }

/* ---------- Schalter AN / AUS (zwei Wörter, das aktive unterlegt) ---------- */
.schalter { pointer-events: auto; cursor: pointer; display: inline-flex; border: 1px solid currentColor; background: transparent; padding: 0; min-height: 40px; font: 800 .7rem/1 var(--f-kopf); letter-spacing: .16em; color: inherit; touch-action: manipulation; }
.schalter .sw { display: grid; place-items: center; padding: 0 1.2em; min-width: 4.4em; }
.schalter[aria-checked="false"] .sw-aus, .schalter[aria-checked="true"] .sw-an { background: var(--weiss); color: var(--schwarz); }
.hell .schalter[aria-checked="false"] .sw-aus, .hell .schalter[aria-checked="true"] .sw-an { background: var(--schwarz); color: var(--weiss); }
.schalter:disabled { opacity: .45; cursor: default; }

/* ---------- Preloader: drei Bahnen wachsen von unten, die Zahl steht als Konturschrift quer darüber ---------- */
.lader { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; pointer-events: auto; overflow: hidden; --p: 0; }
.l-bahn { position: relative; flex: 1 1 0; overflow: hidden; transition: transform .74s cubic-bezier(.7, 0, .3, 1) var(--d, 0s); }
.l-fuell { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p) * 100%); }
.l-1 .l-fuell { background: #000; border-top: 1px solid #fff; border-right: 1px solid rgba(255, 255, 255, .45); }
.l-2 .l-fuell { background: var(--satin); border-top: 1px solid rgba(255, 255, 255, .7); }
.l-3 .l-fuell { background: #fff; }
.l-zahl { position: absolute; top: 0; bottom: 0; left: calc(var(--k, 0) * -33.3334vw); width: 100vw; display: flex; align-items: center; justify-content: center; gap: .04em; font: 800 min(42vw, 62vh)/1 var(--f-kopf); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #fff; }
.l-zahl b { font-weight: inherit; filter: url(#ring3); }
.l-zahl small { align-self: flex-end; margin-bottom: .16em; font: 500 .09em/1 var(--f-mono); letter-spacing: .1em; color: #fff; }
.l-1 .l-zahl { --k: 0; } .l-2 .l-zahl { --k: 1; }
.l-3 .l-zahl { --k: 2; mix-blend-mode: difference; }
.l-marke { position: absolute; left: calc(var(--sicher-l) + 18px); top: calc(var(--sicher-o) + 16px); margin: 0; font: 800 clamp(.8rem, 1.5vw, 1.1rem)/1.2 var(--f-kopf); letter-spacing: .3em; color: #fff; z-index: 2; }
.l-marke span { display: block; margin-top: .7em; font: 400 .62rem/1 var(--f-mono); letter-spacing: .16em; color: var(--nebel); }
.l-text { position: absolute; left: calc(var(--sicher-l) + 18px); bottom: calc(var(--sicher-u) + 16px); margin: 0; font: 400 .72rem/1 var(--f-mono); letter-spacing: .18em; color: #fff; z-index: 2; transition: opacity .14s; }
.l-text.wechsel { opacity: 0; }
.lader.fertig .l-zahl { animation: l-blitz .5s ease-out; }
@keyframes l-blitz { 0% { opacity: 1; } 30% { opacity: .35; } 60% { opacity: 1; } 100% { opacity: 1; } }
.lader.weg { background: transparent; pointer-events: none; }
.lader.weg .l-1 { transform: translateX(-102%); }
.lader.weg .l-2 { transform: translateY(102%); --d: .08s; }
.lader.weg .l-3 { transform: translateX(102%); --d: .16s; }
.lader.weg .l-marke, .lader.weg .l-text { opacity: 0; transition: opacity .2s; }
/* Etappenvorhang (Bau einer Etappe): drei Bahnen schließen sich wie beim Preloader, nur transform und opacity */
.etappen-vorhang { position: fixed; inset: 0; z-index: 59; display: flex; pointer-events: none; overflow: hidden; }
.etappen-vorhang[hidden] { display: none; }
.ev-bahn { flex: 1 1 0; display: block; transition: transform .3s cubic-bezier(.7, 0, .3, 1) var(--d, 0s); will-change: transform; }
.ev-1 { background: #000; transform: translateX(-102%); }
.ev-2 { background: var(--satin); transform: translateY(-102%); --d: .04s; }
.ev-3 { background: #fff; transform: translateX(102%); --d: .08s; }
.etappen-vorhang.zu { pointer-events: auto; }
.etappen-vorhang.zu .ev-bahn { transform: none; --d: 0s; }
.etappen-vorhang:not(.zu) .ev-bahn { transition-duration: .36s; }
.ev-schild { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: .55em; padding: 1.1em 1.6em 1em; background: #000; color: #fff; border: 1px solid #fff; opacity: 0; transition: opacity .16s; min-width: min(22rem, 70vw); }
.etappen-vorhang.zu .ev-schild { opacity: 1; transition-delay: .18s; }
.ev-nr { font: 800 clamp(1.4rem, 4vw, 2.6rem)/1 var(--f-kopf); letter-spacing: .08em; }
.ev-name { font: 400 .72rem/1 var(--f-mono); letter-spacing: .18em; color: var(--nebel); }
.ev-lauf { position: relative; display: block; width: 100%; height: 2px; margin-top: .4em; overflow: hidden; background: rgba(255, 255, 255, .18); }
.ev-lauf i { position: absolute; inset: 0; display: block; background: var(--burgund-hell); transform: translateX(-100%); animation: ev-lauf 1s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes ev-lauf { to { transform: translateX(100%); } }
.etappen-vorhang.sofort .ev-bahn, .etappen-vorhang.sofort .ev-schild { transition: none !important; }
/* Meldung auf der Menüebene (z. B. Etappenstart fehlgeschlagen): über Menü und HUD, unter dem Vorhang, wegtippbar */
.menue-meldung { position: fixed; z-index: 58; left: 50%; top: calc(var(--sicher-o) + 16px); transform: translateX(-50%); width: max-content; max-width: min(92vw, 520px); display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 16px; background: #000; color: #fff; border: 1px solid #fff; border-left: 4px solid var(--burgund-hell); font: 500 14px/1.4 var(--f-mono); letter-spacing: .03em; pointer-events: auto; cursor: pointer; }
.menue-meldung[hidden] { display: none; }
.menue-meldung .mm-zu { flex: none; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #fff; font: 400 22px/1 var(--f-kopf); cursor: pointer; }

/* ---------- Hauptmenü: senkrechte Bahnen über die volle Höhe ---------- */
.menue-seite { display: grid; grid-template-columns: 16vw minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) var(--streifen-h); --bw: 7.3vw; }

/* Titelbahn mit der gedrehten Wortmarke: STAGE weiß auf Schwarz, KINGS weiß auf Burgund */
.titelbahn { grid-column: 1; grid-row: 1; position: relative; background: rgba(0, 0, 0, .94); border-right: 1px solid rgba(255, 255, 255, .5); overflow: hidden; }
.screen.offen .titelbahn { animation: bahn-links .5s cubic-bezier(.2, .8, .3, 1) both; }
.wortmarke { position: absolute; inset: 0; display: flex; font-size: min(7.4vw, 10.6vh); }
.wm-bahn { height: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.wm-schwarz { flex: 0 0 7vw; }
.wm-satin { flex: 0 0 9vw; background: var(--satin); justify-content: flex-end; padding-right: 4px; }
.wm-zeile { display: block; font: 800 1em/1 var(--f-kopf); letter-spacing: -.02em; color: var(--weiss); white-space: nowrap; writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 0 5.4vh; }
.oe { position: relative; display: inline-block; }
.oe-krone { position: absolute; left: 66%; top: 50%; width: .92em; transform: translate(0, -50%) rotate(90deg); color: var(--weiss); pointer-events: none; }
.oe-krone svg { width: 100%; height: auto; }
.wm-angabe { position: absolute; left: 0; right: 0; bottom: 1.2vh; margin: 0; padding: 0 1vw; text-align: center; font: 400 clamp(.42rem, .62vw, .56rem)/1.4 var(--f-mono); letter-spacing: .12em; color: var(--nebel); display: none; }

/* Menübahnen */
.bahnen { grid-column: 2; grid-row: 1; display: flex; min-width: 0; min-height: 0; }
.bahn { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: rgba(0, 0, 0, .55); border-left: 1px solid rgba(255, 255, 255, .55); transition: flex-grow .26s ease-out, background-color .26s; }
.bahn:first-child { border-left: 0; }
.screen.offen .bahn { animation: bahn-ein .46s cubic-bezier(.2, .8, .3, 1) both; }
.screen.offen .bahn:nth-child(2) { animation-delay: .04s; } .screen.offen .bahn:nth-child(3) { animation-delay: .08s; } .screen.offen .bahn:nth-child(4) { animation-delay: .12s; }
.screen.offen .bahn:nth-child(5) { animation-delay: .16s; } .screen.offen .bahn:nth-child(6) { animation-delay: .2s; } .screen.offen .bahn:nth-child(7) { animation-delay: .24s; }
.bahn.halb { flex: 0 0 4.2vw; background: rgba(0, 0, 0, .7); }
.bahn.an { flex-grow: 6.4; background: transparent; }
.bahn.an::before { content: ''; position: absolute; inset: 0; background: var(--satin); clip-path: polygon(0 0, var(--bw) 0, var(--bw) 30%, 100% 30%, 100% 100%, 0 100%); }
.bahn:not(.an):not(.halb).gewaehlt { background: rgba(0, 0, 0, .35); }
.bahn.halb.gewaehlt { background: rgba(109, 0, 26, .85); }

.b-wahl { position: absolute; left: 0; top: 0; bottom: 0; width: var(--bw); z-index: 1; pointer-events: auto; cursor: pointer; background: transparent; border: 0; padding: 2.2vh 0 2vh; color: var(--weiss); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; font: inherit; }
.bahn.halb .b-wahl { width: 100%; padding: 2vh 0; }
.b-nr { font: 400 clamp(.6rem, .85vw, .76rem)/1 var(--f-mono); letter-spacing: .14em; color: var(--nebel); margin-bottom: auto; }
.b-titel { font: 800 min(4.7vw, 7.6vh)/1 var(--f-kopf); letter-spacing: -.02em; white-space: nowrap; writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 2.2vh; text-shadow: var(--glanz); }
.bahn.halb .b-titel { font-size: min(1.9vw, 3.6vh); letter-spacing: .06em; margin-bottom: 0; }
.b-angaben { display: flex; flex-direction: column; gap: .7em; align-items: center; min-height: 6.4em; justify-content: flex-end; }
.bahn.halb .b-angaben { display: none; }
.ang { display: flex; flex-direction: column; gap: .25em; align-items: center; font: 400 clamp(.5rem, .8vw, .68rem)/1 var(--f-mono); letter-spacing: .1em; color: var(--weiss); text-transform: uppercase; }
.ang small { font-size: inherit; color: var(--nebel); }
.ang b { font-weight: 500; font-size: 1.12em; letter-spacing: .06em; white-space: nowrap; }
.bahn:not(.an):not(.halb) .b-wahl { width: 100%; }
.b-wahl { transition: width .26s ease-out; }
.b-wahl:focus-visible { outline-offset: -6px; }

/* geöffnete Bahn: Inhalt waagerecht rechts neben der gedrehten Randzeile */
.b-inhalt { position: absolute; left: var(--bw); right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; opacity: 0; transition: opacity .2s; pointer-events: none; }
.bahn.an .b-inhalt { opacity: 1; pointer-events: auto; transition: opacity .3s .12s; }
.b-fenster { flex: 0 0 30%; border-left: 1px solid rgba(255, 255, 255, .85); border-bottom: 1px solid rgba(255, 255, 255, .85); position: relative; }
.b-fenster-marke { position: absolute; left: 1.2em; bottom: .9em; font: 400 .62rem/1 var(--f-mono); letter-spacing: .2em; color: #fff; text-shadow: 0 0 6px rgba(0, 0, 0, .7), 0 0 14px rgba(0, 0, 0, .5); }
.b-text { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 1.6vh; padding: 2.4vh 2vw 0 2vw; overflow: hidden; }
.b-beschr { margin: 0; font: 400 clamp(.82rem, 1.12vw, 1.05rem)/1.45 var(--f-text); color: rgba(255, 255, 255, .92); max-width: 34em; }
.b-tabelle { display: flex; flex-direction: column; gap: 1.2vh; min-height: 0; overflow: hidden; }
.b-text .starten { margin: auto -2vw 0 -2vw; width: calc(100% + 4vw); border-width: 1px 0 0; min-height: clamp(48px, 8.4vh, 70px); }
.tz-zeile { display: flex; align-items: baseline; gap: .8em; font: 400 clamp(.6rem, .86vw, .78rem)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.tz-zeile .tz-linie { flex: 1; border-bottom: 1px dotted rgba(255, 255, 255, .5); transform: translateY(-.25em); }
.tz-zeile .tz-wert { font-weight: 500; }
.tz-zeile.leer .tz-wert { color: var(--nebel); }
.tz-etappe { display: grid; grid-template-columns: auto 1fr auto; column-gap: .9em; align-items: baseline; font: 400 clamp(.6rem, .86vw, .78rem)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.tz-zahl { font: 800 clamp(1.1rem, 1.9vw, 1.8rem)/1 var(--f-kopf); letter-spacing: -.01em; color: #fff; grid-row: span 2; align-self: center; min-width: 1.9em; }
.tz-etname { color: #fff; }
.tz-etwert { text-align: right; color: var(--nebel); }
.tz-etappe .leiste, .tz-etappe .leiste-leer { grid-column: 2 / 4; }
.tz-etappe.zu .tz-zahl { color: var(--rauch); }
.tz-etappe.zu .tz-etname, .tz-etappe.zu .tz-etwert { color: var(--rauch); }
.leiste { display: flex; gap: 3px; height: 7px; }
.leiste i { flex: 1 1 0; border: 1px solid rgba(255, 255, 255, .8); }
.leiste i.ok { background: #fff; }
.leiste-leer { display: block; height: 7px; background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(140, 140, 140, .6) 4px 5px); }

/* Bildstreifen unten: drei Felder wie in der Vorlage */
.bildstreifen { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 16vw minmax(0, 1fr) 24vw; font: 400 clamp(.5rem, .8vw, .66rem)/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; }
.bs-feld { display: flex; align-items: center; padding: 0 1.4vw; white-space: nowrap; overflow: hidden; }
.bs-schwarz { background: #000; color: var(--nebel); }
.bs-satin { background: var(--satin); color: #fff; }
.bs-weiss { background: #fff; color: #000; justify-content: flex-end; }

/* ---------- Hochformat: Bahnen liegen als waagerechte Bänder untereinander ---------- */
@media (max-aspect-ratio: 1/1) {
  .menue-seite { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) var(--streifen-h); --bh: 9vh; }
  .titelbahn { grid-column: 1; grid-row: 1; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .5); height: 11.5vh; min-height: 62px; }
  .wortmarke { font-size: min(8.4vw, 5.4vh); flex-direction: row; align-items: stretch; }
  .wm-schwarz { flex: 0 0 56%; justify-content: flex-start; padding-left: 5vw; }
  .wm-satin { flex: 1 1 auto; justify-content: flex-start; padding-left: 4vw; }
  .wm-bahn { align-items: center; }
  .wm-zeile { writing-mode: horizontal-tb; transform: none; margin: 0; }
  .oe-krone { left: 50%; top: -.05em; width: .78em; transform: translate(-50%, -85%); }
  .bahnen { grid-column: 1; grid-row: 2; flex-direction: column; }
  .bahn { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .55); }
  .bahn:first-child { border-top: 0; }
  .bahn.halb { flex: 0 0 5.2vh; }
  .bahn.an { flex-grow: 7.2; }
  .bahn.an::before { clip-path: none; }
  .b-wahl { right: 0; bottom: auto; width: auto; height: var(--bh); flex-direction: row; align-items: center; justify-content: flex-start; gap: 3vw; padding: 0 4vw; }
  .bahn.halb .b-wahl { height: 100%; width: 100%; }
  .b-nr { margin: 0; }
  .b-titel { writing-mode: horizontal-tb; transform: none; margin: 0; font-size: min(8.6vw, 5.4vh); line-height: 1; }
  .bahn.halb .b-titel { font-size: min(3.6vw, 2.4vh); }
  .b-angaben { margin-left: auto; flex-direction: row; gap: 4vw; min-height: 0; align-items: flex-end; }
  .b-angaben .ang { align-items: flex-end; font-size: .56rem; }
  .bahn:not(.an) .b-angaben { display: none; }
  .bahnen.uebersicht .b-wahl { height: 100%; align-items: flex-end; padding: 0 4vw 1.6vh; }
  .bahnen.uebersicht .bahn:not(.halb) .b-titel { font-size: min(10.9vw, 7vh); }
  .bahnen.uebersicht .bahn:not(.halb) .b-angaben { display: none; }
  .bahnen.uebersicht .bahn:not(.halb) .b-nr { align-self: flex-start; margin-top: 1.6vh; }
  .bahnen.uebersicht .bahn.halb .b-wahl { align-items: center; padding: 0 4vw; }
  .b-inhalt { left: 0; top: var(--bh); }
  .b-fenster { display: none; }
  .b-text { padding: 1.4vh 5vw 0 5vw; gap: 1.4vh; }
  .b-beschr { font-size: .86rem; }
  .b-text .starten { margin: auto -5vw 0 -5vw; width: calc(100% + 10vw); }
  .tz-etappe { font-size: .62rem; }
  .bildstreifen { grid-row: 3; grid-template-columns: 34% 1fr 30%; font-size: .5rem; }
  .bs-feld { padding: 0 3vw; }
}

/* ---------- kurze Querlage (Handy quer): alles kompakter ---------- */
@media (min-aspect-ratio: 1/1) and (max-height: 520px) {
  .b-text { gap: 1vh; padding-top: 1.4vh; }
  .b-beschr { font-size: .7rem; line-height: 1.35; }
  .tz-etappe { font-size: .54rem; }
  .tz-zahl { font-size: 1rem; }
  .leiste { height: 5px; }
  .ang { font-size: .46rem; }
  .b-angaben { min-height: 5.6em; gap: .5em; }
  .b-text .starten { min-height: 42px; }
  .tz-zeile { font-size: .54rem; }
  .knopf.gross { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .screen, .bahn, .titelbahn, .l-bahn, .ev-bahn, .ev-schild { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .ev-lauf i { animation: none; transform: none; opacity: .6; }
}
