:root { --text: #1d1d1f; --leise: #5f6368; --rand: #d5d8f2; --flaeche: #f7f8fe; --akzent: #292acb; --auf-akzent: #ffffff;
        --negativ: #b3261e; --hinweis: #eceefb; }   /* Vereinsblau aus dem Logo-Rand */
@media (prefers-color-scheme: dark) {
  :root { --text: #ececec; --leise: #a8adb4; --rand: #34365a; --flaeche: #16181b; --akzent: #9b9cf2; --auf-akzent: #141566;
          --negativ: #ef8a8a; --hinweis: #23244a; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--flaeche); }
header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 3px solid var(--akzent); }
header img { width: 48px; height: 48px; flex: none; }
header p { margin: 0; }
.verein { font-size: 14px; color: var(--leise); }
.titel { font-size: 20px; font-weight: 600; }
main { max-width: 440px; margin: 0 auto; padding: 16px; }
h1 { font-size: 24px; margin: 8px 0 16px; }
label { display: block; margin-bottom: 14px; font-weight: 500; }
input { display: block; width: 100%; margin-top: 4px; padding: 12px; font-size: 17px; border: 1px solid var(--rand); border-radius: 8px; background: transparent; color: var(--text); }
button { width: 100%; padding: 12px; margin: 4px 0 12px; font-size: 17px; font-weight: 600; border: 0; border-radius: 8px; background: var(--akzent); color: var(--auf-akzent); cursor: pointer; }
button.zweitrangig { background: transparent; color: var(--akzent); border: 1px solid var(--akzent); }
.hinweis { padding: 10px 12px; border-radius: 8px; background: var(--hinweis); }
.klein { font-size: 15px; color: var(--leise); }
a { color: var(--akzent); }
h2 { font-size: 19px; margin: 24px 0 8px; }
.zeile { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.zeile span { font-size: 15px; }
button.klein-knopf { width: auto; padding: 6px 12px; margin: 0; font-size: 15px; }
.saldo { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; margin-bottom: 8px; border-radius: 10px; border: 1px solid var(--rand); }
.saldo.positiv { border-left: 6px solid var(--akzent); }
.saldo.negativ { border-left: 6px solid var(--negativ); }
.saldo-titel { font-size: 15px; color: var(--leise); }
.saldo-betrag { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.umsaetze { list-style: none; padding: 0; margin: 0 0 16px; }
.umsaetze li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--rand); }
.u-datum, .u-saldo { font-size: 14px; color: var(--leise); }
.u-betrag { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.u-betrag.neg { color: var(--negativ); }
.u-betrag.pos { color: var(--akzent); }
.u-text { grid-column: 1 / -1; overflow-wrap: anywhere; }
.u-saldo { grid-column: 1 / -1; }
.umsaetze li.start .u-text { grid-column: 1; }
.startseite { text-align: center; }
.logo-gross { width: 180px; height: 180px; margin: 16px auto 4px; display: block; }
a.knopf { display: block; padding: 12px; margin: 16px 0 12px; font-size: 17px; font-weight: 600; text-decoration: none;
          border-radius: 8px; background: var(--akzent); color: var(--auf-akzent); }
footer { max-width: 440px; margin: 8px auto 24px; padding: 12px 16px 0; border-top: 1px solid var(--rand); font-size: 14px; color: var(--leise); text-align: center; }
footer a { color: var(--leise); }
.rechtliches ul { padding-left: 20px; }
.filter { margin: 0 0 12px; padding: 12px; border: 1px solid var(--rand); border-radius: 10px; }
.filter-zeile { display: flex; gap: 10px; }
.filter-zeile label { flex: 1; margin-bottom: 10px; font-size: 15px; }
.filter input, .filter select { padding: 9px; font-size: 16px; }
.filter select { display: block; width: 100%; margin-top: 4px; border: 1px solid var(--rand); border-radius: 8px; background: transparent; color: var(--text); }
.filter button { margin-bottom: 4px; }
.schnellwahl { margin: 4px 0 0; }
.summen { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 12px; border-radius: 8px; background: var(--hinweis); font-size: 15px; }
.summen .pos { color: var(--akzent); } .summen .neg { color: var(--negativ); }
.export { margin: 8px 0 4px; }
.umsaetze li.leer { display: block; color: var(--leise); }
/* Menü: Handy = Leiste unten (Daumenbereich), ab 768 px = fester Bereich links (Material 3 / Apple HIG) */
.menue { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-around;
  background: var(--flaeche); border-top: 1px solid var(--rand); padding-bottom: env(safe-area-inset-bottom); }
.menue-kopf { display: none; }
.menue a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 60px;
  padding: 8px 4px 6px; font-size: 12px; font-weight: 600; color: var(--leise); text-decoration: none; }
.menue .symbol { display: flex; justify-content: center; width: 56px; padding: 3px 0; border-radius: 16px; }
.menue svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menue a[aria-current="page"] { color: var(--akzent); }
.menue a[aria-current="page"] .symbol { background: var(--hinweis); }
body.mit-menue { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  body.mit-menue { padding-bottom: 0; padding-left: 232px; }
  body.mit-menue > header { display: none; }
  .menue { top: 0; right: auto; width: 232px; flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: 16px 12px; border-top: 0; border-right: 1px solid var(--rand); }
  .menue-kopf { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; font-weight: 600; line-height: 1.25; }
  .menue-kopf img { width: 44px; height: 44px; }
  .menue a { flex: none; flex-direction: row; gap: 12px; min-height: 48px; padding: 0 12px; font-size: 16px; border-radius: 24px; }
  .menue .symbol { width: auto; padding: 0; background: none !important; }
  .menue a[aria-current="page"] { background: var(--hinweis); }
  body.mit-menue main { max-width: 680px; }
}
/* Verwaltung */
.liste { list-style: none; padding: 0; margin: 0 0 16px; }
.liste > li { padding: 10px 0; border-bottom: 1px solid var(--rand); }
.liste .klein, .programmpunkt { display: block; }
.programmpunkt { padding-left: 12px; }
.status { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 13px; background: var(--hinweis); }
.status-abgesagt { color: var(--negativ); }
.status-abgeschlossen { color: var(--akzent); }
textarea { display: block; width: 100%; margin-top: 4px; padding: 12px; font: inherit; border: 1px solid var(--rand); border-radius: 8px; background: transparent; color: var(--text); }
label.haken { display: flex; align-items: center; gap: 10px; font-weight: 500; }
input[type="checkbox"] { display: inline-block; width: 22px; height: 22px; margin: 0; }
.zeile-formular { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zeile-formular .name { flex: 1 1 120px; font-weight: 600; }
.zeile-formular select, .zeile-formular input[type="number"] { width: auto; margin: 0; padding: 8px; }
.zeile-formular input[type="number"] { width: 70px; }
.zeile-formular select { border: 1px solid var(--rand); border-radius: 8px; background: transparent; color: var(--text); font-size: 16px; }
details { margin: 12px 0; } summary { cursor: pointer; font-weight: 600; color: var(--akzent); padding: 8px 0; }
.beschreibung { white-space: pre-line; }
.zeile-formular input[type="number"]:disabled, .zeile-formular select:disabled { opacity: .45; cursor: not-allowed; }
.abrechnung { margin: 16px 0; padding: 12px 14px; border: 1px solid var(--rand); border-radius: 10px; }
.abrechnung h3 { margin: 0 0 8px; font-size: 17px; }
.feld[hidden] { display: none; }
code { font-size: 14px; overflow-wrap: anywhere; }
.anmelde-formular { margin-top: 8px; }
.anmelde-formular label { display: flex; align-items: center; gap: 6px; margin: 0; }
.anmelde-formular select { padding: 8px; }
.programmpunkte > li { padding-left: 10px; }
.namen { overflow-wrap: anywhere; }
/* Admin-Ansicht: deutlich andere Farbe, damit klar ist, in welcher Ansicht man arbeitet */
body.admin-ansicht > header { border-bottom-color: #141566; }
.menue-admin { background: #141566; border-color: #141566; }
.menue-admin a, .menue-admin .menue-kopf { color: #e6e8fb; }
.menue-admin a[aria-current="page"] { color: #ffffff; }
.menue-admin a[aria-current="page"] .symbol, .menue-admin a[aria-current="page"] { background: rgba(255, 255, 255, .16); }
.menue-kopf small { font-weight: 400; opacity: .8; }
@media (min-width: 768px) { .menue-admin a[aria-current="page"] .symbol { background: none; } }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 12px 0; }
.kachel { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--rand); border-radius: 12px;
  text-decoration: none; color: var(--text); background: var(--flaeche); }
.kachel strong { font-size: 19px; color: var(--akzent); }
.kachel:hover { border-color: var(--akzent); }
