/* Kassenbuch – Theme nach Brand Guidelines "Terminal Editorial" (Abschnitt 3, 4, 9) */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap;
  src: url("../vendor/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap;
  src: url("../vendor/fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap;
  src: url("../vendor/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap;
  src: url("../vendor/fonts/jetbrains-mono-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --color-bg: #0A0F0D;
  --color-text: #D1D5DB;
  --color-text-muted: #94A3B8;
  --color-accent: #22C55E;
  --color-attention: #F59E0B;
  --color-surface: #111A17;
  --color-border: #2A3A34;
  /* Ergänzung Anwendungen (offener Punkt 10.1): gedämpftes Rot, ca. 7:1 auf color-bg */
  --color-error: #F87171;

  --font-heading: "JetBrains Mono", ui-monospace, monospace;
  --font-body: "Inter", system-ui, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, monospace;

  --radius: 4px;
  --border-width: 1px;
  --accent-bar: 2px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 64px;

  --measure: 720px;
  --tap-target: 44px;
  --focus-ring: 2px solid var(--color-attention);
  --focus-offset: 2px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--color-bg); }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; margin: 0 0 var(--space-3); }
h1 { font-size: 32px; line-height: 40px; }
h2 { font-size: 20px; line-height: 28px; margin-top: var(--space-5); }
h3 { font-size: 16px; line-height: 24px; }
p { margin: 0 0 var(--space-3); max-width: var(--measure); }

a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-attention); }

:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }

.muted { color: var(--color-text-muted); }
.klein { font-size: 14px; line-height: 20px; }
.mono { font-family: var(--font-code); }
.zahl { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopf und Navigation ---------- */

.kopf {
  border-bottom: var(--border-width) solid var(--color-border);
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}
.titel { font-family: var(--font-heading); font-weight: 600; color: var(--color-text); text-decoration: none; }
.titel span { color: var(--color-text-muted); font-weight: 400; }
.titel:hover { color: var(--color-text); }

.nav { display: flex; gap: var(--space-1); flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-flex; align-items: center; min-height: var(--tap-target);
  padding: 0 var(--space-3);
  color: var(--color-text); text-decoration: none;
  border-bottom: var(--accent-bar) solid transparent;
}
.nav a:hover { color: var(--color-attention); }
.nav a[aria-current="page"] { color: var(--color-accent); border-bottom-color: var(--color-accent); font-weight: 600; }

.kassenwahl { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.sperren.rechts { margin-left: auto; }
.anmeldung { max-width: 480px; }
.kassenwahl label { font-family: var(--font-heading); font-size: 14px; color: var(--color-text-muted); }
.kassenwahl select { min-width: 200px; }

/* ---------- Inhalt ---------- */

main { padding: var(--space-5) var(--space-5) var(--space-6) var(--space-6); flex: 1; width: 100%; max-width: 1400px; }

.fuss {
  border-top: var(--border-width) solid var(--color-border);
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-6);
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--color-text-muted); font-size: 14px; line-height: 20px;
}
.fuss .wortmarke { font-family: var(--font-heading); font-weight: 600; color: var(--color-text); }
.fuss img { width: 20px; height: 20px; }

.kopfzeile { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.kopfzeile h1 { margin: 0; }

/* ---------- Karten, Panels, Hinweise ---------- */

.karte {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-3); }
a.karte { display: block; color: inherit; text-decoration: none; }
a.karte:hover { border-color: var(--color-accent); color: inherit; }

.label {
  font-family: var(--font-heading); font-size: 12px; line-height: 16px;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--color-accent);
}
.label.muted { color: var(--color-text-muted); }

.gesamtbestand { font-family: var(--font-heading); font-weight: 600; font-size: 48px; line-height: 56px; font-variant-numeric: tabular-nums; margin: var(--space-2) 0; }
.bestand { font-family: var(--font-heading); font-weight: 600; font-size: 24px; line-height: 32px; font-variant-numeric: tabular-nums; }

.negativ { color: var(--color-error); }

.hinweis {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-left: var(--accent-bar) solid var(--color-attention);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  max-width: var(--measure);
}
.hinweis .label { color: var(--color-attention); display: block; margin-bottom: var(--space-1); }
.hinweis p:last-child, .hinweis ul:last-child { margin-bottom: 0; }
.hinweis.fehler { border-left-color: var(--color-error); }
.hinweis.fehler .label { color: var(--color-error); }
.hinweis.erfolg { border-left-color: var(--color-accent); }
.hinweis.erfolg .label { color: var(--color-accent); }
.hinweis ul { margin: 0; padding-left: var(--space-4); }

/* ---------- Buttons ---------- */

.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap-target); padding: 0 var(--space-4);
  font: 600 16px/24px var(--font-body);
  border-radius: var(--radius);
  border: var(--border-width) solid var(--color-accent);
  background: var(--color-accent); color: var(--color-bg);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover, button:hover { background: var(--color-attention); border-color: var(--color-attention); color: var(--color-bg); }
.btn.sekundaer, button.sekundaer { background: transparent; color: var(--color-accent); }
.btn.sekundaer:hover, button.sekundaer:hover { background: transparent; color: var(--color-attention); border-color: var(--color-attention); }
.btn.gefahr, button.gefahr { background: transparent; color: var(--color-error); border-color: var(--color-error); }
.btn.gefahr:hover, button.gefahr:hover { color: var(--color-attention); border-color: var(--color-attention); }
button:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.aktionen-leiste { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.inline-form { display: inline; }

/* ---------- Formulare ---------- */

form.formular { max-width: var(--measure); }
.feld { margin-bottom: var(--space-3); }
.feld label, .feld .feld-label { display: block; font-weight: 600; margin-bottom: var(--space-1); }
.feld .hilfe { color: var(--color-text-muted); font-size: 14px; line-height: 20px; margin-top: var(--space-1); }
.feld .fehlertext { color: var(--color-error); font-size: 14px; line-height: 20px; margin-top: var(--space-1); }
.feld .fehlertext::before { content: "Fehler: "; font-weight: 600; }
.feld.mit-fehler input, .feld.mit-fehler select, .feld.mit-fehler textarea { border-color: var(--color-error); }
.feldreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 var(--space-3); }

input[type="text"], input[type="password"], input[type="email"], input[type="date"], input[type="search"], input[type="number"], input:not([type]),
select, textarea {
  width: 100%;
  min-height: var(--tap-target);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--border-width) solid var(--color-text-muted);
  border-radius: var(--radius);
  font: 16px/24px var(--font-body);
}
input.zahl { text-align: right; }
input[type="file"] { color: var(--color-text); font: 16px/24px var(--font-body); padding: var(--space-2) 0; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--color-accent); vertical-align: middle; }
.checkbox label { display: inline; font-weight: 400; margin-left: var(--space-2); }

.filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-2) var(--space-3); align-items: end; margin-bottom: var(--space-4); }
.filter .feld { margin: 0; }
.filter .feld label { font-weight: 400; font-size: 14px; color: var(--color-text-muted); }

.aktion-neu { border: var(--border-width) solid var(--color-border); border-radius: var(--radius); padding: var(--space-3); margin-top: var(--space-2); }

/* ---------- Tabellen ---------- */

.tabelle-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th {
  font-family: var(--font-heading); font-weight: 600; font-size: 14px; line-height: 20px;
  text-align: left; color: var(--color-text);
  border-bottom: var(--border-width) solid var(--color-text-muted);
  padding: var(--space-2) 12px;
  white-space: nowrap;
}
th a { color: inherit; text-decoration: none; }
th a:hover { color: var(--color-attention); }
td { border-bottom: var(--border-width) solid var(--color-border); padding: var(--space-2) 12px; vertical-align: top; }
th.zahl, td.zahl { text-align: right; }
tfoot td { font-weight: 600; border-top: var(--border-width) solid var(--color-text-muted); border-bottom: none; }
tr.storniert td.betrag { text-decoration: line-through; color: var(--color-text-muted); }

.einnahme { color: var(--color-accent); }
.ausgabe { color: var(--color-text); }

.marke {
  display: inline-block;
  font-family: var(--font-heading); font-size: 11px; line-height: 16px;
  text-transform: uppercase; letter-spacing: .04em;
  border: var(--border-width) solid var(--color-text-muted); color: var(--color-text-muted);
  border-radius: var(--radius); padding: 0 var(--space-1); margin-left: var(--space-1);
  white-space: nowrap;
}
.marke.storno { border-color: var(--color-attention); color: var(--color-attention); }
.marke.umbuchung { border-color: var(--color-accent); color: var(--color-accent); }

dl.details { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-4); margin: 0 0 var(--space-4); }
dl.details dt { color: var(--color-text-muted); }
dl.details dd { margin: 0; }

.leer { color: var(--color-text-muted); padding: var(--space-4) 0; }

.summen { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-3); margin: var(--space-4) 0; }
.summen .karte { padding: var(--space-3); }

.schnellwahl { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.schnellwahl a { display: inline-flex; align-items: center; min-height: var(--tap-target); padding: 0 var(--space-3); border: var(--border-width) solid var(--color-border); border-radius: var(--radius); text-decoration: none; color: var(--color-text); }
.schnellwahl a:hover { border-color: var(--color-attention); color: var(--color-attention); }
.schnellwahl a[aria-current="true"] { border-color: var(--color-accent); color: var(--color-accent); font-weight: 600; }

.beleg-vorschau { max-width: 480px; border: var(--border-width) solid var(--color-border); border-radius: var(--radius); }

@media (max-width: 760px) {
  .kopf, main, .fuss { padding-left: 20px; padding-right: 20px; }
  /* Kopfzeile kompakt (KB-140): Titel und Abmelden in einer Zeile, Navigation darunter */
  .kopf { gap: var(--space-1) var(--space-3); padding-top: var(--space-2); padding-bottom: var(--space-2); }
  .titel { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .titel span { display: none; } /* Gruppenname steht im Seitentitel des Browsers */
  .kopf .sperren button { padding: 0 var(--space-3); }
  .kopf .sperren { order: 1; margin-left: 0; gap: var(--space-2); }
  .kopf nav { order: 2; width: 100%; }
  .kassenwahl { order: 3; }
  .nav a { padding: 0 var(--space-2); }
  .kassenwahl { margin-left: 0; width: 100%; }
  h1 { font-size: 24px; line-height: 32px; }
  .gesamtbestand { font-size: 32px; line-height: 40px; }
}

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

/* ---------- Diagramme (Brand Guidelines Abschnitt 4) ---------- */

.diagramm { margin: var(--space-4) 0; max-width: 760px; }
.diagramm figcaption { margin-bottom: var(--space-2); }
.diagramm-titel { font-family: var(--font-heading); font-weight: 600; font-size: 16px; line-height: 24px; margin: 0; }
h2.diagramm-titel { font-size: 20px; line-height: 28px; }
.diagramm-flaeche { position: relative; }
.diagramm svg { display: block; width: 100%; height: auto; background: var(--color-bg); overflow: visible; }
.diagramm svg:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.diagramm .gitter { stroke: var(--color-border); stroke-width: 1; }
.diagramm .nulllinie { stroke: var(--color-text-muted); stroke-width: 1; }
.diagramm .achse { fill: var(--color-text-muted); font: 12px var(--font-body); font-variant-numeric: tabular-nums; }
.diagramm .linie { fill: none; stroke: var(--color-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.diagramm .flaeche { fill: var(--color-accent); opacity: .1; }
.diagramm .endpunkt { fill: var(--color-accent); stroke: var(--color-bg); stroke-width: 2; }
.diagramm .endwert { fill: var(--color-text); font: 600 13px var(--font-body); }
.diagramm .fadenkreuz { display: none; pointer-events: none; }
.diagramm .aktiv .fadenkreuz { display: inline; }
.diagramm .fadenkreuz line { stroke: var(--color-text-muted); stroke-width: 1; }
.diagramm .fadenkreuz circle { fill: var(--color-accent); stroke: var(--color-bg); stroke-width: 2; }
.diagramm .balken { fill: var(--color-accent); }
.diagramm .balken.verlust { fill: var(--color-text-muted); }
.diagramm .balken-name { fill: var(--color-text); font: 13px var(--font-body); }
.diagramm .balken-wert { fill: var(--color-text); font: 600 12px var(--font-body); font-variant-numeric: tabular-nums; }
.diagramm .trefferflaeche { fill: transparent; }
.diagramm .balken-link:hover .trefferflaeche, .diagramm .balken-link:focus-visible .trefferflaeche { fill: var(--color-surface); }
.diagramm .balken-link:focus-visible { outline: none; }
.diagramm .balken-link:focus-visible .balken-name { fill: var(--color-attention); text-decoration: underline; }
.diagramm .tooltip {
  position: absolute; top: 0; left: 0; pointer-events: none;
  background: var(--color-surface); border: var(--border-width) solid var(--color-text-muted); border-radius: var(--radius);
  padding: var(--space-1) var(--space-2); font-size: 14px; line-height: 20px; white-space: nowrap;
}
.diagramm .tooltip strong { display: block; font-variant-numeric: tabular-nums; }
.diagramm .tooltip span { color: var(--color-text-muted); }
.tabellenansicht { margin-top: var(--space-2); }
.tabellenansicht summary { cursor: pointer; color: var(--color-accent); min-height: var(--tap-target); display: flex; align-items: center; }
.tabellenansicht table { max-width: 480px; }
.export-leiste { margin-bottom: var(--space-3); }

/* Nur für Screenreader sichtbar (z. B. Beschriftung der Rollenauswahl in Tabellen) */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.kopf .sperren { display: flex; align-items: center; gap: var(--space-3); }

/* ---------- Handy (KB-140) ---------- */

/* Tabellen mit class="tabelle-karten": Auf schmalen Bildschirmen wird jede Zeile ein Block. Die
   Spaltenüberschrift steht per data-label vor dem Wert, der Betrag bleibt immer sichtbar
   (statt rechts außerhalb des Bildschirms beim Querscrollen). */
@media (max-width: 600px) {
  table.tabelle-karten thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.tabelle-karten, table.tabelle-karten tbody, table.tabelle-karten tr, table.tabelle-karten td { display: block; width: 100%; }
  table.tabelle-karten tr { display: flex; flex-direction: column; border-bottom: var(--border-width) solid var(--color-border); padding: var(--space-2) 0; }
  table.tabelle-karten td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: var(--space-3); text-align: right; }
  table.tabelle-karten td::before { content: attr(data-label); color: var(--color-text-muted); font-size: 14px; text-align: left; }
  table.tabelle-karten td.karten-titel { display: block; order: -1; text-align: left; font-weight: 600; padding-bottom: var(--space-1); }
  table.tabelle-karten td.karten-titel::before, table.tabelle-karten td:empty { display: none; }
}

/* Belegauswahl: großes Tap-Ziel und Vorschau des gewählten Fotos */
input[type="file"]::file-selector-button {
  min-height: var(--tap-target); padding: 0 var(--space-4); margin-right: var(--space-3);
  border: var(--border-width) solid var(--color-accent); border-radius: var(--radius);
  background: transparent; color: var(--color-accent); font: 600 16px/24px var(--font-body); cursor: pointer;
}
.beleg-auswahl { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-2); font-size: 14px; color: var(--color-text-muted); }
.beleg-auswahl img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); border: var(--border-width) solid var(--color-border); }

/* Einklappbarer Filter der Buchungsliste */
.filter-klappe { margin-bottom: var(--space-4); }
.filter-klappe summary {
  cursor: pointer; min-height: var(--tap-target); display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--color-accent); font-weight: 600;
}
.filter-klappe[open] summary { margin-bottom: var(--space-2); }

/* Kassensturz (KB-180): Stückelung als kompaktes Raster */
.stueckelung { border: 1px solid var(--color-border); border-radius: 8px; padding: var(--space-3); margin: 0 0 var(--space-3); }
.stueckelung legend { font-weight: 600; padding: 0 var(--space-1); }
.stueckelung .stueck { display: grid; grid-template-columns: 5.5em 7em 1fr; gap: var(--space-2); align-items: center; margin-bottom: var(--space-1); }
.stueckelung .stueck label { font-weight: 600; text-align: right; }
.stueckelung .stueck input { width: 100%; }
.stueckelung .stueck .fehlertext { grid-column: 2 / -1; color: var(--color-error); font-size: 14px; }
.stueckelung .stueck-summe { margin: var(--space-2) 0 0; }

/* Budget je Aktion (KB-186) */
.budget-balken { height: 10px; border-radius: 5px; background: var(--color-border); overflow: hidden; }
.budget-balken span { display: block; height: 100%; background: var(--color-accent, #22c55e); }
.budget.ueberschritten .budget-balken span { background: var(--color-error); }

/* Tags (KB-110) */
.tag-wahl { border: 1px solid var(--color-border); border-radius: 8px; padding: var(--space-3); margin: 0 0 var(--space-3); }
.tag-wahl legend { font-weight: 600; padding: 0 var(--space-1); }
.tag-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.tag-chip { display: inline-flex; align-items: center; gap: var(--space-1); padding: 4px 10px; border: 1px solid var(--color-border); border-radius: 999px; cursor: pointer; }
.tag-chip:has(input:checked) { border-color: var(--color-accent); color: var(--color-accent); }
.marke.tag { text-decoration: none; }
