/* Kassenwerk. Farben, Schriften und Rundungen kommen aus dem Theme (themes.css, wie Postwerk).
   Aufbau wie Postwerk: Kopfzeile, Leiste links (auf dem Handy unten), Arbeitsbereich. */

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 14px/1.45 var(--font); background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 16px; font-family: var(--font-head); font-weight: 700; }
h2 { font-size: 16px; margin: 28px 0 10px; font-family: var(--font-head); }
small { font-size: 12.5px; }
.muted, .leise { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plus { color: var(--ok); }
.minus { color: var(--fg); }
.fehlertext, .error { color: var(--danger); }
.spacer, .grow { flex: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Knöpfe: Standard ist die Handlungsfarbe, „ghost“ zurückhaltend, „link“ wie ein Link. */
button, a.knopf, .knopf {
  background: var(--accent); color: var(--accent-fg); border: 0; border-radius: var(--r); padding: 8px 14px;
  font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; line-height: 1.3;
}
button:hover, a.knopf:hover { filter: brightness(1.08); text-decoration: none; }
button.ghost, a.ghost, .ghost-knopf {
  background: transparent; color: inherit; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 10px; font-weight: 400; filter: none;
}
button.ghost:hover, a.ghost:hover { background: var(--bg3); }
button.link { background: none; border: 0; color: var(--link); padding: 0; font-weight: 400; }
button.gefahr { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
button.gefahr:hover { background: color-mix(in srgb, var(--danger) 10%, var(--bg)); }
button.klein, .knopf.klein { padding: 4px 9px; font-size: 13px; }

/* Eingaben */
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], input[type=url], input:not([type]), select, textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; width: 100%; min-width: 0;
}
input[type=file] { max-width: 100%; }
textarea { resize: vertical; }
input.betrag { text-align: right; font-variant-numeric: tabular-nums; }
label { display: grid; gap: 4px; }

/* Anmeldung */
.login { min-height: 100%; display: grid; place-items: center; padding: 16px; background: var(--bg2); }
.login > form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; width: min(380px, 100%); display: grid; gap: 14px; box-shadow: var(--shadow); }
.login h1 { margin: 0 0 4px; font-size: 24px; }
.login .error { margin: 0; }

/* Gerüst */
.app { height: 100%; display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto 1fr; }
.app.ohne-leiste { grid-template-columns: 1fr; }
.top { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--top-line); background: var(--top); color: var(--top-fg); min-width: 0; }
.brand { font-size: 16px; padding-left: 4px; font-family: var(--font-head); font-weight: 700; color: inherit; }
.brand:hover { text-decoration: none; }
.me, .verein-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32vw; display: inline-block; vertical-align: bottom; }
.menue { position: relative; }
.menue summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.menue summary::-webkit-details-marker { display: none; }
.menue-inhalt { position: absolute; left: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 6px; display: grid; gap: 2px; }
.menue.rechts .menue-inhalt { left: auto; right: 0; }
.menu-item { display: flex; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: var(--r); color: inherit; font-weight: 400; }
.menu-item:hover { background: var(--bg3); text-decoration: none; filter: none; }
.menue-inhalt hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.menue-inhalt form { margin: 0; }

.rail { background: var(--rail); display: flex; flex-direction: column; gap: 4px; padding: 10px 6px; }
.rail a { color: var(--rail-fg); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: var(--r); font-size: 11px; position: relative; }
.rail a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail a:hover { background: var(--rail-hover); color: var(--rail-on); }
.rail a[aria-current=true] { background: var(--rail-sel); color: var(--rail-on); }
.rail-badge { position: absolute; top: 3px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-fg); font-size: 10.5px; line-height: 18px; text-align: center; font-weight: 700; }
.rail a:last-child { margin-top: auto; }
.rail .kurz { display: none; }

.view { min-height: 0; min-width: 0; }
.panel { overflow: auto; padding: 22px 28px 60px; min-width: 0; }
.page { max-width: 1100px; }
.page.schmal-seite { max-width: 720px; }
.view-split { display: grid; grid-template-columns: 220px 1fr; min-height: 0; }
.subnav { border-right: 1px solid var(--line); background: var(--side); color: var(--side-fg); padding: 14px 8px; display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.subnav a { color: inherit; padding: 7px 10px; border-radius: var(--r); }
.subnav a:hover { background: var(--side-hover); text-decoration: none; }
.subnav a[aria-current=true] { background: var(--side-sel); color: var(--side-sel-fg); font-weight: 600; }
.abschnitt-titel { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--side-muted); font-weight: 600; padding: 4px 10px 8px; }

/* Meldungen */
.meldungen { display: grid; gap: 8px; margin-bottom: 16px; max-width: 1100px; }
.banner { padding: 10px 14px; border-radius: var(--r); background: var(--bg3); border-left: 3px solid var(--muted); overflow-wrap: anywhere; }
.banner.success { background: color-mix(in srgb, var(--ok) 12%, var(--bg)); border-left-color: var(--ok); }
.banner.error { background: color-mix(in srgb, var(--danger) 12%, var(--bg)); border-left-color: var(--danger); color: var(--fg); }
.banner.warning { background: color-mix(in srgb, var(--warn) 16%, var(--bg)); border-left-color: var(--warn); }
.banner.info { border-left-color: var(--accent); }

/* Kopf einer Seite: Titel links, Handlungen rechts */
.titelzeile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.titelzeile h1 { margin: 0; flex: 1; }

/* Kacheln */
.stats, .karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0 0 20px; }
.stat, .karten a { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 2px; color: inherit; text-decoration: none; background: var(--bg); }
.stat:hover, .karten a:hover { border-color: var(--accent); text-decoration: none; }
.stat-value, .karten strong { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-label, .karten span { color: var(--muted); }
.stat.hervor { border-color: var(--accent); background: var(--sel); }

.card, .kasten { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 14px; }
.kasten summary { cursor: pointer; font-weight: 600; }
.kasten[open] summary { margin-bottom: 10px; }

/* Tabellen */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover td { background: var(--bg2); }
table.kompakt td { padding: 5px 8px; }
tr.inaktiv td { color: var(--muted); }
tr.summe td { background: var(--bg2); font-weight: 600; }
.tabelle-rahmen { overflow-x: auto; }

.badge, .marke-klein { font-size: 11.5px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--bg3); white-space: nowrap; display: inline-block; font-weight: 500; }
.badge.warn, .marke-offen { background: color-mix(in srgb, var(--warn) 22%, var(--bg)); color: var(--fg); font-size: 11.5px; padding: 1px 7px; border-radius: var(--r-pill); }
.badge.ok { background: color-mix(in srgb, var(--ok) 20%, var(--bg)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--bg); border-radius: var(--r-pill); padding: 3px 11px; font-size: 13px; color: inherit; }
.chip:hover { text-decoration: none; background: var(--bg2); }
.chip[aria-current=true] { background: var(--sel); border-color: transparent; font-weight: 600; }

/* Filterzeile über Listen */
.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.filter select, .filter input { width: auto; flex: 0 1 auto; }
.filter input[type=search] { flex: 1 1 200px; }

/* Formulare */
.formular { display: grid; gap: 14px; max-width: 640px; }
.feld { display: grid; gap: 4px; }
.feld > label { font-weight: 500; }
.feld small, .hilfe { color: var(--muted); }
.feld.fehler input, .feld.fehler select, .feld.fehler textarea { border-color: var(--danger); }
.feld .errorlist, .errorlist { color: var(--danger); list-style: none; padding: 0; margin: 0; font-size: 13px; }
.feld-check label { display: flex; gap: 8px; align-items: center; }
.feld ul:not(.errorlist) { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.feld ul:not(.errorlist) label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.aktionen { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.zeilenformular { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.zeilenformular label { font-size: 12.5px; color: var(--muted); }
.zeilenformular input, .zeilenformular select { width: auto; }
.inline-label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-label select, .inline-label input { width: auto; }
.radios { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.radios > div { display: contents; }
.radios label { display: block; padding: 7px 12px; cursor: pointer; color: var(--fg); font-size: 14px; }
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios label:has(input:checked) { background: var(--sel); font-weight: 600; }

dl.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; }
.angaben dt { color: var(--muted); }
.angaben dd { margin: 0; overflow-wrap: anywhere; }

/* Jahre, Seiten */
.jahre { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 10px; }
.jahre a { padding: 3px 11px; border: 1px solid var(--line); border-radius: var(--r-pill); color: inherit; font-size: 13px; }
.jahre a.aktiv { background: var(--sel); border-color: transparent; font-weight: 600; }
.seiten { display: flex; gap: 16px; justify-content: center; align-items: center; margin: 16px 0; color: var(--muted); }

/* Projektbaum */
.einrueckung { padding-left: calc(8px + var(--tiefe, 0) * 22px); }
.einrueckung small { color: var(--muted); margin-left: 4px; }
.foerder { font-weight: 600; }
.hinweise { padding-left: 18px; }
.hinweise li { margin-bottom: 4px; }

/* ===================================================================== Buchen
   Arbeitsbereich wie die Mail-Ansicht in Postwerk: links offene Umsätze, rechts der gewählte. */
.view-buchen { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; min-height: 0; }
.liste-spalte { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.liste-kopf { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.liste-kopf select { width: auto; flex: 1; padding: 5px 8px; }
.liste-kopf .anzahl { color: var(--muted); white-space: nowrap; font-size: 13px; }
.liste { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; }
.liste a { display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: inherit; }
.liste a:hover { background: var(--bg2); text-decoration: none; }
.liste a[aria-current=true] { background: var(--sel); }
.liste .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste .betrag { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; text-align: right; }
.liste .zweck { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste .datum { color: var(--muted); font-size: 12px; white-space: nowrap; text-align: right; }
.liste .leer { padding: 40px 16px; text-align: center; color: var(--muted); }
.detail-spalte { overflow: auto; min-width: 0; padding: 22px 28px 60px; }
.detail-spalte .platzhalter { margin: 80px auto; text-align: center; color: var(--muted); max-width: 360px; }
.zurueck-schmal { display: none; }

.umsatzkopf { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 6px; }
.umsatzkopf h1 { margin: 0 0 4px; font-size: 20px; overflow-wrap: anywhere; }
.umsatzkopf .meta { color: var(--muted); font-size: 13px; }
.betrag-gross { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zweck-text { margin: 10px 0 14px; padding: 10px 12px; background: var(--bg2); border-radius: var(--r); overflow-wrap: anywhere; }
.mehr-angaben summary { cursor: pointer; color: var(--muted); font-size: 13px; }

.buchen-karte { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; margin: 18px 0; background: var(--bg); }
.buchen-karte h2 { margin-top: 0; }
.vorschlag-hinweis { font-size: 13px; color: var(--muted); margin: -4px 0 12px; }
.teil { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr) 9rem auto; gap: 8px; align-items: start; margin-bottom: 8px; }
.teil .mehr { grid-column: 1 / -1; display: none; grid-template-columns: 12rem 1fr; gap: 8px; }
.teil.offen .mehr { display: grid; }
.teil .werkzeug { display: flex; gap: 2px; }
.teil .werkzeug button { padding: 6px 8px; }
.teil-kopf { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr) 9rem auto; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.teil-kopf span:last-child { width: 64px; }
.rest { font-size: 13px; }
.rest.ok { color: var(--ok); }
.rest.offen { color: var(--warn); font-weight: 600; }
.beleg-ablage { border: 2px dashed var(--line); border-radius: var(--r-lg); padding: 14px; text-align: center; color: var(--muted); cursor: pointer; display: block; }
.beleg-ablage:hover, .beleg-ablage.drueber { border-color: var(--accent); background: var(--sel); color: var(--fg); }
.beleg-ablage input { display: none; }
.beleg-ablage .gewaehlt { color: var(--fg); font-weight: 600; }
.belegwahl { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; }
.belegwahl li { display: flex; gap: 8px; align-items: center; padding: 6px 10px; background: var(--bg2); border-radius: var(--r); }
.belegwahl label { display: flex; gap: 8px; align-items: center; flex: 1; }
.buchen-fuss { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.buchen-fuss .spacer { flex: 1; }
.tastatur { font-size: 12px; color: var(--muted); }
kbd { font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; background: var(--bg2); }

/* Kontosuche (ersetzt lange Auswahllisten) */
.suche-feld { position: relative; }
.suche-feld input { width: 100%; }
.suche-treffer { position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 30; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); max-height: 320px; overflow: auto; list-style: none; margin: 0; padding: 4px; min-width: 280px; }
.suche-treffer li { padding: 6px 8px; border-radius: var(--r); cursor: pointer; display: flex; gap: 8px; }
.suche-treffer li[aria-selected=true], .suche-treffer li:hover { background: var(--sel); }
.suche-treffer .nr { font-family: var(--font-mono); color: var(--muted); min-width: 3.5em; }
.suche-treffer .gruppe { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); cursor: default; padding: 6px 8px 2px; }
.suche-treffer .gruppe:hover { background: none; }

/* Theme-Auswahl: jede Karte zeigt sich im eigenen Theme (wie Postwerk) */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.theme-card { display: grid; gap: 8px; padding: 10px; text-align: left; background: var(--bg); color: var(--fg); font-family: var(--font); border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; font-weight: 400; }
.theme-card:hover { box-shadow: var(--shadow); filter: none; }
.theme-card[aria-pressed=true] { outline: 3px solid var(--accent); outline-offset: 2px; }
.tp { display: grid; grid-template-columns: 14px 1fr 1.3fr; grid-template-rows: 12px 1fr; height: 92px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); }
.tp-top { grid-column: 1 / -1; background: var(--top); border-bottom: 1px solid var(--top-line); }
.tp-rail { background: var(--rail); }
.tp-list { display: grid; align-content: start; border-right: 1px solid var(--line); }
.tp-list i { display: block; height: 15px; border-bottom: 1px solid var(--line); position: relative; }
.tp-list i::after { content: ""; position: absolute; left: 4px; right: 30%; top: 5px; height: 4px; background: var(--muted); opacity: .5; border-radius: var(--r-pill); }
.tp-list i:first-child { background: var(--sel); }
.tp-read { padding: 6px; display: grid; align-content: start; gap: 4px; }
.tp-read b { display: block; height: 6px; width: 70%; background: var(--fg); border-radius: var(--r-pill); }
.tp-read i { display: block; height: 4px; background: var(--muted); opacity: .45; border-radius: var(--r-pill); }
.tp-read u { display: block; width: 34px; height: 10px; margin-top: 4px; background: var(--accent); border-radius: var(--r); }
.tp-name { font-weight: 600; font-family: var(--font-head); font-size: 13.5px; }
.tp-desc { font-size: 12px; color: var(--muted); }

/* Schmale Bildschirme: Leiste unten, eine Spalte (wie Postwerk) */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .rail { grid-row: 3; flex-direction: row; justify-content: space-around; padding: 4px; overflow-x: auto; }
  .rail a { flex: 1; padding: 6px 0; min-width: 0; font-size: 10.5px; }
  .rail .lang { display: none; }
  .rail .kurz { display: inline; }
  .rail a:last-child { margin-top: 0; }
  .rail-badge { right: 4px; }
  .me { display: none; }
  .brand { display: none; }
  .top { gap: 6px; padding: 6px 8px; }
  .verein-name { max-width: 52vw; }
  .menue.rechts summary::before { content: "☰"; }
  .panel, .detail-spalte { padding: 16px; }
  html, body { overflow-x: hidden; }
  .view-split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .subnav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px; }
  .subnav a { white-space: nowrap; }
  .subnav .abschnitt-titel { display: none; }
  .view-buchen { grid-template-columns: 1fr; }
  .view-buchen.mit-auswahl .liste-spalte { display: none; }
  .view-buchen:not(.mit-auswahl) .detail-spalte { display: none; }
  .zurueck-schmal { display: inline-block; margin-bottom: 10px; }
  .teil, .teil-kopf { grid-template-columns: 1fr 8rem auto; }
  .teil .projekt-feld { grid-column: 1 / -1; grid-row: 2; }
  .teil-kopf span:nth-child(2) { display: none; }
  .teil .mehr { grid-template-columns: 1fr; }
  .umsatzkopf { flex-direction: column; gap: 4px; }
  .verstecken-schmal { display: none; }
  dl.angaben { grid-template-columns: 1fr; gap: 0 0; }
  .angaben dd { margin-bottom: 8px; }
}
@media (max-width: 600px) {
  .verein-name { max-width: 40vw; }
  td, th { padding-left: 5px; padding-right: 5px; }
}

/* Filterknöpfe zurückhaltend */
.filter button { background: transparent; color: inherit; border: 1px solid var(--line); font-weight: 400; padding: 7px 12px; }
.filter button:hover { background: var(--bg3); }
.filter label { display: flex; gap: 6px; align-items: center; }
.beleg-ablage.gross { padding: 28px 16px; margin-bottom: 18px; }
.beleg-ablage small { font-weight: 400; color: var(--muted); }
form > .beleg-ablage { margin-bottom: 14px; }
.filterchips { align-items: center; margin-bottom: 8px; }
.suche-klein { flex: 1 1 220px; margin-left: 8px; }
.suche-klein input { padding: 5px 10px; }
.zeilenformular .grow { flex: 1 1 200px; }
.zeilenformular .grow input { width: 100%; }
.zeilenformular input.betrag { width: 8rem; }
.mehr-angaben { margin: 10px 0; }
.mehr-angaben[open] > summary { margin-bottom: 8px; }

/* Vereinsauswahl: wie die Anmeldekarte */
.karte-auswahl { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; width: min(460px, 100%); display: grid; gap: 14px; box-shadow: var(--shadow); }
.karte-auswahl h1 { margin: 0; font-size: 24px; }
.karte-auswahl p { margin: 0; }
.vereinsliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.vereinsliste a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); color: inherit; }
.vereinsliste a:hover, .vereinsliste a:focus-visible { border-color: var(--accent); background: var(--sel); text-decoration: none; }
.vereinsliste a.zuletzt { border-color: var(--accent); }
.vereinsliste .pfeil { font-size: 22px; color: var(--muted); }
.monogramm { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: var(--accent); color: var(--accent-fg); font-family: var(--font-head); font-weight: 700; border-radius: var(--r); text-transform: uppercase; }
.menue-inhalt .monogramm { width: 26px; height: 26px; font-size: 13px; }
.verein-eintrag { align-items: center; gap: 10px; }
.verein-eintrag[aria-current=true] { background: var(--sel); }
.haken { color: var(--accent); font-weight: 700; }
.karte-fuss { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; border-top: 1px solid var(--line); padding-top: 12px; }
.verein-einzeln { display: inline-flex; gap: 6px; align-items: center; padding: 6px 4px; }
.menue.verein-wahl .menue-inhalt { min-width: 300px; }
.karte-fuss form { margin: 0; }

/* Karten-Listen (Auslagen u. a.) */
.karten-liste { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.karten-liste > li { display: flex; gap: 8px; align-items: center; }
.karten-liste .karten-zeile { flex: 1; display: flex; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: inherit; }
.karten-liste a.karten-zeile:hover { border-color: var(--accent); text-decoration: none; }
.karten-liste .rechts, .umsatzkopf .rechts { text-align: right; white-space: nowrap; }
.karten-liste .leer { padding: 16px; }
.karten-liste .auswahl { display: flex; padding: 0 4px; }
.status { font-size: 11.5px; padding: 1px 8px; border-radius: var(--r-pill); background: var(--bg3); white-space: nowrap; display: inline-block; }
.status-eingereicht, .status-geprueft, .status-rueckfrage { background: color-mix(in srgb, var(--warn) 22%, var(--bg)); }
.status-freigegeben, .status-in_auszahlung { background: var(--sel); }
.status-erledigt, .status-gespendet { background: color-mix(in srgb, var(--ok) 20%, var(--bg)); }
.status-abgelehnt { background: color-mix(in srgb, var(--danger) 18%, var(--bg)); }
.formular-raster { display: grid; grid-template-columns: 11rem 1fr 9rem; gap: 10px; margin: 12px 0; align-items: end; }
.formular-raster label { font-size: 12.5px; color: var(--muted); }
.formular-raster label input { color: var(--fg); }
.kontierung { margin-bottom: 12px; }
.kontierung .teil { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 10rem; }
.verlauf { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.verlauf blockquote { margin: 4px 0 0; padding: 6px 10px; border-left: 3px solid var(--line); background: var(--bg2); }
textarea { width: 100%; }
@media (max-width: 900px) {
  .formular-raster { grid-template-columns: 1fr 1fr; }
  .formular-raster .breit { grid-column: 1 / -1; }
  .kontierung .teil { grid-template-columns: 1fr; }
}

/* Auswertungen */
.bericht-tabelle { margin: 20px 0; }
.bericht-tabelle h2 { font-size: 15px; margin: 0 0 8px; }
.tabelle-rollen { overflow-x: auto; }
tr.zwischensumme td, tfoot td { font-weight: 600; }
tfoot td { border-top: 2px solid var(--line); }
.bericht-karten .klein-titel { font-size: 16px; }
.banner.warning { border-color: var(--warn); }

/* Personen und Spenden */
form.inline, .inline-details { display: inline-flex; gap: 6px; align-items: center; }
.inline-details summary { cursor: pointer; color: var(--link); display: inline; }
.inline-details[open] { display: inline-flex; }
.zuordnen select { max-width: 18rem; }
.schritte { display: grid; gap: 10px; padding-left: 20px; margin: 16px 0 24px; }
.schritte li form, .schritte li .knopf { margin-left: 8px; }
@media (max-width: 900px) { .zuordnen { flex-wrap: wrap; } .zuordnen select { max-width: 100%; flex: 1 1 100%; } }
.qr { margin: 10px 0; } .qr svg { border-radius: var(--r); }
pre.codes { font-family: var(--font-mono); font-size: 15px; background: var(--bg2); padding: 12px 16px; border-radius: var(--r); columns: 2; }

/* Handy: vier Bereiche plus „Mehr“ */
.mehr-blatt { display: none; }
@media (max-width: 900px) {
  .rail a.zusatz { display: none; }
  .mehr-blatt:not([hidden]) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; position: fixed; left: 0; right: 0; bottom: 58px; z-index: 30; padding: 12px; background: var(--rail); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.18); }
  .mehr-blatt a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: var(--r); color: var(--rail-fg); font-size: 12px; text-decoration: none; position: relative; }
  .mehr-blatt a[aria-current=true] { background: var(--rail-sel); color: var(--rail-on); }
  .mehr-blatt svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mehr-blatt .rail-badge { position: absolute; top: 4px; right: 10px; }
}

.tabelle-scroll { overflow-x: auto; max-width: 100%; }
tr.fehlerzeile td { background: color-mix(in srgb, var(--danger) 8%, transparent); }
