/* KidzcApp – seitenspezifische Stile des Web-Admins.
   Rahmen, Navigation und Bausteine (Kopf, Kontextleiste, Reiter, .tabelle, .kn, .kachel …) stehen in
   rahmen.css; Farben/Schriften kommen aus dem gewählten Theme (themes/*.css). Dieser Block bildet die
   älteren Klassen (table.liste, a.knopf, .iconbtn, .formular …) auf dieselben Variablen ab, damit
   alle Seiten „wie aus einem Stück“ wirken. */
:root {
  /* Alte Variablennamen als Aliase auf das Theme – Rest der Datei bleibt unverändert nutzbar. */
  --blau: var(--a);
  --dunkel: var(--t);
  --grau: var(--t2);
  --rahmen: var(--r);
  --hell: var(--f);
}

/* Tabellen (alte Klasse) im Look von .tabelle */
table.liste { width: 100%; border-collapse: collapse; background: var(--f2); border: 1px solid var(--r); border-radius: var(--radius); overflow: hidden; }
table.liste th, table.liste td { padding: 0.55rem 0.75rem; text-align: left; border-bottom: 1px solid var(--r); vertical-align: middle; }
table.liste th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--t2); background: var(--tab-kopf); }
table.liste tbody tr:last-child td { border-bottom: 0; }
table.liste tbody tr:hover { background: var(--a2); }
table.liste input, table.liste select { padding: 0.35rem; font-size: 0.9rem; }
table.liste button { padding: 0.3rem 0.7rem; font-size: 0.85rem; }

/* Formulare */
.formular { background: var(--f2); border: 1px solid var(--r); border-radius: var(--radius-gross); padding: 1rem 1.25rem; margin-top: 1rem; }
form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 28rem; }
label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; font-weight: 600; }
input, textarea { padding: 0.5rem; border: 1px solid var(--r); border-radius: var(--radius-klein); font-size: 1rem; font-family: var(--schrift); background: var(--f2); color: var(--t); }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--a) 35%, transparent); outline-offset: 0; }
select { padding: 0.5rem; border: 1px solid var(--r); border-radius: var(--radius-klein); font-size: 1rem; background: var(--f2); color: var(--t); font-family: var(--schrift); }
button {
  align-self: flex-start; padding: 0.5rem 1.1rem; background: var(--a); color: #fff; border: 1px solid var(--a);
  border-radius: var(--radius-klein); font-size: 0.95rem; font-weight: 600; font-family: var(--schrift); cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
button:hover { background: var(--a-dunkel); border-color: var(--a-dunkel); }
button.sekundaer { background: var(--f2); color: var(--a); }
button.sekundaer:hover { background: var(--a2); }
.fehler { color: var(--fehler); font-weight: 600; }
.formular-aktionen { display: flex; align-items: center; gap: 0.75rem; }
.formular h2 { font-size: 1.05rem; margin: 0.25rem 0 0; }
fieldset.auswahl { display: flex; flex-direction: column; gap: 0.4rem; border: 1px solid var(--r); border-radius: var(--radius-klein); padding: 0.75rem 1rem; margin: 0; }
fieldset.auswahl legend { font-weight: 600; font-size: 0.9rem; padding: 0 0.35rem; }
fieldset.auswahl .hinweis { margin: 0 0 0.4rem; }
.ak-gruppe { margin-bottom: 0.5rem; }
.ak-gruppe label.check.gruppe { font-weight: 600; }
.ak-teams { display: flex; flex-direction: column; gap: 0.3rem; margin: 0.25rem 0 0 1.4rem; }
.grau { color: var(--t2); font-weight: normal; }

/* Aktionsleiste über einer Tabelle: links Gruppe, rechts ein Button */
.aktionsleiste { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0.5rem 0 1rem; flex-wrap: wrap; }
.aktionsleiste .links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.aktionsleiste h2 { margin: 0; }

/* Login (eigene Seite ohne Rahmen) */
.login-seite { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login-box { background: var(--f2); border: 1px solid var(--r); border-radius: var(--radius-gross); padding: 2rem; width: 22rem; box-shadow: 0 6px 24px rgba(0,0,0,0.06); }
.login-box h1 { margin: 0; text-align: center; color: var(--a); }
.login-box h1 .marke-bild { margin-inline: auto; }
.login-box .hinweis { text-align: center; color: var(--t2); margin-top: 0.25rem; }
.login-box form { max-width: none; margin-top: 1rem; }
.login-box button { align-self: stretch; justify-content: center; }

/* Detailseiten */
.meta { color: var(--t2); margin-top: -0.25rem; }
h3 { font-size: 1rem; margin: 0 0 0.5rem; text-transform: none; letter-spacing: 0; color: var(--t); }
.hinweis { font-size: 0.85rem; color: var(--t2); }
.ok { color: #146c2e; font-weight: 600; }

/* Aktionen in Tabellen + Inline-Lösch-/Speicher-Buttons */
td.aktion { text-align: right; white-space: nowrap; }
td.aktion form { display: inline; }
button.loeschen { background: var(--f2); color: var(--fehler); border: 1px solid var(--fehler); }
button.loeschen:hover { background: var(--fehler); color: #fff; }

/* Formular in einer Reihe (kompakte Anlege-Formulare) */
form.reihe { flex-direction: row; flex-wrap: wrap; align-items: flex-end; max-width: none; gap: 1rem; }
form.reihe label { flex-direction: column; }
/* Knopf und Felder stehen auf EINER Linie. Das generische `button { align-self: flex-start }` weiter
   oben meint die Spaltenform des Formulars und zieht den Knopf hier sonst nach oben – dieser Fehler
   ist einzeln schon mehrfach nachgebessert worden, deshalb steht die Regel jetzt zentral hier.
   Die gemeinsame Mindesthöhe sorgt dafür, dass Feld und Knopf auch gleich hoch sind. */
form.reihe > button, form.reihe > .kn, form.reihe > a.knopf { align-self: flex-end; }
form.reihe input, form.reihe select, form.reihe > button, form.reihe > .kn, form.reihe > a.knopf {
  min-height: 2.5rem; box-sizing: border-box;
}

/* Checkbox-Zeile (z. B. Altersklassen-Auswahl) */
label.check { flex-direction: row; align-items: center; gap: 0.5rem; font-weight: normal; }
label.check input { width: auto; }

/* Knopf-artiger Link (alte Klasse) im Look von .kn */
a.knopf { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.42rem 0.85rem; background: var(--a); color: #fff; border: 1px solid var(--a); border-radius: var(--radius-klein); text-decoration: none; font-weight: 600; white-space: nowrap; }
a.knopf:hover { background: var(--a-dunkel); border-color: var(--a-dunkel); }
a.knopf.sekundaer { background: var(--f2); color: var(--a); }
a.knopf.sekundaer:hover { background: var(--a2); }

/* Icons + Icon-Buttons (alte Klasse) im Look von .ikn */
.icon { vertical-align: -2px; }
a.iconbtn, button.iconbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem;
  width: 30px; height: 30px; padding: 0; border: 1px solid var(--r); border-radius: var(--radius-klein);
  background: var(--f2); color: var(--t2); cursor: pointer; text-decoration: none; font-size: 0.85rem;
}
a.iconbtn:hover, button.iconbtn:hover { border-color: var(--a); color: var(--a); background: var(--f2); }
button.iconbtn.gefahr, a.iconbtn.gefahr { color: var(--fehler); border-color: var(--r); }
button.iconbtn.gefahr:hover, a.iconbtn.gefahr:hover { border-color: var(--fehler); color: #fff; background: var(--fehler); }
/* Funktionslose Schutz-Symbole (VA-Löschschutz-Schloss, Standard-Disziplin-Schild): reine Anzeige. */
button.iconbtn.geschuetzt { cursor: default; }
button.iconbtn.geschuetzt:hover { background: var(--f2); color: var(--t2); border-color: var(--r); }
button.iconbtn.gefahr.geschuetzt:hover { background: var(--f2); color: var(--fehler); }
table.liste td.aktion form { display: inline; }

/* Schutz-Optionen im VA-Bearbeiten-Formular. */
fieldset.schutz { display: flex; flex-direction: column; gap: 0.6rem; border: 1px solid var(--r); border-radius: var(--radius-klein); padding: 0.75rem 1rem; margin: 0; }
fieldset.schutz legend { font-weight: 600; font-size: 0.9rem; padding: 0 0.35rem; }
fieldset.schutz label.checkbox { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; align-items: start; font-size: 0.9rem; cursor: pointer; }
fieldset.schutz label.checkbox input { margin-top: 0.15rem; }

/* Read-only-Banner auf der Erfassungsseite. */
.readonly-banner { display: flex; align-items: center; gap: 0.6rem; margin: 0.5rem 0 0.75rem;
  padding: 0.6rem 0.9rem; border: 1px solid #d9a441; border-radius: var(--radius-klein); background: #fff8e8; color: #7a5200; font-size: 0.9rem; }
.readonly-banner .icon { flex: 0 0 auto; }

/* Editierbarer Gerätename: readonly wirkt wie Text, beim Bearbeiten als Eingabefeld. */
.namensfeld { display: inline; margin: 0; }
.namensfeld input { width: 100%; max-width: 22rem; font: inherit; color: inherit; border: 1px solid transparent; border-radius: var(--radius-klein); background: transparent; }
.namensfeld input:not([readonly]) { border-color: var(--r); background: var(--f2); }

/* Editierbares Riege-Feld auf der Geräte-Seite (gleiche Optik wie .namensfeld). */
.riegenfeld { width: 4.5rem; font: inherit; color: inherit; border: 1px solid transparent; border-radius: var(--radius-klein); background: transparent; padding: 0.35rem; }
.riegenfeld:not([readonly]) { border-color: var(--r); background: var(--f2); }
.riegenfeld[readonly] { -moz-appearance: textfield; appearance: textfield; }

/* Aufklappbares Hinzufügen-Formular (Plus) */
details.zufuegen { margin-top: 0.75rem; }
details.zufuegen > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--a); font-weight: 600;
}
details.zufuegen > summary::-webkit-details-marker { display: none; }
details.zufuegen[open] > summary { margin-bottom: 0.5rem; }

/* Unterüberschriften im Inhalt bekommen Luft nach oben. */
main.inhalt h2 { margin-top: 1.75rem; }
main.inhalt h1 + h2, main.inhalt .kopfzeile + h2, main.inhalt .box h2, main.inhalt .kopfzeile h2, main.inhalt .aktionsleiste h2 { margin-top: 0; }

/* Schlüssel-Wert-Block (gestapelt, z. B. Team-Infos) */
dl.kv { margin: 0.25rem 0 1rem; }
dl.kv > div { display: flex; gap: 0.5rem; padding: 0.1rem 0; }
dl.kv dt { margin: 0; min-width: 13rem; color: var(--grau); font-weight: 600; white-space: nowrap; }
dl.kv dd { margin: 0; }

/* Sortierbare Tabellen (Drag & Drop am Griff) */
table.sortierbar tbody tr.wird-gezogen { opacity: 0.5; background: #eef4ff; }
td.griff { width: 1.6rem; text-align: center; color: var(--grau); cursor: grab; }
td.griff:active { cursor: grabbing; }

/* Vereinslogo: kleine Vorschau in der Liste, Original verlinkt. */
table.liste td.logo-zelle { width: 7rem; text-align: center; }
table.liste th.logo-kopf { text-align: center; }
/* Vereins-Bearbeiten: Name/URL-Inputs füllen ihre Zelle. */
.verein-liste td input { width: 100%; }
/* Adresse als kompakte zweite Zeile je Verein (nur Bearbeiten); mit der Hauptzeile gruppiert. */
.verein-liste tr.verein-haupt > td,
.verein-liste tr.verein-adresse > td,
.verein-liste tr.teil-haupt > td,
.verein-liste tr.teil-adresse > td { border-bottom: none; }
.verein-liste tr.teil-neu > td { border-bottom: 1px solid var(--rahmen); }
.verein-liste tr.verein-adresse > td { padding-top: 0.15rem; }
/* Anzeige: mehrere Logos nebeneinander, mehrere Links untereinander (Startgemeinschaft). */
.logo-stack { display: flex; gap: 0.4rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.url-zelle > div { margin: 0.1rem 0; }
/* Teilvereine (Bearbeiten): leicht abgesetzter Block je Verein. */
.verein-liste tr.teil-haupt > td,
.verein-liste tr.teil-adresse > td,
.verein-liste tr.teil-neu > td { background: #f6f9fd; }
.teil-tag { display: block; font-size: 0.7rem; color: var(--grau); margin-bottom: 0.15rem; }
.verein-liste .teil-neu-form { gap: 0.5rem; align-items: center; margin: 0.2rem 0; }
.verein-liste .teil-neu-form input { width: auto; flex: 1 1 18rem; }
.adr-felder { display: flex; gap: 0.5rem; }
.adr-felder input { width: auto; }
.adr-strasse { flex: 3 1 0; }
.adr-ort { flex: 2 1 0; }
.adr-nr { flex: 0 0 4.5rem; }
.adr-plz { flex: 0 0 5rem; }
/* Vereinskarte (Leaflet/OSM) unter der Tabelle. */
.vereinskarte { margin-top: 1.75rem; }
.vereinskarte .erl-kopf form { display: inline; margin: 0; }
#vereinskarte { width: 100%; height: 420px; border: 1px solid var(--rahmen); border-radius: 8px; z-index: 0; }
.leaflet-div-icon.kc-pin { background: transparent; border: 0; } /* roter SVG-Pin ohne Leaflet-Standardkasten */
.logo-vorschau { max-height: 40px; max-width: 96px; object-fit: contain; vertical-align: middle; border-radius: 4px; }
.logo-aktionen { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin-top: 0.35rem; }
.logo-aktionen form { display: inline; margin: 0; }
.logo-upload label.iconbtn { cursor: pointer; }

/* DLV-Check */
td.dlv { text-align: center; }
.dlv-ok { color: #146c2e; font-weight: 700; }
.dlv-nok { color: var(--fehler); font-weight: 700; }

/* Import-Ergebnis */
.ok { color: #146c2e; font-weight: 600; }
ul.abweichungen { margin: 0.25rem 0 0.5rem 1rem; color: var(--fehler); font-size: 0.9rem; }

/* Inline-Umschalter (z. B. Einzelwertung je Altersklasse in der Tabelle) */
.inline-toggle { display: inline; margin: 0; }
.inline-toggle label.check { margin: 0; }

/* Geräte: einmalige Token-Anzeige nach dem Anlegen (auffällig hervorgehoben) */
.tokenbox {
  border: 1px solid var(--blau);
  background: #eef4ff;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}
.tokenbox h2, .tokenbox h3 { margin-top: 0; }
.tokenbox code {
  font-size: 1rem;
  background: #fff;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--rahmen);
  border-radius: 4px;
  user-select: all;
}
.qr { margin-top: 0.75rem; }
.qr #qr-code, .qr #dl-qr { display: inline-block; background: #fff; padding: 0.5rem; border-radius: 4px; }

/* Zwei Abschnitte der Geräteseite (App-Download / Gerätekopplung). */
.geraete-block { margin: 1.25rem 0; padding-top: 1rem; border-top: 1px solid var(--rahmen); }
.geraete-block:first-of-type { border-top: 0; padding-top: 0; }
.geraete-block h2 { margin-bottom: 0.4rem; }

/* --- Rahmenzeitplan (Timetable) ------------------------------------------- */
.zp-palette {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  background: #fff; border: 1px solid var(--rahmen); border-radius: 8px; padding: 0.6rem 0.8rem; margin: 0.5rem 0;
}
.zp-palette-titel { color: var(--grau); font-size: 0.85rem; }
.zp-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.zp-chip {
  padding: 0.3rem 0.6rem; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
  cursor: grab; border: 1px solid rgba(0,0,0,0.12); user-select: none; white-space: nowrap;
}
.zp-chip:active { cursor: grabbing; }
.zp-radierer {
  margin-left: auto; padding: 0.3rem 0.6rem; border-radius: 6px; font-size: 0.85rem;
  border: 1px dashed var(--grau); color: var(--grau); cursor: grab; user-select: none;
}
.zp-block-liste { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.75rem; }
.zp-block-zeile { display: flex; align-items: center; gap: 0.5rem; }
.zp-block-zeile input[type=text] { flex: 1; min-width: 8rem; }
.zp-block-zeile input[type=color] { width: 2.5rem; height: 2rem; padding: 0; border: 1px solid var(--rahmen); border-radius: 4px; }
.zp-block-zeile .loeschen { padding: 0.2rem 0.5rem; }
.zp-block-neu { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.zp-block-neu input[type=color] { width: 2.5rem; height: 2.4rem; padding: 0; border: 1px solid var(--rahmen); border-radius: 4px; }

/* Direkter Adder in der Ziehen-Box: eigenen Block anlegen. */
.zp-neu-inline { display: flex; align-items: center; gap: 0.35rem; padding-left: 0.6rem; border-left: 1px solid var(--rahmen); }
.zp-neu-inline input[type=color] { width: 2rem; height: 2rem; padding: 0; border: 1px solid var(--rahmen); border-radius: 4px; }
.zp-neu-inline input[type=text] { width: 9rem; padding: 0.25rem 0.4rem; }

.zp-grid-wrap { overflow-x: auto; }
table.zp-grid { border-collapse: collapse; background: #fff; border: 1px solid var(--rahmen); width: 100%; }
table.zp-grid caption { padding: 0.75rem; }
table.zp-grid th, table.zp-grid td { border: 1px solid var(--rahmen); padding: 0.25rem 0.35rem; vertical-align: top; }
table.zp-grid thead th { background: #eef2f7; text-align: left; position: sticky; top: 0; }
.zp-zeit-h { width: 7.5rem; }
.zp-riege-nr { font-weight: 700; font-size: 0.9rem; }
.zp-riege-nr .zp-ak { color: var(--blau); }
.zp-fuehrer { font-size: 0.85rem; }
.zp-teams { font-size: 0.78rem; color: var(--grau); cursor: help; }
.zp-zeit { white-space: nowrap; }
.zp-zeit-inp { width: 6rem; padding: 0.25rem; font-size: 0.85rem; }
.zp-zeile-del { padding: 0.1rem 0.4rem; margin-left: 0.25rem; }
td.zp-zelle { min-width: 6.5rem; height: 2.2rem; }
td.zp-ueber { outline: 2px dashed var(--blau); outline-offset: -2px; background: #eef4ff; }
.zp-zelle-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 0.25rem;
  padding: 0.3rem 0.45rem; border-radius: 5px; font-size: 0.82rem; font-weight: 600;
  border: 1px solid rgba(0,0,0,0.12); cursor: grab; min-height: 1.4rem;
}
.zp-zelle-x { cursor: pointer; opacity: 0.6; font-weight: 700; }
.zp-zelle-x:hover { opacity: 1; }
button.iconbtn-text { background: #fff; color: var(--blau); border: 1px solid var(--blau); display: inline-flex; align-items: center; gap: 0.35rem; }
button.iconbtn-text:hover { background: #eef4ff; }
.qr .hinweis { margin: 0.35rem 0 0; }

/* Disziplin-Infos im Katalog: Info-Icon je Zeile + ausklappbarer Bereich mit zwei Boxen. */
/* Extra-Abstand vor dem letzten (roten) Icon – Mülleimer steckt in einem <form>, das
   Löschschutz-Schloss ist ein direktes <button>: beide sollen gleich weit abgesetzt sein. */
td.aktion > .iconbtn + form,
td.aktion > .iconbtn + button.geschuetzt { margin-left: 0.3rem; }
.disz-info { margin: 1.5rem 0; }
.disz-info-panel { border: 1px solid var(--rahmen); border-radius: 8px; padding: 1rem 1.25rem; background: #fbfcfe; }
.disz-info-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.disz-info-kopf h2 { margin: 0; font-size: 1.15rem; }
.disz-info-kopf .dim { color: #6b7a90; font-weight: normal; font-size: 0.9rem; }
.disz-info-form { max-width: none; }
.disz-info-boxen { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.disz-box { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; }
.disz-box > span { font-size: 0.9rem; }
.disz-box textarea {
  width: 100%; padding: 0.6rem 0.7rem; font: inherit; font-weight: normal; line-height: 1.45;
  border: 1px solid var(--rahmen); border-radius: 6px; resize: vertical; box-sizing: border-box;
}
.disz-box textarea[readonly] { background: #f4f6fa; color: #333; }
.disz-info-form > p { margin: 0.9rem 0 0; }
@media (max-width: 760px) { .disz-info-boxen { grid-template-columns: 1fr; } }

/* WYSIWYG-Editor für die Fachtexte (Fett/Kursiv/Unterstrichen + Aufzählung). */
.wysiwyg { border: 1px solid var(--rahmen); border-radius: 6px; background: #fff; overflow: hidden; font-weight: normal; }
.wysiwyg-bar { display: flex; gap: 4px; padding: 5px; background: #eef2f7; border-bottom: 1px solid var(--rahmen); }
.wysiwyg-btn { display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.2rem; height: 2rem; padding: 0 0.5rem; border: 1px solid #b7c1cf; border-radius: 5px;
  background: #fff; color: #1b2430; cursor: pointer; font-size: 1.02rem; line-height: 1; }
.wysiwyg-btn:hover { background: #dbe6f5; border-color: #6f86a6; }
.wysiwyg-btn:active { background: #c7d7ee; }
.wysiwyg-ed { min-height: 7rem; padding: 0.55rem 0.7rem; outline: none; font: inherit; font-weight: normal; line-height: 1.45; }
.wysiwyg-ed[contenteditable="false"] { background: #f4f6fa; color: #333; }
.wysiwyg-ed.leer::before { content: attr(data-ph); color: #9aa1a9; }
.wysiwyg-ed ul, .wysiwyg-ed ol { margin: 0.2rem 0; padding-left: 1.4rem; }
.wysiwyg-ed p { margin: 0 0 0.4rem; }

/* „Erläuterungen"-Abschnitt unter dem Disziplin-Katalog (Anzeige + per Stift editierbar). */
.erlaeuterungen { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rahmen); }
.erl-kopf { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.erl-kopf h1, .erl-kopf h2 { margin: 0; }
/* Vereins-Anzeige: URL klickbar, nur sehr lange Links per Ellipsis kürzen. */
.url-zelle a { display: inline-block; max-width: 38rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
/* Anzeige-Tabelle: voller Text gut lesbar, Zellen oben ausgerichtet. */
.erlaeuterungen table.liste { margin: 1rem 0; }
.erl-tabelle th, .erl-tabelle td { vertical-align: top; line-height: 1.45; }
.erl-tabelle th:first-child, .erl-tabelle td:first-child { white-space: nowrap; }
/* Fließtext + Aufzählung: volle Tabellenbreite, hängender Einzug bei Zeilenumbruch. */
.erl-text { line-height: 1.55; }
.erl-text p { margin: 0.6rem 0 0.4rem; }
.erl-text p:first-child { margin-top: 0; }
.erl-liste { list-style: none; margin: 0.2rem 0 0.6rem; padding: 0; }
.erl-liste li { position: relative; padding-left: 1.4rem; margin: 0.25rem 0; }
.erl-liste li::before { content: "•"; position: absolute; left: 0.25rem; color: var(--blau); }
/* Bearbeiten-Formular */
.erl-form { max-width: none; }
.erl-form[hidden] { display: none; } /* überschreibt das generische "form { display:flex }" */
.erl-form table.liste input { width: 100%; }
.erl-feld { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; }
.erl-feld > span { font-size: 0.9rem; }
.erl-feld textarea {
  width: 100%; font: inherit; font-weight: normal; line-height: 1.5; padding: 0.6rem 0.7rem;
  border: 1px solid var(--rahmen); border-radius: 6px; resize: vertical; box-sizing: border-box;
}
/* VA-Notizblock: schlichtes, breites Textfeld. */
.notizen-form { max-width: none; }
.notizen-feld {
  width: 100%; box-sizing: border-box; font: inherit; line-height: 1.5;
  padding: 0.7rem 0.8rem; border: 1px solid var(--rahmen); border-radius: 6px; resize: vertical;
}

.erl-aktionen { display: flex; gap: 0.6rem; align-items: center; }
.erl-aktionen button.sekundaer { background: #fff; color: var(--blau); border: 1px solid var(--blau); }
.erl-aktionen button.sekundaer:hover { background: #eef4ff; }

/* Hinweis-Box „Ø-Auffüllung" unter den Erläuterungen. */
.erl-hinweis { margin-top: 1.5rem; padding: 1rem 1.25rem; background: #f5f8fc; border-left: 4px solid var(--blau); border-radius: 6px; }
.erl-hinweis h3 { margin: 0 0 0.5rem; color: var(--blau); }
.erl-hinweis p { margin: 0.55rem 0; }
.erl-formel { font-style: italic; background: #fff; border: 1px solid var(--rahmen); border-radius: 4px; padding: 0.4rem 0.7rem; display: inline-block; }
.erl-hinweis-tab { width: auto; margin: 0.5rem 0; }
.erl-hinweis-tab td, .erl-hinweis-tab th { padding: 0.35rem 0.9rem; }
.erl-hinweis-tab td:not(:first-child), .erl-hinweis-tab th:not(:first-child) { text-align: right; }
.erl-hinweis-warn td { color: #a3322a; }

/* Erfassung: Gesamtwert-Spalte + Wertungs-Markierung */
table.erfassung th.gesamt-kopf { text-align: right; }
table.erfassung td.gesamt {
  text-align: right; font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* Beste N: ganze Zeile dezent hinterlegt (nicht aufdringlich). */
table.erfassung tbody tr.wertung td { background: #eef6ee; }
table.erfassung tbody tr.wertung:hover td { background: #e6f1e6; }
/* Gesamtwerte, die nicht in die Wertung kommen: ausgegraut, aber lesbar. */
table.erfassung td.gesamt-grau { color: #98a0a8; font-weight: 500; }
/* Einzelner Versuch, der nicht gewertet wird (Streichergebnis): leicht ausgegraut, weiter editierbar. */
table.erfassung input.wert-streich { color: #9aa0a6; background: #f7f8fa; border-color: #e2e6ec; }
/* Live-Speichern-Rückmeldung je Feld: grünes Aufblitzen (übernommen) / roter Rahmen (fehlgeschlagen). */
table.erfassung input.feld-ok { background: #e6f6ea; border-color: #79c592; transition: background .2s, border-color .2s; }
table.erfassung input.feld-fehler { background: #fdecea; border-color: #e0796f; }
/* Ø-Auffüllung: fiktive Person bei Unterbesetzung (Team < Team-N), dunkelrot zur Nachvollziehbarkeit. */
table.erfassung tr.auffuellung td { background: #fbf2f0; }
table.erfassung td.auffuell-label { text-align: right; font-weight: 600; color: #a3322a; }
table.erfassung td.auffuell-wert { color: #a3322a; }

/* Summenzeile unter der Gesamt-Spalte. */
table.erfassung tfoot td { border-top: 2px solid var(--rahmen); background: #f6f8fa; }
table.erfassung tfoot td.summe-label { text-align: right; font-weight: 600; color: #444; }
table.erfassung tfoot td.summe-wert { text-align: right; font-weight: 700; }

/* --- Wertungs-Engine-Seite --- */
.engine-form { display: flex; flex-direction: column; gap: 1rem; max-width: 640px; }
.engine-form fieldset { border: 1px solid var(--rahmen); border-radius: 8px; padding: 0.75rem 1rem 1rem; margin: 0; }
.engine-form legend { font-weight: 600; padding: 0 0.35rem; }
.engine-wahl { display: flex; flex-direction: column; gap: 0.6rem; }
.radio-karte { display: flex; flex-direction: row; gap: 0.6rem; align-items: flex-start; padding: 0.6rem 0.75rem; border: 1px solid var(--rahmen); border-radius: 6px; cursor: pointer; font-weight: normal; }
.radio-karte:has(input:checked) { border-color: #1f6feb; background: #f1f6ff; }
.radio-karte input { margin-top: 0.2rem; }
.radio-karte .meta { margin-top: 0.15rem; }
.engine-leistung .feld { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.9rem; }
.engine-leistung .feld:last-child { margin-bottom: 0; }
.engine-leistung .feld-titel { font-weight: 600; }
.engine-leistung .optionen { display: flex; gap: 1rem; align-items: center; margin-top: 0.25rem; flex-wrap: wrap; }
.engine-leistung .optionen label { display: inline-flex; flex-direction: row; gap: 0.3rem; align-items: center; font-weight: normal; }
.engine-form[data-readonly] input, .engine-form[data-readonly] select { pointer-events: none; opacity: 0.7; }

/* --- Leistungswertung auf der Erfassungsseite --- */
.leistung-info { border: 1px solid #b9d4ff; background: #f1f6ff; border-radius: 8px; padding: 0.6rem 0.9rem; margin: 0 0 1rem; font-size: 0.9rem; }
.leistung-info .anker-liste { margin: 0.35rem 0 0; padding-left: 1.1rem; columns: 2; }
table.erfassung th.leistung-kopf, table.erfassung td.leistung-punkte { text-align: right; }
table.erfassung td.leistung-punkte { font-weight: 700; color: #1f4f9e; background: #f5f9ff; }
/* Gesperrtes Feld (z. B. Biathlon-„Wurftreffer"): sieht aus wie ein Eingabefeld, ist aber ausgegraut & nicht editierbar. */
table.erfassung input.wert-gesperrt {
  color: #9aa0a6; background: #eef0f3; border-color: #e2e6ec; cursor: not-allowed; text-align: center;
}
.disz-engine-label { font-weight: 600; font-size: 0.85rem; margin: 0.6rem 0 0.25rem; color: #444; }

/* Hinweis-/Empfehlungsbox (z. B. Team-N-Empfehlung auf der AK-Seite). */
.tipp { border: 1px solid #cde3c2; background: #f3faef; border-radius: 8px; padding: 0.55rem 0.85rem; margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.45; }
.tipp .meta { margin: 0; }

/* Rechenweg-Box auf der Erfassungsseite (Beispiel-Berechnung erster Junge/erstes Mädchen). */
.rechenweg { border: 1px solid var(--rahmen); border-radius: 8px; padding: 0.6rem 0.9rem 0.8rem; margin: 0 0 1rem; background: #fafbfc; }
.rechenweg h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.rechenweg .rw-bsp { margin-top: 0.5rem; }
.rechenweg .rw-name { font-weight: 600; }
.rechenweg .rw-schritte { margin: 0.2rem 0 0; padding-left: 1.3rem; }
.rechenweg .rw-schritte li { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; line-height: 1.5; }
.rechenweg .rw-legende { font-size: 0.82rem; color: var(--grau); line-height: 1.5; margin: 0 0 0.4rem; }
.rechenweg .rw-legende p { margin: 0 0 0.35rem; }
.rechenweg .rw-legende p:last-child { margin-bottom: 0; }
.rechenweg .rw-legende sup { font-size: 0.7em; }

/* Gestylte mehrzeilige Mouse-over-Herleitung je Punktzelle (Auswertung + Erfassung). */
td.hz { position: relative; cursor: help; text-decoration: underline dotted #9aa7b4; text-underline-offset: 3px; }
td.hz > .hz-box {
  display: none; position: absolute; z-index: 30; left: 50%; transform: translateX(-50%);
  top: 100%; margin-top: 7px; background: #1f2733; color: #fff; padding: 0.5rem 0.7rem;
  border-radius: 7px; white-space: nowrap; text-align: left; box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  font-weight: 400; pointer-events: none;
}
td.hz:hover > .hz-box { display: block; }
td.hz .hz-line { display: block; line-height: 1.5; font-size: 0.85rem; }
td.hz .hz-line:first-child { color: #cdd7e2; }
td.hz .hz-line:last-child { font-weight: 700; margin-top: 0.15rem; }
td.hz > .hz-box::before {
  content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: #1f2733;
}
/* Rechte Spalte (letzte Zelle): Box rechtsbündig, damit sie nicht über den Rand läuft. */
td.hz:last-child > .hz-box { left: auto; right: 0; transform: none; }
td.hz:last-child > .hz-box::before { left: auto; right: 12px; transform: none; }

/* Team-Überschrift/-Zelle nicht umbrechen (Teamname + Verein in einer Zeile). */
.team-titel { white-space: nowrap; }
table.liste td.team-name { white-space: nowrap; }

/* --- Catering (Verkaufsliste) --- */
.catering-abschnitt { position: relative; margin: 2.4rem 0 2rem; padding: 1.5rem 1rem 1rem; border: 1px solid var(--rahmen); border-left: 4px solid var(--blau); border-radius: 8px; background: #fafcff; }
.catering-abschnitt-kopf { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.catering-abschnitt-kopf h2 { margin: 0; font-size: 1.35rem; }
.catering-abschnitt-kopf .catering-abschnittname { font-size: 1.25rem; font-weight: 700; padding: 0.4rem 0.55rem; min-width: 18rem; }
.catering-abschnitt-kopf form { display: inline; margin: 0; }
/* „Catering N"-Marker sitzt auf der oberen Kante des Rechtecks (halb außerhalb), etwas größer. */
.catering-folie-tag { position: absolute; top: -0.95rem; left: 1.1rem; font-size: 0.95rem; font-weight: 800; color: var(--blau); background: #e7f0ff; border: 1px solid #c5dbff; border-radius: 999px; padding: 0.25rem 0.9rem; white-space: nowrap; box-shadow: 0 1px 3px rgba(20,40,80,.12); }
.catering-kat { margin: 1.25rem 0 1.75rem; }
.catering-kat-kopf h3 { margin: 0; font-size: 1.05rem; }
.catering-kat-kopf { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.4rem; }
.catering-kat-kopf h2 { margin: 0; font-size: 1.15rem; }
.catering-kat-kopf .catering-katname { font-size: 1.1rem; font-weight: 600; padding: 0.35rem 0.5rem; min-width: 16rem; }
.catering-kat-kopf form { display: inline; margin: 0; }
table.liste th.num, table.liste td.num { text-align: right; white-space: nowrap; }
.catering-preis { width: 4.5rem; text-align: right; }
.catering-preis-feld { display: inline-flex; align-items: center; gap: 0.3rem; }
th.catering-beamer-sp, td.catering-beamer-sp { width: 4.5rem; text-align: center; white-space: nowrap; }
/* „Hinzufügen"-Zeile: alles in einer Reihe, an der Grundlinie ausgerichtet. */
form.catering-neu { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-top: 0.6rem; max-width: none; }
form.catering-neu label { display: flex; flex-direction: column; gap: 0.2rem; }
/* Nur noch der Zeilenumbruch – die Höhenangleichung macht jetzt die allgemeine `form.reihe`-Regel. */
form.catering-neu button { align-self: flex-end; white-space: nowrap; }
/* Platzhalter in Breite der (entfernten) Beamer-Checkbox-Spalte – hält die Felder an ihrer Position. */
.catering-neu-spacer { flex: 0 0 4.5rem; }

/* Bildersammelbox je Abschnitt (zwischen „Catering N"-Marker und Inhalt). */
.catering-bildbox { margin: 0 0 1rem; padding: 0.6rem 0.75rem; border: 1px dashed #c5dbff; border-radius: 8px; background: #f3f8ff; }
.catering-bildbox-titel { font-size: 0.8rem; font-weight: 700; color: var(--blau); margin-bottom: 0.5rem; }
.catering-bildbox-sub { font-weight: 400; color: var(--grau); }
/* Positions-Board (Mini-Beamer): 8 Plätze wie auf der Folie, Drag&Drop zum Umsortieren. */
.catering-board { position: relative; height: 17rem; margin: 0.25rem 0 0.6rem; border: 1px solid var(--rahmen); border-radius: 8px;
  background: radial-gradient(circle at 50% 0%, #16335e 0%, #0b1623 70%); overflow: hidden; }
.cb-mitte { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); width: 42%; height: 52%;
  border: 1px dashed rgba(255,255,255,.25); border-radius: 6px; color: rgba(255,255,255,.4); font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center; }
.cb-slot { position: absolute; width: 5rem; height: 3.6rem; border: 1px dashed rgba(255,255,255,.3); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; }
.cb-slot .cb-nr { color: rgba(255,255,255,.45); font-size: 0.95rem; font-weight: 800; }
.cb-slot.cb-belegt { border-color: transparent; }
.cb-slot.cb-belegt .cb-nr { display: none; }
.cb-slot.cb-over { border-style: solid; border-color: #7bb0ff; background: rgba(123,176,255,.18); }
.cb-slot[data-slot="1"] { left: 2%;  top: 5%; }
.cb-slot[data-slot="2"] { right: 2%; top: 5%; }
.cb-slot[data-slot="3"] { left: 2%;  top: 34%; }
.cb-slot[data-slot="4"] { right: 2%; top: 34%; }
.cb-slot[data-slot="5"] { left: 2%;  top: 63%; }
.cb-slot[data-slot="6"] { right: 2%; top: 63%; }
.cb-slot[data-slot="7"] { left: 14%; top: 79%; }
.cb-slot[data-slot="8"] { right: 14%; top: 79%; }
.cb-tile { position: relative; width: 100%; height: 100%; cursor: grab; }
.cb-tile img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.cb-tile.cb-drag { opacity: 0.4; }
.cb-del { position: absolute; top: -0.55rem; right: -0.55rem; width: 1.3rem; height: 1.3rem; line-height: 1; padding: 0;
  border: 0; border-radius: 999px; background: var(--fehler); color: #fff; font-size: 0.8rem; cursor: pointer; }
.cb-overflow { display: flex; flex-wrap: wrap; gap: 0.4rem; min-height: 0.5rem; margin-bottom: 0.4rem; }
.cb-overflow .cb-tile { width: 5rem; height: 3.6rem; }
.catering-bild-upload { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; }
.catering-frei-check { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; color: #38465a; }
.catering-bild-btn { display: inline-flex; align-items: center; gap: 0.25rem; cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--blau); border: 1px dashed var(--blau); border-radius: 6px; padding: 0.35rem 0.7rem; background: #fff; }
.catering-bild-btn:hover { background: #eef4ff; }

/* „Bildergröße"-Schieberegler über dem ersten Abschnitt (ca. ein Drittel breit). */
.catering-bildgroesse { display: flex; align-items: center; gap: 0.75rem; width: 33%; min-width: 18rem; margin: 0.5rem 0 1.5rem; }
.catering-bildgroesse label { font-weight: 700; white-space: nowrap; }
.catering-bildgroesse input[type=range] { flex: 1; accent-color: var(--blau); height: 6px; }
.catering-bg-wert { min-width: 6.5rem; font-weight: 700; color: var(--blau); }

/* ---------- Anker pflegen (/wertung-anker) ---------- */
/* Hinweis mit Warncharakter – kräftiger als .hinweis, aber keine Fehlermeldung. */
.warnung { color: #8a5a00; background: #fff8e6; border: 1px solid #f0d391; border-radius: 6px; padding: 0.6rem 0.9rem; font-size: 0.9rem; }
.warnung-inline { color: #8a5a00; font-size: 0.8rem; display: block; }
/* Stufe unterhalb der Warnung: brauchbare, aber noch nicht ausreißerfeste Stichprobe. */
.hinweis-inline { color: var(--grau); font-size: 0.8rem; display: block; }

/* Die Ankerseite braucht die volle Inhaltsbreite – das generische "form { max-width: 28rem }" aufheben. */
.anker-va-wahl, .anker-vorschlag, .anker-form, .anker-reset { max-width: none; }

.anker-va-wahl { margin: 1rem 0; }
.anker-va-wahl label { flex-direction: row; align-items: center; gap: 0.5rem; font-weight: 600; }

.anker-vorschlag fieldset { border: 1px solid var(--rahmen); border-radius: 6px; padding: 0.75rem 1rem; margin: 1rem 0; }
.anker-vorschlag legend { font-weight: 600; font-size: 0.9rem; padding: 0 0.35rem; }
/* Referenz-VAs: mehrspaltig, damit auch viele Jahrgänge ohne langes Scrollen sichtbar bleiben.
   flex-direction/font-weight überschreiben das generische "label { flex-direction: column }". */
.anker-referenzen { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0.4rem 1.5rem; margin: 0.75rem 0; }
.anker-referenzen label { flex-direction: row; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: normal; }
.anker-referenzen input[type=checkbox] { width: auto; flex: none; }

/* Erklärung der beiden Stichproben-Schwellen – eingeklappt, damit sie den Ablauf nicht aufhält. */
.anker-schwellen { margin: 0.75rem 0; font-size: 0.9rem; }
.anker-schwellen summary { cursor: pointer; font-weight: 600; }
.anker-schwellen table.anker-schwellen-tabelle { max-width: 46rem; margin: 0.5rem 0; font-size: 0.85rem; }
.anker-schwellen code { background: var(--hell); padding: 0 0.2rem; border-radius: 3px; }

table.anker-tabelle td.anker-wert { white-space: nowrap; }
table.anker-tabelle td.anker-wert input { width: 6rem; padding: 0.35rem; border: 1px solid var(--rahmen); border-radius: 5px; font-size: 0.95rem; }
table.anker-tabelle td.anker-wert input[readonly] { background: var(--hell); color: var(--grau); }
table.anker-tabelle td.anker-herkunft { font-size: 0.8rem; color: var(--grau); }
table.anker-tabelle td.anker-herkunft .meta { display: block; }
table.anker-tabelle tr.anker-warn td { background: #fffdf5; }

/* Kleiner Statusaufkleber: woher der gespeicherte Wert stammt. */
.chip { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
        background: #e8f0fe; color: var(--blau); border: 1px solid #c6dafc; }
.chip-manuell { background: #fff8e6; color: #8a5a00; border-color: #f0d391; }

.anker-aktionen { margin: 1.5rem 0; }
.anker-reset { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rahmen); }

/* --- Sortierbare Spaltenköpfe --- */
th.sortierbar-kopf { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortierbar-kopf:hover { color: var(--blau); }
th.sortierbar-kopf:focus-visible { outline: 2px solid var(--blau); outline-offset: -2px; }
/* Der Pfeil steht immer da, aber nur die aktive Spalte zeigt ihn kräftig – so springt die
   Kopfzeile beim Sortieren nicht in der Breite. */
th.sortierbar-kopf::after { content: "↕"; margin-left: 0.35rem; font-size: 0.8em; opacity: 0.25; }
th.sortierbar-kopf[aria-sort=ascending]::after { content: "↑"; opacity: 1; color: var(--blau); }
th.sortierbar-kopf[aria-sort=descending]::after { content: "↓"; opacity: 1; color: var(--blau); }

/* Zurücksetzen einer einzelnen Zeile auf den berechneten Stand. */
table.anker-tabelle td.anker-zurueck { width: 2.25rem; padding-left: 0; }
/* Flex statt Textzeile: Das ↺ sitzt sonst je nach Schriftart sichtbar schief im Kästchen. */
.anker-zurueck-knopf { display: inline-flex; align-items: center; justify-content: center;
        width: 1.75rem; height: 1.75rem; padding: 0; font-size: 1.15rem; font-weight: 700;
        line-height: 1; color: var(--dunkel);
        background: #f4f6f9; border: 1px solid var(--rahmen); border-radius: 4px; cursor: pointer; }
.anker-zurueck-knopf:hover:not(:disabled) { color: var(--blau); border-color: #c6dafc; background: #e8f0fe; }
/* Gesperrt heißt hier „in dieser Zeile wurde nichts verschoben" – bewusst blass, nicht ausgeblendet. */
.anker-zurueck-knopf:disabled { opacity: 0.3; cursor: default; }

/* --- Verteilungsbilder in der Ankerpflege (/wertung-anker) --- */
/* Das Bild liegt zugeklappt unter seiner Zeile: Die Tabelle bleibt so kompakt wie bisher,
   und wenn es aufgeht, steht es direkt neben den beiden Feldern, die es steuert. */
.chip-neu { background: #eef8f1; color: #146c2e; border-color: #bfe3cb; vertical-align: middle;
        font-size: 0.7rem; }
.anker-diagramm-leiste { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0 0.5rem; }

table.anker-tabelle2 td.anker-auf { width: 1.8rem; padding-right: 0; }
.anker-auf-knopf { width: 1.5rem; padding: 0.1rem 0; font-size: 0.8rem; line-height: 1.4; color: var(--grau);
        background: #f4f6f9; border: 1px solid var(--rahmen); border-radius: 4px; cursor: pointer; }
.anker-auf-knopf:hover { color: var(--blau); border-color: #c6dafc; background: #e8f0fe; }

tr.anker-bild-zeile > td { background: #fbfcfe; padding: 0.5rem 0.75rem 0.75rem 2.5rem; }
.anker-diagramm { max-width: 34rem; }
.anker-svg { display: block; width: 100%; height: auto; touch-action: none; }
.anker-diagramm-fuss { margin: 0.15rem 0 0; }

/* Legende zum Bild. Die Farben sind dieselben wie in anker-diagramm.js (FARBE) – ändert sich dort
   etwas, muss es hier mitgezogen werden. */
.anker-legende { margin: 0.25rem 0 1rem; font-size: 0.9rem; }
.anker-legende summary { cursor: pointer; font-weight: 600; }
.anker-legende-liste { list-style: none; margin: 0.5rem 0; padding: 0; max-width: 52rem; }
.anker-legende-liste li { margin: 0.35rem 0; font-size: 0.85rem; color: var(--grau); }
.anker-legende-liste strong { color: var(--dunkel); }
.anker-legende-marke { display: inline-block; width: 1.1rem; margin-right: 0.4rem; vertical-align: middle; }
.marke-balken { height: 0.7rem; background: #9ec5f4; border-radius: 2px; }
.marke-kurve { height: 0; border-top: 2px solid #52514e; }
.marke-anker { width: 3px; height: 0.85rem; background: #eb6834; }
.marke-mittel { height: 0; border-top: 2px dashed #4a3aa7; }
.marke-median { height: 0; border-top: 2px dashed #1baf7a; }
.marke-dreieck { color: #eb6834; font-size: 0.9rem; line-height: 1; }

/* Der Greifstreifen ist absichtlich breiter als die 1,8px-Linie – sonst trifft man sie nicht. */
.anker-griff { cursor: ew-resize; }
.anker-griff:focus { outline: 2px solid var(--blau); outline-offset: -1px; }
.anker-svg.zieht { cursor: ew-resize; }
.anker-svg.zieht text { user-select: none; }

/* --- Auffälligkeiten (Wettkampfbüro) --- */
.auff-block { margin: 1.75rem 0; }
.auff-block h2 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.auff-block p { margin: 0 0 0.7rem; }
.auff-anzahl { font-size: 0.8rem; font-weight: 600; color: var(--grau);
        background: #eef2f7; border: 1px solid var(--rahmen); border-radius: 999px; padding: 0.05rem 0.5rem; }
.auff-detail { color: var(--grau); font-size: 0.85rem; }

/* --- „Kein Versuch"-Marker in der Erfassung --- */
.wert-zelle { display: inline-flex; align-items: center; gap: 0.25rem; }
/* Feld mit Marker: klar als Aussage erkennbar, aber nicht wie ein Fehler. */
table.erfassung input.wert-kein-versuch { color: #8a5a00; background: #fff8e6; border-color: #f0d391;
        text-align: center; font-weight: 700; }
.kv-knopf { padding: 0 0.3rem; font-size: 0.8rem; line-height: 1.5; color: var(--grau);
        background: #f4f6f9; border: 1px solid var(--rahmen); border-radius: 4px; cursor: pointer; }
.kv-knopf:hover { color: #8a5a00; background: #fff8e6; border-color: #f0d391; }

/* --- Disziplinen (Ausblick) --- */
/* Reiter DLV/BJS, Filter-Segmente, Listen und Aufklapp-Details der Ausblick-Seite (Quelle: Mockup). */
.reiter { display: flex; gap: 0; border-bottom: 2px solid var(--rahmen); margin: 1rem 0 1.1rem; }
.reiter button { align-self: auto; background: transparent; color: var(--grau); border: 0; border-bottom: 3px solid transparent;
  border-radius: 0; margin-bottom: -2px; padding: 0.55rem 1.1rem; font-size: 1rem; font-weight: 600; cursor: pointer; }
.reiter button:hover { background: #f0f5ff; color: var(--dunkel); }
.reiter button.aktiv { color: var(--blau); border-bottom-color: var(--blau); background: transparent; }
.reiter button small { font-weight: 400; color: var(--grau); margin-left: 0.3rem; }
.reiter-panel[hidden] { display: none; }

.ausblick-info { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start;
  background: #fff8e6; border: 1px solid #f0dca8; border-left: 4px solid #8a5a00; border-radius: 8px;
  padding: 0.85rem 1.1rem; margin: 0.75rem 0 1.25rem; font-size: 0.92rem; }
.ausblick-info .icon { width: 22px; height: 22px; color: #8a5a00; margin-top: 0.1rem; }
.ausblick-info b { color: #8a5a00; }
.ausblick-info p { margin: 0 0 0.3rem; }
.ausblick-info p:last-child { margin: 0; }
.quelle-info { background: #f5f7fa; border: 1px solid var(--rahmen); border-radius: 8px; padding: 0.7rem 1rem; margin: 0 0 1rem; font-size: 0.9rem; }
.quelle-info p { margin: 0 0 0.25rem; } .quelle-info p:last-child { margin: 0; }

.filter { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; align-items: flex-end; margin: 0 0 0.9rem; }
.filter .gruppe { display: flex; flex-direction: column; gap: 0.3rem; }
.filter .gruppe > span { font-size: 0.78rem; font-weight: 600; color: var(--grau); text-transform: uppercase; letter-spacing: .03em; }
.filter .zaehler { margin-left: auto; align-self: center; font-size: 0.9rem; color: var(--grau); }
.filter .zaehler b { color: var(--dunkel); }

table.liste.dlv th { font-size: 0.8rem; white-space: nowrap; }
table.liste.dlv td { vertical-align: top; font-size: 0.92rem; }
table.liste.dlv tr.disz { cursor: pointer; }
table.liste.dlv tr.disz td.nr { color: var(--grau); text-align: right; width: 2.2rem; }
table.liste.dlv td.name { min-width: 17rem; }
table.liste.dlv td.stufen { width: 7.5rem; }
table.liste.dlv tr.disz td.name b { display: block; }
table.liste.dlv tr.disz td.name small { color: var(--grau); }
table.liste.dlv tr.disz.auf { background: #eef4ff; }
table.liste.dlv tr.disz.auf td { border-bottom-color: transparent; }
table.liste.dlv tr.bereich td { background: var(--hell); font-weight: 700; color: var(--blau); text-transform: uppercase;
  letter-spacing: .04em; font-size: 0.8rem; padding: 0.4rem 0.75rem; }
table.liste.dlv td.param { font-family: ui-monospace, "DejaVu Sans Mono", Consolas, monospace; font-size: 0.85rem; white-space: nowrap; width: 4.5rem; }
table.liste.dlv td.m { text-align: center; }
.ak { display: inline-block; background: var(--blau); color: #fff; font-weight: 700; font-size: 0.78rem; padding: 0.05rem 0.45rem; border-radius: 4px; }
.stufe { display: inline-block; background: #eef2f7; color: var(--dunkel); font-weight: 600; font-size: 0.74rem; padding: 0.02rem 0.4rem; border-radius: 4px; margin: 0 0.15rem 0.15rem 0; border: 1px solid var(--rahmen); white-space: nowrap; }
.pille { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.p-ok { background: #eef8f1; color: #146c2e; border-color: #bfe2c8; }
.p-bedingt { background: #fff8e6; color: #8a5a00; border-color: #f0dca8; }
.p-nein { background: #fdecea; color: #b42318; border-color: #f2c1bc; }
.p-frei { background: #eef4ff; color: #1f6feb; border-color: #c5d8fb; }
.p-gel { background: #f1ecfa; color: #5b3fa0; border-color: #d6c8f0; }
.halle-box.h-freiflaeche { background: #eef4ff; border: 1px solid #c5d8fb; }
.halle-box.h-laufbahn, .halle-box.h-rundbahn { background: #fdecea; border: 1px solid #f2c1bc; }
.halle-box.h-gelaende { background: #f1ecfa; border: 1px solid #d6c8f0; }
.p-konfig { background: #eef8f1; color: #146c2e; border-color: #bfe2c8; }
.p-konfig_plus { background: #eef4ff; color: #1f6feb; border-color: #c5d8fb; }
.p-cm { background: #fff8e6; color: #8a5a00; border-color: #f0dca8; }
.p-teamzeit { background: #f1ecfa; color: #5b3fa0; border-color: #d6c8f0; }
.p-neu { background: #fdecea; color: #b42318; border-color: #f2c1bc; }
.etikett { display: inline-block; font-size: 0.74rem; color: var(--grau); border: 1px dashed var(--rahmen); border-radius: 4px; padding: 0 0.4rem; margin-top: 0.15rem; }
.etikett.bjs-eigen { color: #5b3fa0; border-color: #d6c8f0; }
.pfeil { display: inline-block; width: 0.8rem; color: var(--grau); transition: transform .15s; }
tr.auf .pfeil { transform: rotate(90deg); }

tr.detail > td { background: #f7f9fc; padding: 0 0.75rem 1rem 3rem; }
.detail-box { background: #fff; border: 1px solid var(--rahmen); border-radius: 8px; padding: 1rem 1.25rem; }
.detail-box .idee { font-style: italic; margin: 0 0 0.75rem; color: var(--dunkel); }
.detail-box .spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 2rem; }
.detail-box h4 { margin: 0.6rem 0 0.25rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grau); }
.detail-box ul { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; }
.detail-box li { margin: 0 0 0.2rem; }
.detail-box p.zeile { margin: 0; font-size: 0.9rem; }
.detail-box table.stufen { border-collapse: collapse; font-size: 0.86rem; margin: 0.2rem 0 0.4rem; width: 100%; }
.detail-box table.stufen th { text-align: left; font-weight: 600; color: var(--grau); font-size: 0.74rem; text-transform: uppercase; padding: 0.15rem 0.6rem 0.15rem 0; border-bottom: 1px solid var(--rahmen); }
.detail-box table.stufen td { padding: 0.2rem 0.6rem 0.2rem 0; border-bottom: 1px solid #edf0f4; vertical-align: top; }
.detail-box table.stufen td.s { white-space: nowrap; }
.halle-box { border-radius: 6px; padding: 0.5rem 0.75rem; font-size: 0.9rem; margin-top: 0.4rem; }
.halle-box.h-ok { background: #eef8f1; border: 1px solid #bfe2c8; }
.halle-box.h-bedingt { background: #fff8e6; border: 1px solid #f0dca8; }
.halle-box.h-nein { background: #fdecea; border: 1px solid #f2c1bc; }
.kc-box { margin-top: 1rem; border-top: 1px dashed var(--rahmen); padding-top: 0.75rem; display: grid; grid-template-columns: 1fr 1.2fr; gap: 0.5rem 2rem; font-size: 0.9rem; }
.kc-box h4 { margin-top: 0; }
.kc-box table { border-collapse: collapse; font-size: 0.86rem; }
.kc-box th { text-align: left; font-weight: 600; color: var(--grau); padding: 0.1rem 0.9rem 0.1rem 0; font-size: 0.78rem; text-transform: uppercase; }
.kc-box td { padding: 0.1rem 0.9rem 0.1rem 0; font-family: ui-monospace, "DejaVu Sans Mono", Consolas, monospace; }
.quelle { margin-top: 0.75rem; font-size: 0.85rem; color: var(--grau); display: flex; gap: 1.25rem; flex-wrap: wrap; }
.leer-zeile td { text-align: center; color: var(--grau); font-style: italic; padding: 1.5rem; }
a.dlv-link { color: var(--blau); text-decoration: underline dotted; cursor: pointer; }
/* --- Ende Ausblick --- */

/* --- System › Handbuch: Kapitelliste ------------------------------------- */
.handbuch-kapitel { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0;
  border-bottom: 1px solid var(--r); }
.handbuch-kapitel:last-child { border-bottom: 0; padding-bottom: .25rem; }
.handbuch-kapitel:first-child { padding-top: .25rem; }
.handbuch-nr { flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--a); color: #fff; font-weight: 700; display: flex;
  align-items: center; justify-content: center; }
.handbuch-text { flex: 1 1 auto; min-width: 0; }
.handbuch-text h2 { margin: 0 0 .3rem 0; }
.handbuch-text p { margin: 0 0 .35rem 0; }
.handbuch-aktion { flex: 0 0 auto; display: flex; flex-direction: column; gap: .4rem; }
.handbuch-aktion .kn { justify-content: center; }
.handbuch-offen { color: var(--warn); display: flex; align-items: center; gap: .35rem; }
.handbuch-offen svg { flex: 0 0 auto; }
@media (max-width: 700px) {
  .handbuch-kapitel { flex-wrap: wrap; }
  .handbuch-aktion { width: 100%; }
}

/* --- Portal (kidzcapp.de-Backend, Entwurf): Orga-Seiten ------------------------------------ */
.po-entwurf { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; vertical-align: middle;
  background: var(--warn, #e8a317); color: #fff; border-radius: 999px; padding: .15rem .55rem; }
.po-kopfzeile { color: var(--t2); margin-top: -.4rem; }
.po-block { background: var(--f, #fff); border: 1px solid var(--rahmen); border-radius: var(--radius, 10px); padding: 1.2rem 1.4rem; margin: 0 0 1.75rem; }
.po-block h3 { margin-top: 1.6rem; }
.po-block > h2 + .hinweis { margin-top: .5rem; }
/* Einstellungen: Abschnitte innerhalb des aufgeklappten Blocks deutlich voneinander absetzen. */
.po-form fieldset.po-block { margin-bottom: 1.5rem; padding-top: 1rem; }
.po-form .po-raster { gap: 1rem 1.4rem; }
.po-block > h2, .po-block summary h2 { margin: 0 0 .6rem; font-size: 1.1rem; display: inline; }
.po-block summary { cursor: pointer; }
details.po-block[open] summary { margin-bottom: .8rem; }
fieldset.po-block legend { font-weight: 700; padding: 0 .3rem; }
.po-form { max-width: none; }
.po-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem 1.2rem; }
.po-raster label, .po-listen label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
.po-datum-zeit { display: flex; gap: .4rem; }
.po-datum-zeit input[type="date"] { flex: 1 1 auto; min-width: 0; }
.po-datum-zeit input[type="time"] { flex: 0 0 6.5rem; }
.po-raster small, .po-block > small { font-weight: 400; color: var(--t2); }
.po-breit { grid-column: 1 / -1; }
.po-listen { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: .8rem 1.2rem; margin-top: 1rem; }
.po-listen textarea { font: inherit; font-size: .88rem; }
.po-haken { display: flex !important; flex-direction: row !important; gap: .5rem; align-items: center; font-weight: 400 !important; }
.po-link { display: flex; gap: .5rem; flex-wrap: wrap; }
.po-link input { flex: 1 1 22rem; font-family: ui-monospace, monospace; font-size: .9rem; }
.po-knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; }
.po-knoepfe form { max-width: none; }
.po-meldung { background: #e8f5ee; border-left: 4px solid #0a7c4a; padding: .5rem .8rem; }
.po-loeschung { color: var(--t2); }
.po-warn, .po-loeschung.po-warn { color: #9a5b00; font-weight: 600; }
.po-geloescht { background: var(--f2); padding: .6rem .8rem; border-radius: var(--radius-klein); }
.po-ok { color: #0a7c4a; font-weight: 600; }
.po-aus { color: var(--fehler); font-weight: 600; }
.po-chip { display: inline-block; background: var(--f2); border: 1px solid var(--rahmen); border-radius: 999px; padding: 0 .45rem; margin: 0 .2rem .2rem 0; font-size: .8rem; }
.po-scroll { overflow-x: auto; }
.po-helfer td { vertical-align: top; }
.po-aktionen { white-space: nowrap; }
.po-gefahr form { margin-bottom: .6rem; }
.po-helfer-form { max-width: 44rem; }
.po-inline { margin: .4rem 0 .8rem; }
.po-inline input[type=number] { width: 8rem; }
.po-versteckt { position: absolute; left: -10000px; width: 1px; height: 1px; }
.po-menue { position: relative; display: inline-block; }
.po-menue summary { list-style: none; }
.po-menue summary::-webkit-details-marker { display: none; }
.po-menue-inhalt { position: absolute; right: 0; z-index: 5; background: var(--f, #fff); border: 1px solid var(--rahmen); border-radius: var(--radius-klein);
  padding: .6rem; display: flex; flex-direction: column; gap: .4rem; min-width: 15rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.po-menue-inhalt form { max-width: none; }
/* Knöpfe in Aktionsspalten: gleiche Höhe, ob nur Symbol oder Symbol + Text. */
.po-aktionen .kn { height: 2.15rem; box-sizing: border-box; padding-top: 0; padding-bottom: 0; line-height: 1; vertical-align: middle; }
.po-vereine td { vertical-align: top; }
/* Freigabe je Verein: Formular im Aufklappmenü, eine Zeile je Altersklasse. */
.po-freigabe { min-width: 11rem; }
.po-freigabe > .kn { margin-top: .3rem; }
.po-freigabe-form { display: flex; flex-direction: column; gap: .35rem; }
/* In der Zelle aufklappen statt schweben – die Tabelle liegt in einem Scrollbereich, der Schwebendes abschneidet. */
.po-freigabe .po-menue { display: block; }
.po-freigabe .po-menue summary { display: inline-flex; margin-top: .3rem; }
.po-freigabe .po-menue-inhalt { position: static; box-shadow: none; min-width: 0; margin-top: .4rem; }
/* Sicherheitsabfrage vor „Neuen Link erzeugen“ / „Link sperren“ und Mailtext: klappen in der Zelle auf. */
.po-aufklapp > summary { list-style: none; }
.po-aufklapp > summary::-webkit-details-marker { display: none; }
.po-sicher { display: inline-block; vertical-align: top; }
.po-sicher[open] { display: block; }
.po-sicher-form { max-width: 30rem; margin: .4rem 0 .6rem; padding: .7rem .8rem; border: 1px solid #e0b252; border-radius: var(--radius-klein);
  background: #fff8e8; display: flex; flex-direction: column; gap: .4rem; white-space: normal; }
.po-sicher-form p { margin: 0; }
.po-rechnung { width: 5rem; }
/* In der Vereinstabelle sind die Spalten schmal – die Abfrage bekommt eine lesbare Breite. */
.po-vereine .po-sicher-form { width: 22rem; }
.po-linkaendern { display: inline-block; vertical-align: top; }
.po-linkaendern[open] { display: block; margin-top: .3rem; }
.po-mailtext { display: inline-block; vertical-align: top; }
.po-mailtext[open] { display: block; margin-top: .3rem; }
.po-mailtext-inhalt { width: 30rem; max-width: 80vw; white-space: normal; }
.po-mailtext-inhalt p { margin: 0 0 .3rem; font-size: .9rem; }
.po-mailtext-inhalt textarea { width: 100%; font: inherit; font-size: .9rem; }
.po-freigabe-form label { flex-direction: row; align-items: center; gap: .4rem; font-weight: normal; }
.po-freigabe-form label b { min-width: 2.8rem; }
.po-freigabe-form input[type=number] { width: 4.5rem; }

.orga-fuss { text-align: center; color: var(--t2); font-size: .8rem; padding: 1.5rem 0; }
.orga-fuss a { color: inherit; }

/* --- Reiter „Zulassung“ (Gantt je Altersklasse, Linie zugelassen/Warteliste) --- */
.zl-kopf { display: flex; justify-content: flex-end; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.zl-kopf h2 { margin: 0; }
.zl-werkzeuge { display: flex; gap: .6rem; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.zl-umschalter .kn { border-radius: 0; }
.zl-umschalter .kn:first-child { border-radius: var(--radius-klein) 0 0 var(--radius-klein); }
.zl-umschalter .kn:last-child { border-radius: 0 var(--radius-klein) var(--radius-klein) 0; margin-left: -1px; }
.zl-umschalter .kn.zl-an { background: var(--t); color: #fff; border-color: var(--t); }
.zl-zuruecksetzen .po-sicher-form { position: absolute; right: 1rem; z-index: 5; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.zl-zuruecksetzen { position: relative; }
.zl-kacheln { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); margin-top: .8rem; }
.zl-status { min-height: 1.3em; margin: .2rem 0; font-size: .9rem; color: var(--t2); }
.zl-status.zl-ok { color: var(--ok); }
.zl-status.zl-fehler { color: var(--fehler); font-weight: 700; }

.zl-gantt { --frist: #c62828; --heute: #ef6c00; --wk: #6a1b9a; --tage: 30; overflow-x: auto; padding-bottom: .3rem; }
.zl-ak { margin-top: .9rem; min-width: 52rem; }
.zl-ak-kopf { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; border-bottom: 1.5px solid var(--t); padding-bottom: .25rem; }
.zl-ak-kopf > b { font-size: 1.1rem; }
.zl-ak-kopf form.zl-plaetze { display: flex; flex-direction: row; align-items: center; gap: .35rem; margin: 0 0 0 auto; font-size: .88rem; }
.zl-ak-kopf form.zl-plaetze label { display: flex; flex-direction: row; align-items: center; gap: .35rem; font-weight: normal; margin: 0; }
.zl-ak-kopf form.zl-plaetze input { width: 4rem; padding-top: .15rem; padding-bottom: .15rem; }
/* Einfügelinie beim Ziehen (wie im Beamer-Live-Plan, aber im Blau der Knöpfe). */
.zl-drop-linie { height: 3px; margin: -1px 0; background: var(--a); border-radius: 2px; pointer-events: none; }
.po-unterreiter { background: transparent; margin: 0 0 .8rem; }
.po-unterreiter .innen { padding: 0; }

.zl-zeile { display: grid; grid-template-columns: 1.2rem 2.2rem minmax(16rem, 24rem) 3.6rem 1fr; align-items: center; min-height: 2rem;
  border-bottom: 1px solid var(--tab-kopf); background: var(--f2); }
.zl-zeile.zl-warte { background: #fff6f6; }
.zl-zeile.zl-warte .zl-rang { color: var(--frist); }
.zl-zeile.zl-zieht { opacity: .35; }
.zl-zeile[draggable="true"] { cursor: grab; }
.zl-griff { color: var(--t2); text-align: center; user-select: none; }
.zl-rang { font-weight: 700; color: var(--t2); text-align: right; padding-right: .5rem; font-variant-numeric: tabular-nums; }
.zl-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: .5rem; }
.zl-verein { color: var(--farbe); }
.zl-warn { color: var(--frist); font-weight: 700; font-size: .85rem; }
.zl-neu { background: var(--a2); color: var(--a-dunkel); border-radius: var(--radius-pille); padding: 0 .45rem; font-size: .78rem; font-weight: 700; }
.zl-pfeile { display: flex; gap: 2px; }
.zl-pfeile button { border: 1px solid var(--r); background: var(--f2); border-radius: 4px; font-size: .7rem; line-height: 1; padding: .2rem .35rem; cursor: pointer; color: var(--t2); }
.zl-pfeile button:hover { color: var(--t); border-color: var(--t2); }

.zl-spur { position: relative; height: 2rem; align-self: stretch;
  background-image: repeating-linear-gradient(to right, var(--tab-kopf) 0 1px, transparent 1px calc(100% / var(--tage))); }
.zl-linie { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed; pointer-events: none; }
.m-heute { border-color: var(--heute); color: var(--heute); }
.m-frist { border-color: var(--frist); color: var(--frist); }
.m-wk { border-color: var(--wk); color: var(--wk); }
.zl-linie.m-wk { border-left-style: solid; border-left-width: 2px; }
.zl-balken { position: absolute; top: .55rem; height: .9rem; border-radius: 3px; min-width: 4px; background: var(--farbe); opacity: .85; }
.zl-unvoll { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.65) 0 2px, transparent 2px 5px); }
.zl-start { position: absolute; top: .3rem; height: 1.4rem; width: 0; border-left: 2.5px solid var(--t); }
.zl-voll { position: absolute; top: .72rem; width: .55rem; height: .55rem; margin-left: -.28rem; border-radius: 50%; background: #fff; border: 1.5px solid var(--t); }
.zl-zeit { position: absolute; top: .4rem; padding-left: .5rem; font-size: .8rem; white-space: nowrap; }
.zl-zeit.zl-links { transform: translateX(-100%); padding: 0 .5rem 0 0; }

.zl-grenze { position: relative; height: 1.2rem; display: flex; align-items: center; justify-content: center; }
.zl-grenze::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--frist); }
.zl-grenze span { position: relative; background: var(--f2); color: var(--frist); font-size: .78rem; font-weight: 700; padding: 0 .6rem; }

.zl-zeile.zl-leer .zl-label { font-style: italic; }
.zl-zeile.zl-achse { border-top: 1.5px solid var(--t); border-bottom: 0; min-height: 2.6rem; margin-top: .4rem; min-width: 52rem; }
.zl-achse .zl-spur { height: 2.6rem; background: none; }
.zl-tick { position: absolute; top: 0; height: .35rem; border-left: 1px solid var(--t); }
.zl-tick span { position: absolute; top: .35rem; transform: translateX(-50%); font-size: .72rem; color: var(--t2); white-space: nowrap; }
.zl-tick.zl-woche span { color: var(--t); font-weight: 700; }
.zl-mtext { position: absolute; top: 1.45rem; transform: translateX(-50%); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.zl-mtext.zl-rechts { transform: translateX(-100%); }

.zl-legende { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .8rem; font-size: .85rem; color: var(--t2); align-items: center; }
.zl-legende i { display: inline-block; vertical-align: middle; margin-right: .4rem; position: relative; }
.zl-m-start { width: 0; height: 1rem; border-left: 2.5px solid var(--t); }
.zl-m-balken { width: 1.4rem; height: .7rem; border-radius: 2px; background-color: #888; }
.zl-m-voll { width: .55rem; height: .55rem; border-radius: 50%; border: 1.5px solid var(--t); }
.zl-m-verein { width: .75rem; height: .75rem; border-radius: 2px; }

/* Reiter „Export“: zwei Varianten nebeneinander */
.po-export-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; margin: .8rem 0; }
.po-export-karte { border: 1px solid var(--r); border-radius: var(--radius-gross); padding: .9rem 1rem; background: var(--f2); display: flex; flex-direction: column; gap: .4rem; }
.po-export-karte h3 { margin: 0; }
.po-export-karte p { margin: 0; }
.po-export-karte .kn { align-self: flex-start; margin-top: .3rem; }
