/* GDK-Kasse – Handy-Ansichten für Mitglieder und Gäste. Farben und Schriften laut Design-Leinwand. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../theke/fonts/barlow-latin-400-normal.81419bf5abb5.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../theke/fonts/barlow-latin-500-normal.8e986e86d57e.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../theke/fonts/barlow-latin-600-normal.a1e2a2d7d4c0.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../theke/fonts/barlow-condensed-latin-600-normal.ba4513495282.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../theke/fonts/barlow-condensed-latin-700-normal.e1180918b873.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --grund: #111009;
  --flaeche: #2A221D;
  --flaeche-dunkel: #1C1714;
  --linie: #3A302A;
  --orange: #E88000;
  --gruen: #5F7318;
  --gruen-hell: #B7D35A;
  --bordeaux: #8A1F2E;
  --warn: #FF8A7A;
  --warn-grund: #3A1A1A;
  --text: #F7F4EC;
  --text-weich: #E9DFD2;
  --leise: #B5AA9C;
  --aus: #8C8276;
  --nach: #FFB864;
  --schmal: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--grund); color: var(--text);
  font-family: "Barlow", system-ui, sans-serif; font-size: 16px; line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--orange); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.seite { max-width: 520px; margin: 0 auto; padding: 20px 16px 96px; display: flex; flex-direction: column; gap: 16px; }
.seite.ohne-nav { padding-bottom: 32px; }
.titel { margin: 0; font-family: var(--schmal); font-weight: 700; font-size: 30px; letter-spacing: 1px; color: var(--orange); line-height: 1.1; }
.untertitel { margin: 0; font-family: var(--schmal); font-weight: 700; font-size: 22px; letter-spacing: 1px; color: var(--orange); }
.leise { color: var(--leise); }
.klein { font-size: 13px; }
.zahl { font-variant-numeric: tabular-nums; }
.plus { color: var(--gruen-hell); }
.negativ { color: var(--warn); }
.zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }

/* Kopf */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kopf-links { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.logo.gross { width: 96px; height: 96px; }
.kopf-name { display: flex; flex-direction: column; min-width: 0; }
.kopf-name b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopf-name span { font-size: 13px; color: var(--leise); }
.kopf-knopf {
  min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--linie); background: transparent;
  display: flex; align-items: center; justify-content: center; color: var(--text); text-decoration: none;
}

.kopf-knoepfe { display: flex; gap: 8px; flex-shrink: 0; }
.kopf-knopf[aria-current="page"] { border-color: var(--orange); color: var(--orange); }
.kopf-knopf.text { padding: 0 14px; font-weight: 600; font-size: 15px; border-color: var(--orange); color: var(--orange); }

/* Karten */
.karte { background: var(--flaeche); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.karte.dunkel { background: var(--flaeche-dunkel); border-radius: 12px; padding: 14px; }
.karte.minus { border: 2px solid var(--bordeaux); }
.stand { font-family: var(--schmal); font-weight: 700; font-size: 52px; line-height: 1; }

/* Knöpfe */
.knopf {
  min-height: 48px; padding: 0 16px; border-radius: 10px; border: 0; text-decoration: none;
  display: flex; align-items: center; justify-content: center; text-align: center; gap: 8px;
  font-family: var(--schmal); font-weight: 700; font-size: 20px; letter-spacing: 1px;
  background: var(--flaeche); color: var(--text);
}
.knopf.orange { background: var(--orange); color: var(--grund); }
.knopf.gruen { background: var(--gruen); }
.knopf.gross { min-height: 56px; font-size: 24px; }
.knopf.rahmen { background: transparent; border: 1px solid var(--linie); font-family: inherit; font-weight: 600; font-size: 15px; letter-spacing: 0; }
.knopf.rahmen-orange { background: transparent; border: 1px solid var(--orange); color: var(--orange); font-family: inherit; font-weight: 600; font-size: 14px; letter-spacing: 0; min-width: 96px; }
.knopf.bordeaux { background: var(--bordeaux); }
.knopf:disabled { opacity: 0.4; cursor: default; }

/* Getränke-Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kachel {
  min-height: 72px; border-radius: 12px; border: 0; background: var(--flaeche); text-align: left; padding: 10px 12px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px; width: 100%;
}
.kachel-name { font-family: var(--schmal); font-weight: 600; font-size: 18px; line-height: 1.1; text-transform: uppercase; }
.kachel-preis { font-size: 15px; font-weight: 600; }
.kachel:disabled { opacity: 0.35; }
.kachel.im-korb { background: var(--gruen); }

/* Alle Getränke: Kachel mit Minus, feste Warenkorb-Leiste statt Menüleiste */
.getraenke { display: flex; flex-direction: column; gap: 16px; padding-bottom: 110px; }
.kachel-box { display: flex; border-radius: 12px; overflow: hidden; background: var(--flaeche); }
.kachel-box.im-korb { background: var(--gruen); }
.kachel-box .kachel { background: transparent; border-radius: 0; min-width: 0; }
.kachel-minus { flex: 0 0 44px; border: 0; background: var(--bordeaux); font-size: 24px; font-weight: 600; }
.korbleiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; margin: 0 auto; max-width: 520px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--flaeche-dunkel); border-top: 2px solid var(--orange);
}
.korb-details { flex: 1 1 150px; min-width: 0; }
.korb-details summary { min-height: 56px; display: flex; flex-direction: column; justify-content: center; gap: 2px; cursor: pointer; list-style: none; font-size: 17px; }
.korb-details summary::-webkit-details-marker { display: none; }
.korb-details summary .klein::after { content: " ▴"; }
.korb-details[open] { flex-basis: 100%; }
.korb-details[open] summary .klein::after { content: " ▾"; }
.korb-details[open] + .knopf { flex: 1 1 100%; }
.korb-inhalt { display: flex; flex-direction: column; gap: 10px; max-height: 50vh; overflow-y: auto; padding: 6px 0 4px; }
.korbleiste > .knopf { flex: 0 0 auto; min-width: 140px; }

/* Bestätigen (Schnellbuchung) */
.bestaetigen:empty { display: none; }
.bestaetigen { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0 12px 12px; }
.blatt {
  max-width: 520px; margin: 0 auto; background: var(--flaeche); border: 2px solid var(--orange); border-radius: 16px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
}
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* Deckel */
.deckel-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.striche { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.strich { width: 4px; height: 20px; border-radius: 2px; background: var(--orange); transform: rotate(12deg); }
.strich:nth-child(5n) { transform: rotate(-60deg); margin-left: -14px; margin-right: 6px; }

/* Meldungen */
.meldung { border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.meldung.fehler { background: var(--warn-grund); color: #FFD6CF; border: 1px solid var(--warn); }
.meldung.erfolg { background: #26301A; color: #E3F0BE; border: 1px solid var(--gruen); }
.meldung.info { background: var(--flaeche-dunkel); color: var(--text-weich); font-weight: 400; }

/* Historie */
.monatsleiste { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pille { padding: 8px 12px; border-radius: 999px; background: var(--flaeche); font-size: 14px; font-weight: 600; }
.tag { background: var(--flaeche); border-radius: 12px; padding: 0 14px; }
.tag summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; min-height: 48px; padding: 12px 0; }
.tag summary::-webkit-details-marker { display: none; }
.tag summary b { font-size: 16px; font-weight: 600; }
.tag summary::after { content: "▾"; color: var(--leise); margin-left: 8px; }
.tag[open] summary::after { content: "▴"; }
.buchung { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--linie); }
.buchung:last-child { padding-bottom: 12px; }
.buchung .betrag { font-weight: 600; white-space: nowrap; }
.storniert, .storniert .betrag { text-decoration: line-through; color: var(--aus); }
.notiz { font-size: 12px; color: var(--leise); text-decoration: none; display: block; }
.notiz.storno { color: #F2B8BE; }
.notiz.nach { color: var(--nach); }

/* Aufladen */
.kopierfeld { display: flex; align-items: center; gap: 10px; background: var(--flaeche-dunkel); border-radius: 12px; padding: 10px 10px 10px 14px; }
.kopierfeld div { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.kopierfeld b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.qr { background: #FFFFFF; border-radius: 12px; padding: 12px; line-height: 0; align-self: center; }
.qr { max-width: 100%; }
.qr svg { display: block; width: 260px; max-width: 100%; height: auto; }

/* Formulare */
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld label { font-size: 14px; color: var(--leise); }
.feld input {
  min-height: 52px; border-radius: 10px; border: 1px solid #5A4C42; background: var(--flaeche-dunkel);
  color: var(--text); padding: 0 14px; font-size: 18px; width: 100%;
}
.feld select, .feld textarea {
  min-height: 52px; border-radius: 10px; border: 1px solid #5A4C42; background: var(--flaeche-dunkel);
  color: var(--text); padding: 0 14px; font: inherit; font-size: 18px; width: 100%;
}
.feld textarea { padding: 12px 14px; min-height: 96px; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.haken { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.haken input { width: 22px; height: 22px; accent-color: #E88000; }

/* Warenkorb auf „Alle Getränke“ */
.korbzeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.menge-knopf { width: 44px; height: 44px; border-radius: 10px; border: 0; background: var(--flaeche-dunkel); font-size: 22px; font-weight: 600; }
.menge-knopf.minus { background: var(--bordeaux); }

/* Untere Navigation */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  border-top: 1px solid var(--linie); background: var(--flaeche-dunkel); padding-bottom: env(safe-area-inset-bottom);
}
.nav a { min-height: 60px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--orange); }
.nav a.wechsel { color: var(--orange); border-left: 1px solid var(--linie); }
.nav:has(a:nth-child(5)) a { font-size: 13px; padding: 0 2px; }

/* Turnierbereich */
.liste { display: flex; flex-direction: column; gap: 8px; }
.listenzeile {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 8px 14px;
  border-radius: 12px; background: var(--flaeche-dunkel); color: var(--text); text-decoration: none;
}
.listenzeile .name { display: flex; flex-direction: column; min-width: 0; }
.punkt-an, .punkt-aus { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.punkt-an { background: #819F08; }
.punkt-aus { background: var(--aus); }
.schluessel { font-family: ui-monospace, Consolas, monospace; font-size: 15px; word-break: break-all; user-select: all; background: var(--flaeche-dunkel); border-radius: 10px; padding: 12px; }
.zahlenraster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.zahlenraster div { background: var(--flaeche-dunkel); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.zahlenraster span { font-size: 12px; color: var(--leise); }
.zahlenraster b { font-family: var(--schmal); font-size: 24px; font-weight: 700; }
@media (max-width: 380px) { .zahlenraster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.umschalter { display: flex; border: 1px solid var(--linie); border-radius: 10px; overflow: hidden; }
.umschalter a { flex: 1 1 0; min-height: 44px; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--leise); font-weight: 600; font-size: 14px; }
.umschalter a[aria-current="true"] { background: var(--orange); color: var(--grund); }
.rangzeile { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px; border-radius: 12px; background: var(--flaeche-dunkel); }
.rangzeile.ich { outline: 2px solid var(--orange); }
.rangzeile .platz { flex: 0 0 24px; text-align: right; font-family: var(--schmal); font-size: 20px; font-weight: 700; color: var(--leise); }
.rangzeile .name { flex: 1 1 0; display: flex; flex-direction: column; min-width: 0; }
.rangzeile .gesamt { font-family: var(--schmal); font-size: 24px; font-weight: 700; }
.rangzeile .top, .rangzeile .gesamt.top { color: var(--orange); font-weight: 700; }

/* Turnier: Begegnungen, Turnierbaum, Spielmodus je Runde */
.begegnung { background: var(--flaeche-dunkel); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 80px; }
.begegnung.ich { outline: 2px solid var(--orange); }
.begegnung .paar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; min-height: 32px; }
.begegnung .paar span { overflow-wrap: anywhere; }
.begegnung .paar span:last-child { text-align: right; }
.begegnung .stand { font-family: var(--schmal); font-size: 22px; text-align: center; min-width: 54px; }
.begegnung .sieger { color: var(--orange); font-weight: 700; }
.begegnung .offen { color: var(--leise); }
.begegnung form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.begegnung input[type="number"], .listenzeile input[type="number"] {
  width: 64px; min-height: 44px; border-radius: 10px; border: 1px solid #5A4C42; background: var(--flaeche);
  color: var(--text); font-size: 18px; text-align: center;
}
.begegnung .reihenfolge { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.begegnung .reihenfolge .paar { flex: 1 1 0; min-width: 0; }
.begegnung .reihenfolge .stand { min-width: 24px; }
.begegnung .reihenfolge .knopf { min-width: 44px; width: 44px; padding: 0; }
.begegnung .nummer { flex: 0 0 22px; }
.teilnehmer summary { list-style: none; cursor: pointer; }
.teilnehmer summary::-webkit-details-marker { display: none; }
.teilnehmer .name { flex: 1 1 0; }
.teilnehmer .kuerzel { flex: 0 0 26px; text-align: center; font-family: var(--schmal); font-weight: 700; color: var(--leise); }
.teilnehmer .symbol { flex: 0 0 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--linie); color: var(--leise); font-weight: 700; }
.teilnehmer .symbol.an { background: var(--gruen); border-color: var(--gruen); color: var(--text); }
.teilnehmer .aktionen { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 4px 4px; }
.auswahlliste { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; }
.auswahlliste [hidden] { display: none; }
.baum { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.baum .spalte { flex: 0 0 260px; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.modus summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.modusfelder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.modusfelder .knopf { grid-column: 1 / -1; }

/* Turnier: Boards (Schritt 4b) */
.boardzeile { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px; border-radius: 12px; background: var(--flaeche-dunkel); }
.boardzeile .nr { flex: 0 0 34px; font-family: var(--schmal); font-size: 26px; font-weight: 700; color: var(--orange); text-align: center; }
.boardzeile .name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.boardzeile .knopf { min-width: 44px; }
.bordinfo .orange, .begegnung .orange { color: var(--orange); }

/* Turnier: Live-Anzeige (Schritt 4c) */
.live-board { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-radius: 12px; background: var(--flaeche-dunkel); border: 2px solid transparent; }
.live-board.laeuft { border-color: var(--orange); }
.live-board .kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.live-board .kopf b { font-family: var(--schmal); font-size: 20px; color: var(--orange); }
.live-board .paarung { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.live-board .paarung .rechts { text-align: right; }
.live-board .spieler { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-board .spieler.wirft::before { content: "● "; color: var(--orange); }
.live-board .stand { font-family: var(--schmal); font-size: 26px; }
.live-board .rest { font-family: var(--schmal); font-size: 22px; }

/* Block 2 (04.10.2026): Schnell buchen mit Zähler, Stern für Favoriten */
.korbleiste.ueber-nav { bottom: calc(61px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; padding-bottom: 10px; }
.seite:has(.schnell.mit-leiste) { padding-bottom: 200px; }
.schnell { display: flex; flex-direction: column; gap: 12px; }
.kachel-box { position: relative; }
.kachel-name.mit-stern { padding-right: 30px; }
.stern {
  position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: transparent;
  color: var(--leise); font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.stern.neben-minus { right: 44px; }
.stern.an { color: var(--orange); }
.kachel-box.im-korb .stern.an { color: #FFD08A; }
/* Einklappbare Karten mit Pfeil (Mein Konto, später Turnierbereich) */
details.klapp { display: block; }  /* details als Flex-Behälter ist in älteren Browsern unzuverlässig */
details.klapp > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px;
}
details.klapp > summary::-webkit-details-marker { display: none; }
details.klapp > summary::after {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(45deg) translateY(-3px);
  transition: transform 0.15s ease;
}
details.klapp[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
details.klapp > .klapp-inhalt { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
/* Spielerbereich (handy.js kartenKlappbar): Überschrift antippen, Pfeil rechts – wie in der Verwaltung */
.karte.klappbar > .klappkopf {
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; user-select: none;
}
.karte.klappbar > .klappkopf::after {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin: 0 6px 0 12px;
  border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(-135deg) translateY(-3px);
  transition: transform 0.15s ease;
}
.karte.klappbar > h2.klappkopf::after { margin-left: auto; }
.karte.klappbar.zu > .klappkopf::after { transform: rotate(45deg) translateY(-3px); }
.karte.klappbar.zu > :not(.klappkopf):not(input[type=hidden]) { display: none !important; }
.karte.klappbar.zu { gap: 0; }
/* Urkunden-Abschreibliste: beim Drucken nur die Karten, hell und ohne Kopf/Menü */
@media print {
  .kopf, .nav, .nicht-drucken, .meldung { display: none !important; }
  body, .seite { background: #fff !important; color: #000 !important; }
  .karte.urkunde { break-inside: avoid; background: #fff !important; border: 1px solid #999; color: #000; }
  .karte.urkunde .zahlenraster > div { background: #fff !important; border: 1px solid #ccc; }
  .karte.urkunde span, .karte.urkunde b, .karte.urkunde .untertitel { color: #000 !important; }
}
/* Menüpunkt „Verwaltung“ mit Auswahl nach oben (Kasse / Spieler & Turniere) */
.nav .dropup { position: relative; display: flex; }
.nav .dropup > summary {
  list-style: none; cursor: pointer; flex: 1; min-height: 60px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.nav .dropup > summary::-webkit-details-marker { display: none; }
.nav .dropup > summary.wechsel { color: var(--orange); border-left: 1px solid var(--linie); }
.nav .dropup > summary[aria-current="page"] { color: var(--orange); }
.nav .dropup > summary::after { content: " ▴"; font-size: 11px; margin-left: 3px; }
.nav .dropup[open] > summary::after { content: " ▾"; }
.dropup-menue {
  position: absolute; bottom: calc(100% + 6px); right: 6px; z-index: 30; min-width: 230px;
  display: flex; flex-direction: column; background: var(--flaeche); border: 2px solid var(--orange); border-radius: 14px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.55); overflow: hidden;
}
.dropup-menue a { min-height: 56px; padding: 8px 16px; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 16px; border-bottom: 1px solid var(--linie); }
.dropup-menue a:last-child { border-bottom: 0; }
.dropup-menue a span { font-size: 12px; font-weight: 400; color: var(--leise); }
/* Turnierbereich – Spiele: ✓ / ✗ / Auge (S6) */
.spielzeile { flex-wrap: wrap; }
.spielzeile.blass > .name, .spielzeile.blass > span:not(.name) { opacity: 0.55; }
.spielknoepfe { display: flex; gap: 8px; flex-basis: 100%; justify-content: flex-end; }
.spielknopf {
  width: 48px; height: 44px; border-radius: 10px; border: 1px solid var(--linie); background: var(--flaeche-dunkel);
  font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.spielknopf.ja { color: #9CC23A; border-color: #5F7318; }
.spielknopf.nein { color: #FF8A7A; border-color: var(--bordeaux); }
.spielknopf.auge { color: var(--leise); filter: grayscale(1); }
.spielknopf.auge.an { background: #3A2A18; border-color: var(--orange); filter: none; }
.bestaetigt { color: #9CC23A; margin-left: 4px; }
.erklaerung { display: block; color: var(--leise); line-height: 1.7; }
.knopf-zeichen { display: inline-block; min-width: 20px; text-align: center; }
.knopf-zeichen.ja { color: #9CC23A; }
.knopf-zeichen.nein { color: #FF8A7A; }
.stapel-stats { display: flex; flex-direction: column; gap: 16px; }

/* Spielerprofil: Anzeigename und Mitgliedsnummer für den Scorer (S4) */
.scorer-karte { border: 2px solid var(--orange); }
.scorer-werte { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.scorer-werte div { display: flex; flex-direction: column; gap: 2px; background: var(--flaeche-dunkel); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.scorer-werte span { font-size: 12px; color: var(--leise); }
.scorer-werte b { font-family: var(--schmal); font-size: 30px; line-height: 1.05; color: var(--orange); overflow-wrap: anywhere; }
/* Mein Konto: Favoriten-Reihenfolge */
.reihenfolge-zeile { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 4px 6px 4px 12px; border-radius: 12px; background: var(--flaeche-dunkel); }
.reihenfolge-zeile .nummer { width: 22px; flex: 0 0 auto; }
.reihenfolge-zeile .name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reihenfolge-zeile .knopf { width: 44px; min-height: 44px; padding: 0; flex: 0 0 auto; }/* Spiel-Detailansicht (Block 8) */
.detailkopf { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-family: var(--schmal); font-size: 22px; text-align: center; }
.detailkopf .stand { color: var(--orange); font-weight: 700; font-size: 26px; }
.tabellenrahmen { overflow-x: auto; }
.detailtabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.detailtabelle th, .detailtabelle td { padding: 7px 6px; border-bottom: 1px solid var(--linie); text-align: center; vertical-align: top; }
.detailtabelle thead th { font-family: var(--schmal); font-weight: 700; color: var(--leise); font-size: 15px; }
.detailtabelle tbody th { text-align: left; font-weight: 500; color: var(--leise); font-size: 14px; white-space: nowrap; }
.detailtabelle td.best { color: var(--orange); font-weight: 700; }
.detailtabelle td.gewonnen b { color: var(--orange); }
.detailtabelle .anwurf { color: var(--leise); font-size: 11px; }
.detailtabelle .break { font-size: 11px; font-weight: 700; color: var(--grund); background: var(--orange); border-radius: 4px; padding: 0 4px; }
.detailtabelle.tafel td { padding: 4px 6px; }
.detailtabelle.tafel td.hoch { font-weight: 700; }
details.scoreboard > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.detaillink { display: inline-block; margin-top: 2px; }
/* K.-o.-Runde als Liste (Standard) oder Baum */
.ko-umschalter { align-self: flex-start; }
.ko-umschalter a { padding: 0 18px; }
.baum .rundenkopf span { display: block; }
.baum.liste { flex-direction: column; overflow: visible; padding-bottom: 0; }
.baum.liste .spalte { flex: none; justify-content: flex-start; gap: 8px; }
.baum.liste .rundenkopf { background: var(--flaeche-dunkel); border-radius: 8px; padding: 8px 12px; margin-top: 6px; }
.baum.liste .rundenkopf span { display: inline; }
.baum.liste .rundenkopf.platz3 { background: var(--bordeaux); }
.baum.liste .rundenkopf.finale { background: var(--gruen); }
.baum.liste .rundenkopf.platz3 span, .baum.liste .rundenkopf.finale span { color: var(--text); opacity: 0.85; }
/* Startseite: Abkürzungen zu Website und Vereinsplaner */
.vereinslinks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vereinslinks .knopf { gap: 10px; }
.vereinslinks svg { width: 24px; height: 24px; flex: 0 0 24px; }
