/* Live-Seite, Stil. Quelle: docs/design_handoff_live_seite (Variante H, Kopf-Entwurf 1) mit den
   Korrekturen der Schlusspruefung 30.11.2026. Werte 1:1 aus live-seite-stil.css und
   live-seite-zustaende.html; Abweichungen stehen als Kommentar daneben.
   Kein Framework, kein Build: diese Datei wird so ausgeliefert. */

/* ---------- Schriften (selbst gehostet, keine fremden Abrufe) ---------- */
@font-face { font-family: Outfit; font-weight: 300 400; font-display: swap; src: url(/schrift/outfit-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Outfit; font-weight: 500; font-display: swap; src: url(/schrift/outfit-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(/schrift/outfit-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Outfit; font-weight: 700; font-display: swap; src: url(/schrift/outfit-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Outfit; font-weight: 800 900; font-display: swap; src: url(/schrift/outfit-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Outfit; font-weight: 300 400; font-display: swap; src: url(/schrift/outfit-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Outfit; font-weight: 500; font-display: swap; src: url(/schrift/outfit-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(/schrift/outfit-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Outfit; font-weight: 700; font-display: swap; src: url(/schrift/outfit-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Outfit; font-weight: 800 900; font-display: swap; src: url(/schrift/outfit-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 400 500; font-display: swap; src: url(/schrift/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 600; font-display: swap; src: url(/schrift/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 700 800; font-display: swap; src: url(/schrift/ibm-plex-sans-arabic-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(/schrift/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }

/* ---------- Farben (Design Abschnitt 3) ---------- */
:root {
  --ink: #16161A; --creme: #F5F3EC; --weiss: #FFFFFF;
  --slate: #94A3B8; --slate-dunkel: #64748B; --kopf-text: #E8E9EC;
  --grau: #6B7280; --grau-kopf: #6E7F8C; --grau-pause: #5F6672; --zeile: #404040; --label-hell: #9CA3AF;
  --strich: #C7C4B8; --fuehrend: #F0F9C8; --silber: #D2D5DA; --bronze: #CE9457;
  --lime: #A3E635; --amber: #F59E0B; --rot: #DC2626;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
/* Streifen hinter der Statusleiste (Safari, iPhone): Safari faerbt ihn mit dem Grund der Seite.
   Versuch 1 (html Tinte) griff nicht, dort stand weiter Creme (Maik 02.12., 11:37). Versuch 2: auf
   Handy-Breiten ist auch body Tinte; die Creme-Flaeche traegt der Inhalt selbst (.inhalt, mindestens
   bildschirmhoch). Auf grossen Bildschirmen gibt es den Streifen nicht, dort bleibt body Creme. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink); }
body { min-height: 100vh; font-family: Outfit, 'IBM Plex Sans Arabic', system-ui, sans-serif; background: var(--creme); color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
@media (max-width: 640px) { body { background: var(--ink); } body.alarm { background: var(--rot); } }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Das Dokument scrollt selbst (Design 7.7), kein innerer Scrollbereich: sonst blendet der Browser
   die Adressleiste nicht aus. Bis zum Desktop-Bau (Schritt 3e) bleibt die Handy-Ansicht schmal
   und mittig, statt sich ueber den ganzen Bildschirm zu ziehen. */
.inhalt { max-width: 600px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); background: var(--creme);
  display: flex; flex-direction: column; }
/* Fuss sitzt unten (Chefdesigner 02.12. abends): nur die Huelle ist eine Spalte, der Inhalt bleibt normaler Fluss
   (als Spalte fielen Aussenabstaende nicht mehr zusammen). Fuss bzw. Werbeband + Fuss stehen ausserhalb. */
.inhalt-oben { flex: 1 0 auto; }
.inhalt > .fuss, .inhalt > .ende-unten { flex-shrink: 0; }

/* ---------- Markenzeile ---------- */
.h-marke { display: flex; align-items: center; gap: 10px; height: 56px; margin: 0 -16px; padding: 0 20px; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.08); text-decoration: none; transition: background .3s; }
.h-marke-text { flex: 1; min-width: 0; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #94A3B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-laden-rund { flex: none; height: 44px; padding: 0 0 0 10px; display: flex; align-items: center; gap: 1px; color: #fff; }
.h-laden-rund svg { display: block; }
.h-laden-rund .h-chev { position: relative; top: 2px; margin-top: 1px; margin-inline-end: -5px; }
/* Play-Dreieck ist mittig, nicht wie der Apfel unten schwer: dort die Pfeilspitze auf die Spitze des Dreiecks (Maik 03.12., war 2,5 px zu tief) */
.h-laden-rund.play .h-chev { top: 0; margin-top: 0; }
.h-marke:active .h-laden-rund { opacity: 0.6; }
.h-marke.alarm { background: var(--rot); border-bottom-color: rgba(255,255,255,0.18); }
.h-marke.alarm .h-marke-text { color: #fff; }

/* ---------- Kopf ---------- */
.h-hero { margin: 0 -16px 18px; padding: 18px 20px 16px; background: var(--ink); transition: background .3s; }
.h-z1 { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.h-z1 .tname { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--kopf-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.st .von { color: var(--slate); margin-inline-start: 0.3em; }
.st .punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.st .punkt.aus { background: #64748B; }
.h-z2 { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.uhr { display: flex; align-items: center; font-weight: 800; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: #fff; direction: ltr; }
.uhr .dp { color: var(--lime); padding: 0 0.02em; }
.h-uhr { margin: 0; font-size: 64px; line-height: 68px; }
.balken { height: 3px; margin-top: 10px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; }
.balken i { display: block; height: 100%; border-radius: 999px; background: rgba(255,255,255,0.72); transition: width 1s linear; }
.h-hinweis { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--slate); }
.h-hinweis svg { flex: none; }
/* Zeile statt Uhr (K.O. ohne Uhr, beendet) */
.h-gross { margin-top: 10px; font-size: 40px; font-weight: 800; line-height: 46px; letter-spacing: -0.03em; color: #fff; }
/* Punktemodus wie im Rundenscreen der App */
.h-punkte { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.h-punkte .zahlgruppe { display: flex; align-items: baseline; gap: 6px; }
.h-punkte .wort { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--slate); }
.h-punkte .zahl { font-size: 64px; font-weight: 800; line-height: 68px; letter-spacing: -0.05em; color: #fff; }
.h-punkte .pvon { font-size: 27px; font-weight: 500; letter-spacing: -0.03em; color: var(--slate); }
.h-punkte .ziel { font-size: 12px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate); white-space: nowrap; }
.h-segmente { display: flex; gap: 6px; margin-top: 12px; }
.h-segmente i { position: relative; flex: 1; height: 3px; border-radius: 999px; background: rgba(255,255,255,0.1); }
.h-segmente i.an { background: rgba(255,255,255,0.72); }
/* Zeitzustaende wie im Rundenscreen: letzte 30 s Amber, 0:00 Rot, angehalten grau */
.h-hero.warn .uhr, .h-hero.warn .uhr .dp { color: var(--amber); }
.h-hero.warn .balken i { background: var(--amber); }
.h-hero.alarm { background: var(--rot); }
.h-hero.alarm .uhr .dp { color: rgba(255,255,255,0.6); }
.h-hero.alarm .tname, .h-hero.alarm .st .von { color: #fff; }
.h-hero.pausiert .uhr { color: #64748B; }
.h-hero.pausiert .uhr .dp { color: #94A3B8; }
.h-hero.pausiert .balken i { background: #64748B; }

/* ---------- Runden ---------- */
.runde3 { margin-top: 22px; }
.rkopf3 { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 4px 6px; }
.rkopf3 .r { font-size: 15px; font-weight: 700; white-space: nowrap; }
.rkopf3 .r.vorbei { color: var(--grau); font-weight: 600; }
.rkarte3 { background: var(--weiss); border-radius: 16px; padding: 0 10px; }
.rkarte3.dunkel { background: var(--ink); }
.rz { display: flex; align-items: center; gap: 8px; min-height: 54px; border-top: 1px solid rgba(22,22,26,0.06); }
.rz:first-child { border-top: 0; }
.dunkel .rz { border-top-color: rgba(255,255,255,0.08); }
.rz .cn { width: 14px; flex: none; white-space: nowrap; text-align: center; font-size: 10px; font-weight: 600; color: var(--grau); }
.rz > .cn:last-child { visibility: hidden; }
.rz .cn.ko { width: 20px; }   /* HF1/HF2/FIN brauchen 16-19 px; Gegengewicht rechts gleich breit */
.rz .gcn { font-weight: 800; color: #fff; }
.rz .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rz .t.a { align-items: flex-end; text-align: end; }
.rz .t.b { align-items: flex-start; text-align: start; }
/* Namen: Tippflaeche oben/unten +7 px per negativem Rand (Schlusspruefung 1), Pille 4 px Luft */
.rz .nm { position: relative; isolation: isolate; display: block; font-size: 12.5px; font-weight: 600; line-height: 1.45; color: var(--zeile); padding: 7px 4px; margin: -7px -4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% + 8px); }
.dunkel .rz .nm { color: #fff; font-weight: 700; }
.rz .mitte { flex: none; width: 78px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.rz .mitte .k { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rz .mitte .k.erg { border: 1px solid var(--lime); color: #fff; }
.rz .mitte .k.erg.zweiter { color: rgba(255,255,255,0.55); }
.rz .mitte .k.offen { border: 1.5px dashed rgba(255,255,255,0.22); color: rgba(255,255,255,0.25); font-weight: 300; }
.rz .mitte.zahlen { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); gap: 10px; }
.rz .mitte.zahlen .zweiter { color: var(--grau); }
.rz .mitte.vs { font-size: 11px; font-weight: 600; color: var(--grau); }
.dunkel .rz .mitte.vs { color: var(--slate); }
/* Nach Saetzen (Uebergabe Satzmodus 1b/1c, Werte aus live-seite-zustaende.html): ein Feld je Match, 94 x 44, Radius 11,
   13,5/800, 4 px zwischen den Saetzen; Gewinnerzahl Weiss, Verlierer und ":" #6B7280, laufend "–" #4B5563/600;
   Matchsieger: Lime-Kante 3 px als Schatten nach innen (folgt der Rundung), Rand 1,5 px Weiss 16 % als Schatten. */
.rz .mitte.satz { position: relative; width: 94px; height: 44px; gap: 4px; padding: 0; border-radius: 11px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.16); box-sizing: border-box; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; overflow: hidden; }
.rz .mitte.satz .s { display: inline-flex; white-space: nowrap; }
.rz .mitte.satz .g { color: #fff; }
.rz .mitte.satz .v, .rz .mitte.satz i { color: #6B7280; font-style: normal; }
.rz .mitte.satz .lauf { color: #4B5563; font-weight: 600; }
.rz .mitte.satz.sieg-a { padding-inline-start: 3px; box-shadow: inset 3px 0 0 var(--lime), inset 0 0 0 1.5px rgba(255,255,255,0.16); }
.rz .mitte.satz.sieg-b { padding-inline-end: 3px; box-shadow: inset -3px 0 0 var(--lime), inset 0 0 0 1.5px rgba(255,255,255,0.16); }
/* Von rechts nach links steht Paar A rechts: der Lime-Rand wandert mit (3g) */
[dir="rtl"] .rz .mitte.satz.sieg-a { box-shadow: inset -3px 0 0 var(--lime), inset 0 0 0 1.5px rgba(255,255,255,0.16); }
[dir="rtl"] .rz .mitte.satz.sieg-b { box-shadow: inset 3px 0 0 var(--lime), inset 0 0 0 1.5px rgba(255,255,255,0.16); }
.rz .mitte.satz.leer { box-shadow: none; border: 1.5px dashed rgba(255,255,255,0.22); color: rgba(255,255,255,0.25); font-weight: 300; }
.rz .mitte.satz.hell { height: auto; border: 0; box-shadow: none; padding: 0; color: var(--ink); }
.rz .mitte.satz.hell .g { color: var(--ink); }
.rz .mitte.satz.hell .v, .rz .mitte.satz.hell i { color: var(--grau); }
.eincourt .rz .mitte.satz { width: 112px; height: 52px; font-size: 16px; gap: 6px; }
.eincourt .rz .mitte.satz.hell { height: auto; }
.tabelle td.games { white-space: nowrap; }
/* Format im Kopf: unter 390 px "Saetze · 2 + TB", ab 390 px "Nach Saetzen · 2 + TB" (Uebergabe 1a) */
.ziel.satzformat .fl { display: none; }
@media (min-width: 390px) { .ziel.satzformat .fk { display: none; } .ziel.satzformat .fl { display: inline; } }
/* K.O.-Kopf (Maik 04.12.): Ziel/Format rechts neben der Phase auf der Grundlinie; passt es nicht, darunter. */
.h-ko-zeile { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 12px; }
.h-ko-zeile .ziel { font-size: 12px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate); white-space: nowrap; }
/* 1 Court: alle Runden eine Stufe groesser (Maik 26.11.) */
.eincourt .rz { min-height: 62px; }
.eincourt .rz .nm { font-size: 14px; }
.eincourt .rz .mitte { width: 86px; }
.eincourt .rz .mitte .k { width: 40px; height: 40px; font-size: 18px; }
.eincourt .rz .mitte.zahlen { font-size: 17px; }
.eincourt .rz .mitte.vs { font-size: 12px; }
/* Pause: eine linksbuendige Zeile unter der Karte, Tippflaeche 37 px ohne Hoehe (Schlusspruefung 3a) */
.pausezeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 6px 4px 0; }
.lbl-klein { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grau-pause); }
.pausezeile .nm { position: relative; isolation: isolate; display: inline; color: var(--grau); font-size: 14px; font-weight: 500; padding: 9px 0; margin: -9px 0; }
.erg-titel { margin: 22px 4px 2px; font-size: 15px; font-weight: 700; }
.erg-titel + .runde3 { margin-top: 8px; }

/* ---------- Tabelle ---------- */
/* Ein Abstand zwischen allen Bloecken: 22 px wie zwischen den Runden (Maik 02.12.2026). */
.tabelle { margin-top: 22px; }
/* Ohne Untertitel beginnt die Tabelle 28 px unter dem Kopf wie der Rundentitel (Chefdesigner 02.12. abends) */
.inhalt-oben > .tabelle { padding-top: 6px; }
.tabelle .sub { margin: 0 0 14px; padding: 0 4px; font-size: 12px; color: var(--grau); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
th { padding: 1px 6px 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grau-pause); text-align: start; border-bottom: 1px solid rgba(22,22,26,0.08); }
td { padding: 10px 6px; height: 43px; border-bottom: 1px solid rgba(22,22,26,0.06); }
th.z, td.z { text-align: end; }
td.rang { width: 40px; }
.rk { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.rk.r1 { background: var(--lime); color: var(--ink); }
.rk.r2 { background: var(--silber); color: var(--ink); }
.rk.r3 { background: var(--bronze); color: var(--ink); }
.rk.rn { font-size: 12px; font-weight: 600; color: var(--grau); }
td.name { font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
td.name .und { color: var(--grau-pause); font-weight: 600; }
td.neben { font-size: 12px; color: var(--grau); }
td.pkt { font-size: 14.5px; font-weight: 800; }
tr.fuehrend td { background: var(--fuehrend); border-bottom-color: transparent; }
tr.fuehrend td:first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; }
tr.fuehrend td:last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }

/* ---------- Fuss (Chefdesigner 02.12. abends) ----------
   Keine Linie, mittig. Waehrend des Turniers 40 px Luft, "LAEUFT MIT RONDEJA ›" als Kennzeile (wie "SIEGER" und
   "KOSTENLOS STARTEN") ueber den Pflichtlinks; am Ende nur die Linkzeile unter dem Werbeband. Je 44 px Tippflaeche. */
.fuss { display: flex; flex-direction: column; align-items: center; margin-top: 6px; padding-bottom: 40px; }
.fuss.mit-marke { margin-top: 0; padding-top: 40px; }
.fuss .fuss-marke { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grau-kopf); text-decoration: none; }
.fuss .fuss-marke svg { color: var(--grau-kopf); }
[dir="rtl"] .fuss .fuss-marke { font-size: 12px; letter-spacing: 0; }   /* Sperrung zerreisst arabische Schrift */
.fuss .links { display: flex; flex-wrap: wrap; justify-content: center; }
.fuss .links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 11.5px; font-weight: 500; color: var(--grau); text-decoration: none; }
.fuss .links a + a::before { content: "·"; margin: 0 9px; color: rgba(22,22,26,0.28); }
/* Werbeband am Seitenende (Turnierende, abgelaufen): zwischen zwei gleich langen Linien, innen sichtbar 40/40
   (unten 38: die 44-px-Tippflaeche ragt 2 px unter das 40-px-Badge), alles auf einer Mittelachse. */
.ende-unten { padding-top: 32px; }
.werbeband { display: flex; flex-direction: column; align-items: center; padding: 40px 8px 38px; border-top: 1px solid rgba(22,22,26,0.10); border-bottom: 1px solid rgba(22,22,26,0.10); text-align: center; }
.werbeband .logo { width: 40px; height: 40px; border-radius: 10px; }
.werbeband .kenn { margin-top: 16px; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grau-kopf); }
[dir="rtl"] .werbeband .kenn { font-size: 12px; letter-spacing: 0; }
.werbeband b { display: block; max-width: 290px; margin-top: 6px; font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.werbeband .knoepfe { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.werbeband .badge { display: inline-flex; align-items: center; min-height: 44px; }
.werbeband .badge img { display: block; height: 40px; width: auto; }

/* ---------- Ebenen-Schalter unten ---------- */
.fussleiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #F5F3EC 0%, #F5F3EC 72%, rgba(245,243,236,0.85) 86%, rgba(245,243,236,0) 100%); }
.ebenen { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 4px; max-width: 568px; height: 52px; margin: 0 auto; padding: 4px; border-radius: 14px; background: #E9E7DF; }
.ebenen button { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; font-size: 14px; font-weight: 700; color: #52525B; }
.ebenen button[aria-selected="true"] { background: var(--weiss); font-weight: 800; color: var(--ink); box-shadow: 0 1px 2px rgba(22,22,26,.08), 0 2px 8px rgba(22,22,26,.06); }

/* ---------- Laden, vorbei, unbekannt ---------- */
.platzhalter { display: block; border-radius: 6px; background: rgba(255,255,255,0.08); }
.platzhalter.hell { background: rgba(22,22,26,0.06); }
.skel-karte { border-radius: 16px; background: var(--ink); padding: 14px 12px; display: flex; flex-direction: column; gap: 16px; }
.skel-zeile { display: flex; align-items: center; gap: 10px; }
.leer { padding: 36px 8px 0; }
.leer h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.leer p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--grau); }

/* ---------- Zustaende (Schritt 3b) ---------- */
.st.aus { color: var(--slate); }
/* N4: "Neu verbinden" rechts in der Hinweiszeile, Rand Weiss 28 %, 32 px, Tippflaeche 44 */
.h-hinweis .h-neu { position: relative; flex: none; margin-inline-start: auto; height: 32px; padding: 0 12px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.28); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.h-hinweis .h-neu::before { content: ''; position: absolute; inset: -6px -4px; }
/* Mexicano: naechste Runde noch nicht ausgelost */
.auslosung { margin-top: 22px; padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--strich); background: var(--weiss); font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--grau); }
.auslosung b { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 700; color: var(--ink); }
/* K.O.: Platzhalter fuer noch offene Paarungen */
.rz .offen-text { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 500; color: var(--grau); }
.rz .offen-text.a { text-align: end; }
/* N1 vorlaeufig fuer alle: gestrichelt wie beim Eintrager, eine Erklaerzeile je Karte */
.rz .mitte .k.vorl { border: 1.5px dashed var(--lime); color: #fff; }
.vorl-muster { flex: none; display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1.5px dashed var(--lime); background: var(--ink); }
.vorl-zeile { display: flex; align-items: flex-start; gap: 8px; padding: 10px 4px 11px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--slate); }
.vorl-zeile .vorl-muster { margin-top: 2px; }
.vorl-zeile b { display: block; font-weight: 600; color: var(--kopf-text); }
.vorl-tab { display: flex; align-items: center; gap: 7px; margin: 0 0 14px; padding: 0 4px; font-size: 12.5px; font-weight: 500; color: var(--grau-pause); }
.vorl-tab svg { flex: none; }
/* Tabelle verdeckt (Maik 01.12., R4): ruhige weisse Karte, kein Fehler */
.verdeckt { margin-top: 22px; background: var(--weiss); border-radius: 18px; padding: 24px 20px 22px; text-align: center; }
.verdeckt .vd-icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; background: rgba(22,22,26,0.05); color: var(--grau); display: flex; align-items: center; justify-content: center; }
.verdeckt h2 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); text-wrap: balance; }
/* Turnierende (Chefdesigner 02.12., Zustaende 52-57): Sieger im Kopf statt Siegerkarte, eine Liste.
   Kennzeile wie im Ergebnis-Screen der App; Name 40 px, eine Person je Zeile, "&" leise in Slate. */
.h-sieger-k { margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lime); }
.h-sieger { margin-top: 6px; font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: #fff; }
.h-sieger .sz { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-sieger .amp { color: var(--slate); font-weight: 700; }
.h-hero { position: relative; z-index: 0; }
.h-konf { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.h-konf i { position: absolute; display: block; }   /* Stellen rechnet setzeKonfetti() am Text (Chefdesigner 02.12.) */
/* Ergebnis teilen (Chefdesigner 02.12.): die eine Hauptaktion am Turnierende, deshalb Lime. Oben rechts statt
   "Beendet", sichtbar 36 px, Tippflaeche 44; in der klebenden Leiste rund 40 px. */
.h-teilen { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--lime); font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.h-teilen::before { content: ''; position: absolute; inset: -4px -2px; }
.h-teilen:active { background: #84CC16; }
.h-teilen.oben { margin: -6px 0; }
.h-teilen.rund { width: 40px; height: 40px; padding: 0; justify-content: center; }
.h-bar-sieger { display: flex; flex-direction: column; min-width: 0; }
.h-bar-sieger .k { font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lime); }
.h-bar-sieger .n { margin-top: 1px; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-bar-sieger .n .amp { color: var(--slate); font-weight: 700; }
/* Verlauf: Stil als Klasse, nicht als Attribut (CSP style-src self, Designer 02.12. abends) */
.vsvg { direction: ltr; display: block; }
/* Rangliste mit K.O. und Endstand mit K.O. (Idee 1, Chefdesigner 02.12. abends): Tabelle der Gruppenphase, K.O.-Paare
   oben in einer Zeile ohne Punkte, danach eine kraeftigere Linie; offener Platz als graue Pille in Medaillenform. */
.rl1 td.rang { width: 34px; }
.rl1 td.name { height: auto; }
.rl1 td.name .p { white-space: nowrap; }
.rl1 tr.ko-ende td { border-bottom: 1.5px solid rgba(22,22,26,0.26); }
.rl1 .rk.bereich { width: auto; min-width: 22px; padding: 0 6px; background: rgba(22,22,26,0.06); font-size: 11px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; color: var(--grau-pause); }
/* Am Ende bzw. in der Rangliste keine Linie unter der letzten Zeile (sonst zwei parallele Linien mit dem Werbeband) */
.tabelle.ende table tbody tr:last-child td { border-bottom: 0; }
/* Block unter der Tabelle (Chefdesigner 03.12., Uebergang A wie die App): eine Karte, Zeilen 52 px mit feiner Linie */
.anh-karte { margin-top: 24px; border-radius: 16px; background: rgba(255,255,255,0.6); overflow: hidden; }
.anh-z { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 0 14px 0 16px; font-size: 14px; font-weight: 600; color: var(--grau-pause); text-align: start; }
.anh-z .rechts { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--grau); font-variant-numeric: tabular-nums; white-space: nowrap; }
.anh-z svg { flex: none; color: var(--grau); }
[dir="rtl"] .anh-z .rechts svg.h-chev, [dir="rtl"] .anh-z .rechts svg:not(.es-chev) { transform: scaleX(-1); }
.anh-trenn { height: 1px; margin: 0 16px; background: rgba(22,22,26,0.08); }
.anh-inhalt { padding: 0 8px 10px; }
.anh-inhalt .tabelle { margin: 0; padding-top: 0; }
.anh-runden > .runde3.vorbei:first-child { margin-top: 18px; }
/* Status der K.O.-Paare rechts (Nachtrag 1): grau 13/500, einzeilig, 10 px Abstand zum Namen */
.rl1 td.ko-status { font-size: 13px; font-weight: 500; color: var(--grau); white-space: nowrap; padding-inline-start: 10px; }
/* Verlauf als Zeile im Block (Nachtrag 2): eigene weisse Karte in der Karte, ohne Kennzeile; Polster 2 8 10 */
.anh-inhalt.anh-verlauf { padding: 2px 8px 10px; }
.verlauf.v-block { margin-top: 0; }
/* In der Gruppentabelle der K.O.-Phase: Kennzeile grau wie "SPIELER" statt schwarz, ohne "bis Runde N" */
.vtitel.leise { letter-spacing: 0.14em; color: var(--grau-pause); }
.erg-titel.abstand { margin-top: 28px; }
.tab-titel { margin: 0 4px 10px; font-size: 15px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .balken i, .h-marke, .h-hero { transition: none; } }

/* ---------- Von rechts nach links ---------- */
[dir="rtl"] .h-chev { transform: scaleX(-1); }
[dir="rtl"] .uhr { justify-content: flex-end; }
[dir="rtl"] .nm, [dir="rtl"] .tname { unicode-bidi: plaintext; }

/* ---------- Persoenliche Ansicht (Schritt 3c, Design 4.1 / Variante H) ---------- */
/* Namen sind Knoepfe: Tipp markiert "mich", zweiter Tipp hebt auf. */
button.nm { font: inherit; text-align: inherit; cursor: pointer; }
.rz .nm.ich::before { content: ''; position: absolute; inset: 7px 0; z-index: -1; border-radius: 999px; background: var(--lime); }
.rz .nm.ich, .dunkel .rz .nm.ich { color: var(--ink); font-weight: 700; }
.pausezeile .nm.ich { color: var(--ink); font-weight: 700; padding-inline: 7px; }
.pausezeile .nm.ich::before { content: ''; position: absolute; inset: 9px 0; z-index: -1; border-radius: 999px; background: var(--lime); }
/* Satt Lime nur in der laufenden Runde (und im Kopf); in kommenden und gespielten Runden blass (Lime 30 %, nicht
   weniger wegen Sonne), Schrift fett Tinte: sieben satte Flecken beim Scrollen machten die Seite unruhig. */
.runde3:not(.jetzt) .rz .nm.ich::before, .runde3:not(.jetzt) .pausezeile .nm.ich::before { background: rgba(163,230,53,0.3); }
/* Chip Ich bin / Du: 32 px Optik, 44 px Tippflaeche */
.duchip { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 32px; margin-inline-start: auto; padding: 0 6px 0 12px; border-radius: 999px; background: var(--weiss); font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.duchip svg { color: var(--grau); flex: none; }
.duchip::after { content: ''; position: absolute; inset: -6px -4px; }
.duchip.leer { gap: 6px; padding: 0 12px 0 10px; color: #52525B; font-weight: 600; background: rgba(22,22,26,0.05); }
.duchip.leer svg { color: #52525B; }
/* Dein Spiel im Kopf */
.g-du { display: flex; align-items: center; gap: 8px; margin-top: 12px; height: 30px; font-size: 14px; font-weight: 600; color: var(--kopf-text); white-space: nowrap; overflow: hidden; }
.g-pill { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 14px; font-weight: 800; }
.g-pill.pause { background: rgba(255,255,255,0.14); color: #fff; }
.g-mit { flex: none; }
.g-geg { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--slate); font-weight: 500; }
.h-voll-knopf { flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); color: #fff; display: flex; align-items: center; justify-content: center; }
/* Tabelle: ganze Zeile ist die Tippflaeche, der eigene Name als Lime-Pille */
.tabelle td.name .zeilen-knopf { font: inherit; color: inherit; text-align: start; padding: 0; }
.tabelle tbody tr { cursor: pointer; }
.ich-t { background: var(--lime); color: var(--ink); border-radius: 999px; padding: 1px 7px; margin: 0 -2px; }
.ebenen .platz { font-size: 12px; font-weight: 700; color: var(--grau); }
.ebenen .platz.ich-p { background: rgba(22,22,26,0.08); color: var(--ink); border-radius: 999px; padding: 1px 7px; }   /* grau: Information, keine Aktion */
/* Klebende Leiste: kommt, sobald der Kopf weggescrollt ist; Tipp springt zur laufenden Runde */
/* sticky statt fixed (Maik 02.12., Versuch): fixe Leisten setzt Brave/Chrome erst nach dem Wegklappen der
   Adressleiste neu, die Leiste sprang dann 40 px. Sticky bewegt sich mit dem Inhalt. margin-bottom -60 px:
   nimmt im Fluss keinen Platz weg (liegt ganz oben im body, vor main). */
.h-bar { position: -webkit-sticky; position: sticky; top: 0; z-index: 5; height: 60px; padding: 0 20px; display: flex; align-items: center; gap: 10px; cursor: pointer;
  pointer-events: none; --leiste-grund: var(--ink); }
/* Einfahren von oben wie ein Rollo (Maik 03.12.: Aufblenden sprang beim schnellen Scrollen rein): die ganze Leiste
   faehrt in 0,32 s herunter und bremst sanft ab, der Grund ist dabei sofort dicht, der Inhalt blendet mit auf. Das ging
   erst, seit die Leiste erst nach dem Kopf samt Zeitbalken kommt (vorher lag sie beim Hereinfahren 0,2 s ueber den
   grossen Ziffern, Maik 02.12.). Hochscrollen: ausblenden an Ort und Stelle statt hochfahren (weg), danach ohne
   Uebergang zurueck in die Ausgangslage ueber dem Rand (ruhe). Kein Zeitbalken in der Leiste (Maik 02.12.). */
.h-bar { transform: translateY(-100%); }
.h-bar::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--leiste-grund); opacity: 0; transition: opacity .18s ease, background .3s; }
.h-bar > * { position: relative; opacity: 0; transition: opacity .18s ease; }
.h-bar.an, .h-bar.weg { transform: none; }
.h-bar.an { transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.h-bar.an::before, .h-bar.an::after, .h-bar.an > * { opacity: 1; }
.h-bar.an::before, .h-bar.an::after { transition: opacity .06s linear, background .3s; }
.h-bar.an > * { transition: opacity .28s ease-out 40ms; }
.h-bar.an { pointer-events: auto; }
.h-bar.weg { pointer-events: none; }
.h-bar.ruhe, .h-bar.ruhe::before, .h-bar.ruhe::after, .h-bar.ruhe > * { transition: none; }
/* Logo ohne eigene Bewegung, blendet mit der Leiste ein (Maik 02.12.; Uebergabe H: "gleitet hinein") */
.h-bar .ic { width: 24px; height: 24px; border-radius: 6px; flex: none; }
.h-uhr-klein { margin: 0; font-size: 28px; line-height: 32px; }
.h-bar-luft { flex: 1; }
.h-bar-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 800; }
.h-bar-pill.pause { background: rgba(255,255,255,0.14); color: #fff; }
/* Verlaengerung nach unten in Kopffarbe, solange der Kopf unter der Leiste hervorragt (--decke aus seite.js) */
.h-bar::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: var(--decke, 0px); z-index: -1; background: var(--leiste-grund); opacity: 0; transition: opacity .18s ease, background .3s; }
.h-bar.warn .uhr, .h-bar.warn .uhr .dp { color: var(--amber); }
.h-bar.alarm { --leiste-grund: var(--rot); }
.h-bar.alarm .uhr .dp { color: rgba(255,255,255,0.6); }
.h-bar.pausiert .uhr { color: #64748B; }
.h-bar.pausiert .uhr .dp { color: #94A3B8; }
/* Gross-Ansicht der Uhr (Wake Lock): Ziffern fest in der Mitte */
.h-voll { position: fixed; inset: 0; z-index: 8; display: flex; flex-direction: column; background: var(--ink); transition: background .3s; }
/* Sanfter Uebergang (Maik 03.12.): Flaeche ein, Leiste faehrt, dann Inhalt ein; siehe oeffneVoll/schliesseVoll. */
.h-voll > * { transition: opacity .16s ease-out; }
.h-voll.leer > * { opacity: 0; transition-duration: .1s; transition-timing-function: ease-in; }
.h-voll.sofort > * { transition: none; }
.h-voll.ein { animation: voll-ein .12s ease-out both; }
.h-voll.aus { animation: voll-aus .14s ease-in forwards; pointer-events: none; }
/* Kein Dehnen beim Tippen mit leichtem Ziehen (Maiks Video 03.12.: Kopf rutschte beim Antippen des X nach unten). */
.h-voll { touch-action: none; overscroll-behavior: none; }
@keyframes voll-ein { from { opacity: 0; } }
@keyframes voll-aus { to { opacity: 0; } }
.h-voll-kopf { position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: calc(18px + env(safe-area-inset-top)) 12px 0 20px; }
.h-voll-zu { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; }
/* Block zwischen Kopf- und Fusszeile, Uhr bei 45 % statt genau mittig: genau mittig wirkt zu tief
   (Maik 02.12., am Pixel gemessen) */
.h-voll-mitte { position: absolute; inset: calc(62px + env(safe-area-inset-top)) 0 calc(48px + env(safe-area-inset-bottom)); display: grid; grid-template-rows: minmax(0, 9fr) auto minmax(0, 11fr); justify-items: center; padding: 0 16px; pointer-events: none; }
.h-voll-oben { align-self: end; padding-bottom: 8px; }
.h-voll-runde { font-size: 13px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--slate); }
/* Uhr fuellt die Breite bis auf 24 px Rand (Ziffern ~2,5 em breit), hoechstens 30 % der Hoehe
   (Querformat, Desktop). Uebergabe: fest 116 px (Maik 02.12.: groesser) */
.h-voll-uhr { position: relative; top: -2px; margin: 0; padding-right: 0.05em; font-size: min(calc((100vw - 48px) / 2.5), 30vh, 260px); line-height: 1.04; }
.h-voll-unten { align-self: start; justify-self: stretch; display: flex; flex-direction: column; align-items: center; }
.h-voll-balken { width: 100%; height: 6px; margin-top: 18px; }
.h-voll-du { margin-top: 22px; font-size: 17px; height: auto; }
/* Mit Gegnern (Chefdesigner 02.12. spaet): passt die Zeile nicht (320 px), rutschen die Gegner mittig in eine zweite Zeile */
.h-voll-du { flex-wrap: wrap; justify-content: center; row-gap: 6px; max-width: 100%; }
.h-voll-du .g-geg { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.h-voll-du .g-pill { height: 32px; font-size: 16px; padding: 0 13px; }
.h-voll-fuss { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 20px calc(28px + env(safe-area-inset-bottom)); text-align: center; font-size: 12px; font-weight: 500; color: var(--slate-dunkel); }
/* Hinweis wie im Kopf (angehalten, keine Verbindung); der Knopf "Neu verbinden" muss tippbar sein */
.h-voll-unten .h-hinweis { justify-content: center; margin-top: 18px; font-size: 14px; text-align: center; pointer-events: auto; }
.h-voll.alarm .h-hinweis { color: #fff; }
.h-voll.warn .uhr, .h-voll.warn .uhr .dp { color: var(--amber); }
.h-voll.warn .balken i { background: var(--amber); }
.h-voll.alarm { background: var(--rot); }
.h-voll.alarm .uhr .dp { color: rgba(255,255,255,0.6); }
.h-voll.alarm .h-voll-runde, .h-voll.alarm .h-voll-fuss { color: #fff; }
.h-voll.pausiert .uhr { color: #64748B; }
.h-voll.pausiert .uhr .dp { color: #94A3B8; }
.h-voll.pausiert .balken i { background: #64748B; }
/* Querformat am Handy (Maik 02.12.): nur die Uhr, so gross wie Hoehe und Breite es hergeben; Restzeit steht in
   den Ziffern, Amber/Rot faerben die Flaeche. Bleibt nur das X in der Ecke. Tablets quer (hoeher als 520 px)
   behalten den Aufbau wie hochkant. */
@media (orientation: landscape) and (max-height: 520px) {
  /* Logo klein und leise links oben, X rechts (Maik 02.12.: nur das Logo, kein Text) */
  .h-voll-kopf { position: absolute; top: 0; left: 0; right: 0; justify-content: flex-end; padding: calc(6px + env(safe-area-inset-top)) calc(6px + env(safe-area-inset-right)) 0 calc(20px + env(safe-area-inset-left)); }
  .h-voll-oben, .h-voll-balken, .h-voll-du, .h-voll-fuss { display: none; }
  /* Hinweis klein unten mittig, ausserhalb des Rasters: die Uhr bleibt mittig */
  .h-voll-unten { position: absolute; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .h-voll-unten .h-hinweis { margin-top: 0; font-size: 13px; }
  .h-voll-mitte { inset: 0; grid-template-rows: auto; align-content: center; padding: 0; }
  .h-voll-uhr { top: 0; font-size: min(calc((100vw - 48px - env(safe-area-inset-left) - env(safe-area-inset-right)) / 2.5), 92vh); line-height: 1; }
}
/* Sheet Wer bist du? wie das Tabellen-Sheet der App, hoechstens 85 % hoch */
.sheet-grund { position: fixed; inset: 0; z-index: 6; background: rgba(0,0,0,0.4); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; max-width: 600px; max-height: 85%; margin: 0 auto; display: flex; flex-direction: column; background: var(--creme); border-radius: 24px 24px 0 0; }
.sheet .griff { width: 40px; height: 4px; margin: 10px auto 0; border-radius: 999px; background: #D4D1C7; }
.sheet .zu { position: absolute; top: 10px; inset-inline-end: 12px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #3F3F46; }
.sheet .sinhalt { overflow-y: auto; padding: 22px 24px calc(24px + env(safe-area-inset-bottom)); }
.pk-titel { margin: 0; padding-inline-end: 40px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.pk-sub { margin: 4px 0 18px; font-size: 13px; line-height: 1.45; color: var(--grau); }
.pk-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pk-name { height: 48px; border-radius: 12px; background: var(--weiss); font-size: 15px; font-weight: 700; padding: 0 12px; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-name[aria-pressed="true"] { background: var(--lime); }
.pk-nur { display: block; width: 100%; height: 48px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--grau); }
/* Verlauf der Platzierung: Werte aus dem Saison-Verlauf der App */
.verlauf { margin-top: 22px; }
.vkopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px 8px; }
.vtitel { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.vhinweis { font-size: 11.5px; font-weight: 600; color: var(--slate); white-space: nowrap; }
.vkarte { background: var(--weiss); border-radius: 18px; padding: 12px 10px 8px; }
.vchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px 8px; }
.vchip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; max-width: 100%; padding: 0 11px; border-radius: 999px; background: var(--creme); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.vchip::after { content: ''; position: absolute; inset: -7px -2px; }
.vchip span { font-size: 10px; font-weight: 800; color: var(--slate); font-variant-numeric: tabular-nums; }
.vchip.an { background: var(--ink); color: #fff; }
.vchip.an span { color: var(--lime); }
/* Live-Moment: neues Ergebnis leuchtet einmal Lime; neue Runde: alte Karte wird hell */
@keyframes blitz { 0% { background: var(--lime); color: var(--ink); } 100% { background: transparent; } }
.rz .mitte .k.blitz { animation: blitz 0.9s ease-out 1; }
.rkarte3.wird-weiss { background: var(--weiss); transition: background .45s ease; }
.rkarte3.wird-weiss .nm, .rkarte3.wird-weiss .gcn { color: var(--zeile); transition: color .45s ease; }
.rkarte3.wird-weiss .k { opacity: 0; transition: opacity .3s ease; }
@media (prefers-reduced-motion: reduce) {
  .rz .mitte .k.blitz { animation: none; }
  .rkarte3.wird-weiss, .rkarte3.wird-weiss * { transition: none; }
  .h-bar::before, .h-bar::after, .h-bar > *, .h-voll { transition: none; }
  .h-voll.ein, .h-voll.aus { animation: none; }
  .h-voll > * { transition: none; }
  .h-bar, .h-bar.an { transition: none; }
}
[dir="rtl"] .g-mit, [dir="rtl"] .g-geg, [dir="rtl"] .duchip { unicode-bidi: plaintext; }
/* 3c Ergaenzungen: lange Namen im Chip und in den Verlauf-Chips mit …, Leiste so breit wie die Seite */
.duchip { max-width: 62%; }
.duchip b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.vchip b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.h-bar { max-width: 600px; margin: 0 auto -60px; }
.h-bar-titel { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--kopf-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-z2 .h-voll-knopf { margin-inline-start: 12px; }
html.gesperrt, html.gesperrt body { overflow: hidden; overscroll-behavior: none; }

/* ---------- Eintragen ueber den Link (Schritt 3d, Design 6.1) ---------- */
/* Laufende Karte mit Eintrage-Link: Zeile 60, Mitte 96, Felder 44 x 44 (auch bei einem Court) */
.rkarte3.eintragen .rz { min-height: 60px; }
/* Ein Court: die Eintrage-Karte so hoch wie die anderen Karten (62 px), Maik 02.12. */
.eincourt .rkarte3.eintragen .rz { min-height: 62px; }
.rkarte3.eintragen .rz .mitte { width: 96px; gap: 8px; }
.rkarte3.eintragen .rz .mitte .k { width: 44px; height: 44px; }
.rz .mitte button.k { font-size: 17px; font-weight: 800; color: #fff; }
.rz .mitte button.k.zweiter { color: rgba(255,255,255,0.55); }
/* Leeres Feld wie in der App: Lime, Radius 11, "+" 22 px in Tinte 35 % */
.rz .mitte .k.plus { border-radius: 11px; background: var(--lime); color: rgba(22,22,26,0.35); font-size: 22px; font-weight: 500; }
.rz .mitte .k.plus:active { background: #84CC16; }
.rkarte3.dunkel button.k:focus-visible { outline-color: #fff; }
/* Rueckmeldung ueber dem Ebenen-Schalter: schwarz; Warten grau, kein Rot (Design 6.1) */
.e-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; max-width: 568px; min-height: 44px; margin: 0 auto 10px; padding: 10px 16px; border-radius: 14px; background: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.35; color: #fff; text-align: center; }
.e-leiste .zus { font-weight: 500; color: var(--slate); font-variant-numeric: tabular-nums; }
.e-leiste.ok .zus { color: var(--lime); }
.e-leiste.warte, .e-leiste.nicht { background: #3F3F46; font-weight: 500; }
/* Link nicht mehr gueltig: ruhiger weisser Hinweis unter dem Kopf */
.e-hinweis { margin-top: 22px; padding: 14px 16px; border-radius: 16px; background: var(--weiss); font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--ink); }
/* Zahlenraster wie die App: "PUNKTESTAND", das Paar, 6 Spalten, Tasten 52 hoch, Radius 14, 18/600 */
.ra-kenn { margin: 0 0 2px; padding-inline-end: 40px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #5F6672; }
.ra-paar { margin: 0; padding-inline-end: 40px; font-size: 20px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.ra-strich { height: 1px; margin: 12px -24px 14px; background: rgba(22,22,26,0.08); }
.ra-tasten { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ra-taste { position: relative; height: 52px; border-radius: 14px; background: var(--weiss); border: 1.5px solid rgba(22,22,26,0.1); font-size: 18px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ra-taste:active { background: var(--lime); border-color: var(--lime); }
.ra-taste.aktuell { border-color: var(--ink); }
.ra-taste.mehr { color: #6B7280; }
.ra-akt { position: absolute; top: -8px; inset-inline-end: -4px; padding: 2px 6px; border-radius: 999px; background: var(--ink); color: var(--lime); font-size: 8px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* Gleichstand im K.O. wie die App (Halbfinal-/Finalscreen): Rahmen #DC2626 1,5 px, beide Zahlen weiss */
.rz .mitte .k.erg.remis { border: 1.5px solid var(--rot); color: #fff; }
.remis-muster { flex: none; display: inline-block; width: 14px; height: 14px; margin-top: 2px; border-radius: 4px; border: 1.5px solid var(--rot); background: var(--ink); }

/* ---------- Ergebnisbild zum Teilen (Chefdesigner 02.12., live-seite-ergebnisbild.html, Fassung Story) ----------
   Siegerkarte der App als Story 9:16, gezeichnet bei 360 x 640, erzeugt mit Faktor 3 (ergebnisbild.js). Werte 1:1
   aus dem Entwurf, die Story-Verdichtung schon eingerechnet. Liegt nur kurz unsichtbar neben dem Bildschirm. */
.eb-aussen { position: fixed; top: 0; left: -20000px; pointer-events: none; }
.eb-bild { position: relative; width: 360px; height: 640px; overflow: hidden; display: flex; flex-direction: column; background: #16161A; color: #fff; font-family: Outfit, 'IBM Plex Sans Arabic', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.eb-innen { position: relative; flex: 1; display: flex; flex-direction: column; padding: 44px 22px 0; }
.eb-konf { position: absolute; inset: 0; pointer-events: none; }
.eb-konf i { position: absolute; display: block; }
.eb-k { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: #A3E635; }
.eb-namen { margin-top: 12px; text-align: center; font-size: 32px; font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; color: #fff; overflow-wrap: anywhere; }
.eb-namen .amp { opacity: 0.55; font-weight: 700; }
.eb-meta { margin-top: 8px; text-align: center; font-size: 12px; color: #94A3B8; }
.eb-podium { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.eb-bub { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 16px; background: rgba(255,255,255,0.08); }
.eb-bub .r { width: 28px; flex: none; font-size: 14px; font-weight: 900; line-height: 1; color: #94A3B8; }
.eb-bub .n { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.2; color: #fff; }
.eb-bub .n .amp { color: inherit; opacity: 0.55; font-weight: 600; }
.eb-pill { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; background: rgba(255,255,255,0.15); color: #fff; white-space: nowrap; }
.eb-pill.leise { background: rgba(255,255,255,0.07); font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.6); }
.eb-pkt { flex: none; padding-inline-end: 10px; font-size: 14px; font-weight: 700; color: #fff; }
/* Nach Saetzen (Uebergabe Satzmodus 1e): Pille unter den Namen, 40 px eingerueckt (buendig mit den Namen); Story dichter */
.eb-bub.unter { flex-wrap: wrap; row-gap: 4px; padding-top: 8px; padding-bottom: 8px; }
.eb-bub.unter .n { flex-basis: calc(100% - 40px); }
.eb-bub.unter .eb-pill { margin-inline-start: 40px; word-spacing: 2px; }
.eb-bub.unter .eb-pill b { font-weight: 700; }
.eb-bub.unter .eb-pill .s { font-weight: 800; }
.eb-bub.unter .eb-pill.leise { font-size: 12px; }
.eb-podium:has(.unter) { gap: 6px; }
.eb-bub.p1 { background: #A3E635; }
.eb-bub.p1 .r, .eb-bub.p1 .n { color: #16161A; }
.eb-bub.p1 .eb-pill { background: #16161A; color: #A3E635; }
.eb-bub.p2 .r { color: #A3E635; }
.eb-trenner { display: flex; align-items: center; gap: 10px; margin: 12px 4px 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #64748B; }
.eb-trenner::before, .eb-trenner::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.10); }
.eb-zeile { display: flex; align-items: center; gap: 12px; padding: 7px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.eb-zeile:last-child { border-bottom: 0; }
.eb-zeile .r { width: 28px; flex: none; font-size: 14px; font-weight: 600; color: #94A3B8; }
.eb-zeile .n { flex: 1; font-size: 14px; font-weight: 500; color: #CBD5E1; }
.eb-zeile .pkt { font-size: 14px; font-weight: 700; color: #E2E8F0; padding-inline-end: 10px; }
/* eigene Zeile (wer ueber "Ich bin …" gewaehlt hat und teilt): Lime-Name wie ueberall */
.eb-zeile.ich .n span { padding: 2px 8px; margin: 0 -8px; border-radius: 999px; background: #A3E635; color: #16161A; font-weight: 700; }
.eb-mehr { padding: 7px 16px; font-size: 13px; font-weight: 600; color: #64748B; }
.eb-nach .eb-mehr:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.08); }
.eb-nach .eb-zeile.ich { padding: 7px 16px; }
/* Zweispaltig (Maik 02.12.): von oben nach unten, dann rechts; Zeilen kleiner, Namen mit "…" */
.eb-liste.zwei { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; column-gap: 14px; }
.eb-liste.zwei .eb-zeile { gap: 6px; padding: 4px; }
.eb-liste.zwei .eb-zeile .r { width: 26px; font-size: 12.5px; }
.eb-liste.zwei .eb-zeile .n { min-width: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-liste.zwei .eb-zeile.ich .n { overflow: visible; }
.eb-liste.zwei .eb-zeile .pkt { padding-inline-end: 2px; font-size: 12.5px; }
.eb-liste.zwei .eb-zeile:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.eb-liste.zwei .eb-zeile.spaltenende { border-bottom: 0; }
/* Fuss: Wortmarke wie in der App, darunter die Adresse (ein Bild kann keinen Link tragen) */
.eb-marke { margin-top: auto; padding: 14px 0 34px; text-align: center; }
.eb-marke b { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: #4D7C0F; }
.eb-marke span { display: block; margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: #64748B; }

/* Messstab fuer die Fensterhoehe bei weggeklappter Adressleiste (leisteLage) */
.lvh-mass { position: fixed; top: 0; left: -10px; width: 1px; height: 100vh; height: 100lvh; visibility: hidden; pointer-events: none; }

/* =====================================================================================================
   Desktop (Schritt 3e, Chefdesigner live-seite-desktop.html, ab 1024 px; darunter die Handy-Fassung).
   Alles unter html.desk, damit die Handy-Regeln unberuehrt bleiben. Inhalt hoechstens 1200 px, Rand 40 px;
   die schwarzen Flaechen (Markenzeile, Kopf) laufen ueber die volle Breite, ihr Inhalt fluchtet mit den Spalten.
   ===================================================================================================== */
html.desk { --d-rand: max(40px, calc((100% - 1120px) / 2)); --zoom: 1; background: var(--creme); }
html.desk body { background: var(--creme); }
html.desk .inhalt { max-width: none; min-height: calc(100vh / var(--zoom)); padding: 0 0 24px; }
html.desk .ebenen { display: none; }
html.desk .fussleiste { left: 50%; right: auto; bottom: 32px; width: min(420px, calc(100% - 32px)); padding: 0; transform: translateX(-50%); background: none; pointer-events: none; }
html.desk .fussleiste .e-leiste { margin: 0; pointer-events: auto; min-height: 52px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
html.desk .h-bar { display: none; }
/* Markenzeile: Kennzeile links, rechts beide Stores */
html.desk .d-marke { gap: 24px; height: 56px; margin: 0; padding: 0 var(--d-rand); }
html.desk .d-marke .h-marke-text { font-size: 11.5px; letter-spacing: 0.2em; }
.d-store { display: inline-flex; align-items: center; gap: 8px; height: 44px; font-size: 13px; font-weight: 600; color: var(--kopf-text); text-decoration: none; }
.d-store svg { display: block; }
.d-store .h-chev { position: relative; top: 1px; color: var(--slate); }
.d-store:hover { color: #fff; }
/* Kopf */
html.desk .h-hero { margin: 0; padding: 28px var(--d-rand) 24px; }
html.desk .h-z1 { min-height: 32px; gap: 16px; }
html.desk .h-z1 .tname { font-size: 17px; }
html.desk .st { font-size: 13px; gap: 8px; }
html.desk .st .punkt { width: 8px; height: 8px; }
html.desk .h-z2 { margin-top: 10px; }
html.desk .h-uhr { font-size: 112px; line-height: 116px; }
html.desk .balken { height: 4px; margin-top: 16px; }
html.desk .h-hinweis { margin-top: 14px; gap: 10px; font-size: 14px; }
html.desk .h-hinweis svg { width: 16px; height: 16px; }
html.desk .h-gross { font-size: 64px; line-height: 70px; }
html.desk .g-du { margin-top: 14px; font-size: 15px; }
.d-gross { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 128px; height: 44px; padding: 0 18px 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.22); font-size: 14px; font-weight: 600; color: #fff; }
.d-gross:hover { border-color: rgba(255,255,255,0.5); }
html.desk .h-teilen.oben { min-width: 128px; height: 44px; margin: -7px 0; padding: 0 16px 0 13px; gap: 7px; justify-content: center; font-size: 15px; }
html.desk .h-teilen:hover { background: #84CC16; }
html.desk .h-sieger-k { margin-top: 14px; font-size: 12px; }
html.desk .h-sieger { margin-top: 8px; font-size: 64px; line-height: 1.05; white-space: nowrap; overflow: hidden; }
html.desk .h-sieger .sz { display: inline; }
html.desk .h-sieger .sz + .sz { margin-inline-start: 0.25em; }
/* Punktemodus wie am Handy, groesser: "Runde 3 / 7", "Bis 24 Punkte" daneben, Segmente 4 px */
html.desk .h-punkte { justify-content: flex-start; gap: 12px; margin-top: 10px; }
html.desk .h-punkte .wort { font-size: 26px; }
html.desk .h-punkte .zahl { font-size: 112px; line-height: 116px; }
html.desk .h-punkte .pvon { font-size: 46px; }
html.desk .h-punkte .ziel { margin-inline-start: 20px; font-size: 14px; }
html.desk .h-ko-zeile { justify-content: flex-start; column-gap: 20px; }
html.desk .h-ko-zeile .ziel { font-size: 14px; }
html.desk .h-segmente { gap: 8px; margin-top: 16px; }
html.desk .h-segmente i { height: 4px; }
/* 0:00 rot wie am Handy: Markenzeile und Kopf */
html.desk .e-hinweis { max-width: 1200px; margin: 22px auto 0; width: calc(100% - 80px); }
/* Zwei Spalten */
.d-inhalt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 0.787fr); gap: 48px; max-width: 1200px; margin: 0 auto; padding: 32px 40px 24px; align-items: start; }
.d-titel { margin: 0 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
/* Links: Runden eine Stufe groesser, Namen mittig in ihrer Haelfte */
.d-links .runde3 { margin-top: 28px; }
.d-links > .runde3:first-child, .d-links > .d-gespielt + .runde3, .d-links > .d-gespielt-liste + .runde3 { margin-top: 0; }
.d-links .rkopf3 .r { font-size: 17px; }
.d-links .rkarte3 { padding: 0 16px; border-radius: 18px; }
.d-links .rz { min-height: 64px; gap: 12px; }
.d-links .rz .cn { width: 22px; font-size: 11px; }
.d-links .rz .cn.ko { width: 26px; }
.d-links .rz .nm { font-size: 15px; }
.d-links .rz .t.a, .d-links .rz .t.b { align-items: center; text-align: center; }
.d-links .rz .offen-text, .d-links .rz .offen-text.a { text-align: center; font-size: 13.5px; }
.d-links .rz .mitte { width: 104px; gap: 8px; }
.d-links .rz .mitte .k { width: 46px; height: 46px; font-size: 20px; border-radius: 12px; }
.d-links .rkarte3.eintragen .rz { min-height: 64px; }
.d-links .rkarte3.eintragen .rz .mitte { width: 104px; }
.d-links .rkarte3.eintragen .rz .mitte .k { width: 46px; height: 46px; }
.d-links .rz .mitte .k.plus { font-size: 26px; font-weight: 300; }
.d-links .rz .mitte .k.plus:hover { background: #84CC16; }
.d-links .rz .mitte.zahlen { font-size: 18px; }
.d-links .rz .mitte.vs { font-size: 13px; }
.d-links .pausezeile .nm { font-size: 14px; }
.d-links .vorl-zeile { gap: 10px; padding: 12px 6px 13px; font-size: 13.5px; }
.d-links .auslosung { margin-top: 28px; padding: 18px 20px; border-radius: 18px; font-size: 15px; }
.d-links .auslosung b { font-size: 17px; }
/* 1 Court: eine Stufe groesser (Zeilen 76, Namen 17, Felder 52) */
html.desk .eincourt .d-links .rz { min-height: 76px; }
html.desk .eincourt .d-links .rz .nm { font-size: 17px; }
html.desk .eincourt .d-links .rz .mitte { width: 120px; }
html.desk .eincourt .d-links .rz .mitte .k { width: 52px; height: 52px; font-size: 22px; }
html.desk .eincourt .d-links .rz .mitte.zahlen { font-size: 20px; }
html.desk .eincourt .d-links .rz .mitte.vs { font-size: 14px; }
/* Leise Zeile "2 gespielte Runden ›" oben links; ragt 18 px in den Innenabstand, damit die schwarze Karte auf Hoehe der Tabellenkarte beginnt */
.d-gespielt { display: flex; width: fit-content; align-items: center; gap: 6px; height: 44px; margin: -18px 0 0; padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--grau); }
.d-gespielt:hover { text-decoration: underline; text-underline-offset: 3px; }
.d-gespielt:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.d-gespielt-liste { padding-top: 4px; padding-bottom: 28px; }
.d-gespielt-liste > .runde3:first-child { margin-top: 0; }
/* Rechts: Tabelle in weisser Karte, Zahlenspalten fest, der Name bekommt den Rest */
.d-rechts .tabelle { margin: 0; padding: 8px 16px 6px; border-radius: 18px; background: var(--weiss); }
.d-rechts .tabelle td { height: 44px; }
.d-rechts .tabelle th.z, .d-rechts .tabelle td.z { width: 52px; }
.d-rechts .tabelle th.z:last-child, .d-rechts .tabelle td.z:last-child { width: 44px; }
.d-rechts .rl1 td.ko-status { width: auto; }
.d-rechts .verlauf { margin-top: 20px; padding: 16px; border-radius: 18px; background: var(--weiss); }
.d-rechts .verlauf .vkopf { padding: 0 0 10px; }
.d-rechts .verlauf .vkarte { padding: 0; border-radius: 0; }
.d-rechts .verlauf.v-ko { padding: 0; background: none; }
.d-rechts .verlauf.v-ko .vkarte { padding: 12px 10px 8px; border-radius: 18px; }
.d-rechts .verdeckt { padding: 36px 28px 32px; border-radius: 18px; margin-top: 0; }
.d-rechts .verdeckt .vd-icon { width: 56px; height: 56px; margin-bottom: 14px; }
.d-rechts .verdeckt h2 { font-size: 18px; }
.d-kasten { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; margin-top: 16px; padding: 0 16px; border-radius: 12px; background: rgba(255,255,255,0.6); font-size: 14px; font-weight: 600; color: var(--grau-pause); }
.d-kasten:hover { background: #fff; }
.d-kasten svg { color: var(--grau); }
.d-kasten + .tabelle { margin-top: 14px; }
.qr-karte { margin-top: 20px; display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 18px; background: var(--weiss); }
.qr-karte .code { flex: none; width: 84px; height: 84px; border-radius: 10px; background: #fff; }
.qr-karte .code svg { display: block; width: 100%; height: 100%; }
.qr-karte b { display: block; font-size: 15px; font-weight: 700; }
.qr-karte span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--grau); }
/* Werbeband am Ende unter beiden Spalten, beide Badges */
.d-werbung { max-width: 1200px; margin: 16px auto 0; padding: 0 40px; }
.d-werbung .werbeband b { max-width: none; font-size: 20px; }
.d-werbung .werbeband .kenn { font-size: 10.5px; }
/* Fuss wie am Handy, etwas groesser */
html.desk .fuss .fuss-marke { font-size: 10.5px; }
html.desk .fuss .links a { font-size: 12.5px; }
html.desk .fuss .links a + a::before { margin: 0 10px; }
html.desk .fuss a:hover { color: var(--ink); }
/* Link vorbei / unbekannt: klare Aussage in der Mitte */
html.desk .inhalt-oben > .leer { max-width: 620px; margin: 96px auto 0; padding: 0 40px; text-align: center; }
html.desk .inhalt-oben > .leer h1 { font-size: 34px; }
html.desk .inhalt-oben > .leer p { margin-top: 12px; font-size: 17px; text-wrap: balance; }
/* Zahlenfenster und "Wer bist du?" als Fenster in der Mitte statt Sheet von unten */
html.desk .sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: min(440px, calc(100% - 32px)); max-width: none; max-height: 85vh; transform: translate(-50%, -50%); border-radius: 24px; box-shadow: 0 24px 64px rgba(0,0,0,.25); }
html.desk .sheet .griff { display: none; }
html.desk .sheet .sinhalt { padding: 24px; }
html.desk .sheet .zu:hover { background: rgba(22,22,26,0.05); border-radius: 12px; }
html.desk .ra-taste:hover { border-color: rgba(22,22,26,0.3); }
.ra-tipp { margin: 16px 0 0; font-size: 13px; color: var(--grau); }
.ra-tipp kbd { display: inline-block; padding: 0 6px; border-radius: 6px; border: 1px solid rgba(22,22,26,0.15); background: #fff; font: 600 12px/20px Outfit, sans-serif; color: var(--ink); }
/* Grosse Bildschirme (Maik 02.12.): die Seite waechst mit, Aufteilung gleich. Ab 1600 px +15 % (Inhalt bis 1380 px),
   ab 1920 px +30 % (1560), ab 2400 px +55 % (1860). Per CSS-zoom wie im Entwurf; Konfetti rechnet den Zoom heraus. */
@media (min-width: 1600px) { html.desk { --zoom: 1.15; } html.desk body { zoom: 1.15; } }
@media (min-width: 1920px) { html.desk { --zoom: 1.3; } html.desk body { zoom: 1.3; } }
@media (min-width: 2400px) { html.desk { --zoom: 1.55; } html.desk body { zoom: 1.55; } }
/* Abgleich mit dem Entwurf bei 1280 px (Selbsttest 03.12.) */
html.desk .d-marke { height: 57px; }
html.desk .h-z1 { min-height: 0; }
html.desk .fuss { padding-bottom: 32px; }
html.desk .duchip { height: 30px; }
html.desk .h-punkte .zahlgruppe { gap: 12px; }
html.desk .skel-karte { border-radius: 18px; padding: 18px 16px; gap: 22px; }
html.desk .skel-zeile { gap: 14px; }
.skel-tab { border-radius: 18px; background: var(--weiss); padding: 16px; display: flex; flex-direction: column; gap: 18px; }
.skel-tab .platzhalter { height: 20px; }
/* Fenster offen (html.gesperrt): Windows blendet die Scrollleiste aus, die Seite rutschte 7,5 px zur Seite (Maik 03.12.,
   Video). Platz fuer die Leiste bleibt reserviert. Am Handy liegt die Leiste ueber dem Inhalt, dort aendert sich nichts. */
html.desk { scrollbar-gutter: stable; }

/* ===================== Fernseher (Schritt 3f) =====================
   Quelle: live-seite-tv.html (Chefdesigner 26.11. bis 03.12.), Werte 1:1 in Buehnen-Pixeln (1920 x 1080). Die Buehne
   wird als Ganzes skaliert (seite.js tvPassen). Abweichungen: Stufen statt fester Court-Grenzen ("ein"/"viele" an der
   linken Spalte, dazu "ohne-neben" und Zoom der Karte, wenn es nicht passt), Tabelle erst eng, dann Seiten. */
html.tv, html.tv body { overflow: hidden; background: var(--creme); }
html.tv body, html.tv body.alarm { min-height: 0; }
html.tv .inhalt { position: fixed; inset: 0; max-width: none; min-height: 0; margin: 0; padding: 0; display: block; overflow: hidden; background: var(--creme); }
html.tv-ruhig, html.tv-ruhig * { cursor: none !important; }
.tv-buehne { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; background: var(--creme); overflow: hidden; display: flex; flex-direction: column; }
.tv-buehne .nm { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; }

/* Kopf */
.tv-kopf { position: relative; flex: none; background: var(--ink); padding: 44px 72px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 64px; }
.tv-kopf:not(:has(.tv-balken, .tv-seg, .tv-sieger-wrap)) { padding-bottom: 34px; }
/* Name, Status und Hinweis auf einer Grundlinie (Maik 03.12.: mittig ausgerichtet sass "RUNDE 1 / 7" rund 10 px hoeher; Abweichung von der Vorlage). */
.tv-z1 { position: relative; grid-column: 1; grid-row: 1; min-width: 0; display: flex; align-items: baseline; gap: 28px; }
.tv-z1 .tname { min-width: 0; font-size: 40px; font-weight: 700; color: var(--kopf-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-z1 .st { flex: none; gap: 12px; font-size: 22px; align-items: baseline; }
.tv-z1 .st .punkt { width: 12px; height: 12px; align-self: center; }
.tv-hinweis { flex: none; display: inline-flex; align-items: baseline; gap: 12px; font-size: 22px; font-weight: 500; color: var(--slate); white-space: nowrap; }
.tv-hinweis svg { width: 24px; height: 24px; flex: none; align-self: center; }
.tv-uhr { position: relative; grid-column: 1; grid-row: 2; font-size: 220px; line-height: 220px; margin-top: 4px; }
.tv-qr { position: relative; grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; align-items: center; gap: 22px; }
.tv-qr .code, .tv-werbe .code { flex: none; width: 150px; height: 150px; padding: 10px; border-radius: 20px; background: #fff; }
.tv-qr .code svg, .tv-werbe .code svg { display: block; width: 100%; height: 100%; }
.tv-qr .txt b { display: block; font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -0.01em; white-space: nowrap; }
.tv-qr .txt span { display: block; margin-top: 6px; font-size: 17px; color: var(--slate); white-space: nowrap; }
.tv-balken { grid-column: 1 / -1; grid-row: 3; height: 6px; margin: 28px -72px 0; background: rgba(255,255,255,0.1); }
.tv-balken i { display: block; height: 100%; width: 0; background: rgba(255,255,255,0.72); }
.tv-kopf.pausiert .tv-uhr { color: #64748B; } .tv-kopf.pausiert .tv-uhr .dp { color: #94A3B8; } .tv-kopf.pausiert .tv-balken i { background: #64748B; }
.tv-kopf.warn .tv-uhr, .tv-kopf.warn .tv-uhr .dp { color: var(--amber); } .tv-kopf.warn .tv-balken i { background: var(--amber); }
/* 0:00: nur der Kopf rot (Maik 02.12.), Runden und Tabelle bleiben ruhig */
.tv-kopf.alarm { background: var(--rot); }
.tv-kopf.alarm .tv-uhr .dp { color: rgba(255,255,255,0.6); }
.tv-kopf.alarm .tname, .tv-kopf.alarm .st .von, .tv-kopf.alarm .tv-hinweis { color: #fff; }
.tv-kopf.alarm .tv-balken { background: rgba(255,255,255,0.18); }
.tv-kopf.alarm .tv-qr .txt span { color: rgba(255,255,255,0.8); }   /* Slate auf Rot nur ca. 2 : 1 */
/* Punktemodus: gross "Runde 3 / 7", Segmente statt Balken */
.tv-punkte { position: relative; grid-column: 1; grid-row: 2; display: flex; align-items: baseline; gap: 22px; margin-top: 4px; min-width: 0; }
.tv-punkte .wort { font-size: 52px; font-weight: 500; letter-spacing: -0.01em; color: var(--slate); }
.tv-punkte .zahl { font-size: 220px; line-height: 220px; font-weight: 800; letter-spacing: -0.05em; color: #fff; font-variant-numeric: tabular-nums; }
.tv-punkte .von { font-size: 92px; font-weight: 500; letter-spacing: -0.03em; color: var(--slate); }
.tv-punkte .ziel { margin-inline-start: 28px; font-size: 26px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate); white-space: nowrap; }
.tv-seg { grid-column: 1 / -1; grid-row: 3; display: flex; gap: 14px; margin-top: 28px; padding-bottom: 6px; }
.tv-seg i { position: relative; flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.1); }
.tv-seg i.an { background: rgba(255,255,255,0.72); }
/* K.O. im Punktemodus und Ende ohne Abschluss: das Wort gross statt der Uhr (im Entwurf nicht gezeichnet) */
/* Unten 0,3em Platz fuer Unterlaengen (Arabisch ى/ح, polnisch y wurden von overflow gerade abgeschnitten, 04.12.),
   per negativem Rand wieder abgezogen: die Kopfhoehe bleibt wie vorher (6px). */
html[dir="rtl"] .tv-gross { top: -16px; }   /* arabische Punkte unter der Linie reichen sonst an die Kopfkante */
.tv-gross { position: relative; grid-column: 1; grid-row: 2; padding: 22px 0 0.3em; margin-bottom: calc(6px - 0.3em); font-size: 132px; line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Turnierende (Variante C): Sieger gross statt Uhr, stehendes Konfetti */
.tv-sieger-wrap { position: relative; grid-column: 1; grid-row: 2; min-width: 0; padding: 22px 0 40px; }
.tv-sieger-k { font-size: 24px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lime); }
.tv-sieger { margin-top: 8px; font-size: 132px; line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; color: #fff; white-space: nowrap; overflow: hidden; }
.tv-sieger .amp { color: var(--slate); font-weight: 700; }
/* Arabisch (3g): "و" reicht tiefer unter die Grundlinie als lateinische Buchstaben und wurde in den knappen, abschneidenden
   Siegerzeilen gekappt (Maik 03.12.). Unten Platz zum Zeichnen, ohne dass sich etwas verschiebt; andere Sprachen unveraendert. */
[dir="rtl"] .h-sieger .sz, html.desk[dir="rtl"] .h-sieger, [dir="rtl"] .h-bar-sieger .n, [dir="rtl"] .tv-sieger { padding-bottom: 0.15em; margin-bottom: -0.15em; }
.tv-konfetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tv-konfetti i { position: absolute; display: block; }

/* Inhalt: links 1080, rechts der Rest; beide Spalten scrollen nie (was nicht passt, regelt tvPassen) */
.tv-inhalt { flex: 1; min-height: 0; display: grid; grid-template-columns: 1080px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 72px; padding: 48px 72px 0; }
.tv-links, .tv-rechts { min-width: 0; min-height: 0; overflow: hidden; }
.tv-titel { display: flex; align-items: baseline; gap: 18px; margin: 0 0 18px; font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; white-space: nowrap; }
.tv-titel .tv-plaetze { font-size: 22px; font-weight: 600; color: var(--grau); letter-spacing: 0; }
.tv-titel .seiten { margin-inline-start: auto; align-self: center; display: flex; gap: 8px; }
.tv-titel .seiten i { width: 10px; height: 10px; border-radius: 50%; background: #D2D5DA; }
.tv-titel .seiten i.an { background: var(--ink); }
.tv-titel .tv-vorl { display: inline-flex; align-items: center; gap: 12px; margin-inline-start: 10px; min-width: 0; font-size: 22px; font-weight: 500; letter-spacing: 0; color: var(--grau-pause); overflow: hidden; text-overflow: ellipsis; }
.tv-titel .tv-vorl b { font-weight: 700; color: var(--ink); }
.tv-titel .tv-vorl svg { flex: none; width: 26px; height: 26px; }

/* Laufende Runde als grosse schwarze Karte, Namen mittig in ihrer Haelfte */
.tv-karte { background: var(--ink); border-radius: 28px; padding: 0 28px; }
.tv-zeile { display: flex; align-items: center; gap: 24px; min-height: 124px; border-top: 1px solid rgba(255,255,255,0.08); }
.tv-zeile:first-child { border-top: 0; }
.tv-zeile .cn { flex: none; width: 48px; font-size: 22px; font-weight: 800; color: #fff; }
.tv-zeile .t { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 34px; font-weight: 700; line-height: 1.3; color: #fff; }
.tv-zeile .offen-text { flex: 1; min-width: 0; text-align: center; font-size: 26px; font-weight: 500; color: var(--slate); }
.tv-zeile .mitte { flex: none; display: flex; gap: 14px; }
.tv-zeile .k { width: 92px; height: 92px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tv-zeile .k.erg { border: 2px solid var(--lime); color: #fff; }
.tv-zeile .k.erg.zweiter { color: rgba(255,255,255,0.55); }
.tv-zeile .k.erg.remis { border-color: var(--rot); color: #fff; }
.tv-zeile .k.offen { border: 2.5px dashed rgba(255,255,255,0.22); color: rgba(255,255,255,0.25); font-weight: 300; }
.tv-zeile .k.vorl { border: 2.5px dashed var(--lime); color: #fff; }
.tv-zeile .k.blitz { animation: blitz 0.9s ease-out 1; }
@media (prefers-reduced-motion: reduce) { .tv-zeile .k.blitz { animation: none; } }
.tv-zeile .mitte.vs { min-width: 198px; justify-content: center; font-size: 26px; font-weight: 600; color: var(--slate); }
/* Am Ende hell mit Zahlen (Verlierer grau) */
.tv-karte.hell { background: var(--weiss); }
.tv-karte.hell .tv-zeile { border-top-color: rgba(22,22,26,0.06); }
.tv-karte.hell .tv-zeile .t { color: var(--ink); }
.tv-karte.hell .tv-zeile .cn { color: var(--grau); }
.tv-karte.hell .mitte.zahlen { min-width: 196px; justify-content: center; gap: 26px; font-size: 56px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.tv-karte.hell .mitte.zahlen .zweiter { color: var(--grau); }
.tv-karte.hell .mitte.vs { color: var(--grau); }
.tv-pause { display: flex; gap: 18px; align-items: baseline; margin-top: 18px; padding-inline-start: 6px; font-size: 26px; color: var(--grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-pause b { font-size: 16px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grau-pause); }

/* Darunter: gespielte und kommende Runde klein nebeneinander */
.tv-neben { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.tv-neben.voll { grid-template-columns: 1fr; }
.tv-klein { min-width: 0; }
.tv-klein h3 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 10px; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.tv-klein h3 span { font-size: 17px; font-weight: 600; color: var(--grau); }
.tv-klein .karte { background: var(--weiss); border-radius: 22px; padding: 0 18px; }
.tv-kz { display: flex; align-items: center; gap: 10px; min-height: 84px; border-top: 1px solid rgba(22,22,26,0.06); }
.tv-kz:first-child { border-top: 0; }
.tv-kz .cn { flex: none; width: 26px; font-size: 14px; font-weight: 700; color: var(--grau); }
.tv-kz .t { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--zeile); }
.tv-kz .offen-text { flex: 1; min-width: 0; text-align: center; font-size: 19px; font-weight: 500; color: var(--grau); }
.tv-kz .mitte { flex: none; min-width: 84px; display: flex; justify-content: center; gap: 12px; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.tv-kz .mitte .zweiter { color: var(--grau); }
.tv-kz .mitte.vs { font-size: 16px; font-weight: 600; color: var(--grau); }
.tv-klein.vorbei h3 { color: var(--grau); font-weight: 700; }
.tv-klein.vorbei .tv-kz .t { color: var(--grau); }
.tv-klein.vorbei .karte { background: rgba(255,255,255,0.6); }
.tv-auslosung { display: flex; flex-direction: column; justify-content: center; min-height: 168px; padding: 0 28px; border-radius: 22px; border: 2px dashed var(--strich); background: var(--weiss); font-size: 22px; font-weight: 600; line-height: 1.4; color: var(--grau); }

/* Stufen der linken Spalte: 1 Court eine Stufe groesser, viele Courts kompakt, Nebenkarten weg, wenn es nicht passt */
.tv-links.ein .tv-zeile { min-height: 172px; }
.tv-links.ein .tv-zeile .t { font-size: 44px; }
.tv-links.ein .tv-zeile .cn { font-size: 26px; width: 56px; }
.tv-links.ein .tv-zeile .k { width: 118px; height: 118px; font-size: 56px; border-radius: 24px; }
.tv-links.ein .tv-kz { min-height: 104px; }
.tv-links.ein .tv-kz .t { font-size: 26px; }
.tv-links.ein .tv-kz .mitte { font-size: 28px; }
.tv-links.viele .tv-zeile { min-height: 84px; gap: 20px; }
.tv-links.viele .tv-zeile .t { font-size: 26px; line-height: 1.25; }
.tv-links.viele .tv-zeile .cn { font-size: 20px; width: 44px; }
.tv-links.viele .tv-zeile .k { width: 64px; height: 64px; font-size: 30px; border-radius: 16px; }
.tv-links.viele .tv-zeile .mitte { gap: 10px; }
.tv-links.viele .tv-neben, .tv-links.ohne-neben .tv-neben { display: none; }

/* Tabelle gross */
.tv-tabelle { background: var(--weiss); border-radius: 28px; padding: 14px 32px; }
.tv-tabelle table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.tv-tabelle td { height: 52px; font-size: 26px; border-bottom: 1px solid rgba(22,22,26,0.06); padding: 0 8px; }
.tv-tabelle tr:last-child td, .tv-tabelle tr.letzte td { border-bottom: 0; }
.tv-tabelle td.rang { width: 68px; }
.tv-tabelle .rk { width: 40px; height: 40px; font-size: 20px; }
.tv-tabelle .rk.rn { font-size: 22px; }
.tv-tabelle .rk.bereich { width: auto; min-width: 40px; padding: 0 12px; white-space: nowrap; background: rgba(22,22,26,0.06); font-size: 18px; font-weight: 700; color: var(--grau-pause); }
/* Kopfzeile nur nach Saetzen: wie die Kopfzeile der Handy-Tabelle, in Fernsehergroesse */
.tv-tabelle th { padding: 4px 8px 12px; font-size: 18px; }
.tv-tabelle th.sp, .tv-tabelle th.pkt { text-align: end; }
.tv-tabelle td.name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-tabelle td.name .amp { color: var(--grau-pause); font-weight: 600; }
.tv-tabelle td.pkt { width: 84px; text-align: end; font-weight: 800; }
.tv-tabelle td.sp { width: 116px; text-align: end; font-size: 22px; color: var(--grau); white-space: nowrap; }
.tv-tabelle tr.fuehrend td { background: var(--fuehrend); border-bottom-color: transparent; }
.tv-tabelle tr.fuehrend td:first-child { border-radius: 16px 0 0 16px; }
.tv-tabelle tr.fuehrend td:last-child { border-radius: 0 16px 16px 0; }
.tv-tabelle tr.ko-ende td { border-bottom: 2.5px solid rgba(22,22,26,0.26); }
.tv-rechts.eng .tv-tabelle { padding: 10px 28px; }
.tv-rechts.eng .tv-tabelle td { height: 41px; font-size: 22px; }
.tv-rechts.eng .tv-tabelle .rk { width: 32px; height: 32px; font-size: 17px; }
.tv-rechts.eng .tv-tabelle td.sp { font-size: 19px; }
.tv-verdeckt { background: var(--weiss); border-radius: 28px; padding: 64px 48px 60px; text-align: center; }
.tv-verdeckt .vd-icon { width: 104px; height: 104px; margin: 0 auto 26px; border-radius: 50%; background: rgba(22,22,26,0.05); color: var(--grau); display: flex; align-items: center; justify-content: center; }
.tv-verdeckt .vd-icon svg { width: 48px; height: 48px; }
.tv-verdeckt h3 { margin: 0; font-size: 36px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }

/* Fuss: nur die Kennzeile (Pruefung 30.11.: #5F6672, 5,2 : 1) */
.tv-fuss { flex: none; display: flex; align-items: center; height: 56px; padding: 0 72px; margin-top: auto; }
.tv-fuss .kennzeile { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 16px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #5F6672; }

/* Abgelaufen / unbekannt / Laden */
.tv-leer { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 160px; }
.tv-leer h1 { margin: 0; font-size: 72px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.tv-leer p { margin: 22px 0 0; max-width: 1100px; font-size: 30px; line-height: 1.45; color: var(--grau); }
.tv-werbe { display: flex; align-items: center; gap: 32px; margin-top: 72px; padding: 32px 44px; border-top: 2px solid rgba(22,22,26,0.10); border-bottom: 2px solid rgba(22,22,26,0.10); text-align: start; }
.tv-werbe .code { width: 168px; height: 168px; }
.tv-werbe .kenn { display: block; font-size: 18px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grau-kopf); }
.tv-werbe b { display: block; margin-top: 8px; font-size: 38px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.tv-platz { display: block; border-radius: 14px; background: rgba(255,255,255,0.08); }
.tv-platz.hell { background: rgba(22,22,26,0.06); }
.tv-platz-zeile { display: flex; gap: 24px; align-items: center; margin: 20px 0; }
.tv-links .tv-karte:has(.tv-platz-zeile) { padding: 8px 28px; }
.tv-platz-tab { padding: 28px 32px; }

/* Vom Desktop aus: kurz nach einer Mausbewegung die Pille zum Verlassen (Esc geht immer) */
.tv-zu { position: fixed; top: 16px; right: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(22,22,26,0.88); color: #fff; font-size: 14px; font-weight: 600; }
.tv-zu kbd { padding: 0 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.3); font: 600 12px/20px Outfit, sans-serif; }

/* ===== Nach Saetzen am Desktop und Fernseher (Uebergabe Satzmodus 1b/1c, live-seite-desktop.html / live-seite-tv.html) ===== */
html.desk .rz .mitte.satz { width: 120px; height: 46px; gap: 6px; border-radius: 12px; font-size: 15px; }
html.desk .rz .mitte.satz.hell { height: auto; }
html.desk .eincourt .d-links .rz .mitte.satz { width: 120px; }
.tv-zeile .mitte.satz { position: relative; width: 236px; height: 92px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0; border-radius: 20px; box-shadow: inset 0 0 0 2.5px rgba(255,255,255,0.16); box-sizing: border-box; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; overflow: hidden; }
.tv-zeile .mitte.satz .s, .tv-kz .mitte.satz .s { display: inline-flex; white-space: nowrap; }
.tv-zeile .mitte.satz .g { color: #fff; }
.tv-zeile .mitte.satz .v, .tv-zeile .mitte.satz i { color: #6B7280; font-style: normal; }
.tv-zeile .mitte.satz .lauf { color: #4B5563; font-weight: 600; }
.tv-zeile .mitte.satz.sieg-a { padding-inline-start: 6px; box-shadow: inset 6px 0 0 var(--lime), inset 0 0 0 2.5px rgba(255,255,255,0.16); }
.tv-zeile .mitte.satz.sieg-b { padding-inline-end: 6px; box-shadow: inset -6px 0 0 var(--lime), inset 0 0 0 2.5px rgba(255,255,255,0.16); }
[dir="rtl"] .tv-zeile .mitte.satz.sieg-a { box-shadow: inset -6px 0 0 var(--lime), inset 0 0 0 2.5px rgba(255,255,255,0.16); }
[dir="rtl"] .tv-zeile .mitte.satz.sieg-b { box-shadow: inset 6px 0 0 var(--lime), inset 0 0 0 2.5px rgba(255,255,255,0.16); }
.tv-zeile .mitte.satz.leer { box-shadow: none; border: 2.5px dashed rgba(255,255,255,0.22); color: rgba(255,255,255,0.25); font-weight: 300; }
/* Grosse Karte am Ende (hell) und kleine Karten: die Saetze als Text, ohne Feld */
.tv-karte.hell .tv-zeile .mitte.satz.hell { height: auto; border: 0; box-shadow: none; color: var(--ink); }
.tv-karte.hell .tv-zeile .mitte.satz.hell .g { color: var(--ink); }
.tv-karte.hell .tv-zeile .mitte.satz.hell .v, .tv-karte.hell .tv-zeile .mitte.satz.hell i { color: var(--grau); }
.tv-kz .mitte.satz { gap: 10px; font-size: 21px; }
.tv-kz .mitte.satz .g { color: var(--ink); }
.tv-kz .mitte.satz .v, .tv-kz .mitte.satz i { color: var(--grau); font-style: normal; }
.tv-gross.mit-format { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.tv-gross.mit-format .ziel { font-size: 26px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate); white-space: nowrap; }

/* ---------- Saetze ueber den Link eintragen (Maik 04.12., wie das Eintrag-Sheet der App, Uebergabe Spiele & Saetze 4) ---------- */
/* Satzfeld als Knopf: leer Lime mit "+" wie bei Punkten; vorlaeufig gestrichelt Lime, alle Zahlen weiss (Design N1) */
.rz .mitte.satz.knopf { display: inline-flex; align-items: center; justify-content: center; }
.rz .mitte.satz.leer.plus { border: 0; background: var(--lime); color: rgba(22,22,26,0.35); font-size: 22px; font-weight: 500; }
.rz .mitte.satz.leer.plus:active { background: #84CC16; }
.d-links .rz .mitte.satz.leer.plus { font-size: 26px; font-weight: 300; }
.d-links .rz .mitte.satz.leer.plus:hover { background: #84CC16; }
.rz .mitte.satz.vorl { box-shadow: none; border: 1.5px dashed var(--lime); }
.rz .mitte.satz.vorl .g, .rz .mitte.satz.vorl .v, .rz .mitte.satz.vorl i, .rz .mitte.satz.vorl .lauf { color: #fff; }

.satz-sheet .sinhalt { padding-top: 18px; }
.satz-sheet .sinhalt.haelt .sz-gitter-paar, .satz-sheet .sinhalt.haelt .sz-liste { pointer-events: none; }
.sz-titel { padding-inline-end: 40px; font-size: 20px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.sz-format { margin-top: 2px; font-size: 12.5px; color: #6B7280; }
.sz-strich { height: 1px; margin: 12px -24px 0; background: rgba(22,22,26,0.08); }
.sz-liste { margin-top: 4px; display: flex; flex-direction: column; }
.sz-zeile { display: grid; grid-template-columns: minmax(0,1fr) 104px minmax(0,1fr); align-items: center; column-gap: 10px; min-height: 48px; border-top: 1px solid rgba(22,22,26,0.07); }
.sz-zeile:first-child { border-top: 0; }
.sz-zeile.aktiv { margin: 0 -24px; padding: 0 24px; background: #F1F0EB; }
.sz-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 600; color: #6B7280; }
.sz-zeile.aktiv .sz-label { font-weight: 700; color: var(--ink); }
.sz-zeile.blass .sz-label { color: #CBD5E1; }
.sz-wert { display: flex; align-items: baseline; justify-content: center; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.sz-zeile.aktiv .sz-wert { font-size: 22px; }
.sz-wert i { font-style: normal; }
.sz-wert .l { width: 40px; text-align: end; }
.sz-wert .dp { width: 16px; text-align: center; color: #CBD5E1; }
.sz-wert .r { width: 40px; text-align: start; }
.sz-z.verloren { color: #9CA3AF; }
.sz-z.blass { color: #CBD5E1; }
.sz-z.pop, .sz-chip .pop { display: inline-block; animation: sz-pop 280ms cubic-bezier(.2,.8,.2,1); }
@keyframes sz-pop { from { transform: scale(1.4); } to { transform: scale(1); } }
.sz-wert.rein { animation: sz-rein 250ms ease-out; }
@keyframes sz-rein { from { opacity: 0; transform: translateY(-3px); } }
.sz-eingabe { border-top: 1px solid rgba(22,22,26,0.07); padding-top: 14px; }
.sz-namen { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin-bottom: 12px; }
.sz-namen.oben { margin: 14px 0 2px; }
.sz-team { min-width: 0; text-align: center; font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.sz-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sz-vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 13px; font-weight: 600; color: #6B7280; }
@media (min-width: 360px) { .sz-namen { column-gap: 32px; } .sz-team { font-size: 20px; } }
.sz-gitter-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 8px; }
.sz-gitter { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; }
.sz-chip { height: 44px; border-radius: 12px; background: var(--weiss); box-shadow: inset 0 0 0 1px rgba(22,22,26,0.14); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.sz-chip.an { background: var(--ink); color: #fff; box-shadow: none; }
/* nicht "zu": so heisst im Sheet der Schliessen-Knopf (sonst sprangen gesperrte Chips nach oben rechts, Maik 04.12.) */
.sz-chip.gesperrt { color: #CBD5E1; box-shadow: inset 0 0 0 1px rgba(22,22,26,0.06); cursor: default; }
.sz-chip.mehr { width: 100%; font-size: 13.5px; font-weight: 700; color: #4B5563; }
.sz-chip.mehr.an { font-size: 17px; font-weight: 800; color: #fff; }
.sz-mehr-rahmen { position: relative; grid-column: span 2; }
/* Liste "mehr" (11-30): ueber dem Chip, denn die Chips stehen unten im Sheet */
.sz-mehr-liste { position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 10; width: 96px; max-height: 264px; overflow-y: auto; transform: translateX(-50%); border-radius: 14px; background: var(--weiss); box-shadow: 0 18px 40px -12px rgba(22,22,26,.45), 0 0 0 1px rgba(22,22,26,.1); }
.sz-mehr-wert { display: block; width: 100%; height: 44px; border-top: 1px solid rgba(22,22,26,0.06); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sz-mehr-wert:first-child { border-top: 0; }
.sz-mehr-wert.an, .sz-mehr-wert:active { background: var(--ink); color: #fff; }
@media (prefers-reduced-motion: reduce) { .sz-z.pop, .sz-chip .pop, .sz-wert.rein { animation: none; } }
/* Drei Saetze mit zweistelligem Tiebreak (6:4 3:6 12:10): im Handy-Feld etwas kleiner, sonst abgeschnitten (04.12.) */
.rz .mitte.satz.eng { font-size: 12px; gap: 3px; }
.eincourt .rz .mitte.satz.eng { font-size: 14px; gap: 4px; }
/* "Aendern" rechts in der Satzzeile (wie die App: 13 px/700 Ink, unterstrichen, Abstand 3 px) */
.sz-aendern { justify-self: end; padding: 10px 0 10px 12px; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
[dir="rtl"] .sz-aendern { padding: 10px 12px 10px 0; }
/* Laufendes Satz-Match mit Eintrage-Link (Maik 04.12., wie die App): Lime ohne Rand, Saetze schwarz, blasses "+" dahinter */
.rz .mitte.satz.laufend { background: var(--lime); box-shadow: none; }
.rz .mitte.satz.laufend:active { background: #84CC16; }
.d-links .rz .mitte.satz.laufend:hover { background: #84CC16; }
.rz .mitte.satz.laufend .g { color: #16161A; }
.rz .mitte.satz.laufend .v, .rz .mitte.satz.laufend i { color: rgba(22,22,26,0.55); }
.rz .mitte.satz .plus-lauf { color: rgba(22,22,26,0.4); font-weight: 300; font-size: 18px; line-height: 1; position: relative; top: 1px; }
