/* Vorhersagen und Umfragen: die Overlays in OBS (Vorlagen vorhersage-obs.html, umfrage-obs.html) und ihre Vorschauen
 * (Einrichtungen, öffentliche Seiten). Vier Aufbauten aus den Entwürfen (../entwurf-overlays, Runde 2, Wahl des
 * Betreibers 2026-11-23): .ov--duell (01 Duell, Standard), .ov--rangliste (03), .ov--rahmen (07), .ov--stapel (09
 * Stapelbalken), je in den Fassungen Matt (ohne Klasse) und .ov--hell. Das Markup baut vorhersage-umfrage-ansicht.js.
 * Maße in px wie auf einem 1920 × 1080-Bild; im Overlay gelten sie für die Grundgröße der Quelle 820 × 220, in jeder
 * anderen Quelle setzt das Skript zoom auf body.quelle. Das Overlay ist so breit wie nötig, höchstens 820 px.
 * Alle Klassen beginnen mit „ov“, damit sie sich auf den öffentlichen Seiten nicht mit site.css/landing.css mischen
 * (dort gibt es z. B. .kopf, .liste, .raus). Listen: eine Zeile je Möglichkeit, alle Zeilen in einem gemeinsamen Raster
 * (.ov-sp, Zeilen display: contents), damit Zahlenspalten auch bei „172.368×“ oder „28.734.510“ bündig bleiben.
 * Breiten aus den Daten setzt das Skript per CSSOM (CSP ohne Inline-Styles); in fertigem HTML (Generator der Seiten)
 * stehen sie als Klasse .ov-w0 … .ov-w100 (ganze Prozent, am Ende der Datei). Flache Flächen, keine Verläufe. */

.ov, .ov * { box-sizing: border-box; }
.ov {
    --fl: #1d1d1f; --tx: #fff; --ged: #a9a9ad; --spur: #3a3a3d; --aus: #4f4f54; --aus-tx: #8c8c92;
    display: block; position: relative; width: max-content; min-width: 400px; max-width: 820px; padding: 13px 18px 14px;
    border-radius: 14px; background: var(--fl); color: var(--tx); text-align: left;
    font-family: 'IBM Plex Sans', sans-serif; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap;
}
/* Hell: weiße Fläche mit feiner Kante (sonst verschwindet sie in hellen Spielszenen) */
.ov--hell { --fl: #fff; --tx: #161616; --ged: #5f5f66; --spur: #e1e1e4; --aus: #c9c9ce; --aus-tx: #6f6f75; box-shadow: inset 0 0 0 1px #d4d4d8; }

/* Farben je Möglichkeit (Hell: Gelb dunkler, 7 und 10 getauscht, Grau statt Hellgrau) */
.ov .ov-f0 { --c: #2bb5a0; } .ov .ov-f1 { --c: #f08a3c; } .ov .ov-f2 { --c: #9b87f5; } .ov .ov-f3 { --c: #f2c94c; }
.ov .ov-f4 { --c: #4f7df0; } .ov .ov-f5 { --c: #3fa35b; } .ov .ov-f6 { --c: #d9d9d9; } .ov .ov-f7 { --c: #e0609a; }
.ov .ov-f8 { --c: #6cc0f5; } .ov .ov-f9 { --c: #b9773c; }
.ov--hell .ov-f3 { --c: #c99a0e; } .ov--hell .ov-f6 { --c: #b9773c; } .ov--hell .ov-f9 { --c: #8a8a8a; }
/* Ergebnis: alles in den Zeilen der Verlierer grau, Formen dunkler als Schrift */
.ov .ov-raus, .ov--hell .ov-raus { --c: var(--aus); --tx: var(--aus-tx); --ged: var(--aus-tx); color: var(--aus-tx); }

.ov b { font-weight: 600; color: var(--tx); }
.ov i { font-style: normal; }
/* Gekürzte Texte („…“); Unterlängen (g, p, y) nicht abschneiden: etwas Platz nach unten, der die Höhe nicht ändert */
.ov-ell { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-bottom: .22em; margin-bottom: -.22em; }
/* Name der Kanalpunkte aus der Einrichtung, lange Namen mit „…“ */
.ov-pn { display: inline-block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; vertical-align: top; padding-bottom: .22em; margin-bottom: -.22em; }

/* Name mit Haken: nur der Name wird gekürzt, der Haken bleibt sichtbar */
.ov-nm { display: flex; align-items: baseline; min-width: 0; font-weight: 600; }
.ov-nm .ov-ell { flex: 0 1 auto; }
.ov-haken { flex: none; margin-left: 5px; font-weight: 700; }

/* Kopf: Frage links, Restzeit rechts; nach Tippschluss der Hinweis „Tipps zu“, im Ergebnis ein Haken */
.ov-kopf { display: flex; align-items: baseline; gap: 14px; }
.ov-frage { flex: 1 1 auto; min-width: 0; font-size: 17px; font-weight: 600; }
.ov-uhr { flex: none; color: var(--tx); }
.ov-uhr small { margin-right: 5px; font-size: 13px; color: var(--ged); }
.ov-uhr b { font-size: 19px; font-weight: 700; }
.ov-meta { display: block; margin-top: 6px; font-size: 14px; color: var(--ged); }
.ov-zu { display: inline-block; flex: none; padding: 4px 9px 5px; border-radius: 6px; background: var(--tx); color: var(--fl);
    font-size: 15px; font-weight: 700; }
.ov-erg { flex: none; font-size: 20px; font-weight: 700; }
/* Im Kopf nimmt der Hinweis nicht mehr Höhe ein als die Restzeit (sonst wird z. B. der Rahmen mit 10 Möglichkeiten nach
   Tippschluss höher als die Quelle) */
.ov-kopf .ov-zu { margin: -3px 0 -2px; }

/* Gemeinsames Raster für Listen; ab 6 Möglichkeiten zwei Spalten (von oben nach unten gefüllt) */
.ov-liste { display: block; margin-top: 9px; }
.ov-liste--zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 26px; }
.ov-sp { display: grid; grid-auto-rows: 23px; align-items: center; column-gap: 10px; }
.ov-zr { display: contents; }
.ov-mk { width: 10px; height: 10px; border-radius: 2px; background: var(--c); transition: background-color .4s ease; }
.ov-mk--rund { border-radius: 50%; }
.ov-cp { text-align: right; font-size: 17px; font-weight: 700; }
.ov-cq { text-align: right; font-size: 16px; }
.ov-ck { text-align: right; font-size: 14px; color: var(--ged); }
.ov-cs { text-align: right; font-size: 15px; color: var(--ged); }
.ov-zr .ov-nm { font-size: 16px; }
.ov-liste--zwei .ov-sp { column-gap: 8px; }
.ov-liste--zwei .ov-zr .ov-nm { font-size: 15px; }
.ov-liste--zwei .ov-cp { font-size: 16px; }
.ov-liste--zwei .ov-cq { font-size: 15px; }
.ov-liste--zwei .ov-ck, .ov-liste--zwei .ov-cs { font-size: 14px; }
.ov-bar { height: 8px; border-radius: 4px; overflow: hidden; background: var(--spur); }
.ov-bar i { display: block; height: 100%; background: var(--c); transition: width .6s ease, background-color .4s ease; }
/* Verteilung als ein Balken aus Teilen (Duell bei zwei Möglichkeiten, Stapelbalken); Teile ohne Anteil bleiben 0 breit,
   die Trennlinie hat nur ein Teil, vor dem schon ein Teil mit Anteil liegt */
.ov-segmente { display: flex; overflow: hidden; background: var(--spur); }
.ov-seg { display: block; flex: none; height: 100%; background: var(--c); transition: width .6s ease, background-color .4s ease; }
.ov-seg--trenn { box-shadow: inset 2px 0 0 var(--fl); }

/* =============== Duell (01) =============== */
.ov--duell { min-width: 420px; padding-bottom: 13px; }
.ov-duell-reihe { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; column-gap: 14px; margin-top: 11px; }
.ov-duell-name { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 16px; }
.ov-duell-name .ov-mk { flex: none; }
.ov-duell-name--r { justify-content: flex-end; }
.ov-duell-uhr { text-align: center; }
.ov-duell-uhr small { display: block; margin-bottom: 3px; font-size: 13px; color: var(--ged); }
.ov-duell-uhr b { font-size: 20px; font-weight: 700; }
.ov-duell-mitte { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; align-items: center; column-gap: 12px; margin-top: 6px; }
.ov-duell-p { font-size: 28px; font-weight: 700; }
.ov-duell-bar { height: 10px; border-radius: 5px; }
.ov-duell-fuss { display: flex; justify-content: space-between; gap: 20px; margin-top: 7px; font-size: 14px; color: var(--ged); }
.ov-duell-fuss b { font-size: 15px; }
.ov--duell .ov-sp { grid-template-columns: auto minmax(60px, max-content) minmax(70px, 1fr) auto auto; }
.ov--duell.ov--u .ov-sp { grid-template-columns: auto minmax(60px, max-content) minmax(70px, 1fr) auto; }
.ov--duell .ov-liste--zwei .ov-sp { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.ov--duell.ov--u .ov-liste--zwei .ov-sp { grid-template-columns: auto minmax(0, 1fr) auto; }
.ov--duell .ov-cp { min-width: 48px; }

/* =============== Rangliste (03) =============== */
.ov-rang-zeit { display: block; height: 3px; margin-top: 8px; border-radius: 2px; overflow: hidden; background: var(--spur); }
.ov-rang-zeit i { display: block; height: 100%; background: var(--tx); transition: width .3s linear; }
.ov--rangliste .ov-sp { grid-template-columns: 14px minmax(60px, max-content) minmax(90px, 1fr) auto auto auto; }
.ov--rangliste.ov--u .ov-sp { grid-template-columns: 14px minmax(60px, max-content) minmax(90px, 1fr) auto auto; }
.ov--rangliste .ov-liste--zwei .ov-sp { grid-template-columns: 14px minmax(0, 1fr) 40px auto auto auto; }
.ov--rangliste.ov--u .ov-liste--zwei .ov-sp { grid-template-columns: 14px minmax(0, 1fr) 40px auto auto; }
.ov-rang-nr { font-size: 13px; color: var(--ged); text-align: right; }

/* =============== Rahmen (07) =============== */
/* Der Rand läuft als Restzeit ab: .ov-rahmen-spur ist der feste Rand, .ov-rahmen-rest der Pfad ab oben in der Mitte im
   Uhrzeigersinn (Form und Länge setzt das Skript, pathLength 100) */
.ov--rahmen { padding: 14px 20px 15px; }
.ov-rahmen { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ov-rahmen-spur, .ov-rahmen-rest { fill: none; stroke-width: 2; }
.ov-rahmen-spur { x: 1px; y: 1px; width: calc(100% - 2px); height: calc(100% - 2px); rx: 13px; stroke: var(--spur); }
.ov-rahmen-rest { stroke: var(--ged); transition: stroke-dasharray .3s linear; }
.ov--rahmen .ov-sp { grid-auto-rows: auto; grid-template-columns: minmax(60px, 1fr) auto auto auto; row-gap: 0; }
.ov--rahmen.ov--u .ov-sp { grid-template-columns: minmax(60px, 1fr) auto auto; }
.ov--rahmen .ov-sp > .ov-zr > * { padding-top: 5px; }
.ov--rahmen .ov-zr .ov-nm { font-size: 15px; }
.ov--rahmen .ov-cp { font-size: 16px; }
.ov--rahmen .ov-cq { font-size: 15px; }
.ov--rahmen .ov-sp > .ov-zr > .ov-rahmen-linie { grid-column: 1 / -1; height: 3px; margin-top: 4px; padding: 0; border-radius: 2px; overflow: hidden; background: var(--spur); }
.ov-rahmen-linie i { display: block; height: 100%; background: var(--c); transition: width .6s ease, background-color .4s ease; }

/* =============== Stapelbalken (09) =============== */
.ov-stapel-balken { height: 10px; margin-top: 11px; border-radius: 5px; }
.ov--stapel.ov--n2 .ov-stapel-balken { height: 16px; margin-top: 7px; border-radius: 6px; }
.ov--stapel .ov-sp { grid-template-columns: 10px minmax(56px, 1fr) auto auto auto; }
.ov--stapel.ov--u .ov-sp { grid-template-columns: 10px minmax(56px, 1fr) auto auto; }
.ov-stapel-seiten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; margin-top: 11px; }
.ov-stapel-seite { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.ov-stapel-seite--r { justify-content: flex-end; }
.ov-stapel-seite .ov-nm { font-size: 16px; }
.ov-stapel-seite .ov-cp { flex: none; font-size: 22px; }
.ov-stapel-details { display: flex; justify-content: space-between; gap: 20px; margin-top: 7px; font-size: 14px; color: var(--ged); }
.ov-stapel-details b { font-size: 15px; }

/* =============== Overlay in OBS (body.quelle): transparent, oben rechts; Größe über zoom auf body (Skript) =============== */
body.quelle { margin: 0; background: transparent; overflow: hidden; }
.quelle-buehne { display: flex; justify-content: flex-end; align-items: flex-start; }
.quelle .ov { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease, background-color .3s ease, color .3s ease; }
.quelle .ov.ov--sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .ov, .ov * { transition: none !important; }
}

/* Breiten in fertigem HTML (ganze Prozent); im Overlay setzt das Skript sie per CSSOM */
.ov .ov-w0 { width: 0; } .ov .ov-w1 { width: 1%; } .ov .ov-w2 { width: 2%; } .ov .ov-w3 { width: 3%; } .ov .ov-w4 { width: 4%; } .ov .ov-w5 { width: 5%; } .ov .ov-w6 { width: 6%; } .ov .ov-w7 { width: 7%; } .ov .ov-w8 { width: 8%; } .ov .ov-w9 { width: 9%; }
.ov .ov-w10 { width: 10%; } .ov .ov-w11 { width: 11%; } .ov .ov-w12 { width: 12%; } .ov .ov-w13 { width: 13%; } .ov .ov-w14 { width: 14%; } .ov .ov-w15 { width: 15%; } .ov .ov-w16 { width: 16%; } .ov .ov-w17 { width: 17%; } .ov .ov-w18 { width: 18%; } .ov .ov-w19 { width: 19%; }
.ov .ov-w20 { width: 20%; } .ov .ov-w21 { width: 21%; } .ov .ov-w22 { width: 22%; } .ov .ov-w23 { width: 23%; } .ov .ov-w24 { width: 24%; } .ov .ov-w25 { width: 25%; } .ov .ov-w26 { width: 26%; } .ov .ov-w27 { width: 27%; } .ov .ov-w28 { width: 28%; } .ov .ov-w29 { width: 29%; }
.ov .ov-w30 { width: 30%; } .ov .ov-w31 { width: 31%; } .ov .ov-w32 { width: 32%; } .ov .ov-w33 { width: 33%; } .ov .ov-w34 { width: 34%; } .ov .ov-w35 { width: 35%; } .ov .ov-w36 { width: 36%; } .ov .ov-w37 { width: 37%; } .ov .ov-w38 { width: 38%; } .ov .ov-w39 { width: 39%; }
.ov .ov-w40 { width: 40%; } .ov .ov-w41 { width: 41%; } .ov .ov-w42 { width: 42%; } .ov .ov-w43 { width: 43%; } .ov .ov-w44 { width: 44%; } .ov .ov-w45 { width: 45%; } .ov .ov-w46 { width: 46%; } .ov .ov-w47 { width: 47%; } .ov .ov-w48 { width: 48%; } .ov .ov-w49 { width: 49%; }
.ov .ov-w50 { width: 50%; } .ov .ov-w51 { width: 51%; } .ov .ov-w52 { width: 52%; } .ov .ov-w53 { width: 53%; } .ov .ov-w54 { width: 54%; } .ov .ov-w55 { width: 55%; } .ov .ov-w56 { width: 56%; } .ov .ov-w57 { width: 57%; } .ov .ov-w58 { width: 58%; } .ov .ov-w59 { width: 59%; }
.ov .ov-w60 { width: 60%; } .ov .ov-w61 { width: 61%; } .ov .ov-w62 { width: 62%; } .ov .ov-w63 { width: 63%; } .ov .ov-w64 { width: 64%; } .ov .ov-w65 { width: 65%; } .ov .ov-w66 { width: 66%; } .ov .ov-w67 { width: 67%; } .ov .ov-w68 { width: 68%; } .ov .ov-w69 { width: 69%; }
.ov .ov-w70 { width: 70%; } .ov .ov-w71 { width: 71%; } .ov .ov-w72 { width: 72%; } .ov .ov-w73 { width: 73%; } .ov .ov-w74 { width: 74%; } .ov .ov-w75 { width: 75%; } .ov .ov-w76 { width: 76%; } .ov .ov-w77 { width: 77%; } .ov .ov-w78 { width: 78%; } .ov .ov-w79 { width: 79%; }
.ov .ov-w80 { width: 80%; } .ov .ov-w81 { width: 81%; } .ov .ov-w82 { width: 82%; } .ov .ov-w83 { width: 83%; } .ov .ov-w84 { width: 84%; } .ov .ov-w85 { width: 85%; } .ov .ov-w86 { width: 86%; } .ov .ov-w87 { width: 87%; } .ov .ov-w88 { width: 88%; } .ov .ov-w89 { width: 89%; }
.ov .ov-w90 { width: 90%; } .ov .ov-w91 { width: 91%; } .ov .ov-w92 { width: 92%; } .ov .ov-w93 { width: 93%; } .ov .ov-w94 { width: 94%; } .ov .ov-w95 { width: 95%; } .ov .ov-w96 { width: 96%; } .ov .ov-w97 { width: 97%; } .ov .ov-w98 { width: 98%; } .ov .ov-w99 { width: 99%; }
.ov .ov-w100 { width: 100%; }
