/* Boardwart Spieler-App (Changelog 1.40). Baut auf style.css auf; turnier.css wird hier nicht geladen,
   daher stehen die wenigen gemeinsamen Teile (.klein, .hinweis, .fehler, .link-knopf) unten noch einmal. */

body.sp { padding-bottom: env(safe-area-inset-bottom); } /* Farbe steht unten im Dunkel-Block (Changelog 2.21: doppelte helle Angabe weg) */
.klein { font-size: var(--fs-xs); }
.hinweis { background: var(--gold-light); color: var(--gold-text); border-radius: 8px; padding: 10px 12px; font-size: var(--fs-xs); font-weight: 600; margin: 10px 0; line-height: 1.45; }
.fehler { color: var(--red); font-size: var(--fs-xs); font-weight: 600; margin-top: 10px; }
.link-knopf { background: none; border: none; color: var(--akzent); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; padding: 4px 0; min-height: 24px; }
.form-field { margin-bottom: 12px; }
.form-field .klein { display: block; margin-top: 4px; }
.form-field input { font-size: var(--fs-m); padding: 10px 12px; } /* iPhone zoomt sonst beim Tippen */

.sp-kopf { background: var(--akzent); color: var(--bw-schrift); padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sp-kopf h1 { font-size: var(--fs-xl); font-weight: 600; }
.sp-kopf-zusatz { font-size: var(--fs-xs); font-weight: 600; background: rgba(255,255,255,.18); border-radius: 999px; padding: 2px 9px; margin-left: 4px; vertical-align: middle; }
.sp-wer { font-size: var(--fs-xs); opacity: .95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }

.sp-main { max-width: 560px; margin: 0 auto; padding: 16px; }
.sp-main .card { padding: 18px 16px; }
/* Changelog 2.21: ohne !important, die staerkere Angabe reicht */
body.sp .btn.sp-breit { width: 100%; padding: 13px 18px; font-size: var(--fs-m); }

.sp-umschalter { display: flex; background: var(--gray); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 14px; }
.sp-umschalter button { flex: 1; background: none; border: none; border-radius: 8px; padding: 10px 6px; font-size: var(--fs-s); font-weight: 600; color: var(--muted); cursor: pointer; min-height: 40px; }
.sp-umschalter button.aktiv { background: var(--bw-rand); color: var(--bw-gold-text); } /* 2.61: gewaehlt = heller als der Rest, mit Goldrand (vorher dunkler) */
.card .sp-umschalter + .muted { margin-bottom: 14px; line-height: 1.45; }

/* Start */
.sp-einchecken { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 96px; margin-bottom: 16px;
  background: var(--gold); color: #12233f; border: none; border-radius: 16px; font-size: var(--fs-xl); font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 16px rgba(224,179,58,.3); }
/* Erste Schritte, solange man noch bei keinem Veranstalter ist (Michel 11.11.2026) */
.sp-schritte { list-style: none; counter-reset: schritt; margin: 4px 0 0; padding: 0; }
.sp-schritte li { counter-increment: schritt; display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: var(--fs-s); line-height: 1.45; }
.sp-schritte li::before { content: counter(schritt); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--akzent-hell); color: var(--gold-text); font-weight: 700; }
.sp-einchecken span { font-size: var(--fs-xxl); }
.sp-einchecken:active { transform: scale(.98); }
.sp-meldung { border-radius: 10px; padding: 12px 14px; margin: -4px 0 16px; font-size: var(--fs-s); line-height: 1.45; background: var(--akzent-hell); color: var(--akzent); }
.sp-meldung.ok { background: var(--green-light); color: var(--green); font-weight: 600; }
.sp-meldung.rot { background: var(--red-light); color: var(--red); font-weight: 600; }
.sp-hinweis-klein { font-size: var(--fs-xs); margin-top: 10px; }
.sp-hinweis-klein.ok { color: var(--green); font-weight: 600; }
.sp-hinweis-klein.rot { color: var(--red); font-weight: 600; }

.sp-vzeile { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none; border-top: 1px solid var(--border);
  padding: 14px 2px; font: inherit; color: var(--text); text-align: left; cursor: pointer; min-height: 52px; }
.sp-vzeile:first-child { border-top: none; }
.sp-vzeile:hover { background: var(--akzent-hell); }
.sp-vname { flex: 1; font-weight: 600; font-size: var(--fs-m); min-width: 0; overflow-wrap: anywhere; }
.sp-pfeil { font-size: var(--fs-xl); color: var(--muted); line-height: 1; }
/* Heimatverein (Changelog 1.77) */
.sp-heimat-mark { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--gold-text, var(--akzent)); margin-top: 2px; }
.sp-vzeile.heimat { background: var(--gold-light, var(--akzent-hell)); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.sp-heimat-knopf { display: inline-block; margin: 0 0 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: none; color: var(--text); font: inherit; font-size: var(--fs-s); font-weight: 600; cursor: pointer; }
.sp-hv-name { margin: 0 0 8px; font-size: var(--fs-l, 1.1rem); }
a.sp-heimat-knopf { text-decoration: none; }
.sp-hv-text { margin: 0; }
.sp-heimat-knopf.aktiv { background: var(--gold-light, var(--akzent-hell)); border-color: var(--gold, var(--akzent)); color: var(--gold-text, var(--akzent)); }

/* Tippziel mindestens 24 px hoch (GP 13.11.c G19): „Mein Konto“, „Datenschutz“ (auch /kalender) waren 21 px */
.sp-konto summary { font-weight: 700; color: var(--akzent); cursor: pointer; font-size: var(--fs-m); padding: 4px 0; }
.sp-konto[open] summary { margin-bottom: 14px; }
.sp-form-klein { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.sp-form-klein:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.sp-konto .btn-row { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.sp-gefahr .muted { margin-bottom: 10px; }

/* Ein Veranstalter */
.sp-zurueck { font-size: var(--fs-m); text-decoration: none; margin-bottom: 4px; }
.sp-titel { font-size: var(--fs-xl); color: var(--akzent); margin: 2px 0 12px; overflow-wrap: anywhere; }
.sp-loesen { text-align: center; margin: 20px 0 8px; }
.sp-kacheln { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.sp-kachel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-kachel.gross { background: var(--akzent); color: var(--bw-schrift); }
.sp-wert { font-size: var(--fs-xl); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sp-kachel.gross .sp-wert { font-size: var(--fs-xxl); }
.sp-wert small { font-size: var(--fs-xs); font-weight: 600; opacity: .75; }
.sp-was { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.sp-kachel.gross .sp-was { color: rgba(255,255,255,.85); }
@media (min-width: 480px) { .sp-kacheln { grid-template-columns: repeat(3, 1fr); } .sp-kachel.gross { grid-column: span 1; } }

.sp-verlauf { width: 100%; height: auto; display: block; color: var(--akzent); margin-bottom: 6px; }
.sp-verlauf circle { fill: var(--gold); stroke: #fff; stroke-width: 1.5; }
.sp-gitter { stroke: var(--border); stroke-width: 1; }
.sp-achse { font-size: 10px; fill: var(--muted); }

.sp-main .card.sp-liste { padding: 4px 16px; }
.sp-tzeile { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.sp-tzeile:first-child { border-top: none; }
.sp-tlinks { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sp-tname { font-weight: 600; font-size: var(--fs-m); overflow-wrap: anywhere; }
.sp-platz { min-width: 46px; text-align: center; font-weight: 700; font-size: var(--fs-l); border-radius: 999px; padding: 6px 8px; background: var(--gray); font-variant-numeric: tabular-nums; }
.sp-platz.p1 { background: var(--gold-light); color: var(--gold-text); }
.sp-platz.p2, .sp-platz.p3 { background: var(--akzent-hell); color: var(--akzent); }
/* Turnier antippen (Changelog 1.89): Zeile als Knopf, Detail mit Kopf, Spielen und Endstand */
.sp-tknopf { width: 100%; background: none; border: none; border-top: 1px solid var(--border); color: inherit; font: inherit; text-align: left; cursor: pointer; min-height: 56px; }
.sp-tknopf:first-child { border-top: none; }
.sp-tknopf:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; border-radius: 6px; }
.sp-pfeil { color: var(--muted); font-size: var(--fs-xl); line-height: 1; }
.sp-tkopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-tkopf h3 { margin: 0 0 4px; }
.sp-platz.gross { font-size: var(--fs-xl); min-width: 64px; padding: 10px 12px; }
.sp-liste-titel { margin: 12px 0 2px; }
.sp-liste-titel + .sp-tzeile { border-top: none; }
.sp-ergebnis { display: flex; flex-direction: column; align-items: flex-end; flex: none; font-variant-numeric: tabular-nums; }
.sp-ergebnis b { font-size: var(--fs-l); }
.sp-ergebnis small { font-size: var(--fs-xs); color: var(--muted); }
.sp-ergebnis.sieg small { color: var(--green); font-weight: 700; }
.sp-ergebnis.niederlage small { color: var(--red); }

.sp-tabelle-rahmen { overflow-x: auto; margin: 0 -4px; }
.sp-tabelle { width: 100%; border-collapse: collapse; font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
.sp-tabelle th { text-align: left; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--border); }
.sp-tabelle td { padding: 8px 4px; border-bottom: 1px solid var(--border); }
.sp-tabelle th:nth-child(n+3), .sp-tabelle td:nth-child(n+3) { text-align: right; }
.sp-tabelle td:nth-child(2) { overflow-wrap: anywhere; }
.sp-tabelle tr.ich td { background: var(--gold-light); color: var(--gold-text); font-weight: 700; }

/* Spieler aus „Wer ist dabei?“ (Changelog 2.76) */
/* GP 16.11.b C-1: quer am Handy war die Karte hoeher als der Schirm (Schliessen abgeschnitten) -> Bild nach Hoehe begrenzen, Karte per margin auto mittig, sonst scrollbar */
.sp-person { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 1000; background: rgba(5, 12, 26, .82); display: flex; padding: 16px; box-sizing: border-box; overflow-y: auto; }
.sp-person[hidden] { display: none; }
.sp-person-karte { margin: auto; background: var(--bw-karte); border: 1px solid var(--bw-rand); border-radius: 16px; padding: 20px; width: 100%; max-width: 360px; text-align: center; box-sizing: border-box; }
.sp-person-bild { display: block; width: min(100%, 280px, 45vh); height: auto; aspect-ratio: 1 / 1; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; background: var(--bw-feld); border: 3px solid var(--bw-gold); }
.sp-person-name { margin: 0 0 6px; font-size: 1.4rem; }
.sp-person-heimat { margin: 0 0 18px; color: var(--bw-leise); }
.sp-person-heimat:empty { display: none; }
.sp-person-karte .btn { min-width: 140px; }

/* Kamera */
/* top/right/bottom/left vor inset: Safari unter 14.5 kennt inset nicht (Gesamtpruefung 01.11. H3-3) */
.sp-scan { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 1000; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sp-scan[hidden] { display: none; }
.sp-scan video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-scan-rahmen { position: relative; width: 70vw; height: 70vw; max-width: 300px; max-height: 300px; width: min(70vw, 300px); height: min(70vw, 300px); border: 4px solid #fff; border-radius: 20px; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); }
.sp-scan-text { position: relative; color: var(--bw-schrift); text-align: center; font-size: var(--fs-m); font-weight: 600; margin: 22px 20px 0; max-width: 420px; line-height: 1.4; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.sp-scan-knoepfe { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 12px; justify-content: center; padding: 20px 16px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
/* Handy quer: Rahmen und Text kleiner und ueber der Knopfleiste (Gesamtpruefung 01.11. H3-5) */
@media (max-height: 500px) {
  .sp-scan { justify-content: flex-start; padding-top: 12px; box-sizing: border-box; }
  .sp-scan-rahmen { width: 38vh; height: 38vh; }
  .sp-scan-text { font-size: var(--fs-s); margin-top: 10px; }
  .sp-scan-knoepfe { padding-top: 10px; padding-bottom: 10px; }
}
.sp-scan-knoepfe .btn { font-size: var(--fs-m); padding: 12px 20px; min-height: 48px; }
.sp-scan-knoepfe label.btn.secondary { background: #fff; color: var(--text); display: inline-flex; align-items: center; }

/* Flex-gap-Ersatz fuer Safari/iOS unter 14.1 (wie turnier.css, Gesamtpruefung 01.11. H3-6) */
@supports not (inset: 0) {
  .sp-kopf > * + *, .sp-vzeile > * + * { margin-left: 10px; }
  .sp-umschalter > * + * { margin-left: 3px; }
  .sp-einchecken > * + *, .sp-tzeile > * + *, .sp-scan-knoepfe > * + * { margin-left: 12px; }
  .sp-kachel > * + * { margin-top: 2px; }
  .sp-tlinks > * + * { margin-top: 3px; }
}
/* ================= Farben wie Boardwart und der Zaehler (Changelog 1.72, Michel 11.11.2026) =================
   Die Werte stehen einmal in style.css (--bw-*), turnier.css nimmt dieselben. */
/* Farb-Variablen, Grund und Schrift: style.css :root (seit 2.21, vorher hier als eigener Block) */
body.sp .sp-kopf { background: var(--bw-kopf); box-shadow: 0 1px 0 rgba(255, 255, 255, .12); }
body.sp .card, body.sp .sp-kachel { border: 1px solid rgba(255, 255, 255, .14); }
body.sp .card h2, body.sp .card h3 { color: var(--bw-schrift); }
body.sp a { color: var(--bw-gold-text); }
/* Grosse Kachel (Average) in Gold wie die Knoepfe */
body.sp .sp-kachel.gross { background: var(--bw-gold); color: var(--bw-grund); border-color: var(--bw-gold); }
body.sp .sp-kachel.gross .sp-was { color: rgba(18, 35, 63, .8); }
/* Knoepfe wie im Zaehler */
body.sp button.btn, body.sp a.btn, body.sp label.btn { background: var(--bw-gold); color: var(--bw-grund); border: 0; font-weight: 700; }
body.sp button.btn.secondary, body.sp a.btn.secondary, body.sp label.btn.secondary { background: rgba(255, 255, 255, .1); color: var(--bw-schrift); border: 1px solid rgba(255, 255, 255, .3); }
body.sp button.btn.success { background: #267a43; color: var(--bw-schrift); }
body.sp button.btn.danger { background: #c0392b; color: var(--bw-schrift); }
body.sp .sp-scan-knoepfe label.btn.secondary { background: #fff; color: var(--bw-grund); }
body.sp .sp-umschalter button.aktiv { box-shadow: inset 0 0 0 1.5px var(--bw-gold); }
/* Eingabefelder dunkel */
body.sp input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
body.sp select, body.sp textarea { background-color: var(--bw-grund); color: var(--bw-schrift); border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; }
body.sp input::placeholder, body.sp textarea::placeholder { color: var(--bw-platzhalter); opacity: 1; }
body.sp input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0 6px 0 0;
  border: 2px solid rgba(255, 255, 255, .45); border-radius: 6px; background: #12233f; cursor: pointer;
  display: inline-grid; place-content: center; vertical-align: middle;
}
body.sp input[type="checkbox"]::after { content: ""; width: 10px; height: 6px; border: solid var(--bw-grund); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
body.sp input[type="checkbox"]:checked { background: var(--bw-gold); border-color: var(--bw-gold); }
body.sp input[type="checkbox"]:checked::after { opacity: 1; }
/* Vereinslogo vor dem Namen (Changelog 1.74) */
body.sp .sp-vlogo { width: 36px; height: 36px; object-fit: contain; flex: none; }
/* Mein Bild (Changelog 1.92) */
body.sp .sp-bild-reihe { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
body.sp .sp-bild-rund { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08); font-size: 40px; }
body.sp .sp-bild-rund img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 2.61: ohne Bild der Anfangsbuchstabe in Gold (wie der Kopf), statt lila 👤 */
body.sp .sp-bild-rund:has(.sp-bild-buchstabe) { background: var(--bw-gold); }
body.sp .sp-bild-buchstabe { font-size: 40px; font-weight: 700; color: var(--bw-grund); line-height: 1; }
/* Zustimmung zum Bild (Changelog 2.07) */
body.sp .sp-zustimmung { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 6px; font-size: var(--fs-s); line-height: 1.45; cursor: pointer; }
body.sp .sp-zustimmung input { flex: none; margin-top: 2px; }
body.sp #mb-alt { margin: 6px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.sp #mb-alt[hidden] { display: none; }
body.sp .sp-bild-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
/* Gruen und Rot als Schrift heller */
body.sp .sp-meldung.ok, body.sp .sp-hinweis-klein.ok, body.sp .badge.ok { color: var(--bw-gruen-schrift); }
body.sp .sp-meldung.rot, body.sp .sp-hinweis-klein.rot, body.sp .fehler, body.sp .form-error, body.sp .badge.rot { color: #ff9a8c !important; }

/* Sponsoren des Vereins (Changelog 1.82) */
.sp-sponsor { margin: 22px auto 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sp-sponsor-bild { max-height: 80px; max-width: min(300px, 86vw); object-fit: contain; background: #fff; border-radius: 8px; padding: 6px 10px; display: block; }
/* Ergebnis im Turnier-Detail auf Dunkelblau lesbar (wie .badge.ok/.rot oben) */
body.sp .sp-ergebnis.sieg small { color: var(--bw-gruen-schrift); }
body.sp .sp-ergebnis.niederlage small { color: #ff9a8c; }

/* Doppel heute (Changelog 1.91) */
.sp-doppel h3 { margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; }
.sp-dp-anfrage { border: 1px solid var(--bw-gold, #c9a227); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.sp-dp-anfrage p { margin: 0 0 8px; }
.sp-dp-neu { font-size: var(--fs-l); text-decoration: none; min-width: 32px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; } /* Tippfläche (GP 17.11.c D-2) */

/* ================= Spieler-App neu geordnet (Changelog 2.21) =================
   Reiterleiste unten (Start · Kalender · Vereine · Profil), Startseite mit „Heute“, Zahlen und Anmeldungen,
   Einstellungen unter „Profil“, Trennen dezent in Rot. */
.sp-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; display: flex; justify-content: center;
  background: var(--bw-kopf); border-top: 1px solid rgba(255, 255, 255, .14); padding-bottom: env(safe-area-inset-bottom); }
.sp-tabbar[hidden] { display: none; }
.sp-tabbar button { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: none;
  color: var(--bw-leise); font: inherit; font-size: var(--fs-xs); font-weight: 600; padding: 8px 4px 9px; min-height: 56px; cursor: pointer; position: relative; }
/* Strich-Symbole statt Emoji (Changelog 2.61): eine Farbe, aktiv gold */
.sp-tabbar .sp-tb-ico { width: 24px; height: 24px; margin-bottom: 2px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.sp-tabbar button.aktiv { color: var(--bw-gold-text); }
.sp-tabbar button.aktiv .sp-tb-ico { opacity: 1; stroke-width: 2.2; }
.sp-tabbar button.aktiv::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--bw-gold); }
.sp-tabbar button:focus-visible { outline: 2px solid var(--bw-gold-text); outline-offset: -4px; border-radius: 8px; }
body.mit-tabbar .sp-main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

/* Kopf rechts: Bild + Benutzername, fuehrt zum Profil */
.sp-kopf button.sp-wer { display: inline-flex; align-items: center; gap: 8px; max-width: 55%; background: none; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px; padding: 3px 12px 3px 3px; color: var(--bw-schrift); font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; opacity: 1; }
.sp-kopf button.sp-wer[hidden] { display: none; }
.sp-wer-bild { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bw-gold); color: var(--bw-kopf); font-weight: 700; font-size: var(--fs-s); }
/* Badge am Bild (13.11.2026): rechts unten am Kreis */
.sp-ava { position: relative; display: inline-flex; flex: none; }
.sp-ava .sp-abz-ecke { position: absolute; right: -6px; bottom: -5px; line-height: 0; }
body.sp .sp-bild-box { position: relative; flex: none; }
body.sp #mb-abz-ecke .sp-abz-ecke { position: absolute; right: -6px; bottom: -4px; line-height: 0; }
body.sp .sp-mb-abz { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sp-wer-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Start: Karten als Knoepfe */
button.card { display: flex; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.card:focus-visible, a.card:focus-visible { outline: 3px solid var(--bw-gold-text); outline-offset: 2px; }
.sp-heute { align-items: center; gap: 12px; }
.sp-heute > span:nth-child(2) { flex: 1; min-width: 0; }
.sp-heute-punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--bw-gruen-schrift); flex: none; box-shadow: 0 0 0 4px var(--bw-gruen-hell); }
.sp-wartet { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: var(--bw-gold-hell); color: var(--bw-gold-text); font-size: var(--fs-s); line-height: 1.45; }
.sp-wartet p { margin: 4px 0; }
.sp-startzahlen { flex-direction: column; gap: 12px; }
.sp-startzahlen-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sp-startzahlen-kopf strong { font-size: var(--fs-l); }
.sp-mini-reihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sp-mini { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 10px; background: var(--bw-feld); min-width: 0; }
.sp-mini:first-child { background: var(--bw-gold); color: var(--bw-grund); }
.sp-mini.leer:first-child { background: var(--bw-feld); color: inherit; } /* 2.61: ohne Wert nicht gold leuchten */
.sp-mini b { font-size: var(--fs-xl); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-mini small { font-size: var(--fs-xs); font-weight: 600; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-app-banner { position: relative; }
.sp-app-banner h2 { padding-right: 32px; }
.sp-banner-zu { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .08);
  color: var(--bw-leise); font-size: var(--fs-s); cursor: pointer; }

/* Vereine */
.sp-main .card.sp-liste-karte { padding: 4px 12px; }
.sp-vlogo-leer { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bw-feld); color: var(--bw-leise); font-weight: 700; }
.sp-vzeile.heimat { background: none; border-radius: 0; padding-left: 2px; padding-right: 2px; }

/* Trennen: unten, dezent rot */
.sp-loesen { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 28px 0 8px; }
body.sp .link-knopf.sp-gefahr-link { color: #ff9a8c; font-weight: 600; font-size: var(--fs-s); text-decoration: none; opacity: .9; }
body.sp .link-knopf.sp-gefahr-link:hover { text-decoration: underline; opacity: 1; }
body.sp .link-knopf.sp-gefahr-link[hidden] { display: none; }

/* Ich: drei Kernzahlen, Rest als Liste */
.sp-kacheln.sp-kern { grid-template-columns: repeat(3, 1fr); }
.sp-kern .sp-kachel { padding: 12px 10px; }
.sp-kern .sp-wert { font-size: var(--fs-xl); }
.sp-kern .sp-kachel.gross .sp-wert { font-size: var(--fs-xl); }
.sp-zahlen { margin: 0; display: grid; grid-template-columns: 1fr; }
.sp-zz { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); }
.sp-zz:first-child { border-top: none; }
.sp-zz dt { font-size: var(--fs-s); font-weight: 600; }
.sp-zz dt .muted { font-weight: 400; font-size: var(--fs-xs); }
.sp-zz dd { margin: 0; font-size: var(--fs-m); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-zz dd small { font-size: var(--fs-xs); font-weight: 600; opacity: .75; }
@media (min-width: 480px) { .sp-zahlen { grid-template-columns: 1fr 1fr; column-gap: 24px; } .sp-zz:nth-child(2) { border-top: none; } }
.sp-leer-ich { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 18px; }
.sp-leer-bild { font-size: 40px; }

/* Profil */
.sp-profilname { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.sp-profilname strong { font-size: var(--fs-l); overflow-wrap: anywhere; }
.sp-profilname .sp-bild-knoepfe { margin-top: 6px; }
body.sp .sp-zustimmung[hidden] { display: none; }
.sp-mehr-info { margin-top: 8px; }
.sp-mehr-info summary { cursor: pointer; font-size: var(--fs-s); font-weight: 600; color: var(--bw-gold-text); padding: 4px 0; } /* 19 px -> 27 px (G19) */
.sp-mehr-info p { margin-top: 8px; }
#v-profil > .sp-breit { margin-top: 4px; }
/* Kopf bleibt einzeilig: schmal nur das Bild */
.sp-kopf { flex-wrap: nowrap; }
.sp-kopf h1 { white-space: nowrap; min-width: 0; display: flex; align-items: center; }
.sp-kopf h1 .kopf-icon { width: 28px; height: 28px; }
@media (max-width: 420px) { .sp-wer-name { display: none; } .sp-kopf button.sp-wer { padding: 3px; } }

/* Online-Spiel 1 gegen 1 (Changelog 2.85, spieler-online.js) */
.on-code { font-size: 44px; font-weight: 800; letter-spacing: .12em; text-align: center; color: var(--bw-gold-text); margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.on-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 12px 0 6px; }
.on-warte-zeile { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0 0; color: var(--muted); }
.on-punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--bw-gold); animation: on-puls 1.2s ease-in-out infinite; }
@keyframes on-puls { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .on-punkt { animation: none; } }
.on-beitreten { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.on-beitreten .form-field { flex: 1 1 180px; margin: 0; }
#on-code { text-transform: uppercase; letter-spacing: .12em; font-size: 20px; font-weight: 700; }
.on-neu > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 4px; min-height: 44px; margin: -8px 0; }
.on-neu > summary::-webkit-details-marker { display: none; }
.on-neu > summary h3 { display: inline; margin: 0; }
.on-neu > summary::after { content: " ›"; color: var(--muted); }
.on-neu[open] > summary { margin-bottom: 12px; }
.form-field[hidden] { display: none; }
.on-zeile { flex-wrap: wrap; }
.on-zeile-knoepfe { display: flex; align-items: center; gap: 12px; width: 100%; justify-content: flex-end; margin-top: 6px; }
.sp-filter { margin-bottom: 12px; }
#on-code::placeholder { text-transform: none; letter-spacing: normal; font-weight: 400; font-size: 16px; }
