/* Vereinsverwaltung – Kassenbuch-Optik in den Farben des Vereinsflyers, Zahlen in Tabellenziffern,
   Summen mit Doppelstrich. Keine externen Schriften oder Skripte (der Server läuft im Vereinsnetz). */

:root {
  /* Farben nach dem Vereinsflyer: Cremebeige, tiefes Indigoblau, Dunkelrot, Orange und Pfotengelb */
  --papier: #efe9d2;
  --flaeche: #fbf8ec;
  --tinte: #2b3730;
  --tinte-2: #5a6258;
  --linie: #d9d1b0;
  --linie-stark: #aaa27d;
  --marine: #1c0f94;
  --marine-hover: #2d22c2;
  --auf-marine: #ffffff;
  --kopf-bg: #1b1275;
  --kopf-text: #ffffff;
  --kopf-linie: #a50e0d;
  --akzent: #f18f2c;
  --akzent-hell: #febc53;
  --rot: #a50e0d;
  --marine-hell: #e6e0c2;
  --plus: #2c6a3d;
  --minus: #a50e0d;
  --ok-bg: #e1ecd0;
  --warn-text: #6b3f00;
  --warn-bg: #fde9b9;
  --fehler-bg: #f6d9cf;
  --serif: Charter, "Bitstream Charter", "Sitka Text", "Iowan Old Style", Cambria, "Noto Serif", "DejaVu Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "DejaVu Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

/* Dunkel: automatisch nach Geräteeinstellung (nur am Bildschirm, nie beim Drucken) oder von Hand gewählt.
   Beide Blöcke müssen dieselben Werte haben – ein Test prüft das. */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-farbe="hell"]) {
    --papier: #14122e;
    --flaeche: #1e1b42;
    --tinte: #f1ecd9;
    --tinte-2: #b4afc8;
    --linie: #302c63;
    --linie-stark: #4b4687;
    --marine: #febc53;
    --marine-hover: #ffd183;
    --auf-marine: #1b1275;
    --kopf-bg: #1e1b42;
    --kopf-text: #f1ecd9;
    --kopf-linie: #c0392b;
    --akzent: #f18f2c;
    --akzent-hell: #febc53;
    --rot: #ff9d92;
    --marine-hell: #2a2660;
    --plus: #8fd9a4;
    --minus: #ff9d92;
    --ok-bg: #173325;
    --warn-text: #f3cf86;
    --warn-bg: #3a2f14;
    --fehler-bg: #43201d;
  }
}
@media screen {
  :root[data-farbe="dunkel"] {
    --papier: #14122e;
    --flaeche: #1e1b42;
    --tinte: #f1ecd9;
    --tinte-2: #b4afc8;
    --linie: #302c63;
    --linie-stark: #4b4687;
    --marine: #febc53;
    --marine-hover: #ffd183;
    --auf-marine: #1b1275;
    --kopf-bg: #1e1b42;
    --kopf-text: #f1ecd9;
    --kopf-linie: #c0392b;
    --akzent: #f18f2c;
    --akzent-hell: #febc53;
    --rot: #ff9d92;
    --marine-hell: #2a2660;
    --plus: #8fd9a4;
    --minus: #ff9d92;
    --ok-bg: #173325;
    --warn-text: #f3cf86;
    --warn-bg: #3a2f14;
    --fehler-bg: #43201d;
  }
}
:root[data-farbe="hell"] { color-scheme: light; }
:root[data-farbe="dunkel"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font: 400 1rem/1.5 var(--sans);
}

a { color: var(--marine); text-underline-offset: 0.18em; }
a:hover { color: var(--marine-hover); }
:focus-visible { outline: 3px solid var(--marine); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; max-width: 68ch; }
code { font-family: ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace; font-size: 0.88em; word-break: break-all; }
small, .klein-text { font-size: 0.85rem; }
.leise { color: var(--tinte-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }

.sprung { position: absolute; left: -999px; top: 0; background: var(--marine); color: var(--auf-marine); padding: 0.5rem 1rem; z-index: 10; }
.sprung:focus { left: 0; }

/* ---------- Kopfzeile ---------- */
.kopf { background: var(--kopf-bg); color: var(--kopf-text); border-bottom: 3px solid var(--kopf-linie); }
.kopf-innen { max-width: 84rem; margin: 0 auto; padding: 0.6rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.marke { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; font: 700 1.1rem var(--serif); }
.marke svg { fill: var(--akzent-hell); flex: none; }
.marke:hover { color: inherit; }
.hauptnav { display: flex; flex-wrap: wrap; gap: 0.15rem 0.95rem; flex: 1; font-size: 0.95rem; }
.hauptnav a { color: inherit; text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; opacity: 0.88; }
.hauptnav a:hover { opacity: 1; border-bottom-color: var(--akzent-hell); color: inherit; }
.hauptnav a[aria-current="page"] { opacity: 1; font-weight: 600; border-bottom-color: var(--akzent); }
@media (min-width: 40.01rem) and (max-width: 82rem) { .kopf-innen { gap: 0.5rem 1rem; } .hauptnav { gap: 0.1rem 0.65rem; font-size: 0.88rem; } .marke { font-size: 1rem; } }
@media (min-width: 60rem) and (max-width: 72rem) { .marke span { display: none; } }
.kopf :focus-visible { outline-color: currentColor; }
.marke-zusatz, .menue-klein { display: none; }
.unternav-zeile { background: var(--flaeche); border-bottom: 1px solid var(--linie-stark); }
.unternav-innen { max-width: 84rem; margin: 0 auto; padding: 0 1rem; display: flex; flex-wrap: wrap; gap: 0 1.4rem; font-size: 0.93rem; }
.unternav-innen a { padding: 0.5rem 0; color: var(--tinte-2); text-decoration: none; border-bottom: 3px solid transparent; }
.unternav-innen a:hover { color: var(--tinte); }
.unternav-innen a[aria-current="page"] { color: var(--tinte); font-weight: 600; border-bottom-color: var(--marine); }
.gruppe-titel { margin-top: 1.6rem; }
.benutzer { display: flex; align-items: center; gap: 0.9rem; margin-left: auto; font-size: 0.92rem; }
.benutzer a { color: inherit; }
.benutzer form { margin: 0; }
.textknopf { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.textknopf.gefahr-text, .gefahr-text { color: var(--minus); }

/* ---------- Seite ---------- */
.seite { max-width: 70rem; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.seite.breit { max-width: 84rem; }
.seite.schmal { max-width: 38rem; }
.seite.mittig { margin-top: 3vh; }
.seite section { margin-top: 2.25rem; }
.seitenkopf-links { display: inline-flex; align-items: center; gap: 1rem; }
.seitenkopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1.25rem; }
.abschnittskopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

h1 + .leise, h1 + .meldung, h1 + .tabs { margin-top: 0.6rem; }
.seite > h1 { margin-bottom: 0.9rem; }

/* ---------- Meldungen ---------- */
.meldungen { margin-bottom: 1rem; }
.meldung { padding: 0.7rem 1rem; border-left: 4px solid var(--linie-stark); background: var(--flaeche); margin: 0 0 1rem; max-width: none; }
.meldung ul { margin: 0; padding-left: 1.2rem; }
.meldung.ok { border-color: var(--plus); background: var(--ok-bg); }
.meldung.fehler { border-color: var(--minus); background: var(--fehler-bg); }
.meldung.warnung { border-color: #c98a1a; background: var(--warn-bg); color: var(--warn-text); }
.meldungen .meldung { margin-bottom: 0.5rem; }
.leer { color: var(--tinte-2); padding: 1rem 0.6rem; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-block; font: 600 0.95rem/1.2 var(--sans); padding: 0.62rem 1.05rem; border-radius: 4px;
  border: 1px solid var(--marine); background: transparent; color: var(--marine); text-decoration: none; cursor: pointer;
}
.knopf:hover { background: var(--marine-hell); color: var(--marine-hover); }
.knopf.primaer { background: var(--marine); color: var(--auf-marine); }
.knopf.primaer:hover { background: var(--marine-hover); color: var(--auf-marine); }
.knopf.klein { padding: 0.38rem 0.7rem; font-size: 0.88rem; }
.knopf.gefahr-knopf { border-color: var(--minus); color: var(--minus); }
.knopf.gefahr-knopf:hover { background: var(--fehler-bg); color: var(--minus); }
.textlink { font-size: 0.95rem; }

/* ---------- Kontoauszug (Punktlinien) ---------- */
.auszug { background: var(--flaeche); border: 1px solid var(--linie); padding: 1.1rem 1.35rem 1.2rem; }
.auszug h2 { margin-bottom: 0.4rem; }
.auszug dl { margin: 0; }
.posten { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.3rem 0; }
.posten dt { flex: 1; display: flex; align-items: baseline; min-width: 0; }
.posten dt::after { content: ""; flex: 1; margin-left: 0.6rem; border-bottom: 1px dotted var(--linie-stark); transform: translateY(-0.28em); }
.posten dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; }
.posten.summe { margin-top: 0.35rem; padding-top: 0.55rem; border-top: 1px solid var(--tinte); font-weight: 700; }
.posten.summe dd { font-size: 1.35rem; border-bottom: 3px double var(--tinte); }
.auszug.kompakt { max-width: 26rem; margin-bottom: 1.25rem; }
.auszug.kompakt .knopf { margin-top: 0.8rem; }

.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1.5rem 2.5rem; margin-top: 1.5rem; align-items: start; }
.spalten > section { margin-top: 0; }

/* ---------- Zahlen ---------- */
.zahl { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.zahl.plus, .plus { color: var(--plus); }
.zahl.minus, .minus { color: var(--minus); }
.zahl.null { color: var(--tinte-2); }
.fett { font-weight: 700; }

/* ---------- Tabellen ---------- */
.tabelle-wrap { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--linie); }
table.buch { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.buch th, .buch td { padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.buch thead th { font-weight: 600; font-size: 0.86rem; color: var(--tinte-2); border-bottom: 2px solid var(--marine); background: var(--flaeche); position: sticky; top: 0; }
.buch tbody th { font-weight: 400; }
.buch .r { text-align: right; }
.buch .nr { width: 3.5rem; font-variant-numeric: tabular-nums; }
.buch tbody tr:hover { background: var(--marine-hell); }
.buch tr.anfang td { color: var(--tinte-2); font-style: italic; }
.buch tr.gruppe th { background: var(--papier); font: 700 1rem var(--serif); padding-top: 0.9rem; border-bottom: 1px solid var(--linie-stark); }
.buch tr.gruppe:hover { background: none; }
.buch .summenzeile td, .buch .summenzeile th { font-weight: 700; border-top: 1px solid var(--tinte); border-bottom: 3px double var(--tinte); background: var(--flaeche); }
.buch tfoot tr:hover { background: none; }
.buch .mitglied { color: var(--tinte-2); }
.buch.matrix th:first-child, .buch.matrix td:first-child { position: sticky; left: 0; background: var(--flaeche); min-width: 13rem; }
.buch.matrix tr.gruppe th:first-child { background: var(--papier); }
.buch.matrix tbody tr:hover th:first-child, .buch.matrix tbody tr:hover td:first-child { background: var(--marine-hell); }
.buch.matrix tr.gruppe:hover th:first-child { background: var(--papier); }
.buch.matrix th:first-child, .buch.matrix td:first-child { min-width: 12rem; }
.tabellenhinweis { margin: 0 0 0.4rem; font-size: 0.85rem; }
.buch.matrix td { font-size: 0.88rem; padding-left: 0.3rem; padding-right: 0.5rem; }
.buch.matrix th { padding-left: 0.3rem; padding-right: 0.5rem; }
.buch.matrix th:first-child, .buch.matrix td:first-child { padding-left: 0.7rem; }
.buch.tabelle-form td { vertical-align: middle; }

.marke-status { font-size: 0.85rem; }
.s-aktiv { color: var(--plus); }
.s-passiv { color: var(--tinte-2); }
.s-ausgetreten { color: var(--minus); }
.zaehler { display: flex; flex-wrap: wrap; gap: 0.3rem 1.75rem; margin-bottom: 1rem; max-width: none; color: var(--tinte-2); }
.zaehler strong { font: 700 1.25rem var(--serif); color: var(--tinte); font-variant-numeric: lining-nums; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; border-bottom: 1px solid var(--linie-stark); margin-bottom: 1.5rem; }
.tabs a { padding: 0.5rem 0; text-decoration: none; color: var(--tinte-2); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--tinte); }
.tabs a[aria-current="page"] { color: var(--tinte); font-weight: 600; border-bottom-color: var(--marine); }

/* ---------- Formulare ---------- */
.formular { display: grid; gap: 1.1rem; }
.formular fieldset { border: 1px solid var(--linie); background: var(--flaeche); padding: 1rem 1.25rem 1.25rem; margin: 0; display: grid; gap: 1rem; min-width: 0; }
.formular legend { font: 700 1.05rem var(--serif); padding: 0 0.4rem; }
.feld { display: grid; gap: 0.3rem; align-content: start; min-width: 0; }
.feld-name { font-size: 0.88rem; font-weight: 600; }
.feld-name abbr { color: var(--minus); text-decoration: none; margin-left: 0.15rem; }
.feld small { color: var(--tinte-2); }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 0.58rem 0.65rem; font: inherit; color: var(--tinte); background: var(--flaeche);
  border: 1px solid var(--linie-stark); border-radius: 4px;
}
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--marine); width: 1.05rem; height: 1.05rem; }
.haken { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.zeile2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.zeile3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1rem; }
.zeile2.plz-ort { grid-template-columns: 8rem 1fr; }
.zeile-form { display: flex; flex-wrap: wrap; align-items: end; gap: 0.6rem 0.9rem; }
.zeile-form.eng { align-items: center; gap: 0.5rem 0.7rem; }
.zeile-form.eng input[type=text] { width: auto; min-width: 12rem; flex: 1; }
.zeile-form .zahlfeld, input.zahlfeld { width: 9rem !important; min-width: 0 !important; flex: none !important; text-align: right; }
.zeile-form .breitfeld { min-width: min(100%, 22rem); }
.zeile-form input[type=password] { width: 14rem; }

.filter { display: flex; flex-wrap: wrap; align-items: end; gap: 0.7rem 1rem; margin-bottom: 1rem; }
.filter .feld { min-width: 9rem; }
.filter .breitfeld { flex: 1; min-width: 14rem; }
.filter.einzeilig { margin: 0; }
.jahrwahl .feld { display: flex; align-items: center; gap: 0.5rem; }
.jahrwahl select { width: auto; }

/* Art der Buchung */
.artwahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.art { position: relative; display: block; border: 1px solid var(--linie-stark); border-radius: 4px; padding: 0.7rem 0.85rem; cursor: pointer; background: var(--flaeche); }
.art input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.art span { display: grid; gap: 0.1rem; }
.art small { color: var(--tinte-2); line-height: 1.25; }
.art:has(input:checked) { border-width: 2px; padding: calc(0.7rem - 1px) calc(0.85rem - 1px); }
.art-einnahme:has(input:checked) { border-color: var(--plus); background: var(--ok-bg); }
.art-ausgabe:has(input:checked) { border-color: var(--minus); background: var(--fehler-bg); }
.art-umbuchung:has(input:checked) { border-color: var(--marine); background: var(--marine-hell); }
.art:has(input:focus-visible) { outline: 3px solid var(--marine); outline-offset: 2px; }

.gefahr { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--linie-stark); }
.kontrolle { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: 0.4rem; }
.kontrolle li { padding-left: 1.7rem; position: relative; max-width: 68ch; }
.kontrolle li::before { position: absolute; left: 0; font-weight: 700; }
.kontrolle .ok::before { content: "✓"; color: var(--plus); }
.kontrolle .warnung::before { content: "!"; color: #b07800; left: 0.3rem; }
.kontrolle .fehler::before { content: "✗"; color: var(--minus); }
.schritte { padding-left: 1.3rem; max-width: 62ch; }
.schritte li { margin-bottom: 0.35rem; }
.kategorieliste { list-style: none; margin: 0; padding: 0; }
.kategorieliste li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; padding: 0.5rem 0; border-bottom: 1px solid var(--linie); }
.kategorieliste li form { margin: 0; }
.kategorieliste input[type=text] { min-width: 8rem; }
.seite h2 + .schritte, .seite > h2 { margin-top: 1.75rem; }
.kategorieliste li.neu { border-bottom: 0; }

/* ---------- Mobil ---------- */
.ansichtwahl { max-width: 70rem; margin: 0 auto; padding: 0 1rem 2rem; font-size: 0.85rem; color: var(--tinte-2); }
.ansichtwahl form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1rem; }
.ansichtwahl .textknopf { color: var(--tinte-2); padding: 0.4rem 0; }
.ansichtwahl .textknopf[aria-pressed="true"] { color: var(--tinte); font-weight: 700; text-decoration: none; }
@media print { .ansichtwahl { display: none; } }
/* Darstellung (Ansicht und Farben) als Ausklappmenü in der Kopfzeile */
.benutzer { position: relative; }
.darstellung > summary { list-style: none; cursor: pointer; padding: 0.3rem 0.75rem; border: 1px solid currentColor; border-radius: 99px; font-size: 0.88rem; opacity: 0.92; }
.darstellung > summary::-webkit-details-marker { display: none; }
.darstellung > summary::after { content: " ▾"; }
.darstellung[open] > summary::after { content: " ▴"; }
.darstellung > summary:hover, .darstellung[open] > summary { opacity: 1; background: rgba(255, 255, 255, 0.14); }
.darstellung-feld { position: absolute; right: 0; top: calc(100% + 0.6rem); z-index: 30; width: max-content; max-width: min(22rem, 92vw);
  background: var(--flaeche); color: var(--tinte); border: 1px solid var(--linie-stark); border-top: 3px solid var(--akzent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); padding: 0.9rem 1.1rem 0.8rem; display: grid; gap: 0.6rem; }
.darstellung-feld form { display: grid; gap: 0.1rem; }
.darstellung-feld form > span { font-weight: 700; font-size: 0.85rem; }
.darstellung-feld .textknopf { color: var(--tinte-2); padding: 0.3rem 0; text-align: left; justify-self: start; }
.darstellung-feld .textknopf:hover { color: var(--tinte); }
.darstellung-feld .textknopf[aria-pressed="true"] { color: var(--tinte); font-weight: 700; text-decoration: none; }
.darstellung-feld .textknopf[aria-pressed="true"]::before { content: "✓ "; }
.darstellung-feld .opt { display: flex; flex-wrap: wrap; gap: 0.1rem 1rem; }
.darstellung-feld .version { margin: 0.2rem 0 0; padding-top: 0.5rem; border-top: 1px solid var(--linie); font-size: 0.82rem; color: var(--tinte-2); }
@media print { .darstellung { display: none; } }

.nur-mobil, .untennav { display: none; }
.filterbox > summary { display: none; }
/* ---------- Druck ---------- */

/* Quittung */
.quittung { background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: 4px; padding: 2rem 2.25rem 2.5rem; margin-top: 1rem; }
.quittung header { border-bottom: 2px solid var(--marine); padding-bottom: 0.6rem; margin-bottom: 1.5rem; }
.quittung .q-verein { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; margin: 0; color: var(--marine); }
.quittung .q-anschrift { margin: 0.15rem 0 0; color: var(--tinte-2); font-size: 0.9rem; }
.quittung h2 { font-family: var(--serif); font-size: 1.8rem; margin: 0; letter-spacing: 0.04em; }
.quittung .q-nr { margin: 0 0 1.5rem; color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.quittung dl { display: grid; grid-template-columns: 9rem 1fr; gap: 0.35rem 1rem; margin: 0 0 1.5rem; }
.quittung dt { color: var(--tinte-2); }
.quittung dd { margin: 0; }
.quittung .q-betrag dd strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; border-bottom: 3px double var(--tinte); }
.quittung .q-satz { line-height: 1.7; margin: 0 0 1.5rem; }
.quittung .q-leer { display: inline-block; min-width: 14rem; border-bottom: 1px solid var(--tinte); }
.quittung .q-unterschrift { margin-top: 4rem; width: 55%; border-top: 1px solid var(--tinte); padding-top: 0.3rem; color: var(--tinte-2); font-size: 0.85rem; }
.quittung .freitext { white-space: pre-wrap; }
.quittung .q-hinweis { margin: 2.5rem 0 0; font-size: 0.8rem; color: var(--tinte-2); max-width: none; }
@media (max-width: 36rem) { .quittung { padding: 1.25rem; } .quittung dl { grid-template-columns: 1fr; gap: 0; } .quittung dd { margin-bottom: 0.6rem; } }
@page quittung { size: A4 portrait; margin: 20mm; }

/* Hunde */
.s-aufgenommen { color: var(--marine); }
.s-vermittelbar { color: var(--plus); font-weight: 600; }
.s-reserviert { color: var(--warn-text); font-weight: 600; }
.s-vermittelt { color: var(--tinte-2); }
.s-dauerpflege { color: var(--marine); }
.s-verstorben { color: var(--tinte-2); font-style: italic; }
.hundekarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: 1.1rem; }
.hundekarte { display: flex; flex-direction: column; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 4px; overflow: hidden; color: inherit; text-decoration: none; }
.hundekarte:hover, .hundekarte:focus-visible { border-color: var(--marine); }
.hundekarte img, .hundekarte .ohne-foto { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--marine-hell); }
.hundekarte .ohne-foto { display: grid; place-items: center; color: var(--tinte-2); font-size: 0.9rem; }
.hundekarte .karte-text { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0.85rem 0.9rem; }
.hundekarte strong { font: 700 1.15rem var(--serif); }
.hundekarte small { color: var(--tinte-2); }
.hundekarte .anfragen { color: var(--marine); font-weight: 600; }
.fotoreihe { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.9rem; margin-bottom: 1rem; }
.fotoreihe figure { margin: 0; }
.fotoreihe img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--linie); border-radius: 4px; display: block; }
.fotoreihe figcaption { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding-top: 0.25rem; font-size: 0.85rem; }
.titelmarke { color: var(--plus); font-weight: 600; }
.verlauf { list-style: none; margin: 0 0 1rem; padding: 0; }
.verlauf li { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--linie); }
.verlauf .verlauf-kopf { grid-column: 1; }
.verlauf .freitext { grid-column: 1; white-space: pre-wrap; }
.verlauf form { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.formular.kompakt { margin-top: 1rem; max-width: 46rem; }

/* Startmenü */
.start-unter { margin: 0.35rem 0 0; }
.schnell { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.kacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 0.85rem; }
.kachel { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon titel" "text text" "info info"; gap: 0.2rem 0.75rem; align-items: center;
  height: 100%; padding: 1rem 1.1rem 1.05rem; background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: 4px;
  color: var(--tinte); text-decoration: none; transition: border-color 0.12s, box-shadow 0.12s; }
.kachel:hover { border-color: var(--marine); box-shadow: 0 0 0 1px var(--marine); color: var(--tinte); }
.kachel-icon { grid-area: icon; color: var(--marine); }
.kachel-titel { grid-area: titel; font: 700 1.15rem var(--serif); }
.kachel-text { grid-area: text; color: var(--tinte-2); font-size: 0.92rem; margin-top: 0.35rem; }
.kachel-info { grid-area: info; margin-top: 0.5rem; padding-top: 0.45rem; border-top: 1px solid var(--linie); font-size: 0.88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Terminplaner */
.seite.schmal-plus { max-width: 54rem; }
.t-filter { margin-bottom: 0.5rem; }
.t-arten { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.25rem; }
.t-arten legend { padding: 0; margin-right: 0.5rem; float: left; }
.t-tag { margin-bottom: 1.1rem; }
.t-tagkopf { font: 700 1.05rem var(--serif); margin: 0 0 0.3rem; padding-bottom: 0.3rem; border-bottom: 2px solid var(--linie-stark); }
.t-tagkopf.t-heute { border-bottom-color: var(--akzent); }
.t-tagkopf small { font: 600 0.85rem var(--sans); color: var(--rot); }
.t-liste { list-style: none; margin: 0; padding: 0; }
.t-zeile { display: grid; grid-template-columns: 6.2rem 1fr auto; gap: 0.2rem 0.9rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--linie); }
.t-zeit { font-variant-numeric: tabular-nums; color: var(--tinte); font-size: 0.95rem; }
.t-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; min-width: 0; }
.t-text small { flex-basis: 100%; }
.t-titel { font-weight: 600; text-decoration: none; color: var(--tinte); }
.t-titel:hover { text-decoration: underline; color: var(--marine); }
.t-erledigt .t-titel { text-decoration: line-through; color: var(--tinte-2); font-weight: 400; }
.t-art { font-size: 0.75rem; font-weight: 700; padding: 0.05rem 0.5rem; border: 1px solid currentColor; border-radius: 99px; white-space: nowrap; }
.t-art.t-verein { color: var(--marine); }
.t-art.t-hund { color: var(--plus); }
.t-art.t-frist { color: var(--rot); }
.t-art.t-web { color: var(--plus); }
.t-ueber-block { margin-bottom: 1.5rem; padding: 0.2rem 1rem 0.6rem; border-left: 4px solid var(--minus); background: var(--fehler-bg); }
.t-ueber-block h2 { color: var(--minus); }
.t-ueber-block .t-zeile { border-bottom-color: var(--linie-stark); }
.t-detail { display: grid; grid-template-columns: 6rem 1fr; gap: 0.5rem 1rem; margin: 0 0 1.5rem; }
.t-detail dt { color: var(--tinte-2); }
.t-detail dd { margin: 0; }
.formular fieldset .haken { display: flex; align-items: flex-start; margin-bottom: 0.75rem; }
.formular fieldset .haken input { margin-top: 0.25rem; }
section form + form, .t-erledigt-form { margin-top: 0.6rem; }
.t-monatskopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1.25rem; margin: 0.5rem 0 1rem; }
.t-monatskopf h2 { margin: 0; min-width: 11rem; text-align: center; }
.t-monat { border: 1px solid var(--linie-stark); background: var(--flaeche); }
.t-wochenkopf, .t-woche { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.t-wochenkopf span { padding: 0.35rem 0.5rem; font-weight: 700; font-size: 0.85rem; background: var(--marine-hell); border-bottom: 1px solid var(--linie-stark); }
.t-zelle { min-height: 6.5rem; padding: 0.3rem 0.35rem; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.t-woche .t-zelle:nth-child(7n) { border-right: 0; }
.t-fremd { background: var(--papier); color: var(--tinte-2); }
.t-zelle.t-heute { box-shadow: inset 0 0 0 2px var(--akzent); }
.t-nr { font-weight: 700; font-size: 0.9rem; }
.t-nr a { text-decoration: none; color: inherit; }
.t-nr a:hover { text-decoration: underline; }
.t-chip { display: block; font-size: 0.78rem; line-height: 1.25; padding: 0.1rem 0.35rem; border-left: 3px solid currentColor; background: var(--marine-hell); color: var(--tinte); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-chip.t-verein { border-left-color: var(--marine); }
.t-chip.t-hund { border-left-color: var(--plus); }
.t-chip.t-frist { border-left-color: var(--rot); }
.t-chip:hover { text-decoration: underline; }
.t-chip.t-erledigt { text-decoration: line-through; opacity: 0.7; }
.t-mehr { font-size: 0.75rem; }
.nur-handy { display: none; }
@media print { .t-filter, .t-haken { display: none !important; } }

@media print { .unternav-zeile { display: none !important; } }
@media print { .kacheln, .schnell, .untennav { display: none !important; } .filterbox > summary { display: none; } }

/* Vorlagen */
.vorlagenliste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: 0.85rem; }
.vorlage { background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: 4px; padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.vorlage-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.vorlage-titel { font: 700 1.1rem var(--serif); }
.vorlage-art { flex: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tinte-2); border: 1px solid var(--linie-stark); border-radius: 3px; padding: 0.05rem 0.4rem; }
.vorlage-text { margin: 0; color: var(--tinte); font-size: 0.94rem; }
.vorlage-meta { margin: 0 0 0.4rem; color: var(--tinte-2); font-size: 0.82rem; word-break: break-word; }
.vorlage .aktionen { margin-top: auto; }
@media print { .vorlagenliste .aktionen { display: none; } }

/* Steckbrief */
.teilen textarea { width: 100%; }
.teilen { margin-bottom: 1.5rem; }
.steckbrief { background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: 4px; padding: 1.5rem 1.75rem 1.75rem; margin: 1rem 0 2rem; }
.steckbrief-foto { display: block; width: 100%; max-height: 26rem; object-fit: cover; border-radius: 3px; margin-bottom: 1rem; }
.steckbrief h2 { font-family: var(--serif); font-size: 2.2rem; margin: 0; }
.steckbrief-kopf { margin: 0.1rem 0 1rem; color: var(--tinte-2); font-size: 1.05rem; }
.steckbrief-daten { display: grid; grid-template-columns: 11rem 1fr; gap: 0.3rem 1rem; margin: 0 0 1rem; }
.steckbrief-daten dt { color: var(--tinte-2); }
.steckbrief-daten dd { margin: 0; }
.steckbrief h3 { font-family: var(--serif); font-size: 1.15rem; margin: 1.2rem 0 0.25rem; }
.steckbrief .freitext { white-space: pre-wrap; line-height: 1.55; margin: 0; }
.steckbrief-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1.2rem; }
.steckbrief-fotos img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.steckbrief-fuss { margin-top: 1.6rem; padding-top: 0.8rem; border-top: 2px solid var(--marine); }
.steckbrief-fuss p { margin: 0.15rem 0; }
@media (max-width: 36rem) { .steckbrief-daten { grid-template-columns: 1fr; gap: 0; } .steckbrief-daten dd { margin-bottom: 0.5rem; } }
@page steckbrief { size: A4 portrait; margin: 16mm; }

/* Jahresbericht */
.bericht { background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: 4px; padding: 2rem 2.25rem 2.5rem; margin: 1rem 0 2rem; }
.bericht-kopf { border-bottom: 2px solid var(--marine); padding-bottom: 0.6rem; margin-bottom: 1.5rem; }
.bericht-kopf .q-verein { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; margin: 0; color: var(--marine); }
.bericht-kopf h2 { font-family: var(--serif); font-size: 1.9rem; margin: 0.2rem 0 0; }
.bericht h3 { font-family: var(--serif); font-size: 1.3rem; margin: 1.8rem 0 0.5rem; border-bottom: 1px solid var(--linie-stark); padding-bottom: 0.2rem; }
.bericht h4 { margin: 1.4rem 0 0.4rem; font-size: 1rem; }
.bericht .buch { width: 100%; }
.bericht .freitext { white-space: pre-wrap; line-height: 1.6; margin: 0; }
.bericht-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; align-items: start; }
@media (max-width: 40rem) { .bericht-spalten { grid-template-columns: 1fr; } }
.bericht-unterschriften { display: flex; gap: 3rem; margin-top: 4rem; }
.bericht-unterschriften span { flex: 1; border-top: 1px solid var(--tinte); padding-top: 0.3rem; color: var(--tinte-2); font-size: 0.85rem; }
.bericht-edit { margin-bottom: 2rem; }
.bericht-edit textarea { width: 100%; }
@media (max-width: 36rem) { .bericht { padding: 1.25rem; } .bericht-unterschriften { flex-direction: column; gap: 2.5rem; } }
@page bericht { size: A4 portrait; margin: 18mm; }
/* Berichte: Reiter für die Teile des Jahresberichts, PDF-Leiste, Monatswahl */
.teilwahl { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.25rem; margin: 0 0 1rem; background: var(--marine-hell); border-radius: 99px; }
.teilwahl a { padding: 0.4rem 1.2rem; border-radius: 99px; text-decoration: none; color: var(--tinte); font-weight: 600; }
.teilwahl a:hover { background: var(--flaeche); }
.teilwahl a[aria-current="page"] { background: var(--marine); color: var(--auf-marine); }
.pdf-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0 0 1rem; }
.teil-titel { font-family: var(--serif); font-size: 1.55rem; margin: 2.2rem 0 0.15rem; color: var(--marine); }
.bericht-kopf + .teil .teil-titel { margin-top: 0.4rem; }
.teil + .teil { margin-top: 2.8rem; border-top: 3px solid var(--rot); }
.teil-sub { margin: 0 0 0.4rem; }
.bericht-teil { margin: 0.1rem 0 0; font-weight: 700; color: var(--rot); }
.monat-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.monatwahl { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.monatwahl .feld { display: flex; align-items: center; gap: 0.5rem; }
.monatwahl select { width: auto; }
.bewegung td.zahl { white-space: nowrap; }
.bewegung thead th.r { width: 4.2rem; }
@media (max-width: 36rem) {
  .bewegung { font-size: 0.8rem; }
  .bewegung th, .bewegung td { padding: 0.4rem 0.22rem; }
  .bewegung thead th { font-size: 0.64rem; }
  .bewegung thead th.r { width: 2.4rem; }
  .termine-bericht thead { display: none; }
  .termine-bericht tr { display: block; padding: 0.45rem 0; border-bottom: 1px solid var(--linie); }
  .termine-bericht td { display: block; padding: 0.05rem 0.7rem; border: 0; }
  .termine-bericht td:first-child { font-weight: 600; }
}
@media (max-width: 36rem) { .teilwahl { display: flex; } .teilwahl a { flex: 1; text-align: center; padding: 0.5rem 0.4rem; } }

@media print {
  :root:root { color-scheme: light; --papier: #fff; --flaeche: #fff; --tinte: #000; --tinte-2: #333; --linie: #bbb; --linie-stark: #888; --marine: #000; --plus: #000; --minus: #000; }
  body { background: #fff; font-size: 10pt; }
  .kopf, .aktionen, .tabs, .filter, .sprung, .meldungen, .gefahr, .jahrwahl { display: none !important; }
  .seite, .seite.breit { max-width: none; padding: 0; }
  .tabelle-wrap { overflow: visible; border: 0; }
  .buch thead th { position: static; }
  .buch.matrix td { font-size: 7.5pt; padding: 2pt 3pt; }
  .buch.matrix th:first-child { position: static; min-width: 0; }
  .auszug { border: 0; padding: 0; break-inside: avoid; }
  section { break-inside: avoid; }
  @page { size: A4 landscape; margin: 12mm; }
  .bericht-weg { display: none !important; }
  .steckbrief { page: steckbrief; border: 0; padding: 0; margin: 0; font-size: 11pt; }
  .steckbrief-foto { max-height: 11cm; }
  .bericht { page: bericht; border: 0; padding: 0; font-size: 10pt; margin: 0; }
  .bericht h3, .bericht h4 { break-after: avoid; }
  .bericht h3 { margin-top: 1.1rem; }
  .bericht tr, .bericht .auszug { break-inside: avoid; }
  .bericht-spalten { grid-template-columns: 1fr 1fr; }
  .bericht .buch th, .bericht .buch td { padding-top: 2pt; padding-bottom: 2pt; }
  .bericht-kopf { margin-bottom: 0.8rem; }
  .bericht-unterschriften { break-inside: avoid; }
  .teil + .teil { break-before: page; border-top: 0; margin-top: 0; }
  .teil-titel { margin-top: 0.4rem; }
  .quittung { page: quittung; border: 0; padding: 0; font-size: 12pt; }
}

/* Version in der Fußzeile, Update-Seite */
.ansichtwahl .version { margin: 0 0 0.3rem; }
@media print { .ansichtwahl .version { display: none; } }
.zeile-form + form, section > form + form { margin-top: 1rem; }
.protokolltext { white-space: pre-wrap; overflow-wrap: anywhere; font: 0.8rem/1.4 ui-monospace, Menlo, Consolas, monospace; background: var(--flaeche); border: 1px solid var(--linie); padding: 0.6rem 0.8rem; max-height: 18rem; overflow: auto; }
.geraetecode { font: 700 1.6rem/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.12em; background: var(--flaeche); border: 2px solid var(--marine); padding: 0.1rem 0.6rem; }
.unterlagenliste { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 0.8rem; }
.unterlagenliste li { display: grid; gap: 0.25rem; justify-items: start; }
.unterlagen .feld { max-width: 28rem; }
.knopf.gesperrt { opacity: 0.65; cursor: not-allowed; border-style: dashed; }

/* Webseiten-Manager */
.web-zwei { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 72rem) { .web-zwei { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } .web-vorschau { position: sticky; top: 6rem; } }
.web-vorschau h2 { margin-top: 0; }
.web-rahmen { width: 100%; height: 34rem; border: 1px solid var(--linie-stark); background: #fff; display: block; }
.web-buehne { background: var(--flaeche); border: 1px solid var(--linie); padding: 1rem; display: flex; justify-content: center; overflow-x: auto; }
.web-rahmen.gross { height: 72vh; min-height: 30rem; max-width: 100%; }
.web-rahmen.gross.computer { width: 100%; }
.web-rahmen.gross.tablet { width: 768px; }
.web-rahmen.gross.handy { width: 390px; }
.web-leiste { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 0.75rem; }
.portrait-vorschau { display: block; width: 8rem; height: 8rem; max-width: 8rem; max-height: 8rem; object-fit: cover; border-radius: 50%; padding: 0; }
.muster { margin-top: 0.4rem; }
.muster summary { cursor: pointer; color: var(--marine); font-weight: 600; }
.muster p { color: var(--tinte-2); font-size: 0.92rem; }
.foto-bereich { margin-top: 1.5rem; }
.web-bildvorschau { max-width: 16rem; max-height: 8rem; object-fit: contain; border: 1px solid var(--linie); background: #fff; padding: 0.25rem; margin-bottom: 0.4rem; }
.formular fieldset.innen-gruppe { border: 0; padding: 0; background: none; margin: 0; }
.knopf[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Mitgliederliste: Sammelaktion für die Gruppen der Teamseite */
.sammel { display: flex; flex-wrap: wrap; align-items: end; gap: 0.8rem 1.2rem; margin: 1rem 0 1.5rem; padding: 0.9rem 1rem; border: 1px solid var(--linie); border-radius: 0.6rem; background: var(--flaeche, transparent); }
.sammel .feld { margin: 0; min-width: 14rem; }
.sammel small { flex-basis: 100%; }
input.auswahl { margin-right: 0.35rem; vertical-align: middle; }

/* Willkommensseite */
.willkommen { background: var(--flaeche); border: 1px solid var(--linie); border-left: 6px solid var(--akzent); border-radius: 6px; padding: 1.6rem 1.5rem 1.3rem; margin-top: 1rem; }
.willkommen h1 { margin: 0 0 0.8rem; font-family: var(--serif); font-size: 1.8rem; line-height: 1.2; }
.willkommen-gruss { margin: 0 0 0.3rem; color: var(--tinte-2); }
.willkommen-text { margin: 0 0 0.9rem; max-width: 60ch; white-space: pre-line; }
.willkommen .aktionen { margin-top: 1.2rem; }
.willkommen-hinweis { margin: 1rem 0 0.4rem; }
.willkommen-balken { height: 4px; background: var(--linie); border-radius: 2px; overflow: hidden; }
.willkommen-balken span { display: block; height: 100%; width: 100%; background: var(--akzent); transform-origin: left; animation: willkommen-ablauf linear forwards; }
@keyframes willkommen-ablauf { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .willkommen-balken span { animation: none; } }
.w-sek-5 .willkommen-balken span { animation-duration: 5s; }
.w-sek-6 .willkommen-balken span { animation-duration: 6s; }
.w-sek-7 .willkommen-balken span { animation-duration: 7s; }
.w-sek-8 .willkommen-balken span { animation-duration: 8s; }
.w-sek-9 .willkommen-balken span { animation-duration: 9s; }
.w-sek-10 .willkommen-balken span { animation-duration: 10s; }
.w-sek-11 .willkommen-balken span { animation-duration: 11s; }
.w-sek-12 .willkommen-balken span { animation-duration: 12s; }
.w-sek-13 .willkommen-balken span { animation-duration: 13s; }
.w-sek-14 .willkommen-balken span { animation-duration: 14s; }
.w-sek-15 .willkommen-balken span { animation-duration: 15s; }
.w-sek-16 .willkommen-balken span { animation-duration: 16s; }
.w-sek-17 .willkommen-balken span { animation-duration: 17s; }
.w-sek-18 .willkommen-balken span { animation-duration: 18s; }
.w-sek-19 .willkommen-balken span { animation-duration: 19s; }
.w-sek-20 .willkommen-balken span { animation-duration: 20s; }
.w-sek-21 .willkommen-balken span { animation-duration: 21s; }
.w-sek-22 .willkommen-balken span { animation-duration: 22s; }
.w-sek-23 .willkommen-balken span { animation-duration: 23s; }
.w-sek-24 .willkommen-balken span { animation-duration: 24s; }
.w-sek-25 .willkommen-balken span { animation-duration: 25s; }
.w-sek-26 .willkommen-balken span { animation-duration: 26s; }
.w-sek-27 .willkommen-balken span { animation-duration: 27s; }
.w-sek-28 .willkommen-balken span { animation-duration: 28s; }
.w-sek-29 .willkommen-balken span { animation-duration: 29s; }
.w-sek-30 .willkommen-balken span { animation-duration: 30s; }
