/* Kassensystem Heimatverein Zabeltitz – Gestaltung nach dem Corporate Design des Jugendclubs */

@font-face { font-family: "Anton"; src: url("fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --text: #1A1A18;
  --muted: #4F4F48;
  --accent: #B3262B;
  --on-accent: #FFFFFF;
  --surface: #F2F0EA;
  --line: rgba(26, 26, 24, .13);
  --line-strong: rgba(26, 26, 24, .42);
  --motiv-opacity: .08;
  --blau: #18233A;
  --schatten: 0 2px 6px rgba(26, 26, 24, .08), 0 18px 48px rgba(26, 26, 24, .16);
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B120F;
    --text: #F1E8D4;
    --muted: #CFC6B2;
    --accent: #D9A640;
    --on-accent: #0B120F;
    --surface: #131C17;
    --line: rgba(241, 232, 212, .13);
    --line-strong: rgba(241, 232, 212, .40);
    --motiv-opacity: .11;
    --schatten: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 48px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 18px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
img { max-width: 100%; }

/* ---- Typografie ------------------------------------------------------ */
.titel {
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .01em;
  margin: 0;
}
.titel .zweite { display: block; color: var(--accent); letter-spacing: .11em; }
h1.titel { font-size: clamp(44px, 9vw, 72px); }
h2.titel { font-size: 30px; margin: 34px 0 12px; }
h3.titel { font-size: 22px; margin: 22px 0 8px; letter-spacing: .02em; }
.club { font-weight: 700; letter-spacing: .14em; line-height: 1; color: var(--accent); text-transform: uppercase; }
.einladung { font-style: italic; color: var(--muted); }
.label {
  font-weight: 700; font-size: 14px; letter-spacing: .22em; line-height: 1.1;
  text-transform: uppercase; color: var(--accent);
}
.wert { font-weight: 600; font-size: 30px; line-height: 1.05; }
.wert.gross { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: clamp(48px, 11vw, 80px); letter-spacing: .01em; line-height: .95; }
.leise { color: var(--muted); }
.klein { font-size: 15px; }
.fliesstext { font-family: "Barlow", sans-serif; font-size: 16px; line-height: 1.45; }
.neg { color: var(--accent); }
.rechts { text-align: right; }
.nowrap { white-space: nowrap; }
.durch { text-decoration: line-through; opacity: .6; }

/* ---- Rahmen der Admin-Seite ------------------------------------------ */
.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 10px max(16px, env(safe-area-inset-left)) 10px max(16px, env(safe-area-inset-right));
  padding-top: max(10px, env(safe-area-inset-top));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.kopf img { width: 34px; height: auto; display: block; }
.kopf .club { font-size: 18px; }
.kopf .einladung { font-size: 15px; margin-top: 2px; }
.kopf .marke { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.kopf nav { margin-left: auto; display: flex; gap: 4px; }
.kopf nav a {
  text-decoration: none; padding: 8px 12px; border-radius: 8px;
  font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  position: relative;
}
.kopf nav a.aktiv { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.kopf nav a:hover { color: var(--text); }
.kopf .zahnrad { margin-left: 8px; }
.symbolknopf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--muted);
  text-decoration: none;
}
.symbolknopf:hover, .symbolknopf.aktiv { color: var(--accent); background: var(--surface); }
.symbolknopf svg { width: 24px; height: 24px; }

.testband {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 7px 16px; text-align: center; font-size: 14px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}

main.inhalt { max-width: 1080px; margin: 0 auto; padding: 22px 16px 120px; }

.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--bg); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 9px;
  text-decoration: none; color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  position: relative;
}
.tabs a svg { width: 25px; height: 25px; }
.tabs a.aktiv { color: var(--accent); }
.zaehler {
  position: absolute; top: 3px; left: calc(50% + 7px);
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.kopf nav .zaehler { position: static; margin-left: 6px; vertical-align: 2px; }

@media (min-width: 900px) {
  .tabs { display: none; }
  main.inhalt { padding: 34px 28px 80px; }
  .kopf { padding-left: 28px; padding-right: 28px; }
  .kopf img { width: 40px; }
  .kopf .club { font-size: 21px; }
}
@media (max-width: 899px) {
  .kopf nav { display: none; }
  .kopf .zahnrad { margin-left: auto; }
}

/* ---- Bausteine ------------------------------------------------------- */
.seitenkopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.seitenkopf .leise { margin-top: 8px; }

.info { border-top: 2px solid var(--accent); padding-top: 16px; }
.felder { display: flex; flex-wrap: wrap; gap: 18px 48px; }
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.raster { display: grid; gap: 16px; }
@media (min-width: 720px) { .raster.zwei { grid-template-columns: 1fr 1fr; } .raster.drei { grid-template-columns: repeat(3, 1fr); } }

.karte {
  border-top: 2px solid var(--accent); background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius); padding: 16px 16px 18px;
}
.karte.ruhig { border-top-color: var(--line-strong); }

.hinweis {
  display: flex; gap: 12px; align-items: flex-start;
  border-left: 4px solid var(--accent); background: var(--surface); padding: 12px 14px; border-radius: 0 8px 8px 0;
  font-family: "Barlow", sans-serif; font-size: 16px; line-height: 1.4; margin: 12px 0;
}
.hinweis b { font-family: "Barlow Condensed", sans-serif; font-size: 18px; letter-spacing: .04em; }
.hinweis.ruhig { border-left-color: var(--line-strong); }
.hinweis.gross { font-size: 18px; }

.aufruf {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-decoration: none; background: var(--accent); color: var(--on-accent);
  padding: 16px 18px; border-radius: var(--radius); margin: 20px 0;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 18px;
}
.aufruf .titel { font-size: 34px; color: var(--on-accent); }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 8px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--on-accent); cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.1; text-align: center;
}
.knopf:hover { filter: brightness(1.06); }
.knopf:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.knopf.zweit { background: transparent; color: var(--text); border-color: var(--line-strong); }
.knopf.zweit:hover { border-color: var(--text); }
.knopf.gefahr { background: transparent; color: var(--accent); border-color: var(--accent); }
.knopf.voll { width: 100%; }
.knopf.klein { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.knopfreihe.ende { justify-content: flex-end; }
.textknopf { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Formulare */
.formular { display: grid; gap: 16px; }
.formular .zeile2 { display: grid; gap: 16px; }
@media (min-width: 620px) { .formular .zeile2 { grid-template-columns: 1fr 1fr; } }
label.feld > span.label, .feldtitel { display: block; }
.eingabe, select.eingabe, textarea.eingabe {
  width: 100%; min-height: 50px; padding: 10px 12px;
  border: 2px solid var(--line-strong); border-radius: 8px; background: var(--bg);
  font-weight: 600; font-size: 20px; line-height: 1.2;
}
textarea.eingabe { min-height: 80px; font-family: "Barlow", sans-serif; font-weight: 400; font-size: 17px; resize: vertical; }
.eingabe:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 1px; border-color: var(--accent); }
.eingabe.fehler { border-color: var(--accent); }
.eingabe.betrag { text-align: right; }
select.eingabe { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.feldhilfe { font-size: 15px; color: var(--muted); margin-top: 4px; }
.pflicht::after { content: " *"; color: var(--accent); }

.haken { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 18px; font-weight: 600; line-height: 1.25; }
.haken input { width: 26px; height: 26px; margin: 0; flex: none; accent-color: var(--accent); }

/* Auswahl (Segmente) */
.wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.wahl button {
  flex: 1 1 auto; min-height: 46px; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  border: 2px solid var(--line-strong); background: transparent;
  font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase;
}
.wahl button[aria-checked="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.wahl button:disabled { opacity: .4; cursor: not-allowed; }
.wahl.links button { flex: 0 1 auto; }

/* Töpfe */
.topf {
  display: inline-block; padding: 1px 7px 0; border-radius: 4px; border: 1.5px solid currentColor;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; vertical-align: 2px;
}
.topf.I { border-style: dashed; color: var(--muted); }
.topf.O { color: var(--text); }

/* Tabellen */
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th {
  text-align: left; font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  padding: 8px 10px; border-bottom: 2px solid var(--accent); white-space: nowrap;
}
.tabelle td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabelle td.zahl, .tabelle th.zahl { text-align: right; white-space: nowrap; }
.tabelle tr.summe td { font-weight: 700; border-top: 2px solid var(--line-strong); border-bottom: 0; }
.tabelle tr.abschnitt td { padding-top: 22px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.tabelle tr.zebra:nth-child(even) td { background: var(--surface); }
.tabelle.dicht td { padding: 6px 8px; }
.tabelle.dicht th { padding: 6px 8px; }
.tabelle tr.klickbar { cursor: pointer; }
.tabelle tr.klickbar:hover td { background: var(--surface); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Listen */
.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.liste > li { border-bottom: 1px solid var(--line); }
.posten {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 4px 14px; align-items: start;
  padding: 12px 4px; cursor: pointer; width: 100%; text-align: left; background: none; border: 0;
}
.posten:hover { background: var(--surface); }
.posten .wann { font-weight: 700; font-size: 17px; line-height: 1.1; }
.posten .wann small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.posten .was { min-width: 0; }
.posten .was b { font-weight: 600; font-size: 19px; display: block; overflow-wrap: anywhere; }
.posten .was .meta { font-size: 14px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.posten .wieviel { text-align: right; font-weight: 600; font-size: 19px; white-space: nowrap; }
.posten .wieviel div + div { margin-top: 2px; }
.posten .wieviel small { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .1em; margin-right: 6px; }
.typmarke { font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.status { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; background: var(--surface); color: var(--muted); }
.status.offen { background: var(--accent); color: var(--on-accent); }

/* Kassen-Übersicht */
.kassen { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .kassen { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (max-width: 719px) {
  .kasse { padding: 12px 12px 14px; }
  .kasse .name { font-size: 13px; letter-spacing: .1em; }
  .kasse .summe { font-size: 26px; }
  .kasse .teile { font-size: 14px; gap: 2px 6px; }
}
.kasse { background: var(--surface); border-top: 2px solid var(--accent); padding: 14px 14px 16px; border-radius: 0 0 var(--radius) var(--radius); }
.kasse .name { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 15px; }
.kasse .summe { font-weight: 600; font-size: 32px; margin: 6px 0 8px; line-height: 1; }
.kasse .teile { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 16px; }
.kasse .teile span:nth-child(even) { text-align: right; font-weight: 600; }

/* Zählgitter */
.zaehlgitter { display: grid; gap: 0; border-top: 1px solid var(--line); }
.zaehlzeile {
  display: grid; grid-template-columns: 74px minmax(150px, 240px) minmax(90px, 1fr); align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--line);
}
.zaehlzeile .sorte { font-weight: 700; font-size: 20px; text-align: right; }
.zaehlzeile .teil { text-align: right; font-weight: 600; color: var(--muted); font-size: 18px; }
.zaehlzeile .teil.hat { color: var(--text); }
.stepper { display: grid; grid-template-columns: 46px 1fr 46px; gap: 6px; }
.stepper button {
  height: 46px; border-radius: 8px; border: 2px solid var(--line-strong); background: transparent; cursor: pointer;
  font-size: 24px; font-weight: 700; line-height: 1;
}
.stepper button:active { background: var(--surface); }
.stepper input { min-height: 46px; text-align: center; padding: 6px 4px; font-size: 22px; }
.zaehlgruppe { margin: 16px 0 4px; }
.gesamtzeile { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 4px; }
.gesamtzeile .wert { font-size: 36px; }

/* Foto */
.fotofeld { display: grid; gap: 10px; }
.fotovorschau { max-height: 280px; width: auto; border-radius: 8px; border: 2px solid var(--line); display: block; }
.fotowahl { position: relative; }
.fotowahl input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.belegbild { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; display: block; }

/* Overlay / Sheet */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .5);
  display: flex; align-items: flex-end; justify-content: center;
  animation: einblenden .15s ease-out;
}
.sheet {
  background: var(--bg); width: 100%; max-height: 94vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  border-radius: 16px 16px 0 0; box-shadow: var(--schatten);
  padding: 18px 18px calc(24px + env(safe-area-inset-bottom));
  animation: hochfahren .18s ease-out;
}
.sheet .sheetkopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet .sheetkopf .titel { font-size: 32px; }
@media (min-width: 720px) {
  .overlay { align-items: center; padding: 24px; }
  .sheet { max-width: 680px; border-radius: 16px; max-height: 90vh; padding: 24px 28px 28px; }
  .sheet.breit { max-width: 900px; }
}
.bildoverlay { align-items: center; padding: 12px; cursor: zoom-out; }
.bildoverlay img { max-width: 100%; max-height: 100%; border-radius: 6px; }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
@keyframes hochfahren { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 10px; box-shadow: var(--schatten);
  font-weight: 600; font-size: 17px; max-width: calc(100vw - 32px); animation: einblenden .15s ease-out;
}
@media (min-width: 900px) { .toast { bottom: 32px; } }
.meldung-fehler { color: var(--accent); font-weight: 600; margin-top: 10px; }

.filter { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 720px) { .filter { grid-template-columns: 160px 120px 150px 1fr; } }
.filter .eingabe { min-height: 44px; font-size: 17px; padding: 8px 10px; }
.filter select.eingabe { padding-right: 34px; }

.berechnung { width: 100%; border-collapse: collapse; font-size: 17px; }
.berechnung td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.berechnung td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.berechnung tr.ergebnis td { border-top: 2px solid var(--text); border-bottom: 0; font-weight: 700; font-size: 22px; padding-top: 10px; }
.berechnung tr.zwischen td { font-weight: 700; border-bottom: 2px solid var(--line-strong); }
.berechnung .bew td { font-size: 15px; color: var(--muted); }
.berechnung .bew td:last-child { font-weight: 400; }

.leer { padding: 28px 0; color: var(--muted); font-style: italic; }
.ladeanzeige { padding: 40px 0; color: var(--muted); }

/* QR-Vorschau in den Einstellungen */
.qrvorschau { width: 150px; height: 150px; background: #fff; padding: 8px; border-radius: 12px; border: 3px solid #1A1A18; }
.qrvorschau svg { width: 100%; height: 100%; display: block; }
.linkzeile { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; margin: 8px 0; }

/* Anmeldung */
.anmeldung { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.anmeldung .box { width: 100%; max-width: 380px; position: relative; z-index: 1; }
.anmeldung img { width: 92px; display: block; margin-bottom: 18px; }
.anmeldung .club { font-size: 22px; }
.anmeldung h1 { font-size: 76px; margin: 12px 0 26px; }

/* Hintergrundmotive (Münzen) */
.motive { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--motiv-opacity); pointer-events: none; z-index: 0; color: var(--text); }

/* ---- Mitgliederseite -------------------------------------------------- */
.mitglied { max-width: 560px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 18px calc(40px + env(safe-area-inset-bottom)); position: relative; }
.mkopf { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; position: relative; z-index: 1; }
.mkopf img { width: 52px; height: auto; display: block; }
.mkopf .club { font-size: 19px; }
.mkopf .einladung { font-size: 18px; margin-top: 3px; }
.mitglied h1.titel { font-size: clamp(58px, 17vw, 92px); margin-bottom: 16px; position: relative; z-index: 1; }
.mitglied h1.titel .zweite { font-size: .62em; margin-top: 4px; }
.mitglied .formular { position: relative; z-index: 1; }
.wahlkarten { display: grid; gap: 14px; position: relative; z-index: 1; }
.wahlkarte {
  display: block; width: 100%; text-align: left; cursor: pointer;
  border: 0; border-top: 3px solid var(--accent); background: var(--surface); border-radius: 0 0 12px 12px;
  padding: 18px 18px 20px;
}
.wahlkarte .titel { font-size: 46px; display: block; }
.wahlkarte .fliesstext { color: var(--muted); margin-top: 8px; display: block; }
.wahlkarte:active { filter: brightness(.97); }
.danke { text-align: left; position: relative; z-index: 1; }
.danke .wert.gross { margin: 8px 0 6px; }
.zurueck { margin-bottom: 10px; }

/* ---- Druck ------------------------------------------------------------ */
.nur-druck { display: none; }
@media print {
  :root { --bg: #fff; --text: #000; --muted: #333; --accent: #B3262B; --surface: #fff; --line: #bbb; --line-strong: #555; color-scheme: light; }
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .kopf, .tabs, .testband, .nicht-drucken, .filter, .knopfreihe, .toast, .overlay { display: none !important; }
  .nur-druck { display: block; }
  main.inhalt { padding: 0; max-width: none; }
  .tabelle td, .tabelle th { padding: 4px 6px; }
  .tabelle tr { break-inside: avoid; }
  h1.titel { font-size: 30pt; }
  .druckkopf { display: flex !important; align-items: center; gap: 12px; margin-bottom: 10px; }
  .druckkopf img { width: 36px; }
}
.druckkopf { display: none; }
