/* Bob im Eiskanal · 3D-Fassung (28.11.2026, Muster: spiele/rodeln/css/rodeln.css). Kern-Tokens aus kern/spiel.css, Anzeigen der Fahrt aus winter3d-hud.js.
   Kein Scrollen, Ziele ≥ 120 × 96, große Pause (body.arcade-raetsel-pause). */
html, body { overflow: hidden; }
#buehne, #welt, #spiel { position: fixed; inset: 0; width: 100%; height: 100%; }
#buehne { background: #102439; touch-action: none; }
#welt canvas { display: block; width: 100%; height: 100%; }
#spiel { z-index: 8; pointer-events: none; outline: none; }
#spiel .pause-knopf { pointer-events: auto; }
#spiel .pause-knopf:not(.pause-begleitung) { min-width: 120px; min-height: 96px; }
[hidden] { display: none !important; }
/* Anzeigen der Fahrt ruhen unter Menüs, Pause und Ergebnis */
body.bob-menue .w3d-ui:not(.w3d-blende) { display: none !important; }
.bob-start, .bob-seite, .bob-ergebnis-schirm { font-family: "DM Sans", system-ui, sans-serif; }

/* Startseite über der stehenden Welt: oben und unten abgedunkelt (Kontrast), die Mitte zeigt die Rodelbahn */
.bob-start { background: linear-gradient(180deg, #08142af0, #08142a99 30%, transparent 46%, transparent 56%, #08142aee 78%); }
.bob-start .start-oben { align-items: start; }
.bob-start .start-kopf img { width: clamp(70px, 10vmin, 120px); height: auto; }
.bob-start .start-kopf h1 { text-wrap: balance; color: var(--akzent); }
.bob-start .start-kopf p { color: #fff; }
.bob-start .start-unten { text-align: center; padding-bottom: var(--unten); }
.bob-start .start-haupt { justify-content: center; }
.bob-start .start-haupt .knopf { min-width: 120px; min-height: 96px; }
.bob-start .start-haupt .knopf svg { width: 44px; height: 44px; flex: none; }
.bob-start .start-haupt .knopf small { display: block; font-size: var(--s-klein); font-weight: 600; }
.bob-sammlung { display: flex; width: fit-content; gap: 8px; align-items: center; margin: 0 auto var(--luecke); padding: 6px 14px;
  border-radius: var(--r-mittel); background: #102439f0; color: #fff; font-weight: 700; }
.bob-preis { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; }
.bob-preis svg { width: 100%; height: 100%; }
.bob-preis.leer { opacity: .45; }

/* Regal: Zeilen, die seitenweise() verteilt */
.bob-seite { display: flex; flex-direction: column; background: #102439; }
.bob-liste { flex: 1; display: flex; flex-direction: column; gap: var(--luecke); padding: 0 var(--rechts) 0 var(--links); min-height: 0; }
.bob-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border-radius: var(--r-mittel);
  background: #17304ff0; color: #fff; }
.bob-zeile > span:first-child { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.bob-zeile svg { width: 36px; height: 36px; flex: none; }
.bob-zeile .ort { color: #bfefff; display: inline-flex; }
.bob-zeile small { color: #d5f7ff; font-size: var(--s-klein); }
.bob-zeile .pokale { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.bob-zeile .pokal { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* Ergebnis: Karte unten, das Podest in der Welt bleibt sichtbar */
.bildschirm.bob-ergebnis-schirm { display: flex; align-items: flex-end; justify-content: center; padding: 0 var(--rechts) var(--unten) var(--links); background: none; }
.bob-ergebnis { display: grid; gap: 10px; padding: 14px 18px; border-radius: 22px; background: #102439f2; border: 3px solid #ffffff55; color: #fff;
  max-width: min(980px, 100%); box-sizing: border-box; }
.bob-ergebnis .kopf { display: flex; align-items: center; gap: 14px; }
.bob-ergebnis .kopf .bob-preis { width: clamp(56px, 10vmin, 92px); height: clamp(56px, 10vmin, 92px); }
.bob-ergebnis h1.titel { margin: 0; font-size: clamp(22px, 4vmin, 40px); text-align: left; }
.bob-ergebnis p { margin: 2px 0 0; color: #d5f7ff; font-size: var(--s-text); }
.bob-ergebnis .saison-satz { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.bob-ergebnis .saison-satz svg { width: 32px; height: 32px; }
.bob-ergebnis .dialog-knoepfe { display: flex; flex-wrap: wrap; gap: var(--luecke); justify-content: center; }
.bob-ergebnis .dialog-knoepfe .knopf { min-width: 120px; min-height: 96px; }
@media (max-height: 419px) { .bob-ergebnis { padding: 8px 12px; gap: 6px; } .bob-ergebnis .dialog-knoepfe .knopf { min-width: 96px; min-height: 72px; } }

/* Training (zählt nicht für den Cup): Stoppuhr oben mittig unter der Torleiste */
.bob-marke { position: fixed; left: 50%; top: calc(max(14px, env(safe-area-inset-top)) + 76px); transform: translateX(-50%); display: flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 14px; background: rgba(14,30,52,.6); color: #ffd9b5; font: 700 15px/1.2 "DM Sans", system-ui, sans-serif; }
.bob-marke svg { width: 24px; height: 24px; }
.bob-laden p { color: #fff; font-size: var(--s-h3); text-align: center; }
.bildschirm.laden-schirm { display: grid; place-items: center; }
/* Einstellungen: die Zeilen mit vier Knöpfen (Steuerung, Lenkhilfe) immer zweizeilig, Titel oben, Knöpfe darunter
   (wie der Kern unter 560 px; nebeneinander ragten sie im Hochformat aus dem Fenster, Prüfwerk 28.11.) */
.einst-zeile.erklaert:has([data-key="steuerung"]), .einst-zeile.erklaert:has([data-key="lenkhilfe"]) { flex-wrap: wrap; }
.einst-zeile.erklaert:has([data-key="steuerung"]) h3, .einst-zeile.erklaert:has([data-key="lenkhilfe"]) h3 { flex: 1 1 100%; }
.einst-zeile.erklaert:has([data-key="steuerung"]) .wahl, .einst-zeile.erklaert:has([data-key="lenkhilfe"]) .wahl { flex: 1 1 100%; flex-wrap: wrap; }
.einst-zeile.erklaert:has([data-key="steuerung"]) .wahl > .knopf, .einst-zeile.erklaert:has([data-key="lenkhilfe"]) .wahl > .knopf { flex: 1 1 120px; }
/* Einstellungen: Bildzeichen in der Wahl (Steuerung, Lenkhilfe, Taster) */
.mit-bild { display: block; }
.mit-bild svg { width: 30px; height: 30px; display: block; margin: 0 auto 2px; }

/* CVI: ruhig, gelb auf Schwarz */
body.w3d-cvi .bob-start, body.bf-cvi .bob-start { background: linear-gradient(180deg, #000, #000c 34%, transparent 48%, transparent 56%, #000 78%); }
body.w3d-cvi .bob-sammlung, body.w3d-cvi .bob-zeile, body.w3d-cvi .bob-ergebnis, body.w3d-cvi .bob-seite,
body.bf-cvi .bob-sammlung, body.bf-cvi .bob-zeile, body.bf-cvi .bob-ergebnis, body.bf-cvi .bob-seite { background: #000; border-color: #ffd84d; }
body.w3d-cvi .bob-zeile small, body.w3d-cvi .bob-ergebnis p, body.bf-cvi .bob-zeile small, body.bf-cvi .bob-ergebnis p { color: #fff; }
body.w3d-cvi .bob-marke, body.bf-cvi .bob-marke { background: #000; color: #ffd84d; border: 2px solid #ffd84d; }

/* Ansagen: Plakette, Umbruch und Lage stehen seit der Pflege 28.11. zentral im Baustein (winter3d-hud.js, .w3d-ansage). */

/* Momente der Bahn in der Torleiste des Bausteins (eigene Bildzeichen statt Torflaggen) */
#buehne .w3d-tore svg.moment { width: 40px; height: 36px; }
@media (max-width: 420px) { #buehne .w3d-tore { gap: 4px; padding: 8px 10px; } #buehne .w3d-tore svg.moment { width: 30px; height: 28px; } }
body.w3d-cvi .w3d-tore svg.moment.offen g { stroke: #8a7a3a; }

/* ===================== Extras (28.11.2026): zu zweit, Bobhütte, Bestspur ===================== */
/* Startseite: „Spielen“ groß, darunter Zu zweit, Bobhütte, Pokalregal (je ≥ 120 × 96) */
.bob-start .start-haupt { flex-direction: column; align-items: center; }
.bob-start .start-haupt > .knopf.haupt { width: min(100%, 640px); flex: none; max-width: none; }
.bob-start .bob-neben { display: flex; flex-wrap: wrap; gap: var(--luecke); justify-content: center; width: min(100%, 900px); }
.bob-start .bob-neben .knopf.haupt.zweit { flex: 1 1 200px; width: auto; max-width: 300px; min-width: 120px; min-height: 96px; font-size: clamp(18px, 0.9vw + 1.2vh, 28px); gap: 12px; }
.bob-start .bob-neben .knopf.haupt.zweit.gewaehlt { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 30%, #0b1a2e); }
@media (max-height: 460px) and (orientation: landscape) {
  .bob-start .start-haupt { flex-direction: row; flex-wrap: nowrap; align-items: stretch; }
  .bob-start .start-haupt > .knopf.haupt { width: auto; flex: 1.4 1 0; min-width: 150px; }
  .bob-start .bob-neben { display: contents; }
  .bob-start .bob-neben .knopf.haupt.zweit { flex: 1 1 0; font-size: 17px; gap: 6px; flex-direction: column; padding: 8px 6px; }
  .bob-start .bob-neben .knopf.haupt.zweit svg { width: 30px; height: 30px; }
}
@media (max-width: 560px) and (orientation: portrait) { .bob-start .bob-neben .knopf.haupt.zweit { flex: 1 1 40%; } }

/* Zu zweit: zwei große Karten */
.bob-zweit-schirm, .bob-probe-schirm, .bob-wechsel-schirm { display: flex; flex-direction: column; gap: var(--luecke); }
.bob-wahl { flex: 1; display: flex; flex-wrap: wrap; gap: var(--luecke); justify-content: center; align-content: center; padding: 0 var(--rechts) 0 var(--links); }
.bob-wahl .knopf.bob-karte { flex: 1 1 320px; max-width: 520px; min-height: clamp(120px, 26vh, 240px); flex-direction: row; gap: 18px; text-align: left; align-items: center; }
.bob-wahl .knopf.bob-karte > svg { width: 64px; height: 64px; flex: none; }
.bob-wahl .knopf.bob-karte b { display: block; font-size: clamp(22px, 1.2vw + 1.6vh, 34px); }
.bob-wahl .knopf.bob-karte small { display: block; font-size: var(--s-klein); font-weight: 600; color: #fff; opacity: .9; margin-top: 4px; }
.bob-wahl .knopf.bob-karte.gewaehlt { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 26%, #0b1a2e); }
@media (max-height: 460px) { .bob-wahl .knopf.bob-karte { min-height: 110px; } .bob-wahl .knopf.bob-karte small { display: none; } }

/* Zweierbob einrichten: Pilot und Bremser, das Probe-Feld ist groß (Spieler 2 tippt oder drückt) */
.bob-rollen { flex: 1; display: flex; flex-wrap: wrap; gap: var(--luecke); justify-content: center; align-content: center; padding: 0 var(--rechts) 0 var(--links); }
.bob-rollen.klein { flex: none; }
.bob-rolle { flex: 1 1 320px; max-width: 560px; min-height: 120px; display: flex; align-items: center; gap: 16px; padding: 14px 18px; box-sizing: border-box;
  border-radius: var(--r-gross); background: #17304ff0; border: 3px solid #ffffff55; color: #fff; }
.bob-rolle .wappen svg, .bob-wappen svg { width: clamp(56px, 9vmin, 84px); height: clamp(56px, 9vmin, 84px); display: block; }
.bob-wappen { display: inline-block; flex: none; }
.bob-rolle .txt { flex: 1; min-width: 0; }
.bob-rolle b { display: block; font-size: clamp(20px, 1vw + 1.4vh, 30px); }
.bob-rolle small { display: block; font-size: var(--s-text); color: #d5f7ff; margin-top: 4px; }
.bob-rolle .stand svg { width: 48px; height: 48px; }
.bob-rolle.probe { min-height: clamp(150px, 30vh, 260px); border-style: dashed; border-color: #f08a24; touch-action: manipulation; cursor: pointer; }
.bob-rolle.probe.bereit { border-style: solid; border-color: #6fe08a; box-shadow: 0 0 0 4px #6fe08a44; }
.bob-rolle.probe.bereit .stand { color: #6fe08a; }
.bob-hinweis { margin: 0; text-align: center; color: #ffd9b5; font-weight: 700; font-size: var(--s-text); min-height: 1.3em; padding: 0 var(--rechts) 0 var(--links); }
.bob-wechsel-schirm .einst-zeile .wahl .knopf { flex: 1 1 200px; }
.bob-wechsel-schirm .einst-zeile .wahl .knopf svg { width: 34px; height: 34px; }

/* Fahrt zu zweit: Team-Anzeige unten rechts (Wappen, Rolle, drei Takte und Bremse) */
.bob-team { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); display: grid; gap: 6px; padding: 10px 14px;
  border-radius: 18px; background: rgba(14,30,52,.72); backdrop-filter: blur(4px); color: #fff; font: 700 15px/1.1 "DM Sans", system-ui, sans-serif; pointer-events: none; z-index: 6; }
.bob-team .rolle { display: flex; align-items: center; gap: 8px; }
.bob-team .wappen svg { width: 34px; height: 34px; display: block; }
.bob-team .name { min-width: 5.2em; }
.bob-team .pips { display: inline-flex; gap: 6px; align-items: center; }
.bob-team .pip { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.55); box-sizing: border-box; display: inline-grid; place-items: center; }
.bob-team .pip.bremse { width: 26px; height: 26px; border-radius: 8px; color: rgba(255,255,255,.7); }
.bob-team .pip.bremse svg { width: 18px; height: 18px; }
.bob-team .pip.jetzt { border-color: #bfefff; box-shadow: 0 0 0 3px #bfefff55; }
.bob-team .pip.hell { border-color: #ffcf4a; background: #ffcf4a66; box-shadow: 0 0 10px 3px #ffcf4aaa; }
.bob-team .pip.perfekt { border-color: #ffcf4a; background: #ffcf4a; color: #3a2408; }
.bob-team .pip.gut { border-color: #fff; background: #fff; color: #17304f; }
.bob-team .pip.verpasst { border-color: #ff8a7a; background: transparent; }
@media (max-width: 560px) { .bob-team { font-size: 13px; padding: 8px 10px; } .bob-team .wappen svg { width: 28px; height: 28px; } }
/* Schliff 2: Mitlehn-Takte als Raute; niedrige Fenster kompakter (B2, dazu teamEinpassen in spiel.js) */
.bob-team .pip.lehn { width: 15px; height: 15px; border-radius: 3px; transform: rotate(45deg); margin: 0 2px; }
@media (max-height: 460px) { .bob-team { padding: 6px 10px; gap: 3px; font-size: 13px; } .bob-team .wappen svg { width: 26px; height: 26px; } .bob-team .name { min-width: 0; }
  .bob-team .pip { width: 15px; height: 15px; } .bob-team .pip.lehn { width: 12px; height: 12px; } .bob-team .pip.bremse { width: 22px; height: 22px; } }
/* Schliff 2 (C6): „Spieler 2 ist dran“ bleibt stehen, solange die Bahn auf Spieler 2 wartet */
.bob-p2-dran { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: 120px; display: flex; align-items: center; gap: 10px; max-width: min(92vw, 520px);
  padding: 10px 18px; border-radius: 18px; background: #f08a24; color: #1a0f05; font: 800 clamp(16px, 1vw + 1vh, 24px)/1.15 "DM Sans", system-ui, sans-serif;
  box-shadow: 0 0 0 4px #f08a2455, 0 8px 24px #0006; pointer-events: none; z-index: 7; }
.bob-p2-dran[hidden] { display: none; }
.bob-p2-dran .wappen svg { width: 36px; height: 36px; display: block; }
body.w3d-cvi .bob-p2-dran, body.bf-cvi .bob-p2-dran { background: #000; color: #ffd84d; border: 3px solid #ffd84d; box-shadow: none; }

/* Bobhütte: Leisten oben (Arten) und unten (Teile), der Bob steht dazwischen in der 3D-Welt */
.bildschirm.bob-werkstatt-schirm { display: flex; flex-direction: column; gap: var(--luecke); background: linear-gradient(180deg, #120c08e6, #120c0866 20%, transparent 32%, transparent 62%, #120c08aa 74%, #120c08f0); }
.bob-werkstatt-schirm .w-kopf h1.titel { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; }
.bob-werkstatt-schirm .w-kopf h1 svg { width: 40px; height: 40px; flex: none; color: var(--akzent); }
.bob-werkstatt-schirm .w-arten, .bob-werkstatt-schirm .w-teile { display: flex; flex-wrap: wrap; gap: var(--luecke); justify-content: center; padding: 0 var(--rechts) 0 var(--links); }
.bob-werkstatt-schirm .w-arten .knopf { flex: 0 1 170px; min-width: 120px; min-height: 96px; flex-direction: row; gap: 10px; }
.bob-werkstatt-schirm .w-arten .knopf svg { width: 34px; height: 34px; flex: none; }
.bob-werkstatt-schirm .w-mitte { flex: 1; min-height: 40px; }
.bob-werkstatt-schirm .w-teile .knopf { flex: 0 1 160px; min-width: 120px; min-height: 104px; gap: 4px; padding: 8px 10px; }
.bob-werkstatt-schirm .w-teile .knopf small { display: block; font-size: 13px; font-weight: 600; color: #ffd9b5; margin-top: 2px; }
.bob-werkstatt-schirm .w-bild { position: relative; display: block; line-height: 0; }
.bob-werkstatt-schirm .w-bild > svg { width: 64px; height: 48px; }
.bob-werkstatt-schirm .w-schloss { position: absolute; right: -10px; bottom: -6px; width: 26px; height: 26px; color: #fff; background: #0b1a2e; border-radius: 50%; display: grid; place-items: center; }
.bob-werkstatt-schirm .w-schloss svg { width: 18px; height: 18px; }
.bob-werkstatt-schirm .knopf.gesperrt .w-bild > svg { opacity: .45; filter: grayscale(.7); }
.bob-werkstatt-schirm .knopf.gewaehlt { border-color: #ffcf4a; box-shadow: 0 0 0 3px #ffcf4a66, var(--schatten); }
@media (orientation: portrait) {
  .bob-werkstatt-schirm .w-arten .knopf { flex: 1 1 40%; }
  .bob-werkstatt-schirm .w-teile .knopf { flex: 1 1 28%; }
}
@media (max-height: 460px) and (orientation: landscape) {
  .bob-werkstatt-schirm .w-kopf { display: none; }
  .bob-werkstatt-schirm .w-teile .knopf { min-height: 96px; } .bob-werkstatt-schirm .w-teile .knopf small { display: none; }
}

/* Abwechselnd: Vergleich */
.bob-vergleich h1.titel { display: flex; align-items: center; gap: 10px; }
.bob-vergleich h1.titel svg { width: 36px; height: 36px; flex: none; }
.bob-vergleich .vergleich-reihe { display: flex; gap: var(--luecke); justify-content: center; flex-wrap: wrap; }
.bob-vergleich .spieler { flex: 1 1 220px; display: grid; justify-items: center; gap: 4px; padding: 10px 14px; border-radius: 18px; border: 3px solid #ffffff33; background: #17304f; }
.bob-vergleich .spieler.vorn { border-color: #ffcf4a; box-shadow: 0 0 0 3px #ffcf4a55; }
.bob-vergleich .spieler b { font-size: clamp(18px, 1vw + 1.2vh, 28px); }
.bob-vergleich .spieler small { color: #d5f7ff; font-size: var(--s-text); }
.bob-vergleich .spieler .bob-preis { width: 52px; height: 52px; }
.bob-ergebnis .kopf .bob-wappen svg { width: clamp(48px, 8vmin, 72px); height: clamp(48px, 8vmin, 72px); }
.bob-ergebnis .saison-satz > svg { width: 32px; height: 32px; flex: none; }

/* CVI für die Extras: schwarz, gelb */
body.w3d-cvi .bob-rolle, body.bf-cvi .bob-rolle, body.w3d-cvi .bob-team, body.bf-cvi .bob-team, body.w3d-cvi .bob-vergleich .spieler, body.bf-cvi .bob-vergleich .spieler {
  background: #000; border-color: #ffd84d; color: #fff; backdrop-filter: none; }
body.w3d-cvi .bob-team, body.bf-cvi .bob-team { border: 3px solid #ffd84d; }
body.w3d-cvi .bob-team .pip.perfekt, body.bf-cvi .bob-team .pip.perfekt { background: #ffd84d; border-color: #ffd84d; }
body.w3d-cvi .bildschirm.bob-werkstatt-schirm, body.bf-cvi .bildschirm.bob-werkstatt-schirm { background: linear-gradient(180deg, #000, #000a 22%, transparent 32%, transparent 62%, #000 76%); }
body.w3d-cvi .bob-hinweis, body.bf-cvi .bob-hinweis { color: #ffd84d; }
/* Bobhütte: Hinweis bei gesperrten Teilen (zentrale Plakette des Bausteins, auch im Menü sichtbar) */
body.bob-menue .w3d-ui.w3d-ansage.bob-w-ansage { display: block !important; top: 36%; }
/* Abwechselnd: die beiden Spieler kompakt nebeneinander */
.bob-rollen.klein .bob-rolle { flex: 1 1 160px; min-height: 96px; padding: 8px 12px; }
.bob-rollen.klein .bob-rolle .wappen svg { width: 52px; height: 52px; }
/* Niedrige Fenster (≤ 420 px): Kacheln 96 × 72 wie der Kern auf kleinen Bildschirmen, eine Reihe */
@media (max-height: 420px) {
  .bob-werkstatt-schirm .w-arten .knopf { min-height: 72px; flex: 1 1 0; padding: 6px 8px; }
  .bob-werkstatt-schirm .w-teile { flex-wrap: nowrap; }
  .bob-werkstatt-schirm .w-teile .knopf { flex: 1 1 0; min-width: 96px; min-height: 72px; padding: 4px 6px; }
  .bob-werkstatt-schirm .w-teile .knopf > span:not(.w-bild):not(.dwell-dot) { font-size: 13px; }
  .bob-werkstatt-schirm .w-bild > svg { width: 48px; height: 36px; }
  .bob-rolle { min-height: 88px; padding: 8px 12px; } .bob-rolle.probe { min-height: 110px; }
  .bob-rollen.klein .bob-rolle { min-height: 72px; }
}
/* Korrektur nach Lauf 1 (Prüfwerk, Safari iPhone SE 320 × 568): Startknöpfe 2 × 2 statt 1 + 2 + 1, sonst ragte „Pokalregal“ aus dem Fenster */
@media (max-width: 420px) and (max-height: 700px) and (orientation: portrait) {
  .bob-start .start-haupt { display: grid; grid-template-columns: 1fr 1fr; gap: var(--luecke); }
  .bob-start .bob-neben { display: contents; }
  .bob-start .start-haupt > .knopf.haupt, .bob-start .bob-neben .knopf.haupt.zweit { width: auto; max-width: none; min-width: 120px; min-height: 96px; flex-direction: column; gap: 4px;
    font-size: 18px; padding: 8px 6px; }
  .bob-start .start-haupt .knopf svg { width: 30px; height: 30px; }
}
/* Korrektur nach dem Korrekturlauf (nicht mehr im Browser nachgeprüft, siehe Akte „Extras“): Zu zweit und Abwechselnd auf kleinen Fenstern
   667 × 375: Karten nebeneinander statt untereinander (überdeckten „Zurück“), Erklärung und Spielerkarten aus; 375 × 667: Wahl unter dem Titel */
@media (max-height: 460px) {
  .bob-wahl .knopf.bob-karte { flex: 1 1 200px; min-height: 96px; gap: 10px; }
  .bob-wahl .knopf.bob-karte > svg { width: 44px; height: 44px; }
  .bob-wechsel-schirm .einst-erklaer, .bob-wechsel-schirm .bob-rollen.klein { display: none; }
}
.bob-wechsel-schirm .einst-zeile.erklaert { flex-wrap: wrap; }
.bob-wechsel-schirm .einst-zeile.erklaert h3 { flex: 1 1 100%; }
.bob-wechsel-schirm .einst-zeile.erklaert .wahl { flex: 1 1 100%; flex-wrap: wrap; }
.bob-wechsel-schirm .einst-zeile .wahl .knopf { min-width: 120px; }
/* Nach dem Korrekturlauf (nicht mehr im Browser belegt): In CVI macht der Rahmen jeden .bildschirm schwarz (CVI_KLASSEN.grund, !important),
   das deckte die 3D-Bobhütte ganz zu (Bild 30-bobhuette-cvi). Die Hütte bleibt in der Mitte durchsichtig, oben und unten schwarz. */
body.bf-cvi #oberflaeche.bildschirm.bob-werkstatt-schirm, body.w3d-cvi #oberflaeche.bildschirm.bob-werkstatt-schirm {
  background: linear-gradient(180deg, #000, #000c 22%, transparent 32%, transparent 62%, #000 76%) !important; }

/* ===== Schliff 2 (29.11.2026) ======================================================================================== */
/* C5: Erklärtexte auf „Zu zweit“, Zweierbob-Probe und „Abwechselnd“ größer */
.bob-wahl .knopf.bob-karte small { font-size: clamp(16px, 0.55vw + 1.1vh, 24px); line-height: 1.3; }
.bob-rolle small { font-size: clamp(16px, 0.5vw + 1.1vh, 23px); }
.bob-wechsel-schirm .einst-erklaer { font-size: clamp(16px, 0.55vw + 1.1vh, 24px); }
/* C4: Zähler „x von 19 Teilen frei“ im Bobhütten-Knopf der Startseite und im Kopf der Hütte */
.bob-start .bob-neben .knopf.haupt.zweit small { display: block; font-size: clamp(12px, 0.35vw + 0.8vh, 17px); font-weight: 600; opacity: .9; line-height: 1.15; white-space: normal; }
.bob-werkstatt-schirm .w-kopf { display: grid; justify-items: center; gap: 2px; }
/* Korrektur nach Lauf 1: niedrige Fenster quer ohne Kopf (wie vorher), Teile-Kacheln eine Reihe 96 × 72 */
@media (max-height: 460px) and (orientation: landscape) { .bob-werkstatt-schirm .w-kopf { display: none; } }
.bob-werkstatt-schirm .w-zahl { margin: 0; font-size: clamp(14px, 0.4vw + 1vh, 20px); font-weight: 700; color: #ffd9b5; }
/* C1: Namen in den Teile-Kacheln nie abschneiden (vorher „letscherblau“ bei 1920 × 1080) */
.bob-werkstatt-schirm .w-teile .knopf { flex: 1 1 170px; max-width: 240px; }
.bob-werkstatt-schirm .w-teile .knopf > span:not(.w-bild):not(.dwell-dot) { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; line-height: 1.1; white-space: normal; text-overflow: clip; overflow: visible; }
.bob-werkstatt-schirm .w-teile .knopf small { white-space: normal; line-height: 1.1; }
/* A2: Handy hoch (schmal) zweistufig. Arten 2 × 2 oben, Bob darunter; Teile 2 je Reihe unten, Bob darüber. Kein Kopf über den Teilen. */
.bob-werkstatt-schirm.kompakt .w-arten { display: grid; grid-template-columns: 1fr 1fr; }
.bob-werkstatt-schirm.kompakt .w-arten .knopf { flex: none; min-width: 120px; min-height: 96px; }
.bob-werkstatt-schirm.kompakt .w-teile { display: grid; grid-template-columns: 1fr 1fr; }
.bob-werkstatt-schirm.kompakt .w-teile .knopf { max-width: none; min-width: 120px; min-height: 96px; padding: 6px 8px; }
.bob-werkstatt-schirm.kompakt .w-teile .knopf .w-bild > svg { width: 52px; height: 38px; }
.bob-werkstatt-schirm.kompakt .w-art-name { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font: 800 clamp(20px, 2.6vh, 26px)/1.1 "DM Sans", system-ui, sans-serif;
  color: #fff; text-shadow: 0 2px 6px #000a; padding-top: max(8px, env(safe-area-inset-top)); }
.bob-werkstatt-schirm.kompakt .w-art-name svg { width: 30px; height: 30px; color: var(--akzent); }
.bildschirm.bob-werkstatt-schirm.kompakt.nur-teile { background: linear-gradient(180deg, #120c08cc, transparent 9%, transparent 31%, #120c08cc 37%, #120c08f0); }
.bildschirm.bob-werkstatt-schirm.kompakt.nur-arten { background: linear-gradient(180deg, #120c08f0, #120c08cc 44%, transparent 50%, transparent 82%, #120c08cc); }
body.bf-cvi #oberflaeche.bildschirm.bob-werkstatt-schirm.kompakt.nur-teile, body.w3d-cvi #oberflaeche.bildschirm.bob-werkstatt-schirm.kompakt.nur-teile {
  background: linear-gradient(180deg, #000c, transparent 9%, transparent 31%, #000 37%) !important; }
body.bf-cvi #oberflaeche.bildschirm.bob-werkstatt-schirm.kompakt.nur-arten, body.w3d-cvi #oberflaeche.bildschirm.bob-werkstatt-schirm.kompakt.nur-arten {
  background: linear-gradient(180deg, #000, #000 44%, transparent 50%, transparent 82%, #000c) !important; }
body.w3d-cvi .bob-werkstatt-schirm .w-zahl, body.bf-cvi .bob-werkstatt-schirm .w-zahl, body.w3d-cvi .bob-werkstatt-schirm .w-art-name, body.bf-cvi .bob-werkstatt-schirm .w-art-name { color: #ffd84d; }
@media (max-height: 420px) {
  .bob-werkstatt-schirm .w-teile .knopf { flex: 1 1 0; max-width: none; min-width: 96px; min-height: 72px; padding: 4px 6px; }
}

/* ===================== Zwei Rinnen (29.11.2026): Wahl mit vier Karten, geteiltes Bild ===================== */
/* Vier Karten (Zweierbob, Abwechselnd, Zwei Rinnen, Allein): 2 × 2, auf niedrigen Fenstern kompakt ohne Erklärung (≥ 120 × 96, kein Scrollen) */
.bob-wahl.vier .knopf.bob-karte { flex: 1 1 calc(50% - var(--luecke)); max-width: 560px; min-height: clamp(110px, 20vh, 200px); }
@media (max-height: 560px) { .bob-wahl.vier .knopf.bob-karte { min-height: 96px; padding-top: 6px; padding-bottom: 6px; } .bob-wahl.vier .knopf.bob-karte small { display: none; } .bob-wahl.vier .knopf.bob-karte > svg { width: 48px; height: 48px; } }
@media (max-width: 560px) and (orientation: portrait) { .bob-wahl.vier .knopf.bob-karte { flex-basis: 100%; min-height: 96px; } .bob-wahl.vier .knopf.bob-karte small { display: none; } }
/* Korrektur nach Lauf 1 (375 × 667: „Zwei Rinnen“ lag über „Zurück“): auch drei Karten auf kleinen Handys hoch kompakt */
@media (max-width: 560px) and (max-height: 760px) and (orientation: portrait) { .bob-wahl .knopf.bob-karte { flex-basis: 100%; min-height: 96px; } .bob-wahl .knopf.bob-karte small { display: none; } }

/* Fahrt: je Spieler ein Rahmen in Spielerfarbe, breite Fuge zwischen den Hälften, Platz und Momente oben rechts je Hälfte */
.bob-duell { position: fixed; inset: 0; pointer-events: none; z-index: 4; }
.bob-duell[hidden] { display: none; }
.bob-duell .duell-teil { position: absolute; box-sizing: border-box; border: 5px solid #24b6b0; }
.bob-duell .duell-teil[data-nr="2"] { border-color: #f08a24; }
.bob-duell .duell-teil.leuchtet { border-color: #ffcf4a; box-shadow: inset 0 0 0 4px #ffcf4a88, inset 0 0 40px 6px #ffcf4a55; }
.bob-duell .duell-fuge { position: absolute; background: #0d1626; box-shadow: 0 0 0 2px #ffffffaa; }
.bob-duell .duell-kopf { position: absolute; right: 14px; top: 12px; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 18px;
  background: rgba(14,30,52,.82); border: 2px solid rgba(255,255,255,.25); color: #fff; }
.bob-duell .duell-kopf .wappen svg { width: 54px; height: 54px; display: block; }
.bob-duell .duell-kopf b { display: block; font: 800 clamp(22px, 2.4vmin + 8px, 36px)/1 var(--schrift, system-ui, sans-serif); }
.bob-duell .duell-kopf small { display: block; font-size: 15px; font-weight: 700; opacity: .92; margin-top: 2px; }
.bob-duell .duell-teil.vorn .duell-kopf { border-color: #ffcf4a; box-shadow: 0 0 0 3px #ffcf4a55; }
.bob-duell .duell-momente { position: absolute; right: 14px; top: 92px; display: flex; gap: 4px; padding: 5px 8px; border-radius: 14px; background: rgba(14,30,52,.62); }
.bob-duell .duell-momente svg { width: 30px; height: 28px; display: block; }
.bob-duell .duell-ansage { position: absolute; left: 50%; top: 30%; transform: translate(-50%, 0) scale(.92); opacity: 0; transition: opacity .25s, transform .25s;
  font: 800 clamp(20px, 3.4vmin + 6px, 44px)/1.1 var(--schrift, system-ui, sans-serif); color: #fff; text-align: center; width: max-content; max-width: calc(100% - 40px);
  padding: .16em .6em .22em; border-radius: 18px; background: rgba(14,30,52,.84); border: 2px solid rgba(255,255,255,.22); box-shadow: 0 6px 20px rgba(0,0,0,.35); box-sizing: border-box; }
.bob-duell .duell-ansage:empty { display: none; }
.bob-duell .duell-ansage.an { opacity: 1; transform: translate(-50%, 0) scale(1); }
.bob-duell .duell-dran { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 30px);
  padding: 8px 16px; border-radius: 18px; background: #f08a24; color: #1d1004; font-weight: 800; font-size: clamp(17px, 2vmin + 6px, 26px); box-shadow: 0 4px 16px rgba(0,0,0,.4); box-sizing: border-box; }
.bob-duell .duell-dran[hidden] { display: none; }
.bob-duell .duell-dran .wappen svg { width: 36px; height: 36px; display: block; }
/* kleine Hälften (Handy quer 667 × 375 bzw. hoch): kompakter */
.bob-duell.klein .duell-kopf { right: 8px; top: 8px; padding: 4px 10px 4px 6px; gap: 6px; }
.bob-duell.klein .duell-kopf .wappen svg { width: 38px; height: 38px; }
.bob-duell.klein .duell-kopf b { font-size: 20px; }
.bob-duell.klein .duell-kopf small { font-size: 12px; }
.bob-duell.klein .duell-momente { right: 8px; top: 60px; padding: 3px 5px; gap: 2px; }
.bob-duell.klein .duell-momente svg { width: 22px; height: 20px; }
.bob-duell.klein .duell-ansage { top: 38%; font-size: 19px; }
/* Korrektur nach Lauf 1: schmale Hälften (Handy hoch): die Momente von Spieler 1 lagen unter der großen Pause → darunter; Ansage tiefer */
.bob-duell.schmal .duell-teil[data-nr="1"] .duell-momente { top: 122px; }
.bob-duell.schmal .duell-momente svg { width: 26px; height: 24px; }
.bob-duell.hoch .duell-ansage { top: 44%; }
/* Ergebnis Zwei Rinnen bzw. Abwechselnd auf niedrigen Fenstern (667 × 375): beide Spieler nebeneinander, kompakt */
@media (max-height: 460px) { .bob-vergleich .vergleich-reihe { flex-wrap: nowrap; } .bob-vergleich .spieler { flex: 1 1 0; padding: 4px 8px; gap: 2px; }
  .bob-vergleich .spieler .bob-wappen svg { width: 40px; height: 40px; } .bob-vergleich .spieler .bob-preis { width: 36px; height: 36px; } .bob-vergleich h1.titel { font-size: 22px; } }
/* Bühnen-Anzeigen für einen Spieler (Torleiste, Platzspalte, zentrale Ansage) sind im geteilten Bild aus; Fotofinish und Blende bleiben */
body.bob-duell-an .w3d-ansage, body.bob-duell-an .w3d-tore, body.bob-duell-an .w3d-platz { display: none !important; }
body.w3d-cvi .bob-duell .duell-teil, body.bf-cvi .bob-duell .duell-teil { border-color: #ffd84d; }
body.w3d-cvi .bob-duell .duell-teil[data-nr="2"], body.bf-cvi .bob-duell .duell-teil[data-nr="2"] { border-color: #ffffff; }
body.w3d-cvi .bob-duell .duell-teil.leuchtet, body.bf-cvi .bob-duell .duell-teil.leuchtet { box-shadow: inset 0 0 0 6px #000, inset 0 0 0 10px #ffd84d; }
body.w3d-cvi .bob-duell .duell-fuge, body.bf-cvi .bob-duell .duell-fuge { background: #000; box-shadow: 0 0 0 2px #ffd84d; }
body.w3d-cvi .bob-duell .duell-kopf, body.bf-cvi .bob-duell .duell-kopf, body.w3d-cvi .bob-duell .duell-momente, body.bf-cvi .bob-duell .duell-momente,
body.w3d-cvi .bob-duell .duell-ansage, body.bf-cvi .bob-duell .duell-ansage { background: #000; border: 3px solid #ffd84d; color: #ffd84d; box-shadow: none; }
body.w3d-cvi .bob-duell .duell-dran, body.bf-cvi .bob-duell .duell-dran { background: #000; color: #ffd84d; border: 3px solid #ffd84d; box-shadow: none; }

/* Nach dem Korrekturlauf (29.11., nicht mehr im Browser belegt): kleine Hälften ohne Momente-Leiste (sie lag auf der Linie voraus);
   Ergebnis Zwei Rinnen bzw. Abwechselnd auf schmalen Handys hoch: beide Spieler nebeneinander (375 × 667 ragte die Karte oben hinaus) */
.bob-duell.klein .duell-momente { display: none; }
@media (max-width: 560px) and (orientation: portrait) { .bob-vergleich .vergleich-reihe { flex-wrap: nowrap; } .bob-vergleich .spieler { flex: 1 1 0; padding: 6px 6px; gap: 2px; }
  .bob-vergleich .spieler .bob-wappen svg { width: 44px; height: 44px; } .bob-vergleich .spieler .bob-preis { width: 36px; height: 36px; } }

/* ===== Zwei Rinnen Schliff (29.11.2026, nach NACHPRUEFUNG-ZWEI-RINNEN.md) ============================================== */
/* C3: Platz · Medaille · Zeit brechen nur zwischen den Teilen um, nie in der Zeit („29,35↵s“) */
.bob-vergleich .spieler small .nb { white-space: nowrap; }
.bob-vergleich .spieler small .zeit { font-variant-numeric: tabular-nums; }
/* B4: iPhone SE (320 × 568) ragte das Ergebnis 59 px oben hinaus. Kleine Handys hoch: Überschrift kleiner, Spielerkarten kompakt
   (Wappen und Medaille kleiner), „Zur Übersicht“ und „Noch einmal“ nebeneinander, „Nächster Ort“ darunter über die ganze Breite. */
@media (max-width: 400px) and (max-height: 640px) and (orientation: portrait) {
  .bob-ergebnis.bob-vergleich { gap: 6px; padding: 8px 10px; }
  .bob-vergleich h1.titel { font-size: 19px; gap: 6px; }
  .bob-vergleich h1.titel svg { width: 26px; height: 26px; }
  .bob-vergleich .vergleich-reihe { gap: 8px; }
  .bob-vergleich .spieler { padding: 4px 6px; gap: 1px; border-width: 2px; }
  .bob-vergleich .spieler b { font-size: 16px; }
  .bob-vergleich .spieler small { font-size: 14px; line-height: 1.25; text-align: center; }
  .bob-vergleich .spieler .bob-wappen svg { width: 34px; height: 34px; }
  .bob-vergleich .spieler .bob-preis { width: 28px; height: 28px; }
  .bob-vergleich .saison-satz { margin: 0; font-size: 15px; line-height: 1.25; }
  .bob-vergleich .dialog-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .bob-vergleich .dialog-knoepfe .knopf { min-width: 120px; min-height: 96px; margin: 0; }
  .bob-vergleich .dialog-knoepfe .knopf.haupt { grid-column: 1 / -1; }
}
/* C5: 667 × 375 „Zu zweit“: Karten luftiger (Zeichen kleiner, Schrift etwas kleiner, mehr Innenabstand), „Abwechselnd“ stößt nicht mehr an */
@media (max-height: 460px) {
  .bob-wahl .knopf.bob-karte { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .bob-wahl .knopf.bob-karte > svg { width: 36px; height: 36px; }
  .bob-wahl .knopf.bob-karte b { font-size: clamp(17px, 2.2vw, 22px); overflow-wrap: anywhere; }
}
/* C6: In CVI leuchtete der Rahmen von Spieler 2 gelb wie der von Spieler 1. Jetzt bleibt Spieler 2 weiß: doppelter weißer Rahmen,
   außen gestrichelt (Spieler 1: gelb, durchgezogen). */
body.w3d-cvi .bob-duell .duell-teil[data-nr="2"], body.bf-cvi .bob-duell .duell-teil[data-nr="2"] { border-style: dashed; }
body.w3d-cvi .bob-duell .duell-teil[data-nr="2"].leuchtet, body.bf-cvi .bob-duell .duell-teil[data-nr="2"].leuchtet {
  border-color: #ffffff; box-shadow: inset 0 0 0 6px #000, inset 0 0 0 11px #ffffff; }

/* ===== Letzter Schliff Zwei Rinnen (29.11.2026): Hinweis „mindestens leicht“ auf der Karte von Spieler 1 ============== */
.bob-rolle small.bob-lenk-min { color: #ffd9b5; font-weight: 700; margin-top: 6px; }
body.w3d-cvi .bob-rolle small.bob-lenk-min, body.bf-cvi .bob-rolle small.bob-lenk-min { color: #ffd84d; }
/* Kleine Fenster (Lauf 1 „lenkhilfe“: 667 × 375 Karte von Spieler 2 unter „Zurück“/„Los“, 320 × 568 Überschrift oben angeschnitten):
   Kurzform „Lenkhilfe: mindestens leicht“, Probekarte in niedrigen Fenstern etwas flacher (nur auf diesem Schirm, Ziel bleibt ≥ 96 px hoch) */
.bob-lenk-min .kurz { display: none; }
@media (max-height: 460px), (max-width: 400px) and (max-height: 700px) {
  .bob-lenk-min .lang { display: none; }
  .bob-lenk-min .kurz { display: inline; }
  .bob-rollen.mit-lenk-min .bob-rolle small.bob-lenk-min { margin-top: 2px; }
}
@media (max-height: 420px) {
  .bob-rollen.mit-lenk-min .bob-rolle.probe { min-height: 96px; }
}
