/* Farben und Schrift angelehnt an otv88.de */
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url(/fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url(/fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(/fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(/fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url(/fonts/montserrat-latin-800-normal.woff2) format("woff2"); }

:root {
  --blau: #067ac0;
  --blau-dunkel: #05629a;
  --blau-hell: #e6f2fa;
  --grau: #eaeaea;
  --grau-linie: #d6d6d6;
  --text: #2b2b2b;
  --text-leise: #5f6368;
  --weiss: #ffffff;
  --gruen: #1f8a4c;
  --gruen-hell: #e5f4ea;
  --rot: #c0392b;
  --rot-hell: #fbeceb;
  --gelb-hell: #fff6dd;
  --radius: 10px;
  --schatten: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 14px rgba(0, 0, 0, .05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--text);
  background: var(--grau);
  line-height: 1.5;
  font-size: 17px;
}
a { color: var(--blau); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Kopfbereich ---------- */
.kopf {
  background: var(--blau);
  color: var(--weiss);
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.kopf-innen {
  max-width: 1180px; margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; gap: 16px;
}
.marke { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; flex-shrink: 0; }
.marke img { width: 54px; height: 54px; }
.marke-text { line-height: 1.15; }
.marke-text strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.marke-text span { font-size: 12px; opacity: .85; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.nav a {
  color: var(--weiss); text-decoration: none; text-transform: uppercase;
  font-size: 13px; font-weight: 500; letter-spacing: .03em;
  padding: 8px 10px; border-radius: 6px; white-space: nowrap;
}
.nav a:hover { background: rgba(255, 255, 255, .12); }
.nav a.aktiv { color: #1b2a36; }
/* ---------- Seitenaufbau ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 28px 16px 64px; min-height: 70vh; }
.unterzeile { font-size: 15px; text-transform: uppercase; font-weight: 400; letter-spacing: .02em; margin: 0; color: var(--text); }
h1 {
  font-size: clamp(28px, 6vw, 46px); line-height: 1.1; margin: 2px 0 20px;
  color: var(--blau); text-transform: uppercase; font-weight: 500; letter-spacing: .01em;
}
h2 { font-size: 20px; margin: 0 0 12px; font-weight: 700; }
h3 { font-size: 16px; margin: 0 0 8px; font-weight: 700; }
p { margin: 0 0 12px; }
.leise { color: var(--text-leise); font-size: 14px; }
.klein { font-size: 13px; }

.raster { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.raster-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.karte {
  background: var(--weiss); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--schatten); min-width: 0;
}
.karte + .karte { margin-top: 16px; }
.raster .karte + .karte, .raster-2 .karte + .karte { margin-top: 0; }
.karte-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

/* Kennzahlen */
.zahl-gross { font-size: 34px; font-weight: 700; color: var(--blau); line-height: 1.1; }
.zahl-gross.minus { color: var(--rot); }
.kachel-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-leise); font-weight: 600; margin-bottom: 6px; }

/* Spielanzeige */
.spiel { display: flex; gap: 14px; align-items: center; }
.datum-block {
  flex-shrink: 0; width: 62px; text-align: center; border-radius: 8px;
  background: var(--blau-hell); color: var(--blau-dunkel); padding: 6px 0;
}
.datum-block .wt { font-size: 11px; text-transform: uppercase; font-weight: 600; }
.datum-block .tg { font-size: 24px; font-weight: 700; line-height: 1; }
.datum-block .mo { font-size: 11px; text-transform: uppercase; }
.spiel-titel { font-weight: 700; }
.marke-heim, .marke-aus {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 2px 8px; border-radius: 99px; letter-spacing: .04em; vertical-align: middle;
}
.marke-heim { background: var(--blau); color: var(--weiss); }
.marke-aus { background: var(--grau); color: var(--text-leise); }

/* Listen */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { padding: 10px 0; border-top: 1px solid var(--grau); display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.liste > li:first-child { border-top: 0; }
.platz-frei { color: var(--text-leise); font-style: italic; }

/* Fortschritt Catering */
.bedarf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.punkte { display: flex; gap: 4px; }
.punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--grau-linie); }
.punkt.voll { background: var(--gruen); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--grau);
  border-radius: 99px; padding: 3px 4px 3px 10px; font-size: 13px; margin: 3px 4px 0 0;
}
.chip .x { border: 0; background: rgba(0,0,0,.08); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; padding: 0; }

/* Tabellen */
.tabelle-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--grau); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-leise); font-weight: 600; }
td.betrag, th.betrag { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plus { color: var(--gruen); font-weight: 600; }
.minus { color: var(--rot); font-weight: 600; }
tr.erledigt td { color: var(--text-leise); }
tr.naechstes td { background: var(--blau-hell); }

/* Formulare */
.zeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.feld { flex: 1 1 160px; min-width: 0; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], input[type=email], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--grau-linie); border-radius: 8px; background: var(--weiss);
  font-size: 16px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blau); outline-offset: 0; border-color: var(--blau); }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--blau); color: var(--weiss); border: 2px solid var(--blau);
  border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: .03em; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.knopf:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); }
.knopf.zweit { background: var(--weiss); color: var(--blau); }
.knopf.zweit:hover { background: var(--blau-hell); }
.knopf.klein { padding: 5px 10px; font-size: 12px; }
.knopf.gefahr { background: var(--weiss); color: var(--rot); border-color: var(--rot); }
.knopf:disabled { opacity: .5; cursor: not-allowed; }
.link-knopf { background: none; border: 0; color: var(--blau); cursor: pointer; padding: 0; font-size: 13px; text-decoration: underline; }

.hinweis { background: var(--gelb-hell); border-left: 4px solid #e0a800; padding: 12px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 16px; }
.hinweis.info { background: var(--blau-hell); border-left-color: var(--blau); }
.leer { color: var(--text-leise); font-style: italic; padding: 8px 0; }

/* Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { background: var(--weiss); border: 1px solid var(--grau-linie); border-radius: 99px; padding: 6px 14px; cursor: pointer; font-size: 14px; }
.tab.aktiv { background: var(--blau); color: var(--weiss); border-color: var(--blau); }

/* Trainer */
.trainer-kopf { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.initialen {
  width: 48px; height: 48px; border-radius: 50%; background: var(--blau); color: var(--weiss);
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}
.kader { display: flex; flex-wrap: wrap; gap: 8px; }
.spieler { background: var(--blau-hell); color: var(--blau-dunkel); border-radius: 8px; padding: 8px 12px; font-weight: 600; }
.spieler small { font-weight: 400; opacity: .8; margin-right: 4px; }

/* Galerie */
.galerie { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.foto { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--grau-linie); cursor: zoom-in; border: 0; padding: 0; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto.gemeldet { outline: 3px solid var(--rot); }
.foto .marke-gemeldet { position: absolute; left: 6px; top: 6px; background: var(--rot); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.lightbox {
  position: fixed; inset: 0; background: rgba(10, 18, 26, .92); z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px;
}
.lightbox img { max-height: calc(100vh - 140px); max-width: 100%; object-fit: contain; border-radius: 6px; }
.lightbox-leiste { color: #fff; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 12px; font-size: 14px; }
.lightbox .knopf.zweit { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: 0; color: #fff; width: 44px; height: 64px; border-radius: 8px; font-size: 28px; cursor: pointer; }
.lb-nav.links { left: 10px; } .lb-nav.rechts { right: 10px; }
.lb-zu { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; }
.fortschritt { height: 6px; background: var(--grau); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.fortschritt div { height: 100%; background: var(--blau); width: 0; transition: width .2s; }

/* Meldungen */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60;
  background: #1b2a36; color: #fff; padding: 12px 18px; border-radius: 8px; font-size: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: calc(100% - 32px);
}
.toast.fehler { background: var(--rot); }

footer { background: #1b2a36; color: #c9d3db; font-size: 13px; }
footer .innen { max-width: 1180px; margin: 0 auto; padding: 20px 16px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: #fff; }

/* Login */
.login-seite { min-height: 100vh; display: grid; place-items: center; background: var(--blau); padding: 16px; }
.login-box { background: #fff; border-radius: 14px; padding: 32px 24px; width: 100%; max-width: 380px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.login-box img { width: 120px; height: 120px; margin: 0 auto 16px; }
.login-box h1 { font-size: 22px; margin-bottom: 4px; }
.login-box form { text-align: left; margin-top: 20px; }
.login-box .knopf { width: 100%; margin-top: 12px; padding: 12px; }
.login-fehler { color: var(--rot); font-size: 14px; min-height: 20px; margin-top: 10px; text-align: center; }

.nur-kasse { display: none; }
body.rolle-kasse .nur-kasse { display: revert; }
body.rolle-kasse .nur-eltern { display: none; }
.abstand { margin-top: 24px; }
.ausrichten { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
details summary { cursor: pointer; font-weight: 600; color: var(--blau); }
details[open] summary { margin-bottom: 12px; }

/* Catering: Übersicht und aufklappbare Spielkarten */
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.pill.ok { background: var(--gruen-hell); color: var(--gruen); }
.pill.offen { background: #fdf0dc; color: #a35a00; }
table.uebersicht td, table.uebersicht th { text-align: center; padding: 8px 6px; }
table.uebersicht td:first-child, table.uebersicht th:first-child { text-align: left; }
table.uebersicht tbody tr { cursor: pointer; }
table.uebersicht tbody tr:hover td { background: var(--blau-hell); }
.name-leiste { max-width: 520px; margin-bottom: 16px; }
details.spiel-karte { padding: 0; }
details.spiel-karte + details.spiel-karte { margin-top: 12px; }
details.spiel-karte > summary { list-style: none; padding: 16px 20px; color: inherit; font-weight: inherit; position: relative; }
details.spiel-karte > summary::-webkit-details-marker { display: none; }
details.spiel-karte > summary::after { content: "▾"; position: absolute; right: 18px; top: 18px; color: var(--blau); font-size: 20px; transition: transform .15s; }
details.spiel-karte[open] > summary::after { transform: rotate(180deg); }
details.spiel-karte[open] > summary { margin-bottom: 0; border-bottom: 1px solid var(--grau); }
details.spiel-karte > .raster-2 { padding: 0 20px 20px; }
.summary-innen { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-right: 28px; }
.summary-status { display: flex; gap: 6px; flex-wrap: wrap; }
.artikel-zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.artikel-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.haken { color: var(--gruen); font-weight: 700; margin-right: 8px; }
form.mitbringen { margin-top: 8px; }
form.mitbringen[hidden] { display: none; }
.nur-schmal { display: none; }
@media (max-width: 700px) {
  table.uebersicht .nur-breit { display: none; }
  table.uebersicht .nur-schmal { display: table-cell; }
}
@media (max-width: 700px) { table.uebersicht th { letter-spacing: 0; font-size: 11px; } }
.kurz { display: none; }
@media (max-width: 700px) {
  table.uebersicht .lang { display: none; }
  table.uebersicht .kurz { display: inline; }
  table.uebersicht td, table.uebersicht th { padding: 8px 4px; }
}

/* Teilen, Fahrten, Kartenfuß */
.pill.neutral { background: var(--blau-hell); color: var(--blau-dunkel); }
.karte-fuss { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 20px 16px; border-top: 1px solid var(--grau); }
.teilen-box { background: #fff; color: var(--text); border-radius: 12px; padding: 20px; width: 100%; max-width: 560px; }
.teilen-box textarea { min-height: 260px; font-size: 14px; line-height: 1.45; }
.fahrt-inhalt { padding: 8px 20px 16px; }
.fahrt-inhalt > details > summary { font-size: 15px; }
li.fahrt { display: block; }
.fahrt-kopf { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 6px; }
form.mitfahren { margin-top: 8px; max-width: 420px; }

/* ---------- Feinschliff: Begrüßung, Navigation unten, Startseite ---------- */
.nav { order: 2; }
.hallo {
  order: 3; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4);
  border-radius: 99px; padding: 7px 14px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; margin-left: 8px;
}
body.ohne-galerie .nav-galerie { display: none; }

.unten-nav { display: none; }
@media (max-width: 1100px) {
  .nav { display: none; }
  .hallo { margin-left: auto; }
  .marke-text span { display: none; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .unten-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--grau-linie); box-shadow: 0 -4px 16px rgba(0,0,0,.06);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .unten-nav a, .unten-nav button {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--text-leise);
    text-decoration: none; font-size: 12px; font-weight: 600; background: none; border: 0; cursor: pointer; border-radius: 10px;
  }
  .unten-nav svg { width: 26px; height: 26px; }
  .unten-nav .aktiv { color: var(--blau); background: var(--blau-hell); }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .knopf { min-height: 44px; }
  .knopf.klein { min-height: 36px; }
}

.dialog-box, .sheet { background: #fff; color: var(--text); border-radius: 16px; padding: 22px; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; }
.dialog-box h2 { font-size: 22px; }
.punkte-liste { padding-left: 20px; margin: 0 0 16px; }
.punkte-liste li { margin-bottom: 6px; }
.tipp { background: var(--blau-hell); border-radius: 10px; padding: 10px 12px; font-size: 15px; margin: 16px 0 0; }
.schalter { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.schalter input { width: 22px; height: 22px; }
.sheet-hinter { justify-content: flex-end; padding: 0; background: rgba(10,18,26,.5); }
.sheet { border-radius: 18px 18px 0 0; max-width: 560px; padding: 10px 10px calc(14px + env(safe-area-inset-bottom)); }
.sheet a, .sheet button {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 12px; font-size: 17px; font-weight: 600;
  color: var(--text); text-decoration: none; background: none; border: 0; border-radius: 10px; cursor: pointer; text-align: left;
}
.sheet a:hover, .sheet button:hover { background: var(--blau-hell); }
.sheet span { width: 28px; text-align: center; font-size: 20px; }

.hero { border-top: 5px solid var(--blau); }
.hero .spiel-titel { font-size: 19px; }
.hero-status { margin-top: 14px; font-size: 17px; }
.hero-status p { margin-bottom: 6px; }
.gut { color: var(--gruen); font-weight: 700; }
.hero-knoepfe { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 12px; }
.hero-knoepfe .knopf { white-space: normal; min-width: 0; }
.knopf.gross { font-size: 16px; padding: 14px 16px; text-transform: none; letter-spacing: 0; }
a.termin { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; min-width: 0; }
a.termin .datum-block { width: 52px; padding: 4px 0; }
a.termin .datum-block .tg { font-size: 20px; }
a.termin > span { display: flex; flex-direction: column; min-width: 0; }
.kasse-gross { text-align: center; padding: 28px 20px; }
.zahl-riesig { font-size: clamp(40px, 11vw, 60px); font-weight: 700; color: var(--blau); line-height: 1.1; }
.zahl-riesig.minus { color: var(--rot); }

.hero-knoepfe .knopf.zweit.gross { font-size: 15px; padding: 10px 12px; }
@media (max-width: 900px) {
  .kopf-innen { gap: 10px; }
  .marke img { width: 46px; height: 46px; }
  .marke-text strong { font-size: 14px; }
  .hallo { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; font-size: 13px; padding: 6px 12px; }
  .hero-knoepfe { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-knoepfe .knopf.gross:not(.zweit) { grid-column: 1 / -1; }
  footer { display: none; }
}
h1 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 400px) { h1 { font-size: 27px; } }
input[type=file] { max-width: 100%; width: 100%; font-size: 15px; }
.liste > li { flex-wrap: wrap; }
.liste > li > .spiel { min-width: 0; flex: 1 1 220px; }

@media (min-width: 1101px) {
  .nav { flex-wrap: nowrap; }
  .nav a { padding: 8px 7px; font-size: 12.5px; letter-spacing: .02em; }
}

.info-zeile { background: var(--blau-hell); border-radius: 8px; padding: 8px 10px; font-size: 14px; margin: 0 0 6px; }
.artikel-hinweis { flex-basis: 100%; margin-top: -4px; }
.hero-knoepfe .knopf small { display: block; font-weight: 500; font-size: 12px; opacity: .8; margin-top: 2px; }
.hero-knoepfe .knopf { flex-direction: column; }

.hero-aktionen { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 14px; }
.hero-aktionen .knopf { white-space: normal; }
.mitbringen-auswahl[hidden] { display: none; }
.mitbringen-auswahl .hero-knoepfe { margin-top: 0; }

.fehlt-kasten { background: #fdf0dc; border-left: 5px solid #e08a00; border-radius: 8px; padding: 12px 14px; margin-top: 14px; font-size: 17px; line-height: 1.6; }
.fehlt-kasten strong { display: block; color: #8a4b00; margin-bottom: 2px; }
.fehlt-kasten.ok { background: var(--gruen-hell); border-left-color: var(--gruen); color: var(--gruen); font-weight: 700; }
.danach { margin: 12px 0 0; font-size: 15px; }
.danach a { color: #8a4b00; font-weight: 600; text-decoration: none; }

/* Startseite: zwei Spiele, Installationshinweis */
.hero.aus { border-top-color: #5f6368; }
.fahrer-liste { margin-top: 10px; }
.fahrer-liste > li { align-items: center; }
.install-karte { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; background: var(--blau-hell); box-shadow: none; }
.schritte { padding-left: 22px; font-size: 16px; line-height: 1.55; }
.schritte li { margin-bottom: 8px; }
.nicht-noetig { color: var(--text-leise); font-size: 14px; margin: 8px 0 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link-knopf.klein { font-size: 12px; color: var(--text-leise); }

/* Zeitnehmer */
.zeitnehmer-zeile { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 15px; padding: 8px 12px; border-radius: 8px; margin-top: 10px; border-left: 4px solid; }
.zeitnehmer-zeile.ok { background: var(--gruen-hell); border-left-color: var(--gruen); }
.zeitnehmer-zeile.offen { background: #fdf0dc; border-left-color: #e08a00; }
.zeitnehmer-zeile.dringend { background: var(--rot-hell); border-left-color: var(--rot); }
.zeitnehmer-zeile.dringend strong { color: var(--rot); }
.zeitnehmer-zeile > span { min-width: 0; overflow-wrap: anywhere; }
.karten-zeitnehmer { padding: 0 20px; margin-bottom: 4px; }
li.spiel-mit-zn > .zeitnehmer-zeile { flex-basis: 100%; margin-top: 4px; }

/* Vorrat und Wäsche */
details.vorrat-karte > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
details.vorrat-karte > summary .pill { white-space: normal; text-align: left; }
.vorrat-karte .liste > li { align-items: center; justify-content: space-between; gap: 8px; }
.segment { display: inline-flex; border: 1px solid var(--grau-linie); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.seg { border: 0; background: var(--weiss); padding: 8px 12px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text-leise); min-height: 40px; }
.seg + .seg { border-left: 1px solid var(--grau-linie); }
.seg.an.ok { background: var(--gruen); color: #fff; }
.seg.an.knapp { background: #e08a00; color: #fff; }
.seg.an.leer { background: var(--rot); color: #fff; }

/* Termine */
a.termin-hinweis { display: flex; gap: 10px; align-items: center; background: var(--gelb-hell); border-left: 4px solid #e0a800; border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; color: inherit; text-decoration: none; font-size: 16px; }
a.termin-hinweis span { flex: 1; min-width: 0; }
.termin-karte + .termin-karte { margin-top: 16px; }
.termin-text { margin: 12px 0; line-height: 1.6; overflow-wrap: break-word; }
.termin-stand { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 14px; margin: 8px 0 12px; }
.antwort-box { background: var(--blau-hell); border-radius: 8px; padding: 12px 14px; }
.antwort-box select { min-width: 80px; }
.antwort-tabelle, .helfer-tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.antwort-tabelle th, .antwort-tabelle td, .helfer-tabelle th, .helfer-tabelle td { padding: 6px 8px; border-bottom: 1px solid var(--grau); text-align: left; vertical-align: middle; }
.helfer-tabelle td:not(:first-child), .helfer-tabelle th:not(:first-child) { text-align: center; }
.helfer-tabelle tr.null td { background: var(--rot-hell); }
.antwort-tabelle td.betrag, .antwort-tabelle th.betrag { text-align: right; white-space: nowrap; }
.knopf { max-width: 100%; }
.knopf.klein { white-space: normal; text-align: center; }
.zuordnung-liste > li { align-items: center; justify-content: space-between; gap: 8px; }
.zuordnung-liste select { max-width: 100%; min-width: 0; flex: 0 1 220px; }
.karten-zeitnehmer .zeitnehmer-zeile + .zeitnehmer-zeile { margin-top: 6px; }
.artikel-admin { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.menge-stepper { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.menge-stepper .mini { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--grau-linie); background: var(--weiss); font-size: 18px; line-height: 1; cursor: pointer; color: var(--blau); }
.menge-stepper .mini:disabled { opacity: .35; cursor: default; }

/* =====================================================================
   Version 1.0: ruhigeres Erscheinungsbild
   Blau = Aktion, Grün = erledigt, Orange = offen (nur als Markierung), Rot = dringend
   ===================================================================== */
:root { --grau: #eef1f4; --grau-linie: #dde2e7; --radius: 14px; --schatten: 0 1px 2px rgba(16, 32, 48, .06), 0 6px 20px rgba(16, 32, 48, .05); --orange: #c26a00; }
body { background: var(--grau); }
main { padding-top: 24px; }
.unterzeile { color: var(--blau); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
h1 { color: var(--text); text-transform: none; font-weight: 700; font-size: clamp(26px, 5vw, 36px); letter-spacing: -.01em; margin: 4px 0 20px; }
h2 { font-size: 19px; }
.karte { padding: 20px 20px; }
.karte + .karte, .abstand { margin-top: 20px; }

/* Knöpfe: zwei Arten, normale Schreibweise */
.knopf { text-transform: none; letter-spacing: 0; font-size: 15px; border-radius: 10px; min-height: 44px; padding: 9px 18px; }
.knopf.klein { font-size: 14px; min-height: 36px; padding: 6px 14px; border-width: 1.5px; }
.knopf.gross { font-size: 16px; min-height: 50px; }
.link-knopf { font-size: 14px; }

/* Spielkarten auf der Startseite */
.spielkarte { padding: 18px 20px 16px; }
.spielkarte .karte-kopf { align-items: center; margin-bottom: 10px; }
.spielkarte .kachel-label { margin: 0; color: var(--blau); }
.spielkarte.aus .kachel-label { color: var(--text-leise); }
.spielkarte .spiel-titel { font-size: 19px; line-height: 1.25; }
.spielkarte-fuss { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--grau); margin-top: 6px; padding-top: 12px; }
.link-pfeil { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--blau); }
.link-pfeil::after { content: " ›"; }
.danach { font-size: 14px; margin: 10px 0 0; }
.danach a { color: var(--blau); }

/* Aufgabenliste */
.aufgaben { list-style: none; margin: 14px 0 0; padding: 0; }
.aufgabe { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--grau); }
.aufgabe:first-child { border-top: 0; }
.aufgabe .punkt { width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; align-self: start; margin-top: 2px; }
.st-ok .punkt { background: var(--gruen); }
.st-ok .punkt::after { content: "✓"; }
.st-offen .punkt { border: 2.5px solid #e08a00; }
.st-dringend .punkt { background: var(--rot); }
.st-dringend .punkt::after { content: "!"; }
.st-info .punkt { border: 2.5px solid var(--grau-linie); }
.aufgabe-text { min-width: 0; font-size: 16px; line-height: 1.35; }
.aufgabe-stand { font-size: 14px; color: var(--text-leise); white-space: nowrap; }
.st-offen .aufgabe-stand { color: var(--orange); font-weight: 600; }
.st-dringend .aufgabe-stand { color: var(--rot); font-weight: 700; }
.aufgabe-detail { font-size: 14px; color: var(--text-leise); margin-top: 2px; overflow-wrap: anywhere; }
.aufgabe-knopf { justify-self: end; }
.aufgabe-knopf .knopf, .artikel-zeile .knopf { white-space: nowrap; }
@media (max-width: 480px) {
  .aufgabe { gap: 4px 10px; }
  .aufgabe-text { font-size: 15px; }
  .aufgabe-knopf .knopf.klein { padding: 6px 10px; font-size: 13.5px; }
}
@media (max-width: 340px) {
  .aufgabe { grid-template-columns: 22px minmax(0, 1fr); }
  .aufgabe-knopf { grid-column: 2; justify-self: start; margin-top: 4px; }
}
.karten-zeitnehmer { padding: 0 20px; margin: 4px 0 0; }
.karten-zeitnehmer:empty { display: none; }
.fahrt-inhalt .aufgaben { margin: 0 0 8px; }

/* Spieleliste: Zeitnehmer kurz */
.zn-kurz { flex-basis: 100%; font-size: 14px; color: var(--text-leise); padding-left: 76px; margin-top: -2px; }
.zn-kurz.offen { color: var(--orange); font-weight: 600; }
.zn-kurz .link-knopf { font-weight: 600; }
@media (max-width: 480px) { .zn-kurz { padding-left: 0; } }

/* Hinweise, Banner */
.info-zeile { background: #f4f6f8; color: var(--text); }
a.termin-hinweis { background: var(--weiss); border-left: 4px solid var(--blau); box-shadow: var(--schatten); font-size: 15px; padding: 14px 16px; }
a.termin-hinweis { justify-content: space-between; }
.infos-start { border-left: 4px solid var(--blau); margin-bottom: 16px; }
.hinweis-liste { list-style: none; margin: 0; padding: 0; }
.hinweis-liste li { padding: 10px 0; border-top: 1px solid var(--grau); }
.hinweis-liste li:first-child { border-top: 0; padding-top: 0; }
.hinweis-text { font-size: 16px; line-height: 1.45; overflow-wrap: break-word; }
.pill { font-size: 12.5px; padding: 3px 10px; }

/* Abfragen */
.optionen { display: grid; gap: 6px; margin-bottom: 10px; }
.option { display: flex; align-items: center; gap: 10px; background: var(--weiss); border: 1px solid var(--grau-linie); border-radius: 10px; padding: 10px 12px; font-size: 16px; cursor: pointer; }
.option input { width: 20px; height: 20px; accent-color: var(--blau); margin: 0; }
.antwort-box input[type=text] { width: 100%; }
.abfrage-tabelle { border-collapse: collapse; width: 100%; font-size: 14px; }
.abfrage-tabelle th, .abfrage-tabelle td { padding: 6px 8px; border-bottom: 1px solid var(--grau); text-align: center; white-space: nowrap; }
.abfrage-tabelle th:first-child, .abfrage-tabelle td:first-child, .abfrage-tabelle td:last-child { text-align: left; }
.abfrage-tabelle td:last-child { white-space: normal; min-width: 120px; }
.abfrage-tabelle tfoot th { border-bottom: 0; }
.zelle { width: 34px; height: 30px; border: 1px solid var(--grau-linie); border-radius: 6px; background: #fff; cursor: pointer; font-weight: 700; color: var(--gruen); }
.zelle.an { background: var(--gruen-hell); border-color: var(--gruen); }
.gefahr-text { color: var(--rot); }

/* Mehr-Menü */
.sheet a, .sheet button { justify-content: space-between; font-size: 16px; }
.sheet .pfeil { width: auto; font-size: 20px; color: var(--text-leise); }
.sheet hr { border: 0; border-top: 1px solid var(--grau); margin: 6px 0; }

/* Desktop: Navigation in eigener Zeile unter dem Kopf, damit alle Punkte Platz haben */
@media (min-width: 1101px) {
  .kopf-innen { flex-wrap: wrap; row-gap: 0; padding-bottom: 0; }
  .kopf-innen .hallo { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; margin: 6px 0 0; padding: 4px 0; border-top: 1px solid rgba(255, 255, 255, .18); gap: 4px; }
  .nav a { font-size: 13px; padding: 8px 10px; }
}

/* Runde 1+2: Infos & Termine, Fristen, einklappbare Formulare */
.bereich-titel { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-leise); margin: 28px 0 10px; font-weight: 700; }
.frist { margin: 4px 0 12px; font-size: 15px; padding: 8px 12px; border-radius: 8px; background: #f4f6f8; }
.frist.bald { background: var(--rot-hell); color: var(--rot); }
.frist.vorbei { color: var(--text-leise); }
a.termin-hinweis.dringend { border-left-color: var(--rot); }
a.termin-hinweis.dringend .frist-text { color: var(--rot); font-weight: 700; }
.frist-text { white-space: nowrap; font-weight: 600; }
details.formular-klappe > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 700; color: var(--blau); }
details.formular-klappe > summary::-webkit-details-marker { display: none; }
details.formular-klappe > summary::after { content: "+"; font-size: 24px; line-height: 1; font-weight: 400; }
details.formular-klappe[open] > summary::after { content: "–"; }
details.formular-klappe[open] > summary { margin-bottom: 0; }
.trikot-naechstes { margin-bottom: 16px; border-left: 4px solid var(--blau); }
.trikot-wer { font-size: 24px; font-weight: 700; margin: 4px 0 2px; }

/* Bearbeiten, Hallen */
details.bearbeiten > summary { font-size: 14px; font-weight: 600; color: var(--blau); margin-top: 6px; }
details.bearbeiten[open] { background: #f6f8fa; border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
details.bearbeiten textarea { min-height: 80px; }
.halle-adresse { font-size: 14px; color: var(--text-leise); margin: -4px 0 10px; }
.training-halle { text-align: right; }
.training-halle .link-knopf { font-weight: 600; }
.kalender-abo { margin-bottom: 20px; }
.sohn-fehlt { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; border-left: 4px solid #e08a00; }

/* Version 1.4: eine Spielkarte für alles */
details.spielkarte { padding: 0; }
details.spielkarte + details.spielkarte, .abstand > details.spielkarte + details.spielkarte { margin-top: 12px; }
details.spielkarte > summary .kachel-label { display: block; margin-bottom: 8px; color: var(--blau); }
details.spielkarte.aus > summary .kachel-label { color: var(--text-leise); }
.spielkarte-inhalt { padding: 0 20px 16px; }
.spielkarte-inhalt > .aufgaben { margin-top: 6px; }
details.mehr-details { margin-top: 6px; border-top: 1px solid var(--grau); padding-top: 10px; }
details.mehr-details > summary { font-size: 14px; font-weight: 600; }
.pill.dringend { background: var(--rot-hell); color: var(--rot); }
.gut-text { color: var(--gruen); font-weight: 600; }
.offen-text { color: var(--orange); font-weight: 600; }
.spiele-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.segment.filter .seg { padding: 8px 16px; font-size: 15px; }
.segment.filter .seg.an { background: var(--blau); color: #fff; }
#mehr-menue-dummy {}

/* Runde: Deine Aufgaben, Verwaltung in Bereichen */
.deine-aufgaben { margin-bottom: 16px; border-left: 4px solid var(--gruen); }
.deine-aufgaben .liste > li { padding: 8px 0; }
a.meine-aufgabe { display: flex; gap: 12px; align-items: baseline; color: inherit; text-decoration: none; min-width: 0; flex: 1; }
.ma-datum { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--blau); min-width: 74px; }
.ma-text { display: flex; flex-direction: column; min-width: 0; font-size: 15px; }
details.verwaltung-bereich + details.verwaltung-bereich { margin-top: 12px; }
details.verwaltung-bereich > summary > span { display: flex; flex-direction: column; }
.bereich-unter { font-weight: 400; margin-top: 2px; }
fieldset.einst-gruppe { border: 1px solid var(--grau-linie); border-radius: 12px; padding: 14px 16px 16px; margin: 0 0 16px; min-width: 0; }
fieldset.einst-gruppe legend { font-weight: 700; padding: 0 6px; color: var(--blau-dunkel); }
.karte.flach { box-shadow: none; border: 1px solid var(--grau-linie); }
.speichern-leiste { position: sticky; bottom: 76px; background: var(--weiss); padding: 10px 0; }
@media (min-width: 1101px) { .speichern-leiste { bottom: 0; } }

/* Strichliste Getränke */
details.strichliste { margin-top: 8px; border: 2px solid var(--blau); border-radius: 12px; padding: 10px 12px; background: var(--blau-hell); }
details.strichliste > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; color: var(--blau-dunkel); }
.strich-liste { list-style: none; margin: 8px 0 0; padding: 0; }
.strich-liste li { display: grid; grid-template-columns: minmax(0, 1fr) 40px 44px 64px; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(6, 122, 192, .15); }
.strich-liste li:first-child { border-top: 0; }
.strich-name { display: flex; flex-direction: column; min-width: 0; }
.strich-zahl { text-align: center; font-size: 22px; font-weight: 800; }
.strich-plus, .strich-minus { height: 48px; border-radius: 10px; border: 0; font-size: 26px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.strich-plus { background: var(--blau); color: #fff; }
.strich-minus { background: #fff; color: var(--text-leise); border: 1px solid var(--grau-linie); height: 40px; font-size: 22px; }
.strich-minus:disabled { opacity: .3; }
.strich-summe { margin: 10px 0 0; font-size: 16px; }
.getraenke-ergebnis { margin: 6px 0 0; font-size: 15px; }
.otv-offen .liste > li { align-items: flex-start; }

/* ---------- Demo-Seite ---------- */
.demo-leiste {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between;
  background: #fff4d6; color: #5a4300; border-bottom: 1px solid #ecd28b; padding: 8px 16px; font-size: 13px; line-height: 1.35;
}
.demo-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-knoepfe a, .demo-knoepfe button { white-space: nowrap; }
.demo-knoepfe button {
  font: inherit; font-weight: 600; background: #fff; color: #5a4300; border: 1px solid #d9b85c; border-radius: 999px; padding: 4px 10px; cursor: pointer;
}
.demo-knoepfe button:hover { background: #ffeec2; }
.demo-login { text-align: left; }
.demo-marke {
  display: inline-block; background: #fff4d6; color: #5a4300; border: 1px solid #ecd28b; border-radius: 999px;
  padding: 2px 12px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px;
}
.demo-rollen { display: grid; gap: 10px; margin-top: 12px; }
.demo-rollen .knopf { margin-top: 0; white-space: normal; box-sizing: border-box; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: 100%; gap: 2px; }
.demo-rollen .knopf span { font-weight: 400; font-size: 13px; opacity: .9; text-transform: none; }
.demo-knoepfe a { font-weight: 600; color: #5a4300; align-self: center; margin-right: 4px; }
.hinweis-demo { background: #fffaf0; border: 1px solid #ecd28b; }
.funktion .rollen { display: flex; flex-wrap: wrap; gap: 4px; }
.funktion .rollen span { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--blau-hell); color: var(--blau-dunkel); }
.funktion .rollen .rolle-trainer { background: #e8f5ec; color: #1f6b3a; }
.funktion .rollen .rolle-kasse { background: #fff4d6; color: #5a4300; }
.funktion .karte-kopf { flex-wrap: wrap; gap: 6px; }
.funktion .probier { margin: 10px 0 0; padding: 8px 12px; background: var(--blau-hell); border-radius: 8px; font-size: 14px; }

/* ---------- Version 1.7: Rollen Spieler und Trainer ---------- */
.nur-trainer, .nur-spieler { display: none !important; }
body.rolle-trainer .nav .nur-trainer { display: revert !important; }
body.rolle-spieler .unten-nav .nur-spieler { display: flex !important; }
body.rolle-spieler .nav a:not([href="#/"]):not([href="#/mannschaft"]),
body.rolle-spieler .unten-nav a[href="#/spiele"], body.rolle-spieler .unten-nav a[href="#/infos"], body.rolle-spieler .unten-nav a[href="#/kasse"] { display: none !important; }

/* An- und Abmeldung */
.anw-liste { list-style: none; margin: 8px 0 0; padding: 0; }
.anw-zeile { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--linie, #e3e7ec); align-items: start; }
.anw-zeile:first-child { border-top: 0; }
.anw-zeile .datum-block { grid-row: span 2; }
.anw-mitte { min-width: 0; }
.anw-titel { font-weight: 600; }
.anw-knoepfe { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.anw-knopf { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1.5px solid #c9d2dc; background: #fff; color: var(--text, #222); cursor: pointer; min-height: 38px; }
.anw-knopf.an.ja { background: #1f8a4c; border-color: #1f8a4c; color: #fff; }
.anw-knopf.an.nein { background: #b3261e; border-color: #b3261e; color: #fff; }
.anw-knopf:disabled { opacity: .5; cursor: default; }
.anw-zeile.ausfall .anw-titel { text-decoration: line-through; text-decoration-thickness: 1px; }
.anw-wer summary { cursor: pointer; margin-top: 4px; }
.anw-wer p { margin: 4px 0; }
.anw-gruppe { margin: 10px 0; }
.anw-gruppe > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.anw-name { font: inherit; font-size: 14px; padding: 5px 12px; border-radius: 999px; border: 1px solid #c9d2dc; background: #fff; cursor: pointer; }
.anw-name.ja { background: #e7f5ec; border-color: #9fd3b3; }
.anw-name.nein { background: #fbe9e8; border-color: #eab2ae; }
.anw-name.offen { background: #fff6e0; border-color: #ecd28b; }
.anw-bem { margin: 8px 0 0; padding-left: 18px; }
.anw-karte > summary { list-style: none; cursor: pointer; }
.anw-karte > summary::-webkit-details-marker { display: none; }
@media (min-width: 640px) {
  .anw-zeile { grid-template-columns: auto 1fr auto; }
  .anw-zeile .datum-block { grid-row: auto; }
  .anw-knoepfe { grid-column: 3; align-self: center; }
}

/* Fahrten */
.fahrt-gesucht { background: #fff6e0; border: 1px solid #ecd28b; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.fahrt-gesucht .liste li { gap: 8px; }
.chip .x + .x { margin-left: 2px; }
@media (max-width: 1100px) { body.rolle-spieler .unten-nav { grid-template-columns: repeat(3, 1fr); } }
.anw-knopf.an.ja.standard { background: #e7f5ec; border-color: #9fd3b3; color: #1f6b3a; }
/* Dialoge liegen in .lightbox: dort sind helle Knöpfe für die Fotoansicht gedacht, im weißen Dialog wieder normal darstellen */
.lightbox .dialog-box .knopf.zweit, .lightbox .teilen-box .knopf.zweit { background: var(--weiss, #fff); color: var(--blau); border-color: var(--blau); }
.lightbox .dialog-box .knopf.zweit:hover, .lightbox .teilen-box .knopf.zweit:hover { background: var(--blau-hell); }

/* ---------- Version 2.0 ---------- */
body .nav a[hidden][href], body .unten-nav a[hidden][href] { display: none !important; }
.x-klein { border: 0; background: none; color: var(--rot, #b3261e); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.vorschlag { display: inline-block; background: #fff6e0; border-radius: 6px; padding: 1px 6px; color: #5a4300; }
select.zuweisen { width: auto; font-size: 13px; padding: 4px 8px; margin-top: 4px; }
.fairness-liste { list-style: none; margin: 8px 0 0; padding: 0; }
.fairness-liste li { display: grid; grid-template-columns: minmax(80px, 1fr) 2fr auto; gap: 10px; align-items: center; padding: 5px 0; border-top: 1px solid var(--linie, #e3e7ec); }
.fairness-liste li:first-child { border-top: 0; }
.fairness-liste li.ich { font-weight: 600; }
.fairness-liste .balken { background: #eef1f4; border-radius: 99px; height: 8px; overflow: hidden; }
.fairness-liste .balken span { display: block; height: 100%; background: var(--blau); border-radius: 99px; }
.fairness-liste .zahl { min-width: 48px; text-align: right; font-variant-numeric: tabular-nums; }
.modul-liste { display: grid; gap: 6px; }
.modul-liste .schalter { align-items: flex-start; }
.termin-karte.mehrtaegig { border-left: 4px solid var(--blau); }
.vorschlag { display: block; width: fit-content; margin-top: 4px; }
.summary-status .pill { white-space: normal; }

/* ---------- Version 2.1: Abfragen ohne Trainer ---------- */
.geheim-karte { border-left: 4px solid #7a5af5; }
.geheim-hinweis { margin: 6px 0 10px; font-size: 13px; color: #4b3a9c; background: #f1edff; border-radius: 8px; padding: 6px 10px; }
.termin-hinweis.geheim { background: #f1edff; border-color: #d4c9ff; }
.ideen-liste { list-style: none; margin: 8px 0 0; padding: 0; }
.ideen-liste li { padding: 8px 0; border-top: 1px solid var(--linie, #e3e7ec); }
.ideen-liste li:first-child { border-top: 0; }
.gewinner { font-size: 17px; margin: 6px 0 4px; }

/* ---------- 2.3: Einrichtungs-Assistent ---------- */
.einrichtung { max-width: 620px; margin: 24px auto; background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); padding: 22px 20px 26px; }
.einrichtung h1 { margin: 0; font-size: 24px; }
.einr-kopf { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.einr-kopf .unterzeile { margin: 0; }
.einr-fortschritt { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; }
.einr-fortschritt li { flex: 1; text-align: center; font-size: 12px; font-weight: 600; padding: 4px 0; border-radius: 6px; background: var(--grau); color: var(--text-leise); }
.einr-fortschritt li.fertig { background: var(--blau-hell); color: var(--blau-dunkel); }
.einr-fortschritt li.aktiv { background: var(--blau); color: var(--weiss); }
.einr-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.einr-form .schalter, .einr-form .modul { font-weight: 400; }
.einr-form textarea, .einr-text { width: 100%; box-sizing: border-box; }
.einr-text { min-height: 150px; font: inherit; font-size: 14px; padding: 10px; border: 1px solid var(--grau-linie); border-radius: 8px; }
.einr-h2 { font-size: 17px; margin: 20px 0 8px; }
.einr-zeile { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.einr-zeile > * { flex: 1 1 140px; min-width: 0; }
.einr-zeile > button { flex: 0 0 auto; }
.einr-knoepfe { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.einr-spaeter { margin-top: 18px; font-size: 13px; color: var(--text-leise); background: var(--blau-hell); padding: 8px 10px; border-radius: 8px; }
.einr-anleitung { padding-left: 20px; }
.einr-anleitung li { margin-bottom: 6px; }
.einr-spiele input[type=text], .einr-spiele select { width: 100%; min-width: 0; box-sizing: border-box; }
.einr-spiele td { padding: 6px 4px; }
.einr-spiele tr.unklar td { background: var(--gelb-hell); }
.modul-liste .modul { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--grau); }
.modul-liste .modul input { margin-top: 2px; flex: 0 0 20px; width: 20px; height: 20px; }
.einrichtung .fehler { color: var(--rot); font-weight: 600; margin-top: 10px; min-height: 1em; }
@media (max-width: 520px) { .einrichtung { margin: 0; border-radius: 0; padding: 18px 16px 24px; } }

/* 2.4: WhatsApp-Vorschau mit Bausteinen */
.teilen-optionen { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.teilen-optionen .schalter { font-size: 14px; }
.teilen-box textarea { min-height: 200px; }
.teilen-box { max-height: 92vh; overflow: auto; }

/* 2.5: eine WhatsApp-Nachricht */
.start-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.start-kopf .nachricht-knopf { flex: 0 0 auto; margin-bottom: 14px; }

/* ---------- Version 2.6 ---------- */
/* Neu für dich */
.neu-fuer-dich { border-top: 4px solid var(--blau); }
.neu-fuer-dich h2 { margin: 0 0 8px; font-size: 18px; }
.neu-fuer-dich h3 { margin: 14px 0 6px; font-size: 15px; }
.neu-liste, .zahl-liste { list-style: none; margin: 0; padding: 0; }
.neu-liste li + li, .zahl-liste li + li { border-top: 1px solid var(--grau); }
.neu-liste a { display: block; padding: 9px 0; color: inherit; text-decoration: none; font-size: 15px; line-height: 1.4; }
.zahl-liste a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; color: inherit; text-decoration: none; }
.zahl-liste .gut { color: var(--gruen, #1d7a3a); font-weight: 600; white-space: nowrap; }
.zahl-liste .offen-betrag { color: var(--rot); font-weight: 700; white-space: nowrap; }

/* Bitte zurückmelden: eine Karte statt vieler einzelner Hinweise */
.rueckmelde-karte h2 { margin: 0 0 6px; font-size: 18px; }
.rueckmelde-karte a.termin-hinweis { box-shadow: none; border-left: 0; border-radius: 0; margin: 0; padding: 11px 0; background: none; }
.rueckmelde-karte a.termin-hinweis + a.termin-hinweis { border-top: 1px solid var(--grau); }
.rueckmelde-karte a.termin-hinweis.dringend strong { color: var(--rot); }

/* Sprungmarken auf der Infos-Seite */
.sprungmarken { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 10px; margin: -4px 0 8px; background: var(--grau); scrollbar-width: none; }
.sprungmarken::-webkit-scrollbar { display: none; }
.sprungmarken button { flex: 0 0 auto; border: 1px solid var(--blau); background: var(--weiss, #fff); color: var(--blau); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sprungmarken .zahl { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--blau); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
#sp-infos, #sp-termine, #sp-abfragen, #sp-geheim { scroll-margin-top: 64px; }

/* Antwort ändern: eingeklappt, wenn schon geantwortet */
.aendern-klappe > summary { cursor: pointer; color: var(--blau); font-weight: 600; margin: 2px 0 4px; }
.aendern-klappe[open] > summary { margin-bottom: 10px; }

/* Offene Zahlungen für die Kasse */
.zahlungen-offen { background: var(--gelb-hell, #fff6db); border-radius: 10px; padding: 10px 12px; }
.zahlungen-offen summary { cursor: pointer; }
.zahlungen-offen .liste li { align-items: center; gap: 8px; flex-wrap: wrap; }

/* Verwaltung in Gruppen */
.verwaltung-gruppe { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-leise, #5b6b7b); margin: 26px 0 8px; }

/* Startseite: Kopf mit WhatsApp-Knopf */
.start-kopf h1 { margin-bottom: 14px; }

/* Kassenbericht */
.bericht h1 { font-size: 24px; margin: 4px 0 2px; }
.bericht table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; }
.bericht th, .bericht td { padding: 6px 6px; border-bottom: 1px solid var(--grau, #e5eaf0); text-align: left; vertical-align: top; }
.bericht .betrag { text-align: right; white-space: nowrap; }
.bericht-summe { max-width: 460px; }
.bericht-summe tr.summe td { font-weight: 700; border-top: 2px solid #333; border-bottom: 0; }
.bericht-kats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px; }
.bericht h3 { margin: 14px 0 4px; font-size: 16px; }
.unterschriften { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; font-size: 13px; }
.unterschriften div { border-top: 1px solid #333; padding-top: 6px; }
@media print {
  header, nav, footer, .unten-nav, #unten-nav, .nicht-drucken, #demo-leiste, .toast { display: none !important; }
  body { background: #fff !important; }
  main, #inhalt { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .bericht { font-size: 12px; color: #000; }
  .bericht tr { break-inside: avoid; }
}
/* Abstand der Startseiten-Karten aus 2.6 wie bei den übrigen Karten */
.rueckmelde-karte, .neu-fuer-dich { margin-bottom: 16px; }
/* Ausgeschaltete Bereiche nie im Menü zeigen, auch nicht bei Trainer- oder Spieler-Regeln */
body .nav a[hidden][href], body .unten-nav a[hidden][href] { display: none !important; }

/* ---------- Version 2.7: Teilmannschaften ---------- */
.marke-team { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 6px; background: var(--blau); color: #fff; font-size: 13px; font-weight: 700; vertical-align: 2px; letter-spacing: .02em; }
.team-filter { margin-top: 8px; }
.spiele-kopf { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.spiele-kopf .team-filter { margin-top: 0; }
.kader-team { width: auto; min-width: 84px; padding: 4px 8px; font-size: 14px; margin-left: auto; margin-right: 10px; }
/* 2.8: Spiele ohne Teilmannschaft zuordnen */
.zuordnung-karte { border-left: 4px solid var(--rot); }
.zuordnung-karte h2 { font-size: 17px; margin: 0 0 6px; }
.zuordnung-karte .liste li { gap: 8px; flex-wrap: wrap; align-items: center; }
.zuordnung-karte select { width: auto; min-width: 150px; }

/* 2.9: Kader nach Teilmannschaft */
.kader-gruppe { margin-bottom: 12px; }
.kader-gruppe > strong { display: block; margin-bottom: 6px; font-size: 14px; }
.kader-zuordnen summary { cursor: pointer; }
.kader-zuordnen .liste li { align-items: center; }
.team-filter + .karte, .team-filter + .hinweis { margin-top: 12px; }
/* ===== Daten-Score (ab 2.9), Regeln aus /daten-score.js ===== */
.ds-kopf { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 4px 0 12px; }
.ds-skala { display: flex; align-items: center; gap: 3px; }
.ds-seg { width: 30px; height: 30px; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: rgba(0, 0, 0, .55); background: var(--c); opacity: .35; border-radius: 6px; }
.ds-seg:first-child { border-radius: 10px 6px 6px 10px; }
.ds-seg:last-child { border-radius: 6px 10px 10px 6px; }
.ds-seg.an { opacity: 1; width: 42px; height: 42px; font-size: 24px; color: #111; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.ds-titel { margin: 0; font-size: 16px; }
.ds-vorschau { background: var(--blau-hell); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.ds-vorschau .ds-kopf { margin: 0; }
.ds-karte h3 { margin: 18px 0 8px; }
.ds-zettel { border: 1px solid var(--grau-linie); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; background: var(--weiss); }
.ds-zettel summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ds-zettel dl { margin: 10px 0 0; font-size: 14px; }
.ds-zettel dt { font-weight: 700; margin-top: 8px; }
.ds-zettel dd { margin: 2px 0 0; color: var(--text-leise); }
.ds-zettel ul { margin: 4px 0 0; padding-left: 18px; }
.ds-chip { display: inline-block; min-width: 28px; text-align: center; font-weight: 700; font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.ds-chip.g0 { background: #ddf2e6; color: #14653b; }
.ds-chip.g1 { background: #e8f4d6; color: #466b1c; }
.ds-chip.g2 { background: #fcebc8; color: #7a5300; }
.ds-chip.g3 { background: #fadad5; color: #8a1c10; }
