/* Padel-Turnier - fuers Handy gebaut, hell und dunkel */

:root {
  --bg: #f2f5f9;
  --karte: #ffffff;
  --feld: #ffffff;
  --text: #0f1b2d;
  --leise: #5a6a80;
  --linie: #dde4ee;
  --blau: #0e4d92;
  --blau-hell: #e4eefa;
  --knopf: #0e4d92;
  --kopf-bg: #0e4d92;
  --ball: #d9f24a;
  --ball-text: #23300a;
  --gruen: #1b7f45;
  --gruen-hell: #e1f3e8;
  --rot: #b53328;
  --rot-hell: #fbe7e5;
  --gefahr: #b53328;
  --gelb: #8a5d00;
  --gelb-hell: #fff3d1;
  --fokus: #f2a900;
  --schatten: 0 1px 2px rgba(15, 27, 45, 0.05), 0 6px 18px rgba(15, 27, 45, 0.06);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a111d;
    --karte: #121b2b;
    --feld: #0d1524;
    --text: #e8eef7;
    --leise: #95a4b9;
    --linie: #233149;
    --blau: #7db8f5;
    --blau-hell: #172a48;
    --knopf: #2569b3;
    --kopf-bg: #0d2443;
    --ball: #d9f24a;
    --ball-text: #1d2608;
    --gruen: #5fd38f;
    --gruen-hell: #12301f;
    --rot: #f28b80;
    --rot-hell: #3a1a18;
    --gefahr: #b23a2e;
    --gelb: #f2c14e;
    --gelb-hell: #33280c;
    --schatten: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  font-size: 16px;
}
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; }
a { color: var(--blau); }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.leise { color: var(--leise); }
.klein { font-size: 0.88rem; }
.zahl { font-variant-numeric: tabular-nums; }
.uhr { font-variant-numeric: tabular-nums; }

/* ---------- Kopf, Leiste ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--kopf-bg);
  color: #fff;
}
.kopf-titel { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; min-width: 0; }
.kopf-titel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ball { width: 24px; height: 24px; flex: none; }
.ich-knopf {
  flex: none;
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.ich-knopf.offen { background: var(--ball); color: var(--ball-text); border-color: var(--ball); }
.kopf-rechts { display: flex; align-items: center; gap: 8px; flex: none; }

/* Lautsprecher: durchgestrichen = aus, mit Schallwellen = an */
.ton-knopf {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
.ton-knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ton-knopf .welle { display: none; }
.ton-knopf.an { background: var(--ball); color: var(--ball-text); border-color: var(--ball); }
.ton-knopf.an .welle { display: inline; }
.ton-knopf.an .aus { display: none; }
.ton-knopf.gross { width: 44px; height: 44px; border-radius: 12px; }

.verbindung {
  background: var(--gelb-hell);
  color: var(--gelb);
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.inhalt { max-width: 720px; margin: 0 auto; padding: 16px 16px calc(100px + env(safe-area-inset-bottom)); }

.leiste {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  max-width: 720px;
  margin: 0 auto;
  background: var(--karte);
  border-top: 1px solid var(--linie);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.leiste a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 2px;
  color: var(--leise);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 10px;
}
.leiste svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.leiste a.aktiv { color: var(--blau); }
.leiste a.aktiv svg { stroke-width: 2.4; }
@media (min-width: 721px) {
  .leiste { border: 1px solid var(--linie); border-bottom: 0; border-radius: 16px 16px 0 0; }
}

/* ---------- Bausteine ---------- */

.karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--schatten);
}
.karte > h2:first-child, .karte > h3:first-child { margin-top: 0; }
.karte h2 { font-size: 1.1rem; margin: 0 0 8px; }
.karte p:last-child { margin-bottom: 0; }
.abschnitt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--leise);
  margin: 22px 4px 8px;
  font-weight: 700;
}
.hinweis-karte { background: var(--gelb-hell); border-color: transparent; color: var(--text); }
.hinweis-karte h2 { color: var(--gelb); }
.gefahr-karte { border-color: var(--rot-hell); }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--knopf);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.knopf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.knopf.zweit { background: transparent; color: var(--blau); border: 1.5px solid var(--linie); }
.knopf.zweit.hell { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.knopf.gefahr { background: var(--gefahr); color: #fff; }
.knopf.gefahr-leise { background: transparent; color: var(--rot); border: 1.5px solid var(--rot-hell); }
.knopf.bestaetigen { background: var(--gefahr) !important; color: #fff !important; border-color: var(--gefahr) !important; }
.knopf.klein { min-height: 36px; padding: 6px 12px; font-size: 0.85rem; border-radius: 10px; }
.knopf.breit { width: 100%; }
.knopf:disabled { opacity: 0.5; cursor: default; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.marke {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blau-hell);
  color: var(--blau);
  white-space: nowrap;
}
.marke.live { background: var(--ball); color: var(--ball-text); }
.marke.ball { background: var(--ball); color: var(--ball-text); }

/* ---------- Formulare ---------- */

.feld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.feld label, .feld .label { font-size: 0.85rem; font-weight: 600; color: var(--leise); }
input[type="text"], input[type="number"], input[type="date"], input[type="time"],
input[type="password"], input[type="search"], textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid var(--linie);
  border-radius: 10px;
  background: var(--feld);
}
input:focus, textarea:focus, select:focus { border-color: var(--blau); outline: none; }
textarea { min-height: 200px; resize: vertical; line-height: 1.5; }
.raster-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.zeile-form { display: flex; gap: 8px; }
.zeile-form input { flex: 1; min-width: 0; }
.fehler-text { color: var(--rot); font-weight: 600; margin: 8px 0 0; }
.info-zeile { background: var(--blau-hell); border-radius: 10px; padding: 10px 12px; font-size: 0.92rem; margin: 4px 0 12px; }

/* ---------- Mein Plan ---------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(140deg, #115aa8 0%, #0b3b72 100%);
  color: #fff;
}
/* angedeutete Platzlinien */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.09);
}
.hero::before { right: -40px; top: -30px; width: 170px; height: 250px; border-radius: 8px; transform: rotate(14deg); }
.hero::after { right: -60px; top: 92px; width: 210px; height: 0; border-width: 2px 0 0; transform: rotate(14deg); }
.hero > * { position: relative; z-index: 1; }
.hero-pause { background: linear-gradient(140deg, #34465f 0%, #1f2c40 100%); }
.hero-ende { background: linear-gradient(140deg, #1d6b45 0%, #124a30 100%); }
.hero-oben { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hero-titel { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; opacity: 0.9; }
.hero-uhr { font-variant-numeric: tabular-nums; font-weight: 700; }
.hero-uhr.gross { display: block; font-size: 2.3rem; line-height: 1.1; margin-top: 10px; }
.hero-platz { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 14px; }
.platz-gross { background: var(--ball); color: var(--ball-text); font-weight: 800; font-size: 1.55rem; padding: 3px 14px; border-radius: 10px; }
.hero-runde { opacity: 0.85; }
.hero-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.hero-team small { display: block; font-size: 0.78rem; opacity: 0.75; }
.hero-team strong { display: block; font-size: 1.15rem; line-height: 1.25; overflow-wrap: anywhere; }
.hero-team.rechts { text-align: right; }
.hero-vs { font-size: 0.8rem; font-weight: 800; opacity: 0.6; padding-bottom: 3px; }
.hero-text { margin: 10px 0 0; font-size: 1.02rem; }
.hero-text b { font-weight: 800; }
.hero-knopf {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #0b3b72;
  font-weight: 800;
  cursor: pointer;
}
.hero-knopf.erledigt { background: rgba(255, 255, 255, 0.14); color: #fff; }

.kennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.kennzahl { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 10px 6px; text-align: center; }
.kennzahl strong { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.kennzahl small { color: var(--leise); font-size: 0.78rem; }

.liste { list-style: none; margin: 0; padding: 0; }
.zeile {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 6px;
  border-bottom: 1px solid var(--linie);
}
.zeile:last-child { border-bottom: 0; }
.zeile.vorbei { opacity: 0.62; }
.zeile.jetzt { background: var(--blau-hell); border-radius: 12px; border-bottom-color: transparent; }
.z-zeit strong { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.z-zeit small { color: var(--leise); font-size: 0.75rem; }
.z-mitte { min-width: 0; }
.z-titel { overflow-wrap: anywhere; }
.z-pause { color: var(--leise); font-style: italic; }
.z-gegen { color: var(--leise); font-size: 0.9rem; overflow-wrap: anywhere; }
.platz-chip {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--ball);
  color: var(--ball-text);
  font-size: 0.78rem;
  font-weight: 800;
}
.z-erg, .z-eintragen {
  border-radius: 10px;
  padding: 7px 10px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.z-erg { border: 0; font-variant-numeric: tabular-nums; }
.z-erg.sieg { background: var(--gruen-hell); color: var(--gruen); }
.z-erg.niederlage { background: var(--rot-hell); color: var(--rot); }
.z-erg.remis { background: var(--blau-hell); color: var(--blau); }
.z-eintragen { border: 1.5px solid var(--blau); background: transparent; color: var(--blau); font-size: 0.85rem; }

.offen-liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.offen-liste button { width: 100%; text-align: left; justify-content: space-between; }

/* ---------- Spielplan ---------- */

.werkzeuge { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.runde { scroll-margin-top: 76px; }
.runde.jetzt { border-color: var(--blau); box-shadow: 0 0 0 1.5px var(--blau); }
.runde.vorbei { opacity: 0.72; }
.runde-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.runde-kopf h3 { margin: 0; font-size: 1.05rem; }
.runde-zeit { color: var(--leise); font-variant-numeric: tabular-nums; }
.runde-kopf .marke { margin-left: auto; }
.spiele { list-style: none; margin: 0; padding: 0; }
.spiel {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 6px;
  border-top: 1px solid var(--linie);
}
.spiel:first-child { border-top: 0; }
.spiel.mein { background: var(--blau-hell); border-radius: 10px; border-top-color: transparent; }
.spiel.mein + .spiel { border-top-color: transparent; }
.spiel.klickbar { cursor: pointer; }
.spiel.klickbar:hover .teams { text-decoration: underline; text-decoration-color: var(--linie); }
.platz-nr {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ball);
  color: var(--ball-text);
  font-weight: 800;
  font-size: 0.9rem;
}
.teams { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.team { overflow-wrap: anywhere; }
.team.gewinnt { font-weight: 800; }
.punkte { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.punkte .leer { color: var(--leise); font-weight: 400; }
.pause-zeile { margin: 8px 6px 0; color: var(--leise); font-size: 0.9rem; }
.pause-zeile > span:first-child { font-weight: 700; }
.ich-name { color: var(--blau); font-weight: 800; }
.finale-karte { border-color: var(--ball); box-shadow: 0 0 0 1.5px var(--ball); }

/* ---------- Rangliste ---------- */

.rang { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rang th {
  padding: 6px 4px;
  border-bottom: 1px solid var(--linie);
  color: var(--leise);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: right;
}
.rang td { padding: 9px 4px; border-bottom: 1px solid var(--linie); text-align: right; }
.rang tr:last-child td { border-bottom: 0; }
.rang th:nth-child(2), .rang td:nth-child(2) { text-align: left; }
.rang th:first-child, .rang td:first-child { text-align: center; width: 38px; }
.rang .r-name { overflow-wrap: anywhere; }
.rang .r-name small { color: var(--leise); }
.rang tr.ich td { background: var(--blau-hell); }
.rang tr.ich td:first-child { border-radius: 10px 0 0 10px; }
.rang tr.ich td:last-child { border-radius: 0 10px 10px 0; }
.rang tr.aus { opacity: 0.55; }
.rang .pkt { font-weight: 800; }
.medaille {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
}
.medaille.m1 { background: #f2c94c; color: #3d2f00; }
.medaille.m2 { background: #c9d2dc; color: #26303b; }
.medaille.m3 { background: #e0a46c; color: #3b2208; }
.sieger { display: flex; align-items: center; gap: 12px; }
.sieger svg { width: 36px; height: 36px; flex: none; fill: none; stroke: var(--gelb); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sieger strong { font-size: 1.15rem; }

/* ---------- Regeln ---------- */

.regeln h3 { font-size: 1rem; margin: 18px 0 6px; }
.regeln h3:first-child { margin-top: 0; }
.regeln ul { margin: 0; padding-left: 20px; }
.regeln li { margin-bottom: 4px; }

/* ---------- Orga ---------- */

.spieler-liste { list-style: none; margin: 8px 0 0; padding: 0; }
.spieler-liste li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--linie); }
.spieler-liste li:last-child { border-bottom: 0; }
.sp-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sp-aus .sp-name { text-decoration: line-through; color: var(--leise); }
.fair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0; }
.fair div { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.fair strong { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.fair small { color: var(--leise); font-size: 0.78rem; }
.fair .gut strong { color: var(--gruen); }
.fair .schlecht strong { color: var(--rot); }
details summary { cursor: pointer; font-weight: 600; color: var(--blau); padding: 6px 0; }
.tabelle-klein { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.tabelle-klein th, .tabelle-klein td { padding: 5px 4px; border-bottom: 1px solid var(--linie); text-align: right; }
.tabelle-klein th:first-child, .tabelle-klein td:first-child { text-align: left; }
.link-feld { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.link-feld code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: var(--bg); padding: 10px 12px; border-radius: 10px; font-size: 0.9rem; }

/* ---------- Fenster, Hinweise ---------- */

.modal-hg {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(5, 12, 24, 0.55);
}
.modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: var(--karte);
}
@media (min-width: 600px) {
  .modal-hg { align-items: center; }
  .modal { border-radius: 20px; }
}
.modal-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.modal-kopf h2 { margin: 0; font-size: 1.15rem; }
.schliessen {
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  color: var(--leise);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.namen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin: 12px 0 14px; }
.name-knopf {
  min-height: 48px;
  padding: 10px;
  border: 1.5px solid var(--linie);
  border-radius: 12px;
  background: var(--karte);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.name-knopf:hover { border-color: var(--blau); }
.name-knopf.gewaehlt { border-color: var(--blau); background: var(--blau-hell); color: var(--blau); }

.erg-team { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.erg-namen { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.erg-trenner { border-top: 1px dashed var(--linie); }
.zaehler { display: flex; align-items: center; gap: 6px; flex: none; }
.zaehler button {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--linie);
  border-radius: 12px;
  background: var(--karte);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.zaehler input { width: 64px; padding: 6px 4px; text-align: center; font-size: 1.4rem; font-weight: 800; -moz-appearance: textfield; }
.zaehler input::-webkit-outer-spin-button, .zaehler input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.toast {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 60;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: #0f1b2d;
  color: #fff;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ---------- Grossanzeige (Beamer, Tablet am Platz) ---------- */

.tafel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: max(2vh, 12px) max(3vw, 16px);
  background: #07101f;
  color: #fff;
}
body.tafel-offen { overflow: hidden; }
.tafel-kopf { display: flex; align-items: center; gap: 2vw; flex-wrap: wrap; }
.tafel-titel { font-size: clamp(1.4rem, 4vw, 3.2rem); font-weight: 800; }
.tafel-status { font-size: clamp(0.95rem, 2vw, 1.5rem); opacity: 0.8; }
.tafel-uhr { margin-left: auto; color: #d9f24a; font-size: clamp(2.6rem, 9vw, 7.5rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.tafel-zu {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.tafel-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 1.5vh; font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 700; }
.tafel-pfeil {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.tafel-pfeil:disabled { opacity: 0.3; cursor: default; }
.tafel-live { background: #d9f24a; color: #23300a; }
.tafel-plaetze {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: max(1.5vh, 10px) max(1.5vw, 10px);
  margin-top: 2vh;
  align-content: start;
}
.tafel-platz { padding: 2vh 2vw; border: 2px solid rgba(255, 255, 255, 0.08); border-radius: 18px; background: #0f2747; }
.tafel-platz h4 { margin: 0 0 1vh; color: #d9f24a; font-size: clamp(1rem, 2.2vw, 1.7rem); }
.tafel-team { font-size: clamp(1.25rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.tafel-vs { margin: 0.6vh 0; opacity: 0.55; font-size: clamp(0.8rem, 1.5vw, 1.1rem); font-weight: 700; }
.tafel-erg { float: right; color: #d9f24a; font-variant-numeric: tabular-nums; }
.tafel-unten { margin-top: 2vh; font-size: clamp(0.95rem, 2vw, 1.5rem); opacity: 0.85; }
.tafel-unten p { margin: 0.8vh 0; }

/* ---------- Aushang ---------- */

.aushang-ebene { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; background: #3a4250; }
.aushang-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; background: #1d2430; color: #fff; }
.aushang-leiste span { flex: 1; min-width: 220px; font-size: 0.9rem; }
.aushang-ebene iframe { flex: 1; width: 100%; border: 0; background: #3a4250; }

@media (prefers-reduced-motion: no-preference) {
  .knopf, .name-knopf, .z-eintragen, .z-erg { transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
}
