/* Kaninchen Verbandsmanager · (c) 2026 Enrico Eisebith */
:root {
  --bg: #F4F8EE;
  --card: #FFFFFF;
  --ink: #1E2A16;
  --ink-2: #3F4A40;
  --muted: #556356;
  --line: #D5E4C4;
  --line-2: #E6EFDB;
  --green: #4D8220;
  --green-dark: #3D6E1C;
  --green-light: #92C64E;
  --green-tint: #E8F2DA;
  --warn-bg: #FBF0D9;
  --warn-ink: #6E4B00;
  --bad-bg: #FBE3E1;
  --bad-ink: #8C1D18;
  --ok-bg: #E4F1D3;
  --ok-ink: #33611A;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--green-dark); }
a:hover { color: #2A4D13; }
h1 { font-size: 28px; margin: 4px 0 0; line-height: 1.2; }
h2 { font-size: 18px; margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Kopf */
.top { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img.logo { width: 156px; height: auto; display: block; }
.brand img.kv { width: 46px; height: 46px; border-radius: 23px; display: block; }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.avatar { width: 38px; height: 38px; border-radius: 9px; background: var(--green-tint); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #2A4D13; }
.navbar { background: var(--green); }
.navbar nav { display: flex; flex-wrap: wrap; gap: 4px; }
.navbar a { color: #FFFFFF; text-decoration: none; padding: 16px 14px; font-weight: 500; font-size: 15px; }
.navbar a:hover { background: rgba(255,255,255,0.12); color: #FFFFFF; }
.navbar a.active { background: var(--bg); color: var(--ink); font-weight: 600; }

main { flex: 1 0 auto; }
main .wrap { padding-top: 28px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }
.pagehead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sub { font-size: 15px; color: var(--muted); margin-top: 4px; }

/* Karten */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-head { padding: 14px 20px; border-bottom: 2px solid var(--green-light); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-body { padding: 18px 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 28px; font-weight: 700; margin-top: 2px; }
.stat .n { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Tabellen */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 11px 12px; border-bottom: 1px solid var(--line); background: #F7FAF2; white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tfoot td { font-weight: 700; background: #F7FAF2; border-top: 1px solid var(--line); }
.strong { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Chips */
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 12px; white-space: nowrap; background: #EEF1ED; color: var(--ink-2); }
.chip.ok { background: var(--ok-bg); color: var(--ok-ink); }
.chip.warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip.bad { background: var(--bad-bg); color: var(--bad-ink); }
.chip.green { background: var(--green-tint); color: var(--ok-ink); }

/* Formulare */
form.stack { display: flex; flex-direction: column; gap: 16px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.wide { grid-column: 1 / -1; }
label, .label { font-size: 14px; font-weight: 600; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #BDD3A8; border-radius: 8px; background: #FFFFFF; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(146,198,78,0.6); outline-offset: 1px; }
input[readonly], input:disabled, select:disabled { background: #F7FAF2; border-color: var(--line); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--green); margin-top: 2px; flex: 0 0 auto; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px 16px; margin: 0; }
legend { font-size: 14px; font-weight: 700; padding: 0 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--green); color: #FFFFFF; border: 0; padding: 11px 18px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--green-dark); color: #FFFFFF; }
.btn.secondary { background: #FFFFFF; color: var(--green-dark); border: 1.5px solid var(--green); padding: 9.5px 16px; }
.btn.secondary:hover { background: var(--green-tint); }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.link { background: none; color: #FFFFFF; padding: 0; font-weight: 500; }
.btn.danger { background: #FFFFFF; color: var(--bad-ink); border: 1.5px solid #E2A9A4; padding: 6px 12px; font-size: 14px; }
.inline { display: inline; margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.toolbar .field { min-width: 180px; }

/* Meldungen */
.alert { border-radius: var(--radius); padding: 12px 16px; font-size: 15px; border: 1px solid; }
.alert.ok { background: var(--ok-bg); border-color: #BFDDA0; color: var(--ok-ink); }
.alert.err { background: var(--bad-bg); border-color: #EBB8B3; color: var(--bad-ink); }
.alert.info { background: var(--warn-bg); border-color: #EBD49E; color: var(--warn-ink); }
.alert ul { margin: 4px 0 0; padding-left: 20px; }
.alert code { word-break: break-all; }

/* Anmeldung */
.auth { max-width: 440px; width: 100%; margin: 40px auto; }
.auth .card-body { display: flex; flex-direction: column; gap: 16px; }
.auth-logos { display: flex; justify-content: center; align-items: center; gap: 18px; margin-bottom: 18px; }
.auth-logos img.logo { width: 200px; height: auto; }
.auth-logos img.kv { width: 64px; height: 64px; border-radius: 32px; }

/* Oeffentliche Seite */
.hero { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.hero img { width: 260px; height: auto; }
.prose { max-width: 760px; }
.prose h2 { margin: 24px 0 8px; }

/* Fusszeile */
.foot { border-top: 1px solid var(--line); background: #FFFFFF; flex-shrink: 0; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 18px; color: #5E6E5A; padding-top: 16px; padding-bottom: 16px; }
.foot strong { color: #2F5214; }
.foot a { color: #5E6E5A; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 24px; }
  .navbar a { padding: 12px 10px; font-size: 14px; }
  .brand img.logo { width: 130px; }
  .who .name { display: none; }
}
@media print {
  .top, .navbar, .foot, .no-print { display: none !important; }
  body { background: #FFFFFF; }
}
h1.h2-size { font-size: 18px; margin: 0; }
.list-plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list-plain li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.danger-zone { border-color: #EBB8B3; }
.codes { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.codes li { font-family: ui-monospace, Consolas, monospace; font-size: 17px; font-weight: 700; background: #F7FAF2; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; text-align: center; letter-spacing: .05em; }
.codes-card { border: 2px solid #EBD49E; }
.steps { margin: 0; padding-left: 22px; }
.steps > li + li { margin-top: 20px; }
.steps li { padding-left: 4px; }
.qr { margin: 12px 0; display: block; width: fit-content; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; line-height: 0; }
.qr svg { width: 220px; height: 220px; }
.secret { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-size: 16px; background: #F7FAF2; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; letter-spacing: .06em; }
.code-input { font-family: ui-monospace, Consolas, monospace; font-size: 22px !important; letter-spacing: .2em; max-width: 220px; }
.code-form { margin-top: 10px; }
details summary { cursor: pointer; color: var(--green-dark); }
@media print { .codes-card { border: 0; } }
.print-only { display: none; }
@media print {
  body:has(.print-area) main .wrap > *:not(.print-area) { display: none !important; }
  .print-only { display: block; margin-top: 12px; color: #555; }
  .codes li { border-color: #999; }
}
.pay-grid { align-items: start; }
.pay { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.pay .qr { margin: 0; }
.pay .qr svg { width: 200px; height: 200px; }
.pay > div:last-child { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pay-data { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 18px 0 10px; font-size: 15px; }
.pay-data dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
.pay-data dd { margin: 0; word-break: break-word; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.date-small { max-width: 130px; padding: 6px 8px !important; font-size: 14px !important; }
.check-only { width: 18px; height: 18px; accent-color: var(--green); }
details.actions { display: inline-block; text-align: left; }
details.actions[open] { background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px; padding: 10px; position: relative; z-index: 2; }
details.actions form { margin-top: 8px; gap: 6px; }
.form-top { margin-top: 14px; }
.small-v { font-size: 22px !important; }
.text-bad { color: var(--bad-ink); font-weight: 600; }
.toolbar .check { align-self: center; margin-bottom: 8px; }

/* Zuchtmeldung im Aufbau des ZDRK-Vordrucks */
.zm { border: 1px solid var(--line); }
.zm-titel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.zm-titel h2 { font-size: 22px; }
.zm-eltern { display: grid; grid-template-columns: 1fr 1fr; }
.zm-eltern > div { padding: 18px 20px; }
.zm-eltern > div + div { border-left: 1px solid var(--line-2); }
.zm-eltern h3, .zm-teil h3 { margin: 0 0 12px; font-size: 17px; }
.zm-eltern .fields { grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.zm-teil { padding: 18px 20px; border-top: 1px solid var(--line); }
.zm-wurf { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 12px 14px; }
.zm-tiere td, .zm-tiere th { padding: 6px 8px; }
.zm-tiere td:first-child, .zm-tiere th:first-child { padding-left: 20px; width: 44px; color: var(--muted); }
.zm-tiere input[type=text], .zm-tiere select { padding: 6px 8px; font-size: 15px; width: 100%; min-width: 70px; }
.zm-tiere .ohr { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; white-space: nowrap; }
.zm-wert { font-weight: 700; min-height: 1.4em; border-bottom: 1px solid var(--line); padding: 2px 0 3px; }
.zm-label { font-size: 12px; color: var(--muted); }
.zm-lauf { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.zm-lauf li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.zm-lauf .p { width: 18px; height: 18px; border-radius: 9px; border: 2px solid var(--line); margin-top: 1px; background: #fff; }
.zm-lauf li.erledigt .p { background: var(--green); border-color: var(--green); }
.zm-lauf li.aktiv .p { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.zm-lauf li.aktiv { font-weight: 700; }
.zm-nr { width: 90px !important; min-width: 0 !important; }
@media (max-width: 760px) {
  .zm-eltern { grid-template-columns: 1fr; }
  .zm-eltern > div + div { border-left: 0; border-top: 1px solid var(--line-2); }
  .zm-wurf { grid-template-columns: 1fr 1fr; }
}

.nowrap { white-space: nowrap; }

/* Schauantrag im abgestimmten Format */
.schritte-weg { list-style: none; margin: 0 0 20px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.schritte-weg li { display: flex; flex-direction: column; gap: 6px; }
.schritte-weg .balken { height: 6px; border-radius: 3px; background: var(--line); }
.schritte-weg li.erledigt .balken, .schritte-weg li.aktiv .balken { background: var(--green-light); }
.schritte-weg .t { font-size: 14px; font-weight: 600; color: var(--muted); }
.schritte-weg li.aktiv .t, .schritte-weg li.erledigt .t { color: var(--ink); font-weight: 700; }
.schritte-weg .h { font-size: 13px; color: var(--muted); }
.antrag-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.antrag-layout > form { flex: 999 1 560px; min-width: 0; }
.antrag-layout > aside { flex: 1 1 320px; min-width: 0; }
.formblatt { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 20px; box-shadow: 0 2px 10px rgba(30,42,22,0.08); font-size: 12px; }
.formblatt-kopf { display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.25; }
.formblatt-kopf img { border-radius: 27px; }
.formblatt-titel { font-size: 16px; font-weight: 700; margin: 12px 0 8px; }
.formblatt dl { margin: 0; border: 1px solid var(--muted); }
.formblatt dl > div { padding: 5px 7px; border-bottom: 1px solid #A9B4A8; }
.formblatt dl > div:last-child { border-bottom: 0; }
.formblatt dt { font-size: 9px; color: var(--muted); }
.formblatt dd { margin: 0; }
.formblatt-fuss { margin-top: 8px; font-size: 10px; color: var(--muted); }
.text-warn { color: var(--warn-ink); font-weight: 600; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
@media (max-width: 760px) { .schritte-weg { grid-template-columns: 1fr 1fr; } }

/* Seite fuer den Obmann des LV (Zugang per persoenlichem Link) */
.lv-seite { max-width: 860px; width: 100%; margin: 32px auto; }
.lv-seite .card-head + .card-body + .card-head { border-top: 1px solid var(--line, #dfe3dc); }

/* Programm-Update: Fortschrittsbalken (natives progress-Element, ohne Inline-Styles) */
progress.update-balken { display: block; width: 100%; height: 18px; border: 1px solid #D3DDCB; border-radius: 9px; background: #E6ECE0; overflow: hidden; appearance: none; -webkit-appearance: none; }
progress.update-balken::-webkit-progress-bar { background: #E6ECE0; border-radius: 9px; }
progress.update-balken::-webkit-progress-value { background: linear-gradient(90deg, #6C9A3A, #4E7F23); border-radius: 9px; transition: width .35s ease; }
progress.update-balken::-moz-progress-bar { background: linear-gradient(90deg, #6C9A3A, #4E7F23); border-radius: 9px; }
progress.update-balken.fehler::-webkit-progress-value { background: #C0463B; }
progress.update-balken.fehler::-moz-progress-bar { background: #C0463B; }
.update-schritte { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.update-schritte li { color: #7A8672; }
.update-schritte li.aktiv { color: inherit; font-weight: 600; }
.update-schritte li.ok { color: #3F6E1C; }
.update-schritte li.ok::marker { color: #3F6E1C; }
.update-schritte li.ok > .meldung::before { content: "✓ "; color: #3F6E1C; font-weight: 700; }
.update-schritte li.fehler { color: #B23A2F; font-weight: 600; }
.update-schritte li .meldung { display: block; font-weight: 400; font-size: 13px; color: #5B6654; }
.update-erfolg { font-size: 18px; font-weight: 700; color: #3F6E1C; }
details.card > summary.card-head { cursor: pointer; list-style: none; }
details.card > summary.card-head::-webkit-details-marker { display: none; }
details.card > summary.card-head h2::before { content: "▸ "; color: #6C9A3A; }
details.card[open] > summary.card-head h2::before { content: "▾ "; }
.row-gap.aktionen { justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
.hidden-form { display: none; }
.preis-liste { display: flex; flex-direction: column; }
.preis-block { padding: 14px 20px 16px; border-top: 1px solid var(--line-2); }
.preis-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 16px; }
.preis-zurueck { margin-left: auto; }
.preis-felder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.preis-feld { margin: 0; min-width: 0; }
.preis-feld.b2 { grid-column: span 2; }
.preis-feld.b3 { grid-column: span 3; }
.preis-feld input, .preis-feld select { width: 100%; }
.preis-label { font-size: 12px; color: var(--ink-2); }
.preis-wert { font-size: 15px; padding: 2px 0; overflow-wrap: anywhere; }
.preis-scan { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.scan-upload { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.scan-upload input[type=file] { font-size: 13px; max-width: 260px; padding: 2px; border: 0; }
@media (max-width: 760px) {
  .preis-felder { grid-template-columns: minmax(0, 1fr); }
  .preis-feld.b2, .preis-feld.b3 { grid-column: auto; }
}
@media print {
  .preis-block { break-inside: avoid; padding: 8px 0; }
  .preis-felder { grid-template-columns: repeat(4, 1fr); }
}
.pre-line { white-space: pre-line; }
td.center { text-align: center; }
.melde-tabelle td { padding: 4px 6px; vertical-align: middle; }
.melde-tabelle input[type=text] { min-width: 150px; }
.melde-tabelle input.kurz { min-width: 0; width: 92px; }
.melde-tabelle select { min-width: 64px; }
.meldung-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Tierbestand: Liste links, Tierkarte rechts */
.bestand-layout { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 18px; align-items: start; }
.tier-liste { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 0; }
.tier-liste-kopf { padding: 12px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: var(--card); z-index: 1; }
.tier-liste-kopf input { width: 100%; }
.tier-leer { padding: 12px; }
.tier-jahr { padding: 6px 12px; font-size: 13px; font-weight: 700; background: var(--green-tint); color: var(--green-dark); }
.tier-eintrag { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.tier-eintrag:hover { background: #F6FAF1; }
.tier-eintrag.aktiv { background: var(--green); color: #fff; }
.tier-eintrag.aktiv .muted { color: #E8F2DA; }
.tier-eintrag.weg { opacity: .65; }
.tier-eintrag[hidden] { display: none; }
.tier-eintrag-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tier-eintrag-text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tier-eintrag-rechts { display: flex; gap: 4px; flex-shrink: 0; }
.tier-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; font-size: 11px; font-weight: 800; flex-shrink: 0; border: 2px solid; background: #fff; }
.tier-avatar.m { border-color: #3D6E1C; color: #3D6E1C; }
.tier-avatar.w { border-color: #9E7333; color: #9E7333; }
.tier-avatar.gross { width: 64px; height: 64px; font-size: 16px; border-width: 3px; }
.paar-avatar { display: inline-flex; }
.paar-avatar .tier-avatar + .tier-avatar { margin-left: -10px; }
.tier-detail { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tier-detail > .card, .tier-detail > .grid { margin: 0; }
.tier-kopf { padding: 16px 18px; }
.tier-kopf-inhalt { display: flex; gap: 16px; align-items: flex-start; }
.tier-kopf-text h2 { margin: 0 0 2px; font-size: 22px; }
.tier-chips { margin-top: 8px; flex-wrap: wrap; }
.tier-aktionen { margin-top: 14px; flex-wrap: wrap; }
.tier-bemerkung { margin: 10px 0 0; }
.tier-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.tier-zahl { font-size: 26px; font-weight: 800; color: var(--green-dark); }
.stammbaum-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stammbaum-spalte { display: flex; flex-direction: column; gap: 6px; justify-content: space-around; }
.stamm-box { display: flex; flex-direction: column; padding: 7px 10px; border: 1px solid var(--line); border-left: 4px solid; border-radius: 8px; background: #FBFDF8; min-width: 0; }
.stamm-box.m { border-left-color: #3D6E1C; }
.stamm-box.w { border-left-color: #9E7333; }
.stamm-box > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tier-mini-liste li { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.tier-mini-liste .tier-avatar { width: 26px; height: 26px; font-size: 9px; }
.paar-eltern { gap: 12px; }
@media (max-width: 860px) {
  .bestand-layout { grid-template-columns: minmax(0, 1fr); }
  .tier-liste { position: static; max-height: 46vh; }
  .stammbaum-mini { grid-template-columns: minmax(0, 1fr); }
}

/* Fotos und Logos */
.datei-knopf { position: relative; overflow: hidden; cursor: pointer; }
.datei-knopf input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.datei-knopf:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
img.tier-avatar.foto { object-fit: cover; padding: 0; }
.tier-foto { display: block; flex-shrink: 0; width: 132px; height: 132px; border-radius: 12px; overflow: hidden; border: 3px solid; background: #fff; }
.tier-foto.m { border-color: #3D6E1C; }
.tier-foto.w { border-color: #9E7333; }
.tier-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vlogo { width: 30px; height: 30px; border-radius: 6px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.vlogo.leer { font-size: 9px; font-weight: 800; color: var(--green-dark); background: var(--green-tint); letter-spacing: -.2px; }
.vlogo.gross { width: 96px; height: 96px; border-radius: 12px; }
.vlogo.gross.leer { font-size: 22px; }
.mit-logo { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 640px) {
  .tier-foto { width: 96px; height: 96px; }
}
.kopf-mit-logo { display: flex; align-items: center; gap: 14px; }
.vlogo.kopf { width: 56px; height: 56px; border-radius: 10px; }
.stamm-box.mit-foto { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; align-items: center; }
.stamm-box.mit-foto .tier-avatar.ahn { grid-row: 1 / span 3; }
.tier-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.tier-bild { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; min-width: 0; }
.tier-bild img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 3px solid; margin-bottom: 6px; display: block; }
.tier-bild.m img { border-color: #3D6E1C; }
.tier-bild.w img { border-color: #9E7333; }
.tier-bild:hover img { opacity: .9; }
.tier-bild > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .vlogo.kopf { width: 44px; height: 44px; } }
/* Tier ohne Foto: Kaninchen aus dem Logo, Rammler dunkelbraun, Haesin hellbraun */
.tier-avatar.leer { background: #7A5230 url(hase-weiss.png) center / 68% no-repeat; border-color: #7A5230; }
.tier-avatar.leer.w { background-color: #B98A52; border-color: #B98A52; }
.tier-eintrag.aktiv .tier-avatar.leer { border-color: #fff; }

/* Startseite Mitglied */
.schau-liste { list-style: none; margin: 0; padding: 0; }
.schau-zeile { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line-2); }
.schau-zeile:first-child { border-top: 0; }
.schau-zeile.abgesagt .schau-text .strong { text-decoration: line-through; color: var(--muted); }
.schau-datum { width: 52px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 8px; text-align: center; overflow: hidden; background: #fff; }
.schau-datum .tag { display: block; font-size: 20px; font-weight: 700; line-height: 1.2; padding-top: 3px; }
.schau-datum .monat { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; background: var(--green); color: #fff; padding: 1px 0; }
.schau-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.schau-aktion { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; flex-shrink: 0; }
.warn-text { color: var(--warn-ink); font-weight: 600; }
.daten-liste { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.daten-liste dt { color: var(--muted); font-size: 14px; }
.daten-liste dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .schau-zeile { flex-wrap: wrap; padding: 12px 16px; }
  .schau-aktion { flex-basis: 100%; flex-direction: row; align-items: center; justify-content: flex-start; padding-left: 66px; text-align: left; flex-wrap: wrap; }
  .daten-liste { grid-template-columns: 1fr; gap: 2px; }
  .daten-liste dd { margin-bottom: 8px; }
}

/* Kassenbuch */
.kasse-kacheln { margin-bottom: 4px; }
.kasse-kachel { text-decoration: none; color: inherit; display: block; }
.kasse-kachel:hover, .kasse-kachel.aktiv { border-color: var(--green); }
.kasse-kachel.aktiv { box-shadow: inset 0 -3px 0 var(--green); }
.kassenbuch td { vertical-align: top; }
.kassenbuch tr.kb-anfang td { background: var(--green-tint); }
.kassenbuch tr.kb-storno .kb-text, .kassenbuch tr.kb-storno td.num { text-decoration: line-through; color: var(--muted); }
.kassenbuch tfoot td { border-top: 2px solid var(--line); }
.zahlung-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.zahlung-felder { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.zahlung-felder .field { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.zahlung-felder input[name=betrag] { width: 90px; }
.zahlung-felder input[name=beleg] { width: 130px; }
.zahlart-wahl { display: flex; gap: 14px; align-items: center; min-height: 38px; }
@media print { .kasse-kacheln .stat { break-inside: avoid; } }
/* Kontoauszug */
.section-title { font-size: 18px; margin: 8px 0 0; }
.umsatz .card-head { align-items: flex-start; gap: 12px; }
.umsatz-betrag { font-size: 20px; font-weight: 700; white-space: nowrap; }
.umsatz-betrag.plus { color: var(--green-dark); }
.umsatz-betrag.minus { color: var(--warn-ink); }
.umsatz-zweck { margin: 0; padding: 8px 12px; background: var(--green-tint); border-radius: 8px; overflow-wrap: anywhere; }
.umsatz-text { flex: 1; min-width: 220px; }
.betrag-klein { width: 100px; text-align: right; }
.kontenplan input { width: 100%; min-width: 120px; }
.kontenplan input.nr-klein { width: 80px; min-width: 0; }
.kontenplan td { vertical-align: top; }
.kontenplan select { min-width: 150px; }
.kontenplan select + select { margin-top: 4px; }

.preis-zurueck-liste { display: flex; flex-direction: column; gap: 6px; }

/* Helfer unten rechts */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.helfer { position: fixed; right: 20px; bottom: 20px; z-index: 50; }
.helfer-knopf { position: relative; width: 68px; height: 68px; padding: 0; border: 3px solid #FFFFFF; border-radius: 50%; background: var(--green-tint); box-shadow: 0 4px 14px rgba(30, 42, 22, .28); cursor: pointer; transition: transform .15s ease; }
.helfer-knopf:hover, .helfer-knopf:focus-visible { transform: scale(1.06); outline: none; box-shadow: 0 0 0 3px var(--green-light), 0 4px 14px rgba(30, 42, 22, .28); }
.helfer-knopf img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.helfer-frage { position: absolute; right: -4px; top: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #FFFFFF; font: 800 14px/22px system-ui, sans-serif; border: 2px solid #FFFFFF; }
.helfer.klein .helfer-knopf { width: 44px; height: 44px; background: var(--green); }
.helfer.klein .helfer-knopf img { display: none; }
.helfer.klein .helfer-frage { position: static; display: block; width: auto; height: auto; border: 0; font-size: 22px; line-height: 38px; background: none; }
.helfer.offen .helfer-knopf { display: none; }
.helfer-panel { position: relative; width: 360px; max-height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(30, 42, 22, .25); margin-top: 90px; }
.helfer-panel[hidden] { display: none; }
.helfer-kopfzeile { position: relative; display: flex; align-items: flex-end; gap: 8px; min-height: 92px; padding: 12px 44px 12px 118px; background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color: #FFFFFF; border-radius: 13px 13px 0 0; }
.helfer-figur { position: absolute; left: 8px; bottom: -6px; width: 107px; height: auto; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
.helfer-gruss { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.helfer-gruss strong { font-size: 18px; }
.helfer-zu { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #FFFFFF; font-size: 22px; line-height: 30px; cursor: pointer; }
.helfer-zu:hover, .helfer-zu:focus-visible { background: rgba(255, 255, 255, .32); outline: none; }
.helfer-inhalt { display: flex; flex-direction: column; gap: 10px; padding: 14px; overflow: auto; }
.helfer-inhalt input[type=search] { width: 100%; }
.helfer-ueberschrift { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.helfer-liste { display: flex; flex-direction: column; gap: 6px; }
.helfer-liste details { border: 1px solid var(--line-2); border-radius: 8px; background: #FBFDF8; }
.helfer-liste details[open] { border-color: var(--line); background: #FFFFFF; }
.helfer-liste summary { cursor: pointer; padding: 8px 10px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.helfer-liste summary::-webkit-details-marker { display: none; }
.helfer-liste summary::after { content: "+"; color: var(--green); font-weight: 800; }
.helfer-liste details[open] summary::after { content: "−"; }
.helfer-liste summary small { font-weight: 400; color: var(--muted); margin-left: auto; white-space: nowrap; }
.helfer-liste p { margin: 0; padding: 0 10px 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.helfer-bereich { display: block; padding: 0 10px 6px; font-size: 12px; color: var(--muted); }
.helfer-liste a.mehr { display: inline-block; padding: 0 10px 10px; font-size: 13px; }
.helfer-fuss { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.helfer-link { border: 0; background: none; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.prose li:target { background: var(--green-tint); border-radius: 6px; outline: 6px solid var(--green-tint); }
@media (max-width: 640px) {
  .helfer { right: 12px; bottom: 12px; }
  .helfer.offen { left: 12px; }
  .helfer-panel { width: auto; max-height: calc(100vh - 110px); }
}
