/* ============================================================
   Tennisrunde – Gestaltung
   Farbwelt: Hallenboden-Grün, Linienweiß, ein Ball-Gelb als Signal.
   ============================================================ */

:root {
  --court:      #12332A;
  --court-hell: #1E5343;
  --ball:       #DCE85C;
  --paper:      #F0F2EC;
  --karte:      #FFFFFF;
  --tinte:      #12211B;
  --leise:      #6C7C73;
  --linie:      #DDE3DA;
  --offen:      #9A6B12;
  --offen-bg:   #FBF0D2;

  --anzeige: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --text:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 10px;
  --schatten: 0 1px 2px rgba(18, 51, 42, .06), 0 8px 24px rgba(18, 51, 42, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--tinte);
  font: 400 16px/1.55 var(--text);
}

.wrap {
  width: min(100% - 2rem, 60rem);
  margin-inline: auto;
}

a { color: var(--court-hell); }

:where(a, button, input, select):focus-visible {
  outline: 3px solid var(--court-hell);
  outline-offset: 2px;
}

/* ---------- Kopf ---------- */

.kopf {
  background: var(--court);
  color: #fff;
  padding: 1.75rem 0 1.5rem;
}

.kopf-eyebrow {
  margin: 0;
  font-family: var(--anzeige);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ball);
}

.kopf-titel {
  margin: .1rem 0 .35rem;
  font-family: var(--anzeige);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
}

.kopf-stand,
.kopf-links {
  margin: 0;
  font-size: .875rem;
  color: rgba(255, 255, 255, .72);
}

.kopf-links a { color: #fff; }

/* ---------- Namensfilter ---------- */

.filter { margin: 1.5rem 0 1.25rem; }

.filter-frage {
  margin: 0 0 .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--leise);
}

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.chip {
  border: 1px solid var(--linie);
  background: var(--karte);
  color: var(--tinte);
  border-radius: 999px;
  padding: .35rem .85rem;
  font: 500 .9rem var(--text);
  cursor: pointer;
}

.chip:hover { border-color: var(--court-hell); }

.chip-aktiv {
  background: var(--court);
  border-color: var(--court);
  color: #fff;
}

.chip-aus { color: var(--leise); }

/* ---------- Nächster Spieltag: der Platz ---------- */

.platz {
  background: var(--court);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: #fff;
  box-shadow: var(--schatten);
}

.platz-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem .9rem;
  margin-bottom: 1rem;
}

.platz-wann {
  font-family: var(--anzeige);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ball);
  line-height: 1;
}

.platz-datum {
  font-family: var(--anzeige);
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
}

.platz-ort {
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}

/* Das Spielfeld: zwei Hälften, dazwischen das Netz. */
.court {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: .75rem;
  background: var(--court-hell);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  padding: .85rem;
}

.haelfte {
  display: grid;
  gap: .5rem;
  align-content: center;
}

.netz {
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .85) 0 6px,
    transparent 6px 11px
  );
}

.name {
  background: rgba(255, 255, 255, .95);
  color: var(--court);
  border-radius: 5px;
  padding: .55rem .6rem;
  text-align: center;
  font-family: var(--anzeige);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
}

.name-frei {
  background: transparent;
  border: 1px dashed var(--ball);
  color: var(--ball);
  font-weight: 500;
}

.name.ist-ich {
  background: var(--ball);
  color: var(--court);
  box-shadow: 0 0 0 3px rgba(220, 232, 92, .35);
}

.platz-notiz {
  margin: .9rem 0 0;
  font-size: .9rem;
  color: rgba(255, 255, 255, .8);
}

.platz-hinweis {
  margin: .9rem 0 0;
  font-family: var(--anzeige);
  font-size: 1.15rem;
  font-weight: 600;
}

.platz-hinweis.ist-dabei { color: var(--ball); }
.platz-hinweis.ist-frei  { color: rgba(255, 255, 255, .65); }

.platz-leer { background: var(--karte); color: var(--leise); }
.platz-leer p { margin: 0; }

/* ---------- Band für offene Plätze ---------- */

.offen-band {
  margin: .85rem 0 0;
  background: var(--offen-bg);
  color: var(--offen);
  border-radius: var(--radius);
  padding: .7rem .95rem;
  font-size: .9rem;
  font-weight: 500;
}

/* ---------- Abschnittstitel ---------- */

.abschnitt {
  margin: 2.25rem 0 .85rem;
  font-family: var(--anzeige);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--leise);
  border-bottom: 1px solid var(--linie);
  padding-bottom: .4rem;
}

/* ---------- Spieltagsliste ---------- */

.zeilen { display: grid; gap: .4rem; }

.zeile {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: .7rem .85rem;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: .35rem .9rem;
  align-items: center;
  transition: opacity .15s ease;
}

.zeile-datum {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  font-family: var(--anzeige);
}

.zeile-nr {
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  background: var(--court-hell);
  border-radius: 4px;
  padding: .05rem .35rem;
  min-width: 1.5rem;
  text-align: center;
}

.zeile-tag { font-size: 1.15rem; font-weight: 600; }

.zeile-jahr { font-size: .8rem; color: var(--leise); }

.zeile-namen { display: flex; flex-wrap: wrap; gap: .35rem; }

.pill {
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: .18rem .6rem;
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
}

.pill-frei {
  border-style: dashed;
  border-color: var(--offen);
  background: var(--offen-bg);
  color: var(--offen);
}

.pill.ist-ich {
  background: var(--court);
  border-color: var(--court);
  color: #fff;
}

.zeile-notiz {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .85rem;
  color: var(--leise);
}

.zeile-naechste { border-color: var(--court); border-width: 2px; }
.zeile-vorbei   { opacity: .45; }
.zeile-abgesagt { background: #FAF7F5; }
.zeile-abgesagt .zeile-tag { text-decoration: line-through; }
.zeile-mein     { border-color: var(--court-hell); }

.keine-treffer { color: var(--leise); font-size: .9rem; }

/* ---------- Einsätze ---------- */

.balken { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }

.balken-zeile {
  display: grid;
  grid-template-columns: 5.5rem 1fr 2rem;
  align-items: center;
  gap: .6rem;
}

.balken-name { font-size: .9rem; font-weight: 500; }

.balken-spur {
  background: var(--linie);
  border-radius: 999px;
  height: .55rem;
  overflow: hidden;
}

.balken-fuell {
  display: block;
  height: 100%;
  background: var(--court-hell);
  border-radius: 999px;
}

.balken-zahl {
  font-family: var(--anzeige);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: right;
}

.balken-zeile.ist-ich .balken-fuell { background: var(--ball); }
.balken-zeile.ist-ich .balken-name  { font-weight: 700; }

/* ---------- Fuß ---------- */

.fuss {
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--linie);
  color: var(--leise);
  font-size: .875rem;
}

.fuss p { margin: .2rem 0; }

/* ---------- Formularteile (Verwaltung, Einrichtung) ---------- */

.feld {
  font: 400 .95rem var(--text);
  padding: .45rem .6rem;
  border: 1px solid var(--linie);
  border-radius: 7px;
  background: #fff;
  color: var(--tinte);
  width: 100%;
  min-width: 0;
}

.knopf {
  font: 600 .95rem var(--text);
  background: var(--court);
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: .55rem 1.1rem;
  cursor: pointer;
}

.knopf:hover { background: var(--court-hell); }
.knopf[disabled] { background: var(--leise); cursor: not-allowed; }
.knopf-voll { width: 100%; margin-top: .5rem; }

.knopf-klein {
  font: 500 .8rem var(--text);
  background: transparent;
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: .2rem .65rem;
  cursor: pointer;
  color: var(--leise);
}

.knopf-klein:hover { border-color: var(--court-hell); color: var(--court-hell); }

.hinweis {
  border-radius: var(--radius);
  padding: .7rem .95rem;
  font-size: .92rem;
  margin: .8rem 0;
}

.ok     { background: #E4EFE6; color: #14492C; }
.fehler { background: #FBE7E3; color: #8C2A18; }

.code {
  background: var(--court);
  color: var(--ball);
  padding: .8rem;
  border-radius: 7px;
  overflow-x: auto;
  font-size: .82rem;
}

/* ---------- Verwaltung ---------- */

.admin-tipp {
  background: var(--karte);
  border-left: 3px solid var(--ball);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .7rem .95rem;
  font-size: .9rem;
  color: var(--leise);
  margin: 1.25rem 0;
}

.tabelle { display: grid; gap: .35rem; }

.tabelle-kopf {
  display: none;
  font-family: var(--anzeige);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--leise);
  padding: 0 .6rem;
}

.tabelle-zeile {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: .6rem;
  display: grid;
  gap: .4rem;
}

.tabelle-zeile.ist-vorbei { opacity: .55; }

.feld-gruppe { display: flex; align-items: center; gap: .4rem; min-width: 0; }

.nur-schmal {
  font-size: .75rem;
  color: var(--leise);
  min-width: 3.6rem;
}

.mini-nr {
  font-family: var(--anzeige);
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  background: var(--court-hell);
  border-radius: 4px;
  padding: .1rem .35rem;
  min-width: 1.6rem;
  text-align: center;
}

.feld-notiz { display: grid; grid-template-columns: 1fr; gap: .35rem; }

.speicherleiste {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--paper) 65%, transparent);
  padding: .9rem 0;
  margin-top: .5rem;
}

.admin-block { margin-top: 1.5rem; }

.admin-spalten { display: grid; gap: 1.5rem; }

.reihe { display: flex; gap: .5rem; align-items: center; margin-top: .6rem; }

.zaehler {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.zaehler li {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: .25rem .7rem;
  font-size: .88rem;
  display: flex;
  gap: .4rem;
}

.zaehler strong { font-family: var(--anzeige); font-size: 1.05rem; }

.spieler-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }

.spieler-liste li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  font-size: .92rem;
  padding: .25rem 0;
  border-bottom: 1px solid var(--linie);
}

.spieler-liste .ist-pausiert { color: var(--leise); }

/* ---------- Login ---------- */

.login-seite {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: var(--court);
}

.login-box {
  background: var(--karte);
  border-radius: var(--radius);
  padding: 1.75rem;
  width: min(100% - 2rem, 22rem);
  box-shadow: var(--schatten);
}

.login-titel {
  margin: 0;
  font-family: var(--anzeige);
  font-size: 1.8rem;
  font-weight: 700;
}

.login-text { margin: .1rem 0 1rem; color: var(--leise); font-size: .9rem; }

.login-zurueck { margin: 1rem 0 0; font-size: .85rem; text-align: center; }

/* ---------- Einrichtung ---------- */

.setup { padding: 2rem 0 4rem; }

.setup-titel {
  font-family: var(--anzeige);
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
}

.setup-intro { color: var(--leise); margin: .2rem 0 1.5rem; }

.setup-block {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.setup-block h2 {
  font-family: var(--anzeige);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 .5rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}

.setup-block form { display: flex; gap: .5rem; flex-wrap: wrap; }
.setup-block .feld { width: auto; flex: 1 1 12rem; }

.schritt {
  background: var(--court);
  color: var(--ball);
  border-radius: 50%;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  font-size: .95rem;
}

.setup-fuss { color: var(--leise); font-size: .9rem; }

/* ---------- Breitere Bildschirme ---------- */

@media (min-width: 46rem) {
  .zeile { grid-template-columns: 8rem 1fr; }

  .tabelle-kopf {
    display: grid;
    grid-template-columns: 9.5rem repeat(4, 1fr) 15rem;
    gap: .5rem;
  }

  .tabelle-zeile {
    grid-template-columns: 9.5rem repeat(4, 1fr) 15rem;
    align-items: center;
    gap: .5rem;
  }

  .nur-schmal { display: none; }

  .feld-notiz { grid-template-columns: 8rem 1fr; }

  .admin-spalten { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.knopf-zweit {
  background: transparent;
  color: var(--court);
  border: 1px solid var(--linie);
}

.knopf-zweit:hover { background: var(--karte); border-color: var(--court-hell); }

/* ---------- Verhindert-Meldung (Spielplanseite) ---------- */

.filter-hilfe {
  margin: .35rem 0 .6rem;
  font-size: .85rem;
  color: var(--leise);
}

.verhindert-knopf {
  grid-column: 1 / -1;
  justify-self: stretch;
  border: 1.5px solid #C3CBC1;
  background: #E4E8E1;
  color: #3D4B44;
  border-radius: 7px;
  padding: .5rem .9rem;
  font: 700 .82rem var(--text);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}

.verhindert-knopf:hover {
  background: #D8DED5;
  border-color: var(--leise);
  color: var(--tinte);
}

.verhindert-knopf.ist-verhindert {
  background: #C2412D;
  border-color: #A5331F;
  color: #fff;
}

.verhindert-knopf.ist-verhindert:hover { background: #A5331F; }

.verhindert-knopf.laedt { opacity: .5; cursor: wait; }

.zeile-absagen {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .8rem;
  color: var(--leise);
}

.zeile-verhindert {
  background: #FAF3F1;
  border-color: #E6C7BF;
}

.zeile-verhindert .zeile-namen,
.zeile-verhindert .zeile-datum { opacity: .5; }

.zeile-verhindert .zeile-tag { text-decoration: line-through; }

/* ---------- Verwaltung: Verhinderungen und Neuberechnung ---------- */

.zeile-verhinderte {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
}

.verhindert-label { color: var(--leise); }

.verhindert-pill {
  background: #FBE7E3;
  color: #8C2A18;
  border-radius: 999px;
  padding: .1rem .55rem;
}

.berechnen-block {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.2rem;
}

.berechnen-block .abschnitt { margin-top: 0; }

.berechnen-text { font-size: .9rem; color: var(--leise); margin: 0 0 .8rem; }

.berechnen-stand { font-size: .8rem; color: var(--leise); margin: .6rem 0 0; }

.berechnen-block .reihe { flex-wrap: wrap; }
.berechnen-block .feld { width: auto; flex: 1 1 18rem; }

/* ---------- Wer bin ich ---------- */

.ich {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: .95rem 1.1rem;
  margin: 1.25rem 0 .75rem;
}

.ich-titel {
  margin: 0 0 .25rem;
  font-family: var(--anzeige);
  font-size: 1.25rem;
  font-weight: 600;
}

.ich-text { margin: 0; font-size: .875rem; color: var(--leise); }

.ich-aktionen { margin: .6rem 0 0; }

.ich-neu { margin-top: .7rem; }

.ich-neu summary {
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  color: var(--court-hell);
}

.ich-neu .reihe { margin: .6rem 0; }

.textknopf {
  background: none;
  border: 0;
  padding: 0;
  font: 500 .82rem var(--text);
  color: var(--leise);
  text-decoration: underline;
  cursor: pointer;
}

.textknopf:hover { color: #8C2A18; }

/* ---------- Phasenhinweis ---------- */

.phase {
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  margin-bottom: 1rem;
}

.phase-offen { background: #F4F7D8; border-left: 4px solid var(--ball); }
.phase-fix   { background: #E7EEE9; border-left: 4px solid var(--court-hell); }

.phase-titel {
  margin: 0 0 .2rem;
  font-family: var(--anzeige);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.phase-text { margin: 0; font-size: .875rem; line-height: 1.5; }

/* ---------- Persönlicher Link ---------- */

.link-box {
  position: fixed;
  inset: 0;
  background: rgba(18, 51, 42, .6);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 10;
}

.link-box[hidden] { display: none; }

.link-inhalt {
  background: var(--karte);
  border-radius: var(--radius);
  padding: 1.3rem;
  width: min(100%, 26rem);
  box-shadow: var(--schatten);
}

.link-titel {
  margin: 0 0 .3rem;
  font-family: var(--anzeige);
  font-size: 1.35rem;
  font-weight: 700;
}

.link-text { margin: 0 0 .8rem; font-size: .875rem; color: var(--leise); }

.link-feld { font-size: .8rem; font-family: 'DejaVu Sans Mono', monospace; }

.link-inhalt .reihe { margin-top: .8rem; }

/* ---------- Verwaltung: persönliche Links ---------- */

.linkliste { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }

.linkliste li {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--linie);
}

.linkliste .link-wert {
  font-family: 'DejaVu Sans Mono', monospace;
  font-size: .72rem;
  color: var(--leise);
  overflow-wrap: anywhere;
}

.sammeltext {
  width: 100%;
  min-height: 9rem;
  font-family: 'DejaVu Sans Mono', monospace;
  font-size: .75rem;
  line-height: 1.5;
  padding: .7rem;
  border: 1px solid var(--linie);
  border-radius: 7px;
  background: #fff;
  color: var(--tinte);
}

/* ---------- Namensauswahl beim ersten Besuch ---------- */

.wahl {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .8rem 0 .2rem;
}

.wahl-knopf {
  border: 1.5px solid var(--court-hell);
  background: var(--karte);
  color: var(--court);
  border-radius: 999px;
  padding: .45rem 1rem;
  font: 600 .95rem var(--text);
  cursor: pointer;
}

.wahl-knopf:hover { background: var(--court); color: #fff; }

.wahl-knopf.ist-vergeben {
  border-color: var(--linie);
  color: var(--leise);
  border-style: dashed;
}

.wahl-knopf.ist-vergeben::after {
  content: ' ✓';
  font-size: .8em;
}

.wahl-knopf[disabled] { opacity: .5; cursor: wait; }

.trenner { color: var(--linie); margin: 0 .3rem; }

.ist-angemeldet { color: #2E7D52; font-weight: 700; }

/* ---------- Warnung beim Benutzerwechsel ---------- */

.warn-box {
  position: fixed;
  inset: 0;
  background: rgba(18, 51, 42, .7);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 20;
}

.warn-box[hidden] { display: none; }

.warn-inhalt {
  background: var(--karte);
  border-top: 6px solid #C2412D;
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.2rem;
  width: min(100%, 24rem);
  text-align: center;
  box-shadow: var(--schatten);
}

.warn-symbol {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1;
  color: #C2412D;
}

.warn-titel {
  margin: .4rem 0 .5rem;
  font-family: var(--anzeige);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #C2412D;
}

.warn-text {
  margin: 0 0 .7rem;
  font-size: .95rem;
  line-height: 1.5;
}

.warn-text strong { color: #8C2A18; }

.warn-klein {
  margin: 0 0 .8rem;
  font-size: .8rem;
  color: var(--leise);
  line-height: 1.45;
}

.warn-frage {
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: 1rem;
}

.warn-knoepfe {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
}

.knopf-gefahr {
  background: #C2412D;
}

.knopf-gefahr:hover { background: #A5331F; }

.knopf-abbruch {
  background: transparent;
  color: var(--court);
  border: 1px solid var(--linie);
}

.knopf-abbruch:hover { background: var(--paper); border-color: var(--court-hell); }

/* ---------- Hervorgehobener Hinweis in der Planungsphase ---------- */

.phase-warnung {
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px solid rgba(18, 51, 42, .15);
  font-weight: 600;
}

/* ---------- Verwaltung: Protokoll ---------- */

.protokoll {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .85rem;
  display: grid;
  gap: .2rem;
}

.protokoll li {
  padding: .25rem 0;
  border-bottom: 1px solid var(--linie);
  color: var(--leise);
}

/* ---------- Kalender-Abo ---------- */

.kalender {
  margin: .9rem 0 .2rem;
  padding: .8rem .9rem;
  background: var(--paper);
  border-radius: var(--radius);
}

.kalender-titel {
  margin: 0 0 .2rem;
  font-family: var(--anzeige);
  font-size: 1.1rem;
  font-weight: 600;
}

.kalender-text { margin: 0 0 .7rem; font-size: .85rem; color: var(--leise); }

.kalender-knoepfe {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  margin: 0;
}

.kalender-knoepfe .knopf { text-decoration: none; display: inline-block; }

/* ---------- Kostenbeitrag und Bankverbindung ---------- */

.konto {
  margin-top: .9rem;
  padding: .85rem .95rem;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}

.konto-titel {
  margin: 0 0 .2rem;
  font-family: var(--anzeige);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--court);
}

.konto-text { margin: 0 0 .6rem; font-size: .85rem; color: var(--leise); }

.konto-daten {
  margin: 0;
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: .25rem .7rem;
  font-size: .88rem;
}

.konto-daten dt { color: var(--leise); }

.konto-daten dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* ---------- Kalender: zusammenklappbar ---------- */

details.kalender { padding: .6rem .9rem; }

details.kalender > summary {
  cursor: pointer;
  font-family: var(--anzeige);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--court);
  list-style: none;
}

details.kalender > summary::-webkit-details-marker { display: none; }

details.kalender > summary::before {
  content: '▸ ';
  color: var(--leise);
}

details.kalender[open] > summary::before { content: '▾ '; }

details.kalender > summary + * { margin-top: .6rem; }

/* ---------- Verwaltung: schmale Namensliste ---------- */

.linkliste-schmal li { grid-template-columns: 1fr auto; }

/* ---------- Balken mit 0 Einsätzen ---------- */

.balken-zeile.ist-null .balken-name { color: var(--leise); }
.balken-zeile.ist-null .balken-zahl { color: var(--leise); }

.setzt-aus {
  font-size: .72rem;
  color: var(--leise);
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: 0 .4rem;
  margin-left: .3rem;
  white-space: nowrap;
}

.status-text {
  font-size: .75rem;
  color: var(--leise);
  display: block;
}

.kalender-feld {
  flex: 1 1 14rem;
  font-family: 'DejaVu Sans Mono', monospace;
  font-size: .72rem;
}

.kalender-knoepfe .knopf-zweit { white-space: nowrap; }

/* ---------- Zahlungsstand ---------- */

.balken-zeile { grid-template-columns: 7rem 1fr 2rem; }

.balken-name .ist-bezahlt,
.balken-name .nicht-bezahlt {
  font-size: .85em;
  margin-right: .1rem;
}

.ist-bezahlt   { color: #2E7D52; font-weight: 700; }
.nicht-bezahlt { color: #C2412D; font-weight: 700; }
.bezahlt-leer  { color: var(--linie); }

.konto-ok {
  margin-top: .9rem;
  padding: .8rem .95rem;
  background: #E4EFE6;
  color: #14492C;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
}

/* ---------- Verwaltung: Zahlungsliste ---------- */

.zahlliste { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }

.zahlliste li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: .6rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--linie);
  font-size: .92rem;
}

.zahl-status { font-size: .78rem; color: var(--leise); }

.zahl-titel {
  font-family: var(--anzeige);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1rem 0 .3rem;
}

/* ---------- Zahlungscode ---------- */

.qr {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid var(--linie);
}

.qr-bild {
  flex: 0 0 7.5rem;
  width: 7.5rem;
  line-height: 0;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: .35rem;
}

.qr-bild svg { width: 100%; height: auto; display: block; }

.qr-text { margin: 0; font-size: .82rem; color: var(--leise); line-height: 1.45; }

.qr-text strong {
  font-family: var(--anzeige);
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--court);
}

@media (max-width: 26rem) {
  .qr { flex-direction: column; align-items: flex-start; }
}

/* ---------- Auf einen freien Platz einspringen ---------- */

.einspring-knopf {
  grid-column: 1 / -1;
  justify-self: stretch;
  border: 1.5px solid var(--offen);
  background: var(--offen-bg);
  color: var(--offen);
  border-radius: 7px;
  padding: .5rem .9rem;
  font: 700 .82rem var(--text);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: .25rem;
}

.einspring-knopf:hover { background: #F6E6BC; }
.einspring-knopf.laedt { opacity: .5; cursor: wait; }
