/* Sponsorenliste KV „Alte Herren" Siershahn
 * Farben zentral über CSS-Variablen anpassbar (z. B. Vereinsfarben); Dunkelmodus über dieselben Variablen.
 * Systemschriften – keine externen Fonts (DSGVO, CSP).
 *
 * Gliederung (Reihenfolge ist für die Kaskade wichtig – neue Regeln in den passenden Abschnitt):
 *   1. Variablen (hell/dunkel)          8. Smartphone & Tablet
 *   2. Topbar, Layout                    9. Orga-Liste, Aufgaben, Sessionen
 *   3. Formulare, Buttons                10. Mitglieder, Rechte, Einstellungen
 *   4. Tabellen, Änderungsverlauf        11. Termine, Dashboard-Listen, Termin-Dialog
 *   5. Hinweise, Dialoge, Toasts         12. Belege, Bilder, Mein Konto, Anlagen
 *   6. Anmelden, Impressum/Datenschutz   13. Stuhlplan
 *   7. Responsive Grundregeln            14. Rechnungsnummern/Stempel, Sponsorenliste (Status, Kennzahlen: Karten), Datenbank
 *                                        15. Ehrungen, Ehrenordnung
 * Farben nur über Variablen; feste Farben nur für Weiß auf farbigen Flächen und die „Papier“-Flächen (Unterschrift, Stempel).
 */

:root {
  /* Farben aus dem Vereinswappen */
  --brand: #d90000;
  --brand-strong: #a80000;
  --brand-soft: #fdeaea;
  --accent: #ffcf02;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e4e7ec;
  --text: #1d2433;
  --muted: #667085;

  --success: #12805c;
  --success-soft: #e3f6ee;
  --warn: #b25e09;
  --warn-soft: #fdf1e1;
  --danger: #c0262d;
  --danger-soft: #fdecec;
  --info: #2459c4;
  --info-soft: #e8effc;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 64px rgba(16, 24, 40, .22);
  --tooltip-bg: #1d2433; --tooltip-tx: #fff;
  --backdrop: rgba(15, 18, 24, .5);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ff5a52;
    --brand-strong: #ff807a;
    --brand-soft: #3a1e22;
    --bg: #0f1218;
    --surface: #171b23;
    --surface-2: #1d222c;
    --border: #2a303c;
    --text: #e6e9ef;
    --muted: #98a2b3;
    --tooltip-bg: #f4f5f7; --tooltip-tx: #1d2433;
    --success: #3ccf91; --success-soft: #133326;
    --warn: #f0a44b;    --warn-soft: #3a2a14;
    --danger: #f2686e;  --danger-soft: #3b1b1d;
    --info: #79a6ff;    --info-soft: #18264a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.5 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 .35em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
small { font-size: .82em; }
.muted { color: var(--muted); }
.d-block { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------------------------------------------------------- Topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: 1360px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__logo { height: 48px; width: auto; flex: none; display: block; }
.auth__logo { height: 150px; width: auto; display: block; margin: 0 auto 12px; }
@media (prefers-color-scheme: dark) {
  /* Wappen hat schwarze Konturen – auf dunklem Grund mit hellem Hintergrund zeigen */
  .brand__logo, .auth__logo { background: #fff; border-radius: 10px; padding: 3px; }
  .auth__logo { padding: 8px; border-radius: 16px; }
}
.brand__text small { color: var(--muted); }

.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--muted); font-weight: 550; white-space: nowrap;
}
.mainnav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.mainnav a.active { background: var(--brand-soft); color: var(--brand); }

.userbox { display: flex; align-items: center; gap: 10px; }
.userbox form { margin: 0; }
.userbox__name { font-weight: 550; white-space: nowrap; }
.avatar {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .85rem;
}
.session-timer {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  font-variant-numeric: tabular-nums; font-size: .82rem;
}
.session-timer.is-warning { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.nav-toggle { display: none; }

/* ---------------------------------------------------------------- Layout */
.container { max-width: 1360px; margin: 0 auto; padding: 28px 20px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 0; max-width: 70ch; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand); }
.kpi--success::before { background: var(--success); }
.kpi--warn::before { background: var(--warn); }
.kpi__label { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kpi__value { display: block; font-size: 1.45rem; font-variant-numeric: tabular-nums; margin-top: 2px; }

/* ----------------------------------------------------------------- Forms */
.form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child { font-size: .82rem; font-weight: 600; color: var(--muted); }
.field--inline { min-width: 170px; }
.field--grow { flex: 1; min-width: 220px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; width: 100%; min-height: 40px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
/* Gesperrte Felder deutlich erkennbar: schraffiert, gestrichelter Rahmen, Hinweis „gesperrt“ am Label */
input:disabled, textarea:disabled, select:disabled {
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, color-mix(in srgb, var(--border) 55%, var(--surface-2)) 6px 12px);
  color: var(--muted); border-style: dashed; cursor: not-allowed; opacity: 1;
}
.field:has(> input:disabled, > select:disabled, > textarea:disabled, .segmented input:disabled) > span:first-child::after {
  content: "gesperrt"; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); vertical-align: 1px;
}
.switch:has(input:disabled) { opacity: .55; cursor: not-allowed; }
input.is-invalid, select.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
fieldset + fieldset { border-top: 1px solid var(--border); padding-top: 16px; }
legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2 > .field:first-child:has(input[name="plz"]) { max-width: 100%; }
.hint { font-size: .83rem; color: var(--muted); margin: -4px 0 0; }

.input-group { display: flex; position: relative; }
.input-group input { padding-right: 48px; }
.input-group__btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--muted); padding: 7px 9px; border-radius: 7px; cursor: pointer;
}
.input-group__btn:hover { background: var(--surface-2); color: var(--text); }
.input-group__btn--text { font: inherit; font-weight: 600; color: var(--brand); }
.input-group:has(.input-group__btn--text) input { padding-right: 100px; }

.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; }
.segmented label { flex: 1; position: relative; }
.segmented input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.segmented span { display: block; text-align: center; padding: 6px 14px; border-radius: 7px; cursor: pointer; font-weight: 550; color: var(--muted); }
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.segmented input:disabled + span { cursor: not-allowed; opacity: .55; }
.segmented:has(input:disabled) {
  border-style: dashed;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, color-mix(in srgb, var(--border) 55%, var(--surface-2)) 6px 12px);
}
.segmented:has(input:disabled) input:checked + span { box-shadow: none; background: var(--surface); opacity: .8; }
.segmented input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
}
.check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.check input, .switch input { width: auto; min-height: 0; accent-color: var(--brand); }
.check input { width: 18px; height: 18px; }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch__track { width: 42px; height: 24px; border-radius: 999px; background: var(--border); position: relative; flex: none; transition: background .2s; }
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s;
}
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

.strength { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; margin-top: -6px; }
.strength__bar { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background .25s; }
.strength__bar[data-level="ok"] { background: var(--warn); }
.strength__bar[data-level="strong"] { background: var(--success); }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-weight: 600; line-height: 1; white-space: nowrap;
  padding: 11px 16px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 25%, transparent); }
.btn--primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn--success { background: var(--success); border-color: var(--success); color: #fff; }
.btn--success:hover { background: color-mix(in srgb, var(--success) 85%, #000); }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger-ghost { border-color: transparent; background: transparent; color: var(--danger); }
.btn--danger-ghost:hover { background: var(--danger-soft); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--text); }
.btn--sm { padding: 7px 11px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-color: #fff #fff transparent transparent; animation: spin .7s linear infinite;
}
.btn--ghost.is-busy::after, .icon-btn.is-busy::after { border-color: var(--muted) var(--muted) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; position: relative;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.icon-btn--danger:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.icon-btn.is-busy .icon { visibility: hidden; }
.icon-btn.is-busy::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid; animation: spin .7s linear infinite; }

/* ----------------------------------------------------------------- Table */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table th {
  background: var(--surface-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 650; white-space: nowrap; position: sticky; top: 0;
}
.table th[data-sort] { cursor: pointer; user-select: none; }
.table th[data-sort]::after { content: " ↕"; opacity: .35; }
.table th[aria-sort="ascending"]::after { content: " ↑"; opacity: 1; }
.table th[aria-sort="descending"]::after { content: " ↓"; opacity: 1; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
/* eigene Sponsoren: zarte blaue Hinterlegung (Statusleiste links siehe „Sponsorenliste: Status“) */
.table tr.is-mine td { background: var(--mine-bg); }
.table tr.is-inactive { opacity: .62; }
.table tr.is-closed td { background: var(--surface-2); }
.session-closed { margin-bottom: 16px; }

/* Änderungsverlauf (nur Admin) */
.audit, .historie { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.audit > summary, .historie > summary { cursor: pointer; padding: 10px 12px; font-weight: 600; list-style-position: inside; }
.audit[open] > summary, .historie[open] > summary { border-bottom: 1px solid var(--border); }
.historie[hidden] { display: none; }
.historie__list { padding: 6px 12px 10px; max-height: 300px; overflow-y: auto; font-size: .86rem; }
.historie__table { width: 100%; }
.historie__table th, .historie__table td { padding: 6px 8px; }
.historie__table tr.is-inactive td { color: var(--muted); }
.audit__list { padding: 10px 12px; max-height: 280px; overflow-y: auto; font-size: .86rem; }
.audit__entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.audit__entries > li { padding-left: 10px; border-left: 3px solid var(--border); }
.audit__changes { margin: 4px 0 0; padding-left: 16px; color: var(--text); }
.audit__field { color: var(--muted); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; width: 1%; }
.table .actions > * + * { margin-left: 6px; }
.table .clamp { max-width: 280px; }
.table td[data-label="Name"] strong { white-space: nowrap; }
.table td.loading, .table td.empty { text-align: center; color: var(--muted); padding: 40px 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  font-size: .78rem; font-weight: 650; white-space: nowrap;
}
.badge .icon { width: 13px; height: 13px; }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge--brand { background: var(--brand-soft); color: var(--brand); }
.paket-tag { font-weight: 650; color: var(--text); }
/* Betrag aus Paket: nur lesbar, aber gültig – deshalb nicht schraffiert */
input[readonly]:not(:disabled) { background: var(--surface-2); color: var(--text); font-weight: 600; cursor: default; }

.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: .75rem; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }
.chip--admin { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.chip--gf_vorstand { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip--kassierer { background: var(--success-soft); color: var(--success); border-color: transparent; }
.chip--alle { background: var(--brand-soft); color: var(--brand); border-color: transparent; font-weight: 600; }

/* Sortiermodus „Reihenfolge ändern“ (Gruppen, Aufgaben verwalten): Leiste, Griff, Pfeile, Abschnittsköpfe */
.sort-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--text);
  border: 1px solid var(--info); position: sticky; top: 8px; z-index: 5; }
.sort-leiste[hidden] { display: none; }
.sort-leiste__text { font-size: .9rem; }
.sort-leiste__aktionen { display: flex; gap: 8px; margin-left: auto; }
.sort-griff { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: 8px;
  border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); color: var(--muted); font-size: 1.05rem;
  cursor: grab; touch-action: none; user-select: none; vertical-align: middle; flex: none; }
.sort-griff:hover, .sort-griff:focus-visible { color: var(--text); border-color: var(--info); }
.sort-griff:active { cursor: grabbing; }
.sort-pfeile { display: inline-flex; gap: 4px; }
tr[data-sort-id] { transition: background-color .15s; }
tr.is-dragging { background: var(--info-soft); box-shadow: inset 3px 0 0 var(--info); }
tr.is-dragging td { opacity: .9; }
tr.sort-gruppe td { background: var(--surface-2); font-weight: 600; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
body.is-sortieren .table tbody td { -webkit-user-select: none; user-select: none; }

/* ---------------------------------------------------------------- Alerts */
.alert { padding: 11px 14px; border-radius: var(--radius-sm); font-size: .9rem; border: 1px solid transparent; }
.alert--info { background: var(--info-soft); color: var(--info); }
.alert--success { background: var(--success-soft); color: var(--success); }
.alert--error { background: var(--danger-soft); color: var(--danger); }

/* ---------------------------------------------------------------- Modals */
.modal {
  width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid var(--border); border-radius: 18px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.modal--sm { width: min(440px, calc(100vw - 24px)); }
.modal { overflow-x: hidden; }
.modal--md { width: min(560px, calc(100vw - 24px)); }
.modal--wide { width: min(960px, calc(100vw - 24px)); }
.modal--xl { width: min(1080px, calc(100vw - 24px)); }
.modal__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.modal__cols > fieldset + fieldset { border-top: 0; padding-top: 0; border-left: 1px solid var(--border); padding-left: 28px; }
.grid-2--plz { grid-template-columns: 110px 1fr; }
.alert--compact { padding: 8px 12px; font-size: .84rem; }
@media (max-width: 820px) {
  .modal__cols { grid-template-columns: 1fr; gap: 16px; }
  .modal__cols > fieldset + fieldset { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
}
.modal::backdrop { background: var(--backdrop); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal > .form { gap: 0; }
.modal__header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal__header h2 { margin: 0; }
.modal__close { border: 0; background: transparent; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.modal__close:hover { background: var(--surface-2); color: var(--text); }
.modal__body { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.modal__body p { margin: 0; }
.modal__footer {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 14px 22px;
  border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 18px 18px;
  flex-wrap: wrap;
}
.summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }

/* ---------------------------------------------------------------- Toasts */
.toast-region { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; }
.toast {
  padding: 12px 16px; border-radius: 11px; background: var(--text); color: var(--surface); box-shadow: var(--shadow-lg);
  font-weight: 550; max-width: 380px; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s;
  border-left: 4px solid var(--success);
}
.toast.is-visible { opacity: 1; transform: none; }
.toast--error { border-left-color: var(--danger); }
.toast--info { border-left-color: var(--info); }

/* ------------------------------------------------------- Auth (Login etc.) */
.auth {
  min-height: 100dvh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1000px 500px at 10% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
    radial-gradient(800px 500px at 110% 110%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    var(--bg);
}
.auth__card {
  width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 32px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 18px;
}
.auth__brand { text-align: center; }
.auth__brand h1 { margin-bottom: 4px; font-size: 1.35rem; text-wrap: balance; }
.auth__brand p { margin: 0; color: var(--muted); }
.auth__links { text-align: center; margin: 0; font-size: .9rem; }
.auth { align-content: center; gap: 14px; }
.auth__legal { margin: 0; text-align: center; font-size: .85rem; color: var(--muted); }
.auth__legal a, .mainnav__legal a { color: var(--muted); }

/* --------------------------------------------- Impressum / Datenschutz */
.legal { min-height: 100dvh; padding: 24px 16px 48px; background: var(--bg); }
.legal__card {
  max-width: 820px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow-lg); line-height: 1.6;
}
.legal__card h1 { margin: 18px 0 4px; }
.legal__card h2 { font-size: 1.12rem; margin: 28px 0 8px; }
.legal__card h3 { font-size: 1rem; margin: 18px 0 6px; }
.legal__card p, .legal__card li { overflow-wrap: anywhere; }
.legal__card section { scroll-margin-top: 16px; }
.legal__intro { color: var(--muted); margin-top: 0; }
.legal__internal { margin: 18px 0; }
.legal__nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .9rem; }
.legal__nav [aria-current] { font-weight: 700; text-decoration: none; color: var(--text); }
.legal__toc { background: var(--surface-2, var(--bg)); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; margin: 18px 0; }
.legal__toc ol { margin: 0; padding-left: 1.4em; columns: 2 260px; }
.legal__stand { margin-top: 32px; }
.legal .legal__nav:last-child { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.placeholder {
  background: color-mix(in srgb, var(--warn, #d97706) 18%, transparent); color: inherit;
  border: 1px dashed var(--warn, #d97706); border-radius: 6px; padding: 0 6px; font-weight: 600;
}
.mainnav__legal { margin: 8px 12px 0; font-size: .82rem; color: var(--muted); }
@media print {
  .legal { padding: 0; } .legal__card { box-shadow: none; border: 0; } .legal__nav { display: none; }
}

.empty-state { text-align: center; padding: 60px 20px; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1480px) {
  .userbox__name { display: none; }
}

/* Burger-Menü auf allen Geräten – fährt von links herein */
@media all {
  .topbar__inner { gap: 12px; }
  .brand { flex: 1; min-width: 0; }
  .brand__text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; flex: none;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
  }
  .nav-toggle:hover { background: var(--surface-2); }
  .userbox { order: 2; }

  .mainnav {
    position: fixed; inset: 0 auto 0 0; z-index: 950; width: min(320px, 88vw);
    display: flex; flex-direction: column; gap: 2px; padding: 0 12px calc(16px + env(safe-area-inset-bottom));
    background: var(--surface); box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-105%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s;
  }
  .nav-open .mainnav { transform: none; visibility: visible; transition: transform .22s ease; }
  .nav-open { overflow: hidden; }
  /* Kopfleiste über den abgedunkelten Hintergrund heben; backdrop-filter würde das
     fest positionierte Menü sonst auf die Höhe der Kopfleiste beschränken */
  .nav-open .topbar { z-index: 960; backdrop-filter: none; background: var(--surface); }
  .nav-open::after {
    content: ""; position: fixed; inset: 0; z-index: 940; background: rgba(15, 18, 24, .45); backdrop-filter: blur(2px);
  }

  .mainnav__head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: sticky; top: 0; background: var(--surface); padding: 16px 4px 12px; margin-bottom: 6px;
    border-bottom: 1px solid var(--border); z-index: 1;
  }
  .mainnav__user { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
  .mainnav__user small { color: var(--muted); }
  .mainnav__close {
    border: 0; background: var(--surface-2); color: var(--text); width: 40px; height: 40px; border-radius: 10px;
    font-size: 1.5rem; line-height: 1; cursor: pointer; flex: none;
  }
  .mainnav a, .mainnav__logout { padding: 11px 12px; font-size: .98rem; white-space: normal; }
  .mainnav__section {
    display: block; padding: 14px 12px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted);
  }
  /* Verwaltung im Burger-Menü: kein Aufklappen, alle Punkte direkt sichtbar */
  .navmenu__toggle { display: none; }
  /* Untermenü (Stammdaten) zum Aufklappen */
  .navgroup { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 6px; }
  .navgroup__toggle {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 12px; border: 0; border-radius: var(--radius-sm);
    background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .98rem; cursor: pointer; text-align: left;
  }
  .navgroup__toggle:hover { background: var(--surface-2); color: var(--text); }
  .navgroup__toggle > span:first-of-type { flex: 1; }
  .navgroup__count {
    font-size: .74rem; font-weight: 700; min-width: 22px; padding: 1px 7px; border-radius: 999px;
    background: var(--surface-2); color: var(--muted); text-align: center;
  }
  .navgroup__chevron { display: inline-flex; transition: transform .18s ease; }
  .navgroup__chevron .icon { width: 1em; height: 1em; }
  .navgroup.is-open .navgroup__chevron { transform: rotate(180deg); }
  .navgroup__list { display: none; flex-direction: column; gap: 2px; margin: 2px 0 4px 14px; padding-left: 8px; border-left: 2px solid var(--border); }
  .navgroup.is-open .navgroup__list { display: flex; }
  .navgroup__list a { padding: 9px 12px; font-size: .94rem; }

  .mainnav__logout {
    display: flex; align-items: center; gap: 8px; margin-top: auto; border: 0; border-top: 1px solid var(--border);
    border-radius: 0; background: transparent; color: var(--danger); font: inherit; font-weight: 600; cursor: pointer;
  }
}

@media (max-width: 860px) {
  .userbox .btn span { display: none; }

  .kpis { grid-template-columns: 1fr 1fr; }
  .toolbar .field--inline { flex: 1 1 45%; min-width: 0; }

  /* Tabelle wird zu Karten */
  .table--responsive thead { display: none; }
  .table--responsive, .table--responsive tbody, .table--responsive tr, .table--responsive td { display: block; width: 100%; }
  .table--responsive tr { padding: 14px 16px; border-bottom: 1px solid var(--border); position: relative; }
  .table--responsive td { border: 0; padding: 3px 0; text-align: left !important; }
  .table--responsive td[data-label]::before {
    content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); font-weight: 650; margin-top: 6px;
  }
  .table--responsive td:first-child::before { display: none; }
  .table--responsive td:first-child { font-size: 1.05rem; padding-right: 90px; }
  .table--responsive td.actions { position: absolute; top: 12px; right: 14px; width: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
  .table--responsive td.actions:has(.btn) { position: static; max-width: none; justify-content: flex-start; margin-top: 10px; }
  .table--responsive td.actions > * + * { margin-left: 0; }
  .table tr.is-mine { background: var(--mine-bg); }
  .table tr.is-mine td { background: transparent; }
  .table .clamp { max-width: none; }
  .checks { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 18px 12px 48px; }
  .grid-2 { grid-template-columns: 1fr; }
  .auth__card { padding: 24px 20px; }
  .session-timer { display: none; }
  h1 { font-size: 1.35rem; }
}

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

.modal__footer--split { justify-content: space-between; }
.modal__footer--split [data-action="reset-payment"][hidden] + .modal__footer-right { margin-left: auto; }
.modal__footer-right { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }

/* Hinweis beim Darüberfahren (ersetzt den langsamen Browser-Tooltip) */
.tooltip {
  position: fixed; z-index: 2000; max-width: 300px; padding: 7px 10px; border-radius: 8px;
  background: var(--tooltip-bg); color: var(--tooltip-tx); font-size: .8rem; line-height: 1.35; box-shadow: var(--shadow-lg);
  pointer-events: none; opacity: 0; transform: translateY(2px); transition: opacity .12s, transform .12s;
}
.tooltip.is-visible { opacity: 1; transform: none; }

/* Konflikt beim Speichern: Hinweis mit Button „Aktuellen Stand laden“ */
.alert--conflict { background: var(--warn-soft); border-color: var(--warn); color: inherit; }
.alert__actions { margin-top: .6rem; display: flex; gap: .5rem; flex-wrap: wrap; }

/* =========================================================================
 *  Smartphone & Tablet (kompakte Darstellung)
 * ========================================================================= */
.btn__short { display: none; }

@media (max-width: 860px) {
  /* Karten: Beschriftung links, Wert rechts – halbiert die Höhe gegenüber gestapelter Darstellung */
  .table--responsive tr { padding: 12px 14px; }
  .table--responsive td[data-label] { position: relative; padding: 2px 0 2px 118px; min-height: 1.4em; }
  .table--responsive td[data-label]::before {
    position: absolute; left: 0; top: 5px; width: 110px; margin: 0; font-size: .68rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .table--responsive td:first-child { padding: 0 0 4px; }

  /* Übersicht: kompakte Sponsorenkarte */
  .table--overview tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 3px;
    grid-template-areas: "name actions" "zust pay" "betrag betrag" "addr addr" "bem bem";
  }
  .table--overview td[data-label] { display: block; padding: 0; }
  .table--overview td[data-label]::before { display: none; }
  .table--overview .c-name { grid-area: name; padding-right: 0 !important; align-self: center; }
  .table--overview .c-zust { grid-area: zust; font-size: .85rem; color: var(--muted); }
  .table--overview .c-betrag { grid-area: betrag; }
  .table--overview .c-betrag small { display: inline; margin-left: 6px; }
  .table--overview .c-pay { grid-area: pay; justify-self: end; text-align: right !important; }
  .table--overview .c-pay small { display: none; }
  .table--overview .c-addr { grid-area: addr; font-size: .82rem; color: var(--muted); }
  .table--overview .c-addr br { display: none; }
  .table--overview .c-addr br + * , .table--overview .c-addr { white-space: normal; }
  .table--overview .c-bem {
    grid-area: bem; font-size: .82rem; color: var(--muted);
    display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .table--overview td.c-actions,
  .table--overview td.c-actions:has(.btn) {
    grid-area: actions; position: static; margin: 0; display: flex; gap: 6px; align-items: center; max-width: none; width: auto;
  }
  .table--overview .c-actions .btn__text { display: none; }
  .table--overview .c-actions .btn__short { display: inline; }
  .table--overview .c-actions .btn { padding: 7px 10px; }
}

@media (max-width: 600px) {
  .container { padding: 14px 12px 40px; }
  h1 { font-size: 1.3rem; margin-bottom: 4px; }
  .page-head { margin-bottom: 12px; gap: 10px; }
  .page-head .btn { padding: 9px 14px; }

  /* Kopfzeile schlanker */
  .brand__logo { height: 38px; }
  .brand__text strong { font-size: .92rem; }
  .brand__text small { display: none; }
  .avatar { width: 30px; height: 30px; font-size: .78rem; }
  .userbox__me { padding: 2px; }

  /* Filter kompakt: zwei Spalten, Suche über die volle Breite */
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 10px 12px; margin-bottom: 10px; }
  .toolbar .field--inline { min-width: 0; flex: none; }
  .toolbar .field--grow { grid-column: 1 / -1; order: -1; }
  .toolbar .field > span:first-child { font-size: .72rem; }
  .toolbar select, .toolbar input { padding-top: 8px; padding-bottom: 8px; }

  /* Kennzahlen als schmale Leiste */
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
  .kpi { padding: 7px 10px 7px 13px; }
  .kpi__label { font-size: .64rem; }
  .kpi__value { font-size: 1.02rem; margin-top: 0; }

  /* Dialoge als Vollbild mit fester Kopf- und Fußzeile – Speichern ist immer sichtbar */
  .modal, .modal--sm, .modal--md, .modal--wide, .modal--xl {
    width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0;
  }
  .modal[open] { animation: none; }
  .modal > .form { height: 100%; display: flex; flex-direction: column; }
  .modal__header { padding: 12px 14px 10px; border-bottom: 1px solid var(--border); }
  .modal__header h2 { font-size: 1.1rem; }
  .modal__body { flex: 1; padding: 14px; gap: 12px; }
  .modal__footer { border-radius: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .modal__footer .btn { flex: 1; }
  .modal__footer--split .modal__footer-right { flex: 1 1 100%; }
  .modal__footer--split [data-action="reset-payment"] { flex: 1 1 100%; order: 2; }
  /* Sponsor bearbeiten: Session-Angaben (Paket, Betrag) zuerst, Eckdaten danach */
  .modal__cols > fieldset:last-child { order: -1; }
  .modal__cols > fieldset:first-child { border-top: 1px solid var(--border); padding-top: 14px; }
  .modal__cols > fieldset:last-child { border-top: 0 !important; padding-top: 0 !important; }
  .grid-2.grid-2--plz { grid-template-columns: 96px 1fr; }

  .toast-region { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
}

/* leere Angaben („–“) in Karten weglassen */
@media (max-width: 860px) {
  .table--responsive td:has(> .dash:only-child) { display: none !important; }
}

/* Filterleiste auf dem Smartphone einklappbar: Suche + Button „Filter“ */
.toolbar__toggle { display: none; }
@media (max-width: 600px) {
  .toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .toolbar .field--grow { grid-column: 1; }
  .toolbar .field--grow > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .toolbar__toggle {
    display: inline-flex; grid-column: 2; grid-row: 1; align-self: end; justify-content: space-between;
    min-width: 0; overflow: hidden; padding: 9px 12px; font-size: .85rem;
  }
  .toolbar__toggle span { overflow: hidden; text-overflow: ellipsis; }
  .toolbar__toggle .icon { flex: none; transition: transform .15s; }
  .toolbar.is-open .toolbar__toggle .icon { transform: rotate(180deg); }
  .toolbar:not(.is-open) .field:not(.field--grow) { display: none; }
}

/* =========================================================================
 *  Orga-Liste Kappensitzung
 * ========================================================================= */
.kpi--info::before { background: var(--info); }
.badge .icon { width: .95em; height: .95em; margin-right: 3px; vertical-align: -1px; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.orga-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.orga-head .field--inline { min-width: 220px; }
.orga-head__status { padding-bottom: 8px; }

.orga-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.orga-copy__row { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.orga-copy select { width: auto; min-width: 220px; }
.orga-subhead { font-size: 1.1rem; margin: 22px 0 10px; }
.stats-short { display: none; }

/* Bereiche als Reiter-Knöpfe, die bei Platzmangel umbrechen – alle Bereiche bleiben sichtbar */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.tabs__tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--border); background: var(--surface);
  font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; border-radius: 999px;
}
.tabs__tab:hover { color: var(--text); background: var(--surface-2); }
.tabs__tab[aria-selected="true"] { color: #fff; background: var(--brand); border-color: var(--brand); }
.tabs__tab[aria-selected="true"] .tabs__count { background: rgba(255, 255, 255, .25); color: #fff; }
.tabs-select { display: none; margin-bottom: 12px; }
.tabs__icon { font-size: 1.05em; }
.tabs__count {
  min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: .75rem; text-align: center;
  background: var(--warn-soft); color: var(--warn);
}
.tabs__count.is-done { background: var(--success-soft); color: var(--success); }

/* Statistik je Bereich */
.orga-stats { margin-bottom: 4px; }
.table--stats tbody tr[data-goto] { cursor: pointer; }
.table--stats tbody tr[data-goto]:hover td { background: var(--surface-2); }
.table--stats tr.is-total td { background: var(--surface-2); font-weight: 700; }
.table--stats td, .table--stats th { padding: 9px 14px; }
.orga-stats__bar { width: 28%; min-width: 160px; }
.orga-stats__bar small { color: var(--muted); margin-left: 8px; font-variant-numeric: tabular-nums; }
.progress { display: inline-flex; width: calc(100% - 52px); height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; vertical-align: middle; }
.progress__done { background: var(--success); }
.progress__work { background: var(--info); opacity: .7; }

/* Aufgabenliste */
.table--tasks .group-row td {
  background: var(--surface-2); font-weight: 700; font-size: .85rem; padding: 8px 14px; color: var(--text);
}
.task-link {
  border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--text); text-align: left; cursor: pointer;
}
.task-link:hover { color: var(--brand); text-decoration: underline; }
.table--tasks tr.status-row--erledigt .task-link { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.table--tasks .c-status { white-space: nowrap; }
.table--tasks .c-tag, .table--tasks .c-uhrzeit, .table--tasks .c-frist, .table--tasks .c-menge { white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 34ch; }

.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 650; white-space: nowrap; }
.status--offen { background: var(--warn-soft); color: var(--warn); }
.status--in_arbeit { background: var(--info-soft); color: var(--info); }
.status--erledigt { background: var(--success-soft); color: var(--success); }
select.status-select {
  width: auto; padding: 4px 30px 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 650; border: 1px solid transparent;
  background-position: right 10px center; min-height: 32px; cursor: pointer;
}
select.status-select.status--offen { background-color: var(--warn-soft); color: var(--warn); }
select.status-select.status--in_arbeit { background-color: var(--info-soft); color: var(--info); }
select.status-select.status--erledigt { background-color: var(--success-soft); color: var(--success); }

.icon-btn--count { position: relative; }
.icon-btn__count {
  position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center;
}
.icon-btn--sm { width: 28px; height: 28px; }
.icon-btn--sm .icon { width: 15px; height: 15px; }
.icon-btn.is-confirm { color: #fff; background: var(--danger); border-color: var(--danger); }

/* Aufgaben-Dialog */
.modal__cols--task { grid-template-columns: 1.15fr 1fr; }
.segmented--3 { display: flex; }
.form.is-readonly input:disabled, .form.is-readonly select:disabled, .form.is-readonly textarea:disabled {
  background: var(--surface-2); border-style: solid;
}
.form.is-readonly .field > span:first-child::after { content: none; }
.form.is-readonly .segmented:has(input:disabled) { background: var(--surface-2); border-style: solid; }

/* Kommentare */
.comments__list { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; padding-right: 2px; }
.comment { border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; background: var(--surface); }
.comment--own { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); }
.comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .84rem; }
.comment__actions { margin-left: auto; display: inline-flex; gap: 4px; }
.comment__text { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment__edit { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.comment__edit-actions { display: flex; justify-content: flex-end; gap: 6px; }
.comments__new { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.comments__new .field { width: 100%; }

.grid-2--icon { grid-template-columns: 90px 1fr; }
.grid-2--switch { align-items: center; }

@media (max-width: 860px) {
  .orga-stats__bar { min-width: 110px; }
  .progress { width: calc(100% - 44px); }

  .modal__cols--task { grid-template-columns: 1fr; }
  /* Aufgaben als kompakte Karten: Bezeichnung, Status und Knopf oben, Details darunter */
  .table--tasks tr.task-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 8px; row-gap: 1px; padding: 11px 14px; align-items: start; }
  .table--tasks tr.task-row td { grid-column: 1 / -1; }
  .table--tasks tr.task-row td.c-titel { grid-column: 1; grid-row: 1; padding: 0 0 4px !important; font-size: 1rem; }
  .table--tasks tr.task-row td.c-titel::before { display: none; }
  .table--tasks tr.task-row td.c-status { grid-column: 2; grid-row: 1; padding: 0 !important; justify-self: end; }
  .table--tasks tr.task-row td.c-status::before { display: none; }
  .table--tasks tr.task-row td.c-actions,
  .table--tasks tr.task-row td.c-actions:has(.btn) {
    position: static; grid-column: 3; grid-row: 1; margin: 0; width: auto; max-width: none; padding: 0 !important; display: block;
  }
  .table--tasks tr.task-row td[data-label] { padding-left: 96px; font-size: .9rem; }
  .table--tasks tr.task-row td[data-label]::before { width: 90px; }
  .table--tasks .group-row td { display: block; position: sticky; top: 0; }
  .clamp-2 { max-width: none; }
}

@media (max-width: 600px) {
  .orga-head { gap: 8px; align-items: center; flex-wrap: nowrap; }
  .orga-head .field--inline { flex: 1 1 0; min-width: 0; }
  .orga-head .field--inline > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .orga-head__status { padding: 0; flex: none; }
  .orga-head:has(.orga-head__actions .btn:not([hidden])) { flex-wrap: wrap; }
  .stats-long { display: none; }
  .stats-short { display: inline; }
  /* Handy: Auswahlfeld statt Reiter */
  .tabs { display: none; }
  .tabs-select { display: flex; }
  .tabs-select > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stats th:nth-child(3), .table--stats td:nth-child(3),
  .table--stats th:nth-child(4), .table--stats td:nth-child(4) { display: none; }
  .table--stats td, .table--stats th { padding: 8px 8px; font-size: .88rem; }
  .orga-stats__bar { width: 34%; min-width: 0; }
  .orga-stats__bar small { display: none; }
  .progress { width: 100%; }
  .modal__cols--task > fieldset.comments { order: 1; }
  .comments__list { max-height: none; }
  .orga-copy select { min-width: 0; width: 100%; }
}

/* =========================================================================
 *  Aufgabenfenster, Editor, Dashboard, Sessionen
 * ========================================================================= */
.modal__title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.modal__title small { font-size: .85rem; }

/* Status farbig ganz oben */
.task-status { display: flex; flex-direction: column; gap: 6px; }
.segmented--status { width: 100%; }
.segmented--status span { padding: 9px 10px; }
.segmented--status .is-offen input:checked + span { background: var(--warn); color: #fff; }
.segmented--status .is-in_arbeit input:checked + span { background: var(--info); color: #fff; }
.segmented--status .is-erledigt input:checked + span { background: var(--success); color: #fff; }
.task-status[data-value="offen"] .segmented { border-color: var(--warn); }
.task-status[data-value="in_arbeit"] .segmented { border-color: var(--info); }
.task-status[data-value="erledigt"] .segmented { border-color: var(--success); }
.segmented--status:has(input:disabled) { background: var(--surface-2); background-image: none; border-style: solid; }
.segmented--status input:disabled:checked + span { opacity: 1; }

.task-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); }
.task-facts dt { color: var(--muted); font-size: .88rem; }
.task-facts dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-info { display: flex; flex-direction: column; gap: 14px; }
.task-assign legend { font-weight: 700; }

/* Editor für Kommentare */
.editor { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; width: 100%; }
.editor:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.editor__toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.editor__btn { border: 0; background: transparent; color: var(--text); font: inherit; font-size: .85rem; padding: 5px 9px; border-radius: 6px; cursor: pointer; min-width: 32px; }
.editor__btn:hover { background: var(--surface); }
.editor__area { position: relative; min-height: 76px; max-height: 260px; overflow-y: auto; padding: 9px 12px; outline: none; line-height: 1.45; }
.editor__area.is-empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; position: absolute; }
.editor__area p, .rich p { margin: 0 0 .45em; }
.editor__area ul, .editor__area ol, .rich ul, .rich ol { margin: .2em 0 .45em; padding-left: 1.4em; }
.rich > :last-child { margin-bottom: 0; }
.rich a, .editor__area a { color: var(--brand); text-decoration: underline; }
.comment__text.rich { white-space: normal; }

/* Dashboard */

/* Sessionen: Status je Liste */
.list-state { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.list-state__actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.list-state__actions:empty { display: none; }

/* Abschnitte je Bereich */
.abschnitte { display: flex; flex-direction: column; gap: 6px; }
.abschnitt-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto auto auto; gap: 8px; align-items: center; }
.abschnitt-row .sort-griff { margin-right: 0; }
.abschnitt-row small { min-width: 58px; text-align: right; }
.abschnitt-row.is-dragging { background: var(--info-soft); border-radius: var(--radius-sm); }
.abschnitt-row.is-inactive input[name="bezeichnung"] { color: var(--muted); }
.abschnitte__new { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; border-top: 1px solid var(--border); padding-top: 12px; }
.switch--sm .switch__track { width: 36px; height: 20px; }
.switch--sm .switch__track::after { width: 14px; height: 14px; }
.switch--sm input:checked + .switch__track::after { transform: translateX(16px); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }

@media (max-width: 600px) {
  .abschnitt-row { grid-template-columns: auto minmax(0, 1fr) auto auto auto; }
  .abschnitt-row small { display: none; }
  .abschnitt-row .switch { display: none; }
  .abschnitte__new { grid-template-columns: 1fr; }
  .task-facts { grid-template-columns: 1fr; gap: 2px; }
  .task-facts dd { margin-bottom: 6px; }
}

/* ------------------------------------------------ Mitglieder & Gruppen */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid-addr { display: grid; grid-template-columns: 2fr 110px 1.4fr; gap: 12px; }
.small { font-size: .85rem; }
.list-count { margin: -4px 0 8px; font-size: .85rem; }
.chip--brand { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Dialog-Reiter */
.dtabs { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.dtab {
  background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 12px; font: inherit; font-weight: 600;
  color: var(--muted); cursor: pointer; white-space: nowrap; margin-bottom: -1px;
}
.dtab:hover:not(:disabled) { color: var(--text); }
.dtab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.dtab:disabled { opacity: .45; cursor: not-allowed; }
.dtab[hidden] { display: none; }

/* Gruppenzugehörigkeiten im Mitgliedsdialog */
.memberships { display: grid; gap: 10px; margin-bottom: 12px; }
.membership { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface); }
.membership.is-past { background: var(--surface-2); }
.membership.is-past strong { color: var(--muted); }
.membership__head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.membership__actions { display: flex; gap: 4px; }
.fn-history { list-style: none; margin: 8px 0 6px; padding: 0 0 0 12px; border-left: 3px solid var(--border); display: grid; gap: 4px; }
.fn-history li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fn-history li.is-current { font-weight: 600; }
.fn-history li.is-current strong::before { content: "● "; color: var(--success); }
.fn-history__actions { display: flex; gap: 2px; flex-shrink: 0; }
.inline-form {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; padding: 10px; margin: 6px 0;
  background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius-sm);
}
.inline-form[hidden] { display: none; }
.inline-form .field { margin: 0; min-width: 140px; flex: 1; }
.inline-form .check { margin-bottom: 8px; }
.addbox { border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 8px 12px; background: var(--surface-2); }
.addbox > summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.addbox__body, .addbox--open { display: grid; gap: 10px; }
.addbox__body { margin-top: 10px; }
.addbox--open { margin-top: 14px; padding: 12px; }
#gruppe-members-dialog .switch { margin-bottom: 8px; }

@media (max-width: 760px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-addr { grid-template-columns: 1fr 96px; }
  .grid-addr > .field:last-child { grid-column: 1 / -1; }
  .dtabs { padding: 0 12px; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Gruppen (für alle): Übersicht, Gruppenfenster */
.event-card.is-highlight { outline: 3px solid var(--info); outline-offset: 2px; }
.g-name { display: flex; align-items: center; gap: 12px; }
.g-bild { flex: none; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--muted); }
.g-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-bild .icon { width: 22px; height: 22px; }
.is-abgesagt { text-decoration: line-through; color: var(--muted); }
.gruppe-kopf { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gruppe-kopf__bild { flex: none; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.gruppe-kopf__bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gruppe-beschreibung { margin: 0 0 8px; }
.gruppe-training { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: .9rem; }
.gruppe-training .field { margin: 0 0 8px; }
.gruppe-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 10px; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.btn-group[hidden] { display: none; }
.gruppe-verwalter { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.gruppe-verwalter[hidden] { display: none; }
.gruppe-verwalter__kopf { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.gruppe-verwalter__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gruppe-verwalter__liste > li { display: flex; align-items: center; gap: 10px; }
.gruppe-verwalter__name { flex: 1; min-width: 0; }
.gruppe-leiste__aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gruppe-termine { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gruppe-termine > li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.gruppe-termine > li.ist-abgesagt strong { text-decoration: line-through; color: var(--muted); }
.photo-edit--gruppe .photo-edit__img { width: 128px; height: 96px; border-radius: 10px; }
#gm-edit-dialog [data-gm-delete] { margin-right: auto; }
@media (max-width: 640px) {
  .table--gruppen td:first-child { padding-right: 132px; }
  .g-bild { width: 48px; height: 36px; }
  .g-bild--leer { display: none; }
  .gruppe-kopf__bild { width: 72px; height: 54px; }
}

/* ------------------------------------------------ Rollen & Rechte, Einstellungen */
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-head__actions [hidden] { display: none; }
.container--narrow { max-width: 820px; }
.btn--left { margin-right: auto; }
.check.is-disabled { opacity: .6; }
.rights { padding: 0; overflow: hidden; }
.rights__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.rights__bar .field { margin: 0; }
.rights__bar [data-dirty] { color: var(--warn); font-weight: 600; align-self: center; }
.rights__wrap { max-height: calc(100dvh - 260px); overflow: auto; }
.rights__table { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.rights__table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); box-shadow: inset 0 -1px 0 var(--border); vertical-align: bottom; }
.rights__table .rights__name { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; min-width: 240px; max-width: 360px; font-weight: 500; }
.rights__table thead .rights__name { z-index: 3; }
.rights__table td { text-align: center; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.rights__table tbody th { border-bottom: 1px solid var(--border); padding: 8px 12px; }
.rights__role { text-align: center; min-width: 110px; padding: 10px 8px; }
.rights__rolebtn { background: none; border: 0; font: inherit; font-weight: 700; color: var(--brand); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.rights__area th, .rights__area td { background: var(--surface-2) !important; }
.rights__area th { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; color: var(--muted); }
.rights__cell { display: inline-flex; padding: 6px; cursor: pointer; border-radius: 8px; position: relative; }
.rights__cell:hover { background: var(--brand-soft); }
.rights__cell input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.rights__cell input:disabled { cursor: not-allowed; }
.rights .alert { margin: 12px 16px; }
.settings { padding: 20px; display: grid; gap: 16px; }
.settings__group h2 { font-size: 1.05rem; margin: 0 0 10px; }
.settings__footer { display: flex; justify-content: flex-end; }

/* Mitglied nur ansehen (ohne Recht „Ändern“) */
#member-dialog.is-readonly .membership__actions,
#member-dialog.is-readonly .fn-history__actions,
#member-dialog.is-readonly [data-fn-new] { display: none; }
@media (max-width: 600px) {
  .rights__table .rights__name { min-width: 170px; }
  .rights__wrap { max-height: none; }
}
.rights__table tbody th { text-transform: none; letter-spacing: normal; font-size: .93rem; color: var(--text); font-weight: 600; padding: 6px 12px; }
.rights__table tbody th small { font-weight: 400; font-size: .8rem; }
.rights__table .rights__area th { text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; color: var(--muted); padding: 10px 12px; }
.rights__table td { padding: 2px 8px; }
.rights__table thead small { text-transform: none; letter-spacing: normal; font-weight: 400; }

.rights__wrap { position: relative; }

/* ------------------------------------------------ Termine */
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--info { background: var(--info-soft); color: var(--info); }
.btn--block { width: 100%; justify-content: center; }
.field--short { max-width: 180px; }
.check--top { align-items: flex-start; }
.check--top input { margin-top: 3px; }
.check.is-invalid span { color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.event-list { display: grid; gap: 12px; }
.event-month { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 0; }
.event-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.event-card.is-cancelled { opacity: .75; }
.event-card.is-cancelled h3 { text-decoration: line-through; text-decoration-color: var(--danger); }
.event-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; padding: 6px 0;
  background: var(--brand-soft); color: var(--brand); text-transform: uppercase; font-size: .72rem; font-weight: 700; line-height: 1.2; align-self: start;
}
.event-date strong { font-size: 1.6rem; line-height: 1.1; }
.event-card__main { min-width: 0; display: grid; gap: 8px; }
.event-card__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.event-card h3 { margin: 0; font-size: 1.08rem; }
.event-card__meta { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.event-card__admin { display: flex; gap: 4px; flex-shrink: 0; }
.event-card__admin .icon-btn { font-size: 1rem; }
.event-card__desc summary { cursor: pointer; color: var(--brand); font-size: .9rem; font-weight: 600; }
.event-card__reg { margin: 0; }
.event__counts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
.event-card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.event__rsvp, .event-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rich { font-size: .93rem; line-height: 1.55; }
.rich p { margin: .4em 0; }
.rich ul, .rich ol { margin: .4em 0; padding-left: 1.3em; }

.kpis--sm { margin: 0; }
.tn-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 8px; }
.tn-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tn-actions [hidden] { display: none; }
#tn-dialog .dtabs { padding: 0; margin-bottom: 6px; }
.qr { display: flex; justify-content: center; margin: 16px 0 8px; }
.qr svg { width: 220px; height: 220px; border: 1px solid var(--border); border-radius: 12px; padding: 6px; background: #fff; }
.qr-actions { display: flex; justify-content: center; gap: 8px; }
.cal-help { margin: 12px 0; }
.cal-help summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.cal-help ul { padding-left: 1.2em; font-size: .9rem; }
@media (max-width: 600px) {
  .event-card { grid-template-columns: 50px 1fr; gap: 12px; padding: 12px; }
  .event-date strong { font-size: 1.3rem; }
  .event-card__top { flex-direction: column; }
}

/* Öffentliche Seiten (Anmeldung, Abmelden) */
.public { min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 24px 16px; background:
    radial-gradient(1000px 500px at 10% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%), var(--bg); }
.public__card { width: min(620px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.public__brand { display: flex; align-items: center; gap: 12px; }
.public__brand small { display: block; color: var(--muted); font-size: .8rem; }
.public__brand strong { font-size: 1.05rem; }
.public h1 { margin: 6px 0 4px; font-size: 1.4rem; }
.public h2 { font-size: 1.1rem; margin: 0; }
.event { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; border-left: 4px solid var(--brand); }
.event__meta { margin: 6px 0 0; line-height: 1.6; }
.event__desc { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: .95rem; }
.public form { display: grid; gap: 12px; }

/* ===================================================================
 *  Dashboard: Listen (Termine, Aufgaben, Sponsoren); Kennzahl-Karten siehe „Kennzahlen: Karten“
 * ================================================================= */

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.panel__head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; font-weight: 650; }
.panel__head h2 .icon { width: 18px; height: 18px; color: var(--muted); }
.panel__head > a { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.panel__head > a::after { content: " →"; }
.panel__count:not(:empty) { font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.panel__empty { padding: 18px; margin: 0; }
.panel__more { margin: 0; padding: 8px 18px 12px; font-size: .84rem; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .75rem; font-weight: 600; white-space: nowrap;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.pill--success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.pill--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill--info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.pill--danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }

.rows, .agenda { list-style: none; margin: 0; padding: 4px 0; }
.rows li, .agenda li { display: flex; align-items: center; gap: 12px; padding: 10px 18px; }
.rows li + li, .agenda li + li { border-top: 1px solid var(--border); }
.rows__main, .agenda__main { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.rows__main strong, .agenda__main strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows__main small, .agenda__main small { color: var(--muted); font-size: .82rem; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
a.rows__main:hover strong, a.agenda__main:hover strong { color: var(--brand); }
.agenda__main small .icon { width: 13px; height: 13px; }
.agenda__sep { margin: 0 2px; }
.agenda__date {
  flex: none; width: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5px 0;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); line-height: 1.1;
}
.agenda__date strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.agenda__date small { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); font-weight: 700; }
.agenda__side { flex: none; display: flex; align-items: center; gap: 8px; }
.agenda__count { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-variant-numeric: tabular-nums; }
.agenda__count .icon { width: 14px; height: 14px; }
.agenda li.is-cancelled .agenda__main strong { text-decoration: line-through; color: var(--muted); }

@media (max-width: 600px) {
  .rows li, .agenda li { padding: 10px 14px; flex-wrap: wrap; }
  .agenda__side { margin-left: 60px; }
  .panel__head { padding: 12px 14px; }
}

/* ===================================================================
 *  Termin-Dialog: Hauptbereich + Seitenspalte
 * ================================================================= */
/* Termin-Dialog: nummerierte Schritte von oben nach unten (1 Was · 2 Wann & wo · 3 Für wen · 4 Anmeldung · 5 Beschreibung) */
.modal--lg { width: min(760px, calc(100vw - 24px)); }
.ev-steps { display: flex; flex-direction: column; gap: 0; }
.ev-step { padding: 14px 0 16px 40px; position: relative; }
.ev-step + .ev-step { border-top: 1px solid var(--border); }
.ev-step > .form-section__title { position: static; }
.ev-step__nr { position: absolute; left: 0; top: 11px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: .8rem; font-weight: 800; letter-spacing: 0; }
.ev-hint { margin: 0; font-size: .84rem; color: var(--muted); }
.ev-hint strong { color: var(--text); }
.ev-hint.is-error { color: var(--danger); }
.ev-repeat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; }
.ev-repeat__preview { grid-column: 1 / -1; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.ev-modus { display: flex; width: 100%; max-width: 420px; }
.ev-fuer { display: flex; width: 100%; max-width: 420px; margin-bottom: 6px; }
.ev-fuer[hidden], .ev-gruppen[hidden], [data-fuer-alle-hint][hidden] { display: none; }
.ev-modus label:has(input:disabled) span { opacity: .45; cursor: not-allowed; }
.ev-rhythmus { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; align-items: end;
  padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.ev-rhythmus > [data-r-tag] { grid-column: span 2; }
.ev-serie-ende { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.ev-serie-ende > .field { flex: 1 1 200px; margin: 0; }
.segmented--sm span { padding: 5px 10px; font-size: .86rem; white-space: nowrap; }
.ev-modus[hidden], .ev-rhythmus[hidden], .ev-serie-ende[hidden], .ev-multi[hidden], .ev-rhythmus > [hidden], .ev-serie-ende > [hidden] { display: none; }
.event-card__absage { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 0; padding: 6px 10px; border-radius: var(--radius-sm);
  background: var(--danger-soft); color: var(--danger); font-size: .88rem; }
.event-card__absage .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.ev-serie { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--info-soft); display: flex; flex-direction: column; gap: 6px; }
.ev-serie[hidden], .ev-repeat[hidden] { display: none; }
.ev-extra > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.ev-extra > summary::-webkit-details-marker { display: none; }
.ev-extra > summary::after { content: "▸"; color: var(--muted); margin-left: 2px; transition: transform .15s; }
.ev-extra[open] > summary::after { transform: rotate(90deg); }
.ev-extra__info { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: .8rem; }
.ev-extra__body { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ev-more-groups { align-self: flex-start; }
.reg-period.reg-period--2 { grid-template-columns: 1fr 1fr; }
.reg-period--2 > p { grid-column: 1 / -1; margin: 0; }
.modal__footer--wrap { flex-wrap: wrap; }
.btn--danger-soft { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn--danger-soft:hover { background: color-mix(in srgb, var(--danger) 18%, var(--surface)); }
.art-vorgaben { margin: 4px 0 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.art-vorgaben > legend { padding: 0 6px; }
.form-section { display: flex; flex-direction: column; gap: 10px; }
.form-section + .form-section { border-top: 1px solid var(--border); padding-top: 14px; }
.form-section__title { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.grid-2--wide-first { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.ev-when { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.ev-when__allday { padding-bottom: 10px; white-space: nowrap; }
.ev-multi > summary { cursor: pointer; font-size: .88rem; color: var(--brand); font-weight: 600; width: fit-content; }
.ev-multi[open] > summary { margin-bottom: 8px; }
.group-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.group-chips:empty { display: none; }
.group-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border); font-size: .84rem; font-weight: 550;
}
.group-chip button {
  border: 0; background: transparent; color: var(--muted); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1;
}
.group-chip button:hover { background: var(--danger-soft); color: var(--danger); }
[data-action="more-groups"] { align-self: flex-start; }
.ev-notify, .ev-notify:has(input:checked) { margin-top: 4px; padding: 10px 0 0; border: 0; border-top: 1px dashed var(--border); border-radius: 0; background: transparent; }
.reg-period { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.reg-period[hidden] { display: none; }
.checks--list { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow-y: auto; }
.checks--list .check { padding: 8px 10px; border-radius: var(--radius-sm); }
.checks--list .check:hover { background: var(--surface-2); }

/* Begleitpersonen mit Namen */
.companions { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.companions[hidden] { display: none; }
.companions legend { padding: 0 6px; font-weight: 600; font-size: .9rem; }
.companions__names { display: grid; grid-template-columns: 1fr; gap: 8px; }
.companions__names:empty { display: none; }
.companions__names--grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.is-invalid-text { color: var(--danger); font-size: .85rem; font-weight: 600; }
.tn-companions { color: var(--muted); margin-top: 2px; }
.event-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.event-card__meta span .icon { width: 14px; height: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .ev-step { padding-left: 34px; }
  .ev-repeat, .reg-period.reg-period--2 { grid-template-columns: 1fr; }
  .ev-rhythmus { grid-template-columns: 1fr 1fr; }
  .ev-rhythmus > .field:first-child { grid-column: 1 / -1; }
  .ev-modus, .ev-fuer { max-width: none; }
  .ev-when { grid-template-columns: 1fr 1fr; }
  .ev-when > .field:first-child { grid-column: 1 / -1; }
  .ev-when__allday { grid-column: 1 / -1; padding-bottom: 0; }
  .grid-2--wide-first { grid-template-columns: 1fr; }
}

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--muted); }
.dot--success { background: var(--success); }
.dot--danger { background: var(--danger); }
.dot--warn { background: var(--warn); }
@media (max-width: 600px) {
  .agenda li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; }
  .agenda__side { grid-column: 2; margin-left: 0; }
  .agenda__main strong, .rows__main strong { white-space: normal; }
}

/* Belege (Rechnung / Spendenquittung) */
.alert--warn { background: var(--warn-soft); color: var(--warn); }
.alert--warn ul { margin: 6px 0 0; padding-left: 18px; }
.btn--primary-soft { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.btn--primary-soft:hover { background: var(--brand); color: #fff; }
.beleg-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.beleg-link .icon { width: 13px; height: 13px; }
.beleg-addr { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.beleg-addr__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.beleg-addr address { font-style: normal; line-height: 1.4; }
[data-beleg="create"] { display: flex; flex-direction: column; gap: 12px; }
[data-beleg="create"][hidden] { display: none; }
.beleg-list { list-style: none; margin: 0 0 4px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.beleg-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; flex-wrap: wrap; }
.beleg-list li + li { border-top: 1px solid var(--border); }
.beleg-list__main { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.beleg-list__main > .icon { width: 18px; height: 18px; color: var(--muted); flex: none; margin-top: 2px; }
.beleg-list__act { display: flex; gap: 6px; flex-wrap: wrap; }
.beleg-list li.is-storniert strong { text-decoration: line-through; color: var(--muted); }
.beleg-settings { display: flex; flex-direction: column; gap: 14px; }
.beleg-settings__group { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px 14px; margin: 0; }
.beleg-settings__group legend { padding: 0 6px; font-weight: 650; }
.beleg-settings__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.beleg-settings__wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .beleg-settings__grid { grid-template-columns: 1fr; } }
.rights-audit { margin-top: 16px; }

/* Bilder der Mitglieder */
.m-name { display: flex; align-items: center; gap: 10px; }
.m-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); }
.m-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-avatar--ini { font-size: .8rem; font-weight: 700; color: var(--muted); }
.avatar--img { padding: 0; overflow: hidden; }
.avatar--img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.photo-edit { display: flex; gap: 16px; align-items: flex-start; padding: 12px; margin-bottom: 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.photo-edit__img { flex: none; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; }
.photo-edit__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-edit__ph { font-size: 1.6rem; font-weight: 700; color: var(--muted); }
.photo-edit__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.photo-edit__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-edit__actions[hidden], .photo-edit__confirm[hidden] { display: none; }
.photo-edit__confirm { display: flex; flex-direction: column; gap: 8px; }
.photo-edit__confirm .check, .photo-edit__confirm .check:has(input:checked) { background: var(--surface); border-color: var(--border); }
.photo-edit label.btn { cursor: pointer; position: relative; }
@media (max-width: 600px) { .photo-edit { flex-direction: column; align-items: center; text-align: center; } .photo-edit__actions { justify-content: center; } }

/* Mein Konto */
.userbox__me { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 999px; color: var(--text); text-decoration: none; }
.userbox__me:hover, .userbox__me.is-active { background: var(--surface-2); text-decoration: none; }
.userbox__me .userbox__name { font-weight: 600; }
a.mainnav__user { color: var(--text); text-decoration: none; }
a.mainnav__user:hover small { color: var(--brand); }
.profile { display: flex; flex-direction: column; gap: 18px; }
.profile-head { padding: 20px; }
.photo-edit--profile { border: 0; background: transparent; padding: 0; align-items: center; gap: 22px; }
.photo-edit--profile .photo-edit__img { width: 128px; height: 128px; }
.photo-edit--profile .photo-edit__ph { font-size: 2.4rem; }
.photo-edit--profile h1 { margin: 0; font-size: 1.6rem; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel__pad { padding: 14px 18px 18px; }
.profile-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.profile-dl dt { color: var(--muted); font-size: .88rem; }
.profile-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.profile-sub { margin: 4px 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.profile-sub ~ .profile-sub { margin-top: 18px; }
.ptl { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.ptl__item { position: relative; }
.ptl__item::before { content: ""; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: 2px solid var(--surface); }
.ptl__item.is-current::before { background: var(--success); }
.ptl__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ptl__fn { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ptl__fn li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .92rem; }
.ptl__fn li.is-current { background: var(--success-soft); }
.ptl--past { opacity: .8; }
.profile-history > summary { cursor: pointer; list-style: none; border-bottom: 0; }
.profile-history > summary::-webkit-details-marker { display: none; }
.profile-history[open] > summary { border-bottom: 1px solid var(--border); }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .photo-edit--profile { flex-direction: column; text-align: center; }
  .photo-edit--profile .chips, .photo-edit--profile .photo-edit__actions { justify-content: center; }
  .profile-dl { grid-template-columns: 1fr; gap: 2px; }
  .profile-dl dd { margin-bottom: 8px; }
}

/* Anlagen zu Terminen */
.att-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.att-list[hidden] { display: none; }
.att-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); flex-wrap: wrap; }
.att-item > .icon { width: 16px; height: 16px; color: var(--muted); flex: none; }
.att-item > a, .att-item > span { font-weight: 550; min-width: 0; overflow-wrap: anywhere; flex: 1 1 140px; }
.att-item.is-pending { border-style: dashed; background: var(--surface-2); }
.att-item .check--inline { padding: 2px 8px; gap: 6px; font-size: .82rem; border: 0; background: transparent; }
.att-item .check--inline input { width: 15px; height: 15px; }
.att-add { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.att-add label.btn { cursor: pointer; position: relative; }
.att-add label.btn.is-busy { opacity: .6; pointer-events: none; }
.event-card__att { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.att-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
  font-size: .82rem; font-weight: 550; color: var(--text); text-decoration: none; max-width: 100%; }
.att-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-chip .icon { width: 13px; height: 13px; color: var(--muted); flex: none; }
.att-chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.event__att { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.event__att a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }

/* ===================================================================== Stuhlplan Kappensitzung */
.container--wide { max-width: 1680px; }
:root {
  --sp-frei: #ffffff;
  --sp-frei-line: #9aa3b2;
  --sp-belegt: #c4203a;
  --sp-mein: #1f8a4c;
  --sp-res: #e9b949;
  --sp-zusatz: #e08a16;
  --sp-tisch: #f1ece2;
  --sp-tisch-line: #6b6253;
}
@media (prefers-color-scheme: dark) {
  :root { --sp-frei: #2a303c; --sp-frei-line: #6b7586; --sp-belegt: #e2475f; --sp-mein: #35c27a; --sp-tisch: #3a352c; --sp-tisch-line: #a39883; }
}
.seating-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 14px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; }
.seg__btn { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 550; padding: 6px 12px; border-radius: 7px; cursor: pointer; min-height: 34px; }
.seg__btn.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg__btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }
.sp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.sp-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sp-dot { display: inline-block; width: 14px; height: 11px; border-radius: 3px; border: 1px solid var(--sp-frei-line); background: var(--sp-frei); }
.sp-dot--mein { background: var(--sp-mein); border-color: var(--sp-mein); }
.sp-dot--belegt { background: var(--sp-belegt); border-color: var(--sp-belegt); }
.sp-dot--zusatz { background: var(--sp-zusatz); border-color: var(--sp-zusatz); border-radius: 50%; width: 12px; height: 12px; }

.seating-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.sp-stage { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 84px; }
.sp-scroll { overflow: auto; max-height: calc(100vh - 120px); overscroll-behavior: contain; }
.sp-svg { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; touch-action: none; }
.sp-scroll.is-pan .sp-svg { touch-action: pan-x pan-y pinch-zoom; cursor: grab; }
.sp-block { fill: none; stroke: var(--border); stroke-width: 1.2; }
.sp-blocklabel { fill: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.sp-buehne { fill: color-mix(in srgb, var(--accent) 30%, var(--surface)); stroke: color-mix(in srgb, var(--accent) 70%, #000); stroke-width: 1; }
.sp-buehnelabel { font-size: 16px; font-weight: 800; letter-spacing: .3em; fill: var(--text); }
.sp-tisch { fill: var(--sp-tisch); stroke: var(--sp-tisch-line); stroke-width: .7; }
.sp-tnr { font-size: 8.5px; font-weight: 700; fill: var(--text); pointer-events: none; }
.sp-chair, .sp-zchair { fill: var(--sp-frei); stroke: var(--sp-frei-line); stroke-width: .7; transition: fill .12s; }
.sp-chair.is-belegt, .sp-zchair.is-belegt { fill: var(--sp-belegt); stroke: var(--sp-belegt); }
.sp-chair.is-mein, .sp-zchair.is-mein { fill: var(--sp-mein); stroke: var(--sp-mein); }
.sp-chair.is-reserviert, .sp-zchair.is-reserviert { fill: var(--sp-res); stroke: var(--sp-res); }
.sp-zchair.is-belegt, .sp-zbadge.is-belegt { fill: var(--sp-zusatz); stroke: var(--sp-zusatz); }
.sp-zbadge { fill: var(--sp-zusatz); stroke: #fff; stroke-width: .8; }
.sp-zbadge.is-mein { fill: var(--sp-mein); }
.sp-zbadge.is-reserviert { fill: var(--sp-res); }
.sp-zbadge__txt { font-size: 6px; font-weight: 800; fill: #fff; pointer-events: none; }
.sp-chair.is-hl, .sp-zchair.is-hl { stroke: var(--text); stroke-width: 1.6; }
.sp-svg.is-booking .sp-chair, .sp-svg.is-booking .sp-tisch, .sp-svg.is-booking .sp-zg { cursor: pointer; }
.sp-svg.is-booking .sp-chair.is-frei:hover { fill: color-mix(in srgb, var(--sp-mein) 35%, var(--sp-frei)); }
.sp-svg.is-booking .sp-tisch:hover { fill: color-mix(in srgb, var(--sp-mein) 18%, var(--sp-tisch)); }
.sp-table.is-active .sp-tisch { stroke: var(--sp-mein); stroke-width: 1.8; }
.sp-table.is-voll .sp-tisch { fill: color-mix(in srgb, var(--sp-belegt) 25%, var(--sp-tisch)); }
.sp-rubber { fill: color-mix(in srgb, var(--sp-mein) 15%, transparent); stroke: var(--sp-mein); stroke-width: 1; stroke-dasharray: 4 3; pointer-events: none; }

.sp-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.badge--info { background: var(--info-soft); color: var(--info); }
.sp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.sp-kpis div { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; }
.sp-kpis dt { font-size: .75rem; color: var(--muted); }
.sp-kpis dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.sp-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--border); padding-top: 10px; font-size: .85rem; color: var(--muted); }
.sp-total strong { font-size: 1.35rem; color: var(--text); font-variant-numeric: tabular-nums; }
.sp-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.sp-link input { width: 100%; font-size: .8rem; }
.sp-link .sp-actions { margin-top: 8px; justify-content: flex-start; }
.sp-search { width: 100%; }
.check--sm { padding: 6px 10px; font-size: .85rem; }
.sp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; }
.sp-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.sp-item.is-hl { border-color: var(--text); box-shadow: 0 0 0 2px color-mix(in srgb, var(--text) 15%, transparent); }
.sp-item.is-storno { opacity: .6; }
.sp-item__main { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; font: inherit; color: inherit; cursor: pointer; }
.sp-item__head { display: flex; align-items: center; gap: 8px; }
.sp-item__betrag { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-item__text { font-weight: 550; overflow-wrap: anywhere; }
.sp-item__meta { font-size: .8rem; color: var(--muted); }
.sp-item__actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.btn--danger-text { color: var(--danger); }
.sp-empty { padding: 8px 0; }

@media (max-width: 1100px) {
  .seating-layout { grid-template-columns: 1fr; }
  .sp-stage { position: static; }
  .sp-scroll { max-height: 70vh; }
}

/* Präsentationsansicht */
.sp-show-body { background: var(--bg); }
.sp-show { display: flex; flex-direction: column; height: 100vh; padding: 12px 18px; gap: 10px; }
.sp-show__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sp-show__title { display: flex; flex-direction: column; margin-right: auto; }
.sp-show__title strong { font-size: clamp(1.1rem, 2.2vw, 1.9rem); }
.sp-show__title small { color: var(--muted); }
.sp-show__title small.is-error { color: var(--danger); font-weight: 600; }
.sp-show__kpis { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.sp-show__kpis div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 14px; text-align: center; min-width: 96px; }
.sp-show__kpis dt { font-size: .8rem; color: var(--muted); }
.sp-show__kpis dd { margin: 0; font-size: clamp(1.3rem, 2.6vw, 2.3rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.sp-show__kpis .is-frei dd { color: var(--sp-mein); }
.sp-show__plan { flex: 1; min-height: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; display: flex; }
.sp-svg--show { width: 100%; height: 100%; touch-action: auto; }
.sp-legend--show { justify-content: center; }
@media (max-width: 700px) { .sp-show { height: auto; } }

/* ===================================================================== i-Symbol am Titel, Menü „Weitere Funktionen“ */
.page-head h1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.info-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; flex: none;
  transition: color .15s, border-color .15s, background .15s;
}
.info-btn .icon { width: 18px; height: 18px; margin: 0; }
.info-btn:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.info-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.intro-dialog__body { line-height: 1.6; }

.more { position: relative; }
.more__btn { display: inline-flex; align-items: center; gap: 6px; }
.more__btn .icon { margin: 0; }
.more__menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 260px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 2px;
}
.more__menu[hidden] { display: none; }
.more__item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.more__item:hover, .more__item:focus-visible { background: var(--surface-2); outline: none; }
.more__item .icon { margin: 0; color: var(--muted); flex: none; }
.more__item small { display: block; color: var(--muted); font-size: .78rem; }
.more__item[hidden] { display: none; }
.more__sep { height: 1px; background: var(--border); margin: 4px 6px; }

/* ===================================================================== Stuhlplan – Überarbeitung 09.11.2026 */
.seating-toolbar { align-items: center; }
.sp-session {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 4px 0 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 600; color: var(--muted);
}
.sp-session select { height: 34px; min-height: 0; padding: 0 30px 0 10px; border: 0; border-radius: 7px; background-color: var(--surface); box-shadow: var(--shadow); font-weight: 600; color: var(--text); }
.btn--lg { padding: 13px 18px; font-size: 1rem; }

.sp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.sp-x { border: 0; background: transparent; color: var(--muted); font-size: 1.35rem; line-height: 1; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; flex: none; }
.sp-x:hover { background: var(--surface-2); color: var(--text); }

/* Ruhezustand */
.sp-idle { padding: 22px 20px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
.sp-idle__icon { align-self: center; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--sp-mein) 12%, var(--surface)); color: var(--sp-mein); }
.sp-idle__icon .icon { width: 28px; height: 28px; margin: 0; }
.sp-idle__title { margin: 0; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sp-idle__title .icon { margin: 0; }
.sp-idle__text { margin: 4px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.sp-idle [data-sp-lockinfo] { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* Buchungsvorgang */
.sp-book { display: flex; flex-direction: column; overflow: hidden; border-color: color-mix(in srgb, var(--sp-mein) 45%, var(--border)); }
.sp-book__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 18px 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sp-mein) 14%, var(--surface)), var(--surface));
  border-bottom: 1px solid var(--border);
}
.sp-book__eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sp-mein); }
.sp-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-mein); box-shadow: 0 0 0 0 color-mix(in srgb, var(--sp-mein) 60%, transparent); animation: sp-pulse 1.8s infinite; }
@keyframes sp-pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .sp-pulse { animation: none; } }
.sp-book__title { margin: 2px 0 0; font-size: 1.35rem; }
.sp-tag { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.sp-book__section { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.sp-book__section + .sp-book__section { border-top: 1px solid var(--border); }
.sp-stats { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; }
.sp-stats div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.sp-stats span { font-size: 1.5rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sp-stats small { color: var(--muted); font-size: .75rem; font-weight: 600; }
.sp-stats .is-main { background: var(--sp-mein); color: #fff; }
.sp-stats .is-main small { color: rgba(255, 255, 255, .85); }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-chips__empty { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.sp-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--sp-mein) 35%, var(--border)); background: color-mix(in srgb, var(--sp-mein) 8%, var(--surface));
  font: inherit; font-size: .82rem; color: var(--text);
}
.sp-chip span { background: var(--surface); border-radius: 999px; padding: 1px 7px; font-weight: 700; font-size: .75rem; color: var(--sp-mein); }
.sp-chip.is-active { background: var(--sp-mein); color: #fff; border-color: var(--sp-mein); }
.sp-tip { margin: 0; padding: 10px 18px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--border); }

.sp-tt { background: color-mix(in srgb, var(--sp-mein) 6%, var(--surface)); }
.sp-tt__head { display: flex; align-items: center; gap: 10px; }
.sp-tt__head > div { flex: 1; display: flex; flex-direction: column; }
.sp-tt__head small { font-size: .8rem; }
.sp-tt__nr { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sp-mein); color: #fff; font-weight: 800; font-size: 1.05rem; flex: none; }
.sp-steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-stepper { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.sp-stepper--row { flex-direction: row; align-items: center; justify-content: space-between; font-size: .9rem; color: var(--text); }
.sp-stepper__ctl { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.sp-stepper__ctl button { width: 38px; height: 38px; border: 0; background: transparent; font-size: 1.15rem; font-weight: 700; color: var(--text); cursor: pointer; }
.sp-stepper__ctl button:hover { background: var(--surface-2); }
.sp-stepper__ctl output, .sp-stepper__ctl input {
  flex: 1; min-width: 36px; width: 48px; text-align: center; font-weight: 800; font-size: 1rem; color: var(--text);
  border: 0; border-inline: 1px solid var(--border); border-radius: 0; height: 38px; line-height: 38px; padding: 0; background: transparent; -moz-appearance: textfield;
}
.sp-stepper__ctl input::-webkit-outer-spin-button, .sp-stepper__ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sp-steppers .sp-stepper__ctl { width: 100%; }

.sp-fields .field > span { font-size: .8rem; }
.seg--block { display: grid; grid-template-columns: repeat(3, 1fr); }
.seg__btn input { position: absolute; opacity: 0; pointer-events: none; }
label.seg__btn { position: relative; text-align: center; display: flex; align-items: center; justify-content: center; }
label.seg__btn:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }

.sp-book__foot { padding: 14px 18px 16px; border-top: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.sp-book__foot .sp-total { border: 0; padding: 0; display: flex; flex-direction: column; align-items: stretch; gap: 2px; color: inherit; }
.sp-book__foot .sp-total > div { display: flex; justify-content: space-between; align-items: baseline; }
.sp-book__foot .sp-total small { font-size: .8rem; color: var(--muted); }
.sp-book__foot .sp-total strong { font-size: 1.7rem; }
.sp-book__btns { display: grid; grid-template-columns: auto 1fr; gap: 8px; }

/* Kennzahlen */
.sp-kpi-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.sp-kpi-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-kpi-card__head h2 { margin: 0; font-size: 1.05rem; }
.sp-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .75rem; font-weight: 700; }
.sp-occ__bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--sp-mein) 18%, var(--surface-2)); }
.sp-occ__bar span { display: block; height: 100%; transition: width .3s; }
.sp-occ__bar .is-belegt { background: var(--sp-belegt); }
.sp-occ__bar .is-mein { background: var(--sp-mein); }
.sp-occ__txt { margin-top: 6px; font-size: .9rem; }
.sp-occ__txt strong { font-size: 1.3rem; }
.sp-kpi-card .sp-kpis div { background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 6px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sp-kpi-card .sp-kpis { column-gap: 18px; row-gap: 0; }
.sp-kpi-card .sp-kpis dd { margin: 0; font-size: .95rem; }

/* Hervorgehobener Vorgang */
.sp-hl { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--surface); border: 2px solid var(--text); box-shadow: var(--shadow); font-size: .9rem; }
.sp-hl[hidden] { display: none; }
.sp-hl > div { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.sp-hl small { font-size: .78rem; }
.sp-hl__mark { width: 12px; height: 12px; border-radius: 3px; background: var(--sp-belegt); outline: 2px solid var(--text); outline-offset: 1px; flex: none; }

/* Fenster: Vorgänge, Link */
.sp-list-tools { display: flex; gap: 8px; align-items: center; position: sticky; top: -18px; background: var(--surface); padding: 2px 0 6px; z-index: 1; }
.sp-list-tools .sp-search { flex: 1; }
.sp-list-body .sp-list { max-height: none; overflow: visible; }
#sp-list-dialog .modal__body { max-height: min(70vh, 720px); }
.sp-link__empty { color: var(--muted); padding: 12px; border: 1px dashed var(--border); border-radius: var(--radius-sm); text-align: center; }
.sp-panel { gap: 14px; }

@media (max-width: 600px) {
  .page-head:has([data-more]) { flex-wrap: nowrap; align-items: center; }
  .page-head:has([data-more]) .page-head__actions { flex: none; }
  .more__btn span { display: none; }
  .more__btn { padding: 9px 11px; }
  .more__menu { min-width: min(300px, calc(100vw - 24px)); }
}
.sp-chair.is-hl, .sp-zchair.is-hl { stroke: var(--text); stroke-width: 2.2; }

/* =========================================================================
   Unterschrift (Beleg-Dialog, Mein Konto) · E-Rechnung · „kein Beleg“
   ========================================================================= */
.sig { display: flex; flex-direction: column; gap: 10px; }
.sig__modes { align-self: flex-start; flex-wrap: wrap; max-width: 100%; }
.sig__modes span { padding: 6px 12px; }
.sig__panel { display: flex; flex-direction: column; gap: 6px; }
.sig__pad {
  position: relative; height: 140px; border: 1px dashed color-mix(in srgb, var(--muted) 55%, transparent);
  border-radius: var(--radius-sm); background: #fff; overflow: hidden;
}
.sig__pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; display: block; }
.sig__line { position: absolute; left: 7%; right: 7%; bottom: 34px; border-bottom: 1.5px solid #b8bec9; pointer-events: none; }
.sig__x { position: absolute; left: 7%; bottom: 36px; color: #9aa1ad; font-size: 18px; line-height: 1; pointer-events: none; }
.sig__hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12.5px; color: #7b8494; pointer-events: none; }
.sig__clear {
  position: absolute; top: 6px; right: 6px; border: 1px solid #d6dae1; background: #fff; color: #4b5563; border-radius: 7px;
  padding: 3px 9px; font: inherit; font-size: 12.5px; cursor: pointer;
}
.sig__clear:hover { background: #f3f4f6; }
.sig__box {
  min-height: 70px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.sig__box img { max-width: 100%; max-height: 110px; object-fit: contain; display: block; }
.sig__box .muted { color: #6b7280; }
.sig__box--current { justify-content: flex-start; max-width: 420px; }
.sig__filebar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sig__save, .sig__save:has(input:checked) { margin-top: 2px; padding: 0; border: 0; background: none; align-items: flex-start; }
.sig__save input { margin-top: 2px; }
.beleg-zugferd { align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 14px; }
.beleg-zugferd .switch__track { margin-top: 2px; }
.beleg-art { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 42px; margin-bottom: 14px; }
.beleg-art .switch { flex: none; }
.beleg-art .field { margin: 0; }
.beleg-create { display: flex; flex-direction: column; gap: 12px; }
.beleg-col { display: flex; flex-direction: column; gap: 12px; }
.beleg-col .field, .beleg-col .beleg-zugferd { margin-bottom: 0; }
.beleg-cols { gap: 24px; }
.beleg-cols .beleg-col--right { border-left: 1px solid var(--border); padding-left: 24px; }
.beleg-create .hint { margin: 0; }
@media (max-width: 820px) {
  .beleg-cols .beleg-col--right { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
}
.profile-sig .panel__pad { display: flex; flex-direction: column; gap: 12px; }
.profile-sig__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-sig__edit { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
@media (max-width: 640px) {
  .sig__pad { height: 140px; }
}

/* ---------------------------------------------- Rechnungsnummern & Vereinsstempel */
.yearbar { background: var(--warn-soft); border-bottom: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); color: var(--text); }
.yearbar__inner { max-width: 1360px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.yearbar__icon { color: var(--warn); display: inline-flex; }
.yearbar__icon svg { width: 20px; height: 20px; }
.yearbar__text { margin: 0; flex: 1 1 320px; }
.yearbar__muted { color: var(--muted); }
.yearbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .yearbar__inner { padding: 10px 12px; } .yearbar__actions .btn { flex: 1 1 auto; } }

.renr-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.renr-grid .field { margin-bottom: 0; }
@media (max-width: 480px) { .renr-grid { grid-template-columns: 1fr; } }
.renr-beispiel { margin: 12px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.renr-beispiel strong { font-variant-numeric: tabular-nums; }
.renr-log { margin-top: 12px; }
.renr-log summary { cursor: pointer; color: var(--muted); font-size: 13.5px; }
.renr-log__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; max-height: 180px; overflow: auto; }
.renr-log__list li { display: flex; gap: 10px; flex-wrap: wrap; }
.renr-log__when { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 118px; }
.renr-card__now { margin: 2px 0 4px; }
.renr-card__now strong { font-size: 1.05em; font-variant-numeric: tabular-nums; }

.beleg-nr__line { display: flex; gap: 6px; align-items: center; }
.beleg-nr__line input { flex: 1 1 auto; min-width: 0; font-variant-numeric: tabular-nums; }
.beleg-nr__line .btn { flex: none; }
.beleg-nr > label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.beleg-nr.is-manual input, [data-beleg="zuw-field"].is-manual input { border-color: var(--warn); }
[data-beleg="zuw-field"].is-manual small { color: var(--warn); }
.beleg-nr.is-manual [data-beleg="nr-hint"] { color: var(--warn); }
.beleg-stempel { align-items: center; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.beleg-stempel__text { flex: 1 1 auto; }
.beleg-stempel__img { width: 40px; height: 40px; object-fit: contain; flex: none; background: #fff; border-radius: 6px; padding: 2px; }

.beleg-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 720px) { .beleg-extras { grid-template-columns: 1fr; } }
.beleg-extras__actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.stempel-box { min-height: 90px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; display: flex; align-items: center; justify-content: center; }
.stempel-box img { max-width: 100%; max-height: 120px; object-fit: contain; display: block; }
.stempel-box .muted { color: #6b7280; }
.beleg-extras .muted.small, .beleg-extras .renr-card__now { margin: 4px 0; }

/* ---------------------------------------------- Sponsoren aus den Stammdaten hinzufügen */
.fehlend-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fehlend-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 6px; }
.fehlend-list { list-style: none; margin: 0; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  max-height: min(46vh, 380px); overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.fehlend-list li { padding: 6px 8px; border-radius: 8px; }
.fehlend-list li:hover { background: var(--surface-2); }
.fehlend-list .check { align-items: flex-start; margin: 0; }
.fehlend-rest { margin-top: 10px; }
.restore-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.restore-list li { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.fehlend-hint { margin-bottom: 16px; }

/* ---------------------------------------------- Sponsorenliste: Status (Pastellfarben) */
:root {
  --st-leer: #f2b8b5;     --st-leer-bg: #fdecea;    --st-leer-tx: #9b2c2c;
  --st-zusage: #f5c98e;   --st-zusage-bg: #fdf1e0;  --st-zusage-tx: #8a5000;
  --st-beleg: #a9dbb6;    --st-beleg-bg: #e6f5ea;   --st-beleg-tx: #23673a;
  --st-bezahlt: #6cc08b;  --st-bezahlt-bg: #d6efdf; --st-bezahlt-tx: #135c34;
  --st-inaktiv: #d3d8e0;  --st-inaktiv-bg: #eef0f4; --st-inaktiv-tx: #5b6474;
  --mine-bg: #f1f5fd;
}
@media (prefers-color-scheme: dark) {
  :root {
    --st-leer: #8c4a4a;     --st-leer-bg: #3a2224;    --st-leer-tx: #f3b3b0;
    --st-zusage: #9a6a2c;   --st-zusage-bg: #3a2c18;  --st-zusage-tx: #f4c88d;
    --st-beleg: #3f7d55;    --st-beleg-bg: #1b3326;   --st-beleg-tx: #a8dcb6;
    --st-bezahlt: #4fae74;  --st-bezahlt-bg: #17382a; --st-bezahlt-tx: #9fe0b8;
    --st-inaktiv: #4a5160;  --st-inaktiv-bg: #252a34; --st-inaktiv-tx: #a3acbb;
    --mine-bg: #172235;
  }
}
.table--overview tr > td:first-child { box-shadow: inset 5px 0 0 var(--st-color, transparent); }
.table--overview tr.st-leer { --st-color: var(--st-leer); }
.table--overview tr.st-zusage { --st-color: var(--st-zusage); }
.table--overview tr.st-beleg { --st-color: var(--st-beleg); }
.table--overview tr.st-bezahlt { --st-color: var(--st-bezahlt); }
.table--overview tr.st-inaktiv { --st-color: var(--st-inaktiv); }
@media (max-width: 860px) {
  .table--overview tr > td:first-child { box-shadow: none; }
  .table--overview tr { box-shadow: inset 5px 0 0 var(--st-color, transparent); }
}
.st-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.st-pill svg { width: 14px; height: 14px; }
.st-pill--leer { background: var(--st-leer-bg); color: var(--st-leer-tx); }
.st-pill--zusage { background: var(--st-zusage-bg); color: var(--st-zusage-tx); }
.st-pill--beleg { background: var(--st-beleg-bg); color: var(--st-beleg-tx); }
.st-pill--bezahlt { background: var(--st-bezahlt-bg); color: var(--st-bezahlt-tx); }
.st-pill--inaktiv { background: var(--st-inaktiv-bg); color: var(--st-inaktiv-tx); }
.st-note { display: block; color: var(--muted); font-size: .76rem; margin-top: 3px; }
.st-note--warn { color: var(--st-zusage-tx); }
.st-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; color: var(--muted); font-size: .8rem; }
.st-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dot--leer { background: var(--st-leer); }
.dot--zusage { background: var(--st-zusage); }
.dot--beleg { background: var(--st-beleg); }
.dot--bezahlt { background: var(--st-bezahlt); }
.dot--mine { background: var(--mine-bg); border: 1px solid var(--border); }

/* ---------------------------------------------- Kennzahlen: Karten (Sponsorenliste, Startseite) */
.sumbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.sum { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sum__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sum__label { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.sum__big { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.sum__big strong { font-size: 1.45rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sum__of { color: var(--muted); font-size: .86rem; }
.sum__link { font: inherit; font-size: .8rem; color: var(--muted); background: none; border: 0; padding: 2px 6px; border-radius: 6px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.sum__link:hover, .sum__row:hover { background: var(--surface-2); color: var(--text); }
.sum__link.is-active, .sum__row.is-active { background: var(--brand-soft); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent); }
.sum__row { font: inherit; color: inherit; background: none; border: 0; text-align: left; cursor: pointer; border-radius: 8px;
  padding: 3px 6px; margin: 0 -6px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 3px; align-items: baseline; }
.sum__row strong { font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.sum__row .bar { grid-column: 1 / -1; }
.sum__rowlabel { font-size: .88rem; }
.sum__legend { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0 -6px; }
.bar { display: flex; height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.bar--sm { height: 6px; }
.bar__fill { display: block; height: 100%; width: 0; transition: width .25s ease; }
.bar__fill--zusage { background: var(--st-zusage); }
.bar__fill--beleg { background: var(--st-beleg); }
.bar__fill--bezahlt { background: var(--st-bezahlt); }
.sum:focus-within { border-color: color-mix(in srgb, var(--brand) 25%, var(--border)); }
.sum__link:focus-visible, .sum__row:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; }
/* Startseite: dieselben Karten, bis zu vier nebeneinander, als Link */
.sumbar--dash { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sum__label { display: inline-flex; align-items: center; gap: 6px; }
.sum__label .icon { width: 15px; height: 15px; }
.sum__sub { color: var(--muted); font-size: .84rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum__text { font-size: 1.15rem !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sum__state { display: inline-flex; color: var(--muted); }
.sum__state .icon { width: 14px; height: 14px; }
a.sum--link { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.sum--link:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); transform: translateY(-1px); }
a.sum--link:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.sum--accent { background: var(--brand-soft); border-color: transparent; box-shadow: none; }
.sum--accent .sum__label, .sum--accent .sum__big strong { color: var(--brand); }
/* „Meine Sponsoren“: Statusleiste links wie in der Sponsorenliste */
.rows--status li { box-shadow: inset 4px 0 0 var(--st-color, transparent); }
.rows--status li.st-leer { --st-color: var(--st-leer); }
.rows--status li.st-zusage { --st-color: var(--st-zusage); }
.rows--status li.st-beleg { --st-color: var(--st-beleg); }
.rows--status .st-pill { flex: none; }
.st-legend--panel { margin: 0; padding: 4px 18px 12px; font-size: .74rem; }
@media (max-width: 960px) { .sumbar:not(.sumbar--dash) { grid-template-columns: 1fr 1fr; } .sumbar:not(.sumbar--dash) .sum:last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .sumbar { grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; }
  .sumbar .sum:last-child { grid-column: auto; }
  .sum { padding: 9px 12px; gap: 4px; }
  .sum__big strong { font-size: 1.15rem; }
  .st-legend { font-size: .72rem; gap: 4px 10px; }
}
.dot--mine { border-color: color-mix(in srgb, var(--info) 45%, var(--border)); }
@media (max-width: 860px) {
  /* Karte: Status in eigener Zeile, damit Name und Aktionen Platz behalten */
  .table--overview tr { grid-template-areas: "name actions" "zust zust" "betrag betrag" "pay pay" "addr addr" "bem bem"; }
  .table--overview .c-pay { justify-self: start; text-align: left !important; display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .table--overview .c-pay .st-note { display: inline; margin: 0; }
  .table--overview .c-pay .beleg-link { margin: 0; }
}
@media (max-width: 600px) {
  /* Kennzahlen als waagerecht wischbare Karten */
  .sumbar { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 -12px 10px; padding: 2px 12px 6px; scrollbar-width: none; }
  .sumbar::-webkit-scrollbar { display: none; }
  .sumbar .sum { flex: 0 0 84%; scroll-snap-align: start; }
}

/* ---------------------------------------------- Datenbank aktualisieren, Wartung */
.db-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.db-card__head h2 { margin: 0 0 4px; font-size: 1.1rem; }
.db-card__head p { margin: 0; }
.db-card code { font-size: .86rem; }
.wartung { display: grid; place-items: center; min-height: 80vh; }
.wartung__card { max-width: 460px; padding: 24px 28px; text-align: center; }
.wartung__card h1 { margin-top: 0; }
/* E-Mail-Versand prüfen (mailtest.php) */
.form.mailtest-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; padding: 16px 18px; }
.mailtest-form .field { flex: 1 1 260px; margin: 0; }
.mailtest-log { margin: 0 18px 16px; }
.mailtest-log pre { max-height: 320px; overflow: auto; font-size: .78rem; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px; white-space: pre-wrap; word-break: break-all; }
.mailtest-hilfe { padding: 8px 18px 16px; }
.mailtest-hilfe li { margin: 0 0 8px; }
.db-card .is-fehler { color: var(--danger); }
.db-card .table th { width: 160px; color: var(--muted); font-weight: 600; }
/* Zugangsprotokoll im Mitglied */
.zugang-log { margin-top: 14px; }
.zugang-log__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow: auto; }
.zugang-log__list li { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; padding: 6px 8px; border-radius: var(--radius-sm); font-size: .86rem; }
.zugang-log__list li:nth-child(odd) { background: var(--surface-2); }
.zugang-log__list time { color: var(--muted); font-variant-numeric: tabular-nums; }
.zugang-log__list small { display: block; color: var(--muted); }
.zugang-log__list .is-fehler { color: var(--danger); }
.zugang-reset { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding: 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface-2); }
.zugang-reset p { flex: 1 1 100%; margin: 0 0 4px; }
@media (max-width: 560px) { .zugang-log__list li { grid-template-columns: 1fr; gap: 0; } }
/* Betrag: Paketpreis als Vorgabe, netto/brutto-Schalter, Hinweis bei Abweichung */
.betrag-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: -4px; }
.betrag-zeile [data-brutto-switch][hidden] { display: none; }
.betrag-hinweis { margin: 0; font-size: .82rem; color: var(--muted); }
.betrag-abweichung { margin: -4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 10px;
  border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); font-size: .84rem; }
.betrag-abweichung[hidden], .betrag-hinweis[hidden] { display: none; }
input.is-abweichend { border-color: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 18%, transparent); }
.link-btn[hidden] { display: none; }
.betrag-abw { color: var(--warn); }
.betrag-abw__mark { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: .72rem; line-height: 1;
  background: var(--warn-soft); color: var(--warn); vertical-align: 1px; }


/* =========================================================================
 *  Dokumentenablage (dokumente.php)
 * ========================================================================= */
.dok-layout { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }
.dok-nav { position: sticky; top: 76px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; overflow: hidden; }
.dok-suche { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid var(--border); }
.dok-suche input { flex: 1; min-width: 0; }
.dok-baum-box { display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.dok-baum-titel { padding: 10px 14px; font-weight: 600; cursor: pointer; list-style: none; }
.dok-baum-titel::-webkit-details-marker { display: none; }
.dok-baum { padding: 0 8px 12px; }
.dok-baum ul { list-style: none; margin: 0; padding: 0; }
.dok-baum ul ul { padding-left: 16px; }
.dok-leer { padding: 6px 8px; margin: 0; }
.dok-knoten__zeile { display: flex; align-items: center; gap: 2px; }
.dok-knoten__auf { flex: none; width: 26px; height: 28px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: var(--radius-sm); }
.dok-knoten__auf:hover { background: var(--surface-2); color: var(--text); }
.dok-knoten__auf--leer { display: inline-block; cursor: default; }
.dok-knoten__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; line-height: 1.3; }
.dok-knoten__link:hover { background: var(--surface-2); }
.dok-knoten__titel { overflow-wrap: anywhere; }
.dok-knoten.is-aktiv > .dok-knoten__zeile > .dok-knoten__link { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.dok-neu-punkt { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 4px; vertical-align: 1px; }
.dok-neu-punkt--unten { background: transparent; border: 2px solid var(--brand); width: 8px; height: 8px; }
.dok-badge { font-size: .7rem; padding: 1px 6px; }

.dok-inhalt { padding: 20px 24px; min-height: 320px; overflow: visible; }
.dok-start h2, .dok-seite__kopf h2 { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dok-pfad { font-size: .85rem; color: var(--muted); margin-bottom: 10px; overflow-wrap: anywhere; }
.dok-pfad a { color: var(--muted); }
.dok-pfad a:hover { color: var(--brand); }
.dok-seite__kopf { margin-bottom: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dok-seite__titel { min-width: 0; }
.dok-seite__bearbeiten { flex: none; }
.dok-seite__bearbeiten .icon { width: 16px; height: 16px; }
.dok-leer-seite { margin: 8px 0 0; }
.dok-modusleiste { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px;
  margin-bottom: 6px; border-radius: var(--radius-sm); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.dok-modusleiste__text strong { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); }
.dok-modusleiste__text .icon { width: 16px; height: 16px; }
.dok-ungespeichert { margin-right: auto; color: var(--warn); font-weight: 600; font-size: .88rem; align-self: center; }
.dok-ungespeichert[hidden] { display: none; }
/* Freigaben */
.dok-fg-bereich { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; }
.dok-fg-bereich__kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.dok-fg-bereich__kopf h3 { margin: 0; font-size: 1rem; }
.dok-fg-chips { margin-bottom: 8px; }
.dok-fg-chip .icon { width: 14px; height: 14px; color: var(--muted); margin-right: 2px; }
.dok-fg-chip--gruppe { background: var(--surface-2); }
.dok-fg-leer { margin: 0 0 8px; }
.dok-fg-leer[hidden] { display: none; }
.dok-fg-add { display: flex; gap: 6px; flex-wrap: wrap; }
.dok-fg-suche { width: 100%; margin: 4px 0 10px; }
.dok-fg-suche[hidden] { display: none; }
.checks--list .check[hidden] { display: none; }
.dok-werkzeuge { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.dok-werkzeuge .icon { width: 15px; height: 15px; }
.dok-text { max-width: 80ch; overflow-wrap: anywhere; }
.dok-text h2 { font-size: 1.3rem; margin: 1.1em 0 .4em; }
.dok-text h3 { font-size: 1.12rem; margin: 1em 0 .35em; }
.dok-text h4 { font-size: 1rem; margin: .9em 0 .3em; }
.dok-text blockquote { margin: .6em 0; padding: .3em 0 .3em 14px; border-left: 3px solid var(--brand); color: var(--muted); }
.dok-text table, .dok-editor .ql-editor table { border-collapse: collapse; margin: .6em 0; max-width: 100%; }
.dok-text td, .dok-text th, .dok-editor .ql-editor td { border: 1px solid var(--border); padding: 5px 9px; vertical-align: top; min-width: 5em; }
.dok-text .ql-align-center { text-align: center; }
.dok-text .ql-align-right { text-align: right; }
.dok-text .ql-align-justify { text-align: justify; }
.dok-text table { display: block; overflow-x: auto; }
.dok-block { margin-top: 26px; }
.dok-block h3 { margin: 0; font-size: 1.05rem; }
.dok-block__kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dok-sort-aktionen { display: inline-flex; gap: 6px; }
.dok-liste { list-style: none; margin: 0; padding: 0; }
.dok-liste li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.dok-liste li small { flex-basis: 100%; }
.dok-liste a { display: inline-flex; align-items: center; gap: 4px; }
.dok-kacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.dok-kacheln li { display: flex; align-items: center; }
.dok-kachel { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text); text-decoration: none; min-height: 64px; }
.dok-kachel:hover { border-color: var(--brand); }
.dok-kachel span { font-weight: 600; }
.dok-kachel small { flex-basis: 100%; }
.dok-kacheln.is-sortieren { grid-template-columns: 1fr; }

.dok-anlagen__liste { list-style: none; margin: 0 0 12px; padding: 0; }
.dok-anlage { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.dok-anlage.is-ausgeblendet .dok-anlage__text, .dok-anlage.is-ausgeblendet .dok-anlage__bild { opacity: .6; }
.dok-anlage__bild { flex: none; width: 72px; height: 56px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--muted); overflow: hidden; text-decoration: none; font-size: .7rem; font-weight: 700; }
.dok-anlage__bild img { width: 100%; height: 100%; object-fit: cover; }
.dok-anlage__bild .icon { width: 22px; height: 22px; }
.dok-anlage__text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dok-anlage__titel { font-weight: 600; }
.dok-anlage__bemerkung { margin: 4px 0 0; font-size: .9rem; }
.dok-anlage__aktionen { flex: none; display: flex; gap: 4px; align-items: center; }
.dok-drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 14px 16px; text-align: center; background: var(--surface-2); }
.dok-drop p { margin: 0 0 4px; }
.dok-drop.is-ueber { border-color: var(--brand); background: var(--brand-soft); }
.dok-drop.is-busy { opacity: .7; pointer-events: none; }
.dok-drop__status { margin-top: 6px; font-weight: 600; }
.dok-audit { margin-top: 26px; }

/* Bearbeiten mit Quill */
.dok-bearbeiten h2 { margin: 0 0 12px; }
.dok-editor { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.dok-editor .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--border); position: sticky; top: 64px; z-index: 2; background: var(--surface);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0; padding: 6px; font-family: var(--font); }
.dok-editor .ql-container.ql-snow { border: 0; font-family: var(--font); font-size: .95rem; }
.dok-editor .ql-editor { min-height: 320px; line-height: 1.55; color: var(--text); }
.dok-editor .ql-editor.ql-blank::before { color: var(--muted); font-style: normal; }
.dok-editor .ql-snow .ql-formats { margin-right: 10px; }
.dok-editor .ql-snow .dok-tb-text { width: auto; padding: 2px 6px; font-size: .8rem; color: var(--text); white-space: nowrap; }
.dok-editor .dok-tb-text:hover { color: var(--brand); }
.dok-editor .dok-tb-tabelle { background: var(--brand-soft); border-radius: var(--radius-sm); }
.dok-editor .dok-tb-tabelle[hidden] { display: none; }
.dok-editor .ql-snow .ql-picker.ql-header { width: 128px; }
.dok-editor .ql-snow .ql-picker.ql-header .ql-picker-label::before,
.dok-editor .ql-snow .ql-picker.ql-header .ql-picker-item::before { content: "Text"; }
.dok-editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
.dok-editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: "Überschrift 1"; }
.dok-editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
.dok-editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: "Überschrift 2"; }
.dok-editor .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,
.dok-editor .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before { content: "Überschrift 3"; }
.dok-editor .ql-snow .ql-tooltip { z-index: 3; color: var(--text); background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
.dok-editor .ql-snow .ql-tooltip::before { content: "Link:"; }
.dok-editor .ql-snow .ql-tooltip[data-mode="link"]::before { content: "Adresse:"; }
.dok-editor .ql-snow .ql-tooltip a.ql-action::after { content: "Ändern"; }
.dok-editor .ql-snow .ql-tooltip a.ql-remove::before { content: "Entfernen"; }
.dok-editor .ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: "Übernehmen"; }
.dok-editor .ql-snow .ql-tooltip input[type="text"] { color: var(--text); background: var(--surface); border-color: var(--border); }
.dok-editor .ql-snow .ql-stroke { stroke: var(--text); }
.dok-editor .ql-snow .ql-fill { fill: var(--text); }
.dok-editor .ql-snow .ql-picker { color: var(--text); }
.dok-editor .ql-snow .ql-picker-options { background: var(--surface); border-color: var(--border); }
.dok-editor .ql-snow button:hover .ql-stroke, .dok-editor .ql-snow button.ql-active .ql-stroke,
.dok-editor .ql-snow .ql-picker-label:hover .ql-stroke, .dok-editor .ql-snow .ql-picker-label.ql-active .ql-stroke { stroke: var(--brand); }
.dok-editor .ql-snow button:hover .ql-fill, .dok-editor .ql-snow button.ql-active .ql-fill { fill: var(--brand); }
.dok-editor .ql-snow button.ql-active, .dok-editor .ql-snow .ql-picker-label.ql-active, .dok-editor .ql-snow .ql-picker-item.ql-selected { color: var(--brand); }
.dok-editor .ql-snow .ql-editor h2 { font-size: 1.3rem; }
.dok-editor .ql-snow .ql-editor h3 { font-size: 1.12rem; }
.dok-editor .ql-snow .ql-editor h4 { font-size: 1rem; }
.dok-editor .ql-snow .ql-editor a { color: var(--brand); }
.dok-editor .ql-snow .ql-editor blockquote { border-left-color: var(--brand); }
.dok-zeitplan input { max-width: 260px; }
.dok-bearbeiten__fuss { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; position: sticky; bottom: 0; padding: 10px 0;
  background: var(--surface); border-top: 1px solid var(--border); }

/* Suche */
.dok-treffer { list-style: none; margin: 0; padding: 0; }
.dok-treffer li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.dok-treffer__kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-weight: 600; }
.dok-treffer__seite { font-weight: 400; font-size: .85rem; }
.dok-treffer__auszug { margin: 4px 0 0; font-size: .9rem; overflow-wrap: anywhere; }
.dok-treffer mark, .dok-treffer__kopf mark { background: var(--warn-soft); color: inherit; padding: 0 1px; border-radius: 2px; }

/* Dialoge */
.dok-pk-titel { font-size: 1rem; margin: 6px 0 8px; }
.dok-pk { list-style: none; margin: 0 0 16px; padding: 0; }
.dok-pk li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); }
.dok-pk__aktionen { display: inline-flex; gap: 6px; }
.dok-speicher__balken { width: 100%; height: 12px; accent-color: var(--brand); }
.dok-speicher__balken.is-voll { accent-color: var(--danger); }
.dok-anlage-info { margin: 8px 0; }
.dok-ersetzen { align-self: flex-start; }

@media (max-width: 860px) {
  .dok-layout { grid-template-columns: 1fr; }
  .dok-nav { position: static; max-height: none; }
  .dok-baum-titel { list-style: revert; }
  .dok-inhalt { padding: 16px; }
  .dok-editor .ql-toolbar.ql-snow { top: 56px; }
  .dok-anlage__bild { width: 56px; height: 44px; }
}
.dok-text td:empty::after { content: "\00a0"; }

/* Startseite: Chip „neue Dokumente“ */
.dash-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 12px 4px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: .85rem; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.dash-chip:hover { background: var(--brand); color: #fff; }
.dash-chip .icon { width: 16px; height: 16px; }
.dash-chip[hidden] { display: none; }
.rows li.is-neu .rows__main strong { display: inline-flex; align-items: center; gap: 2px; }

/* „Ansicht als …“ (src/ansicht.php): Balken unter der Kopfzeile, solange eine Ansicht aktiv ist */
.ansicht-balken { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px max(16px, calc((100vw - 1400px) / 2)); background: var(--warn-soft); color: var(--text);
  border-bottom: 2px solid var(--warn); font-size: .9rem; }
.ansicht-balken > .icon { width: 18px; height: 18px; color: var(--warn); flex: none; }
.ansicht-balken__text { flex: 1 1 320px; min-width: 0; }
.ansicht-balken__aktionen { display: inline-flex; gap: 6px; }
.ansicht-balken--person { background: color-mix(in srgb, var(--brand-soft) 70%, var(--warn-soft)); }
body.is-ansicht .topbar { box-shadow: inset 0 -3px 0 var(--warn); }
.ansicht-art { display: flex; margin-bottom: 12px; }

/* Rollen & Rechte: Darstellung „Übersicht“ (aufklappbare Bereiche, Spalten wählbar) und „Je Rolle“ (Karten je Bereich) */
.rights__modus { align-self: flex-end; }
.rights__rollen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.rights__chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; }
.rights__chip small { font-size: .75rem; opacity: .8; }
.rights__chip.is-an { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); font-weight: 600; }
.rights__aufzu { display: flex; gap: 6px; padding: 8px 16px 0; }
.rights__auf { display: inline-flex; align-items: baseline; gap: 6px; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
  text-transform: inherit; letter-spacing: inherit; text-align: left; }
.rights__auf small { text-transform: none; letter-spacing: normal; font-weight: 400; }
.rights__pfeil { display: inline-block; width: 12px; color: var(--brand); }
.rights__cell--bereich { gap: 6px; align-items: center; }
.rights__zahl { font-size: .75rem; font-weight: 600; color: var(--warn); font-variant-numeric: tabular-nums; }
.rights__zahl.is-voll { color: var(--success); }
.rights__zahl.is-leer { color: var(--muted); font-weight: 400; }
.rights-rolle { padding: 16px; }
.rights-rolle__kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rights-rolle__kopf h2 { margin: 0 0 2px; font-size: 1.2rem; }
.rights-rolle__aktionen { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.rights-rolle__aktionen .icon { width: 15px; height: 15px; }
.rights-rolle__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.rights-karte { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.rights-karte__kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.rights-karte__kopf label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.rights-karte__kopf input, .rights-karte__recht input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.rights-karte__recht { display: flex; gap: 10px; align-items: flex-start; padding: 7px 12px; border-top: 1px solid var(--border); cursor: pointer; font-size: .92rem; }
.rights-karte__recht:first-of-type { border-top: 0; }
.rights-karte__recht:hover { background: var(--brand-soft); }
.rights-karte__recht input { margin-top: 2px; }
.rights-karte__recht small { font-size: .8rem; }
.rights__table .rights__area th, .rights__table .rights__area td { vertical-align: middle; }

/* =========================================================================
 *  Startseite: Raster der Bereiche (Desktop 2 Spalten, Tablet 2/1, Handy Reiter)
 * ========================================================================= */
.dash-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dash-chips .dash-chip { margin-top: 0; }
.dash-chip--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.dash-chip--session, .dash-chip--session:hover { background: var(--surface-2); color: var(--muted); border-color: var(--border); font-weight: 500; cursor: default; }
.sumbar--dash { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.dash-grid > .is-breit, .dash-grid > .panel:only-child { grid-column: 1 / -1; }
.dash-panel { display: flex; flex-direction: column; min-width: 0; container-type: inline-size; }
.dash-body { position: relative; }
.dash-panel[hidden] { display: none; }
.dash-filter { display: flex; gap: 6px; padding: 10px 18px 2px; overflow-x: auto; scrollbar-width: none; }
.dash-filter::-webkit-scrollbar { display: none; }
.dash-filter[hidden] { display: none; }
.dash-filter__btn { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; white-space: nowrap; }
.dash-filter__btn b { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.dash-filter__btn:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.dash-filter__btn.is-an { background: var(--text); border-color: var(--text); color: var(--surface); }
.dash-filter__btn.is-an b { color: var(--surface); }
.dash-filter__btn--warn b { color: var(--warn); }
.dash-filter__btn--info b { color: var(--info); }
.dash-filter__btn--success b { color: var(--success); }
.dash-filter__btn--leer::before, .dash-filter__btn--zusage::before, .dash-filter__btn--beleg::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.dash-filter__btn--leer::before { background: var(--st-leer); }
.dash-filter__btn--zusage::before { background: var(--st-zusage); }
.dash-filter__btn--beleg::before { background: var(--st-beleg); }
/* Eingeklappt: letzte Zeile blendet aus, darüber ein schwebender Button; ausgeklappt: eigene Scrollleiste */
.dash-body.has-mehr > ul { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), transparent 100%); }
.dash-body.is-offen { max-height: 420px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.dash-mehr { position: relative; z-index: 1; align-self: center; display: inline-flex; align-items: center; gap: 6px; margin: -22px auto 14px;
  padding: 6px 14px 6px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(16, 24, 40, .10); transition: box-shadow .15s, border-color .15s, transform .15s; }
.dash-mehr:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: 0 4px 14px rgba(16, 24, 40, .14); transform: translateY(-1px); }
.dash-mehr b { font-variant-numeric: tabular-nums; color: var(--brand); }
.dash-mehr svg { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.dash-mehr[aria-expanded="true"] { margin-top: 10px; }
.dash-mehr[aria-expanded="true"] svg { transform: rotate(180deg); }
.dash-mehr[hidden] { display: none; }
/* schmale Kacheln (zwei nebeneinander auf dem Tablet): Zusatzangaben unter den Titel */
@container (max-width: 460px) {
  .agenda li, .rows li { padding: 9px 14px; }
  .agenda li { flex-wrap: wrap; row-gap: 4px; }
  .agenda__main { flex: 1 1 calc(100% - 64px); }
  .agenda__side { margin-left: 60px; }
  .agenda__side:empty { display: none; }
  .agenda__count { display: none; }
  .dash-filter { padding: 10px 14px 2px; }
  .panel__head { padding: 12px 14px; }
}
.dash-tabs { display: none; }

@media (max-width: 1100px) {
  .sumbar--dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* Kennzahlen als wischbare Karten */
  .sumbar.sumbar--dash { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 12px; gap: 10px; margin: 0 -12px 12px; padding: 2px 12px 6px;
    scrollbar-width: none; }
  .sumbar--dash::-webkit-scrollbar { display: none; }
  .sumbar--dash .sum { flex: 0 0 80%; scroll-snap-align: start; }
  /* Bereiche als Reiter: immer nur einer sichtbar */
  .dash-tabs:not([hidden]) { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: var(--surface-2);
    border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; position: sticky; top: 58px; z-index: 5; }
  .dash-tabs__tab { flex: 1 0 auto; display: inline-flex; justify-content: center; align-items: center; gap: 5px; padding: 7px 10px; border: 0; border-radius: 9px;
    background: none; color: var(--muted); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
  .dash-tabs__tab b { font-size: .72rem; padding: 0 6px; border-radius: 99px; background: var(--border); color: var(--text); }
  .dash-tabs__tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
  .dash-tabs__tab[aria-selected="true"] b { background: var(--brand); color: #fff; }
  .dash-tabs:not([hidden]) + .dash-grid .dash-panel:not(.is-tab-aktiv) { display: none; }
  .dash-tabs:not([hidden]) + .dash-grid { gap: 0; }
  .dash-tabs:not([hidden]) + .dash-grid .panel__count { display: none; }
  .dash-filter { padding: 10px 14px 2px; }
}

/* =====================================================================
 * 15. Ehrungen (ehrungen.php, Reiter „Ehrungen & Zeiten“ im Mitglied) und Ehrenordnung (ehrenordnung.php)
 * ===================================================================== */
.ehr-zeile { cursor: pointer; }
.ehr-zeile:hover td, .ehr-zeile:focus-visible td { background: var(--surface-2); }
.ehr-warn-mark {
  display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: .7rem; font-weight: 800;
  background: var(--warn-soft); color: var(--warn); vertical-align: 1px;
}
.ehr-warn { color: var(--warn); }
.toolbar__end { margin-left: auto; display: flex; gap: 6px; align-self: flex-end; }
.ehr-summe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.ehr-summe:empty { display: none; }

/* Detail eines Mitglieds */
.ehr-hinweise { margin-bottom: 14px; }
.ehr-konten { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ehr-konto {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.ehr-konto__label { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ehr-konto__wert { font-size: 1.45rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ehr-strahl { margin: 0 0 16px; padding: 10px 12px 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.ehr-strahl__zeile { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; margin-bottom: 6px; }
.ehr-strahl__name { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ehr-strahl__bahn { position: relative; height: 12px; border-radius: 99px; background: var(--surface-2); }
.ehr-strahl__seg { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--brand); }
.ehr-strahl__seg--1 { background: var(--info); }
.ehr-strahl__seg--2 { background: var(--success); }
.ehr-strahl__seg--3 { background: var(--warn); }
.ehr-strahl__achse { display: flex; justify-content: space-between; margin-left: 140px; font-size: .72rem; color: var(--muted); }
.ehr-arten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ehr-art { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); font-size: .9rem; }
.ehr-art > strong { font-size: .95rem; margin-bottom: 2px; }
.ehr-block { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.ehr-block > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ehr-block h3 { margin: 0; font-size: 1rem; }
.ehr-liste { list-style: none; margin: 0; padding: 0; }
.ehr-liste li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.ehr-liste li:last-child { border-bottom: 0; }
.ehr-liste li.is-relevant { box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }
.ehr-liste__datum { flex: 0 0 86px; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .88rem; }
.ehr-liste__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ehr-aktionen { display: inline-flex; gap: 2px; flex: 0 0 auto; }

/* Anstehend */
.ehr-fristen { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.ehr-fristen:empty { display: none; }
.ehr-frist { padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: .9rem; }
.ehr-frist small { display: block; color: var(--muted); }
.ehr-frist--bald { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.ehr-frist--abgelaufen { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.ehr-frist--bald small, .ehr-frist--abgelaufen small { color: inherit; opacity: .85; }
.ehr-stand { margin: 0 0 10px; color: var(--muted); }
.ehr-stand strong { color: var(--text); }
.ehr-karte { margin-bottom: 16px; }
.ehr-karte__kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.ehr-karte__kopf h2 { margin: 0; font-size: 1.05rem; }
.ehr-karte__leer { margin: 0; padding: 14px 16px; }
.ehr-karte__liste { padding: 4px 16px; }
.ehr-sammel { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ehr-sammel [data-sammel-anz] { font-size: .85rem; color: var(--muted); margin-right: 4px; }
.ehr-wahl { width: 34px; }
.ehr-knoepfe { white-space: nowrap; }

/* Nachtragen */
.ehr-nach { padding: 16px; }
.ehr-nach__kopf, .ehr-nach__zeile { display: grid; grid-template-columns: minmax(170px, 1.2fr) minmax(200px, 1.6fr) 120px minmax(120px, 1fr) 36px; gap: 8px; align-items: start; }
.ehr-nach__kopf { font-size: .78rem; font-weight: 700; color: var(--muted); margin: 10px 0 4px; }
.ehr-nach__zeile { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.ehr-nach__zeile select, .ehr-nach__zeile input { width: 100%; min-width: 0; }
.ehr-nach__ehrung { display: flex; flex-direction: column; gap: 4px; }
.ehr-nach__fehler { grid-column: 1 / -1; color: var(--danger); }
.ehr-nach__zeile.is-fehler { background: var(--danger-soft); border-radius: var(--radius-sm); padding: 6px; }
.ehr-nach__aktionen { display: flex; gap: 8px; justify-content: space-between; margin: 12px 0; }

/* Ehrenordnung */
.eo-leiste { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.eo-leiste p { margin: 0; max-width: 70ch; }
.eo-leiste .btn { margin-left: auto; flex: 0 0 auto; }
.eo-art { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.eo-art.is-inactive { opacity: .7; }
.eo-art__kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.eo-art__kopf h2 { margin: 0 0 2px; font-size: 1.1rem; }
.eo-art__aktionen { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.eo-art__text { margin: 10px 16px; color: var(--muted); font-size: .9rem; }
.eo-stufen td { vertical-align: top; }
.eo-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 10px; }
.eo-leistungen, .eo-quellen { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin: 8px 0; }
.eo-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.eo-zeile select { flex: 1 1 160px; min-width: 0; }
.eo-menge { width: 64px; }
.eo-gewicht { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.eo-gewicht input { width: 56px; }

@media (max-width: 760px) {
  .ehr-tabelle td.is-leer { display: none; }
  .ehr-wahl, .ehr-sammel { display: none; }
  .ehr-bedarf th, .ehr-bedarf td { padding: 8px 10px; }
  .tabs.tabs--immer { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -12px; }
  .ehr-nach__kopf { display: none; }
  .ehr-nach__zeile { grid-template-columns: 1fr 1fr 36px; }
  .ehr-nach__zeile > select:first-child, .ehr-nach__ehrung { grid-column: 1 / -2; }
  .ehr-strahl__zeile { grid-template-columns: 90px 1fr; }
  .ehr-strahl__achse { margin-left: 100px; }
  .eo-leiste { flex-direction: column; }
  .eo-art__kopf { flex-direction: column; }
  .ehr-liste li { flex-wrap: wrap; }
  .ehr-liste__datum { flex-basis: 100%; }
}
.nowrap { white-space: nowrap; }

/* Mitglieder: Hinweis passive Mitglieder prüfen, Umschalter aktiv/passiv */
.m-passiv-hinweis p { margin: 0 0 8px; }
.m-passiv-hinweis__aktionen { display: flex; gap: 8px; flex-wrap: wrap; }
.m-art { display: flex; max-width: 320px; margin-bottom: 4px; }
