/* ═══════════════════════════════════════════════════════════════════════════
   Investitions- und Beschlussvorlage

   Die Tokens stammen aus der Homepage (wirthgruppe/assets/css/style.css) und
   sind bewusst identisch: derselbe radiale Verlauf, dieselbe eine Schrift,
   dieselbe Abstufung ueber Deckkraft statt ueber Farbe. Kein Gold.

   Was hier dazukommt, hat die Homepage nicht: Formularabschnitte, Tabellen,
   Statusmarken, Abstimmungsblock, Ablagefeld fuer Dateien.

   PERFORMANCE: kein backdrop-filter, kein Blend-Mode, kein Dauer-Blur.
   Auf der Homepage haben genau die die Bildrate auf 12 fps gedrueckt.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --blue-deep: #0E172D;
  --blue-lift: #17294C;
  --blue-low:  #070C1A;

  /* Seitenhintergrund. Body und Kopfzeile teilen ihn, siehe .nav. */
  --grund: radial-gradient(125% 105% at 88% 0%,
                           var(--blue-lift) 0%, var(--blue-deep) 52%, var(--blue-low) 100%);

  --ink:    #0A1120;
  --navy:   #111E36;
  --navy-2: #162944;
  --navy-3: #24406A;

  --text:  #FFFFFF;
  --ice:   rgba(255,255,255,.88);
  --muted: rgba(255,255,255,.62);
  --faint: rgba(255,255,255,.40);

  --line:   rgba(255,255,255,.13);
  --line-2: rgba(255,255,255,.26);

  --flaeche:   rgba(255,255,255,.035);
  --flaeche-2: rgba(255,255,255,.06);

  /* Zustandsfarben. Sparsam und entsaettigt, damit sie das Navy nicht sprengen. */
  --ja:      #7FD1A7;
  --nein:    #E79A9A;
  --neutral: rgba(255,255,255,.62);

  --sans: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --wrap: 1080px;
  --pad: clamp(20px, 4.5vw, 64px);
  --nav-h: 72px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--navy-3) var(--ink); }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--blue-deep);
  background-image: var(--grund);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(15px, .28vw + 14px, 16.5px);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
table { border-collapse: collapse; width: 100%; }

::selection { background: #fff; color: #141414; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  padding: 10px 18px; background: #fff; color: #141414;
  border-radius: var(--r); transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ───────────────────────────── Kopfzeile ───────────────────────────── */

/* Die Kopfzeile traegt denselben fixierten Verlauf wie der body. Weil beide
   am Fenster haengen, deckt sie sich pixelgenau mit dem Hintergrund — oben
   ist sie also unsichtbar. Erst beim Scrollen (Klasse aus app.js) kommen
   eine Haarlinie und ein weicher Schatten dazu. Kein backdrop-filter. */
.nav {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav-h);
  background-color: var(--blue-deep);
  background-image: var(--grund);
  background-attachment: fixed;
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.ist-gescrollt {
  border-bottom-color: rgba(255,255,255,.07);
  box-shadow: 0 10px 28px -18px rgba(0,0,0,.55);
}
.nav__in {
  max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 28px;
}
.nav__logo { flex: none; opacity: .95; }
.nav__logo img { height: 26px; width: auto; }

.nav__links {
  margin-left: auto;
  display: flex; align-items: center; gap: 22px;
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em;
}
.nav__links a { color: rgba(255,255,255,.78); transition: color .2s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a.is-current { color: #fff; box-shadow: inset 0 -1px 0 0 #fff; }
.nav__user {
  color: var(--faint); text-transform: none; letter-spacing: 0; font-size: 13px;
  padding-left: 22px; border-left: 1px solid var(--line);
}
.nav__form { display: inline; }
.lnk {
  padding: 0; color: rgba(255,255,255,.78);
  text-transform: uppercase; letter-spacing: .09em; font-size: 12.5px;
}
.lnk:hover { color: #fff; }

/* ─────────────────────────────── Rahmen ────────────────────────────── */

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) var(--pad) 96px;
}

.phead { margin-bottom: 40px; }
.phead__ueber {
  font-size: 12px; text-transform: uppercase; letter-spacing: .16em;
  color: var(--faint); margin-bottom: 12px;
}
.phead h1 {
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; line-height: 1.15;
  letter-spacing: -.01em;
}
.phead p { color: var(--muted); margin-top: 12px; max-width: 62ch; }

.kopfzeile {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}

/* ───────────────────────────── Bausteine ───────────────────────────── */

.karte {
  background: var(--flaeche);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 32px);
}
.karte + .karte { margin-top: 20px; }

.hinweis {
  border-left: 2px solid var(--line-2);
  padding: 14px 0 14px 18px;
  color: var(--muted); font-size: 14.5px;
}
.meldung {
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 14px 18px; margin-bottom: 28px; font-size: 15px;
}
.meldung--fehler { border-color: rgba(231,154,154,.5); color: #F3C9C9; }
.meldung--ok     { border-color: rgba(127,209,167,.5); color: #BFEBD5; }

.marke {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em;
  border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
}
.marke--offen          { color: var(--ice); }
.marke--angenommen     { color: var(--ja);   border-color: rgba(127,209,167,.45); }
.marke--abgelehnt      { color: var(--nein); border-color: rgba(231,154,154,.45); }
.marke--zurueckgezogen { color: var(--faint); }
.marke--hinweis        { color: #F3D9A4; border-color: rgba(243,217,164,.45); margin-top: 6px; }

/* Wer ein Textfeld zu sehen bekommt: intern (grau) oder der Antragsteller (gelb). */
.sicht {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 100px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; vertical-align: 1px;
  border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
}
.stimme__kommentar .sicht { margin-left: 0; margin-right: 4px; }
.sicht--aussen { color: #F3D9A4; border-color: rgba(243,217,164,.45); }

.ansicht__titel {
  font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--faint); margin: 30px 0 14px; font-weight: 500;
}
.tab--klein { font-size: 13.5px; }
.tab--klein th { padding: 0 10px 8px; }
.tab--klein td { padding: 9px 10px; vertical-align: top; }
fieldset.bkarte { margin: 0; min-width: 0; }

/* Statusseite */
.status-gross { font-size: clamp(26px, 3vw, 34px); font-weight: 600; line-height: 1.2; margin: 6px 0 6px; }
.status-gross--genehmigt { color: var(--ja); }
.status-gross--abgelehnt { color: var(--nein); }
.stufen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.stufe { position: relative; padding-top: 24px; font-size: 13px; color: var(--faint); }
.stufe::before {
  content: ''; position: absolute; top: 5px; left: 0; right: -10px; height: 2px;
  background: var(--line);
}
.stufe:last-child::before { right: 0; }
.stufe__punkt {
  position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue-deep); border: 2px solid var(--line-2);
}
.stufe.ist-erledigt { color: var(--muted); }
.stufe.ist-erledigt::before { background: rgba(255,255,255,.5); }
.stufe.ist-erledigt .stufe__punkt { background: rgba(255,255,255,.5); border-color: transparent; }
.stufe.ist-aktuell { color: #fff; font-weight: 500; }
.stufe.ist-aktuell .stufe__punkt { background: #fff; border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }

/* ───────────────────────────── Formulare ───────────────────────────── */

.abschnitt { margin-bottom: 44px; }
.abschnitt__kopf {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 12px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.abschnitt__nr {
  font-size: 12px; letter-spacing: .16em; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.abschnitt__kopf h2 { font-size: 17px; font-weight: 600; letter-spacing: .01em; }

.felder { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.feld--breit { grid-column: 1 / -1; }

.feld label, .feld__label {
  display: block; margin-bottom: 7px;
  font-size: 13px; color: var(--ice); letter-spacing: .01em;
}
.feld__pflicht { color: var(--faint); }
.feld__hilfe { margin-top: 7px; font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.feld__fehler { margin-top: 7px; font-size: 12.5px; color: #F3C9C9; }

input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=password], input[type=search], textarea, select {
  width: 100%; padding: 11px 13px;
  background: rgba(0,0,0,.22);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: #fff; font: inherit; font-size: 15px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
select { appearance: none; cursor: pointer; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.5) 50%),
                    linear-gradient(135deg, rgba(255,255,255,.5) 50%, transparent 50%);
  background-position: right 16px center, right 11px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
select option { background: var(--navy-2); color: #fff; }

input:focus, textarea:focus, select:focus {
  outline: none; border-color: rgba(255,255,255,.55); background: rgba(0,0,0,.34);
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.28); }
.feld.hat-fehler input, .feld.hat-fehler textarea, .feld.hat-fehler select {
  border-color: rgba(231,154,154,.65);
}
input[type=date] { color-scheme: dark; }

.einheit { position: relative; }
.einheit__text {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--faint); pointer-events: none;
}
.einheit input { padding-right: 62px; }

/* Knöpfe */
.knopf {
  display: inline-block; padding: 12px 26px;
  background: #fff; color: #141414;
  border-radius: var(--r); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em;
  transition: opacity .2s var(--ease);
}
.knopf:hover { opacity: .86; }
.knopf--rand {
  background: none; color: #fff; border: 1px solid var(--line-2); font-weight: 500;
}
.knopf--rand:hover { border-color: #fff; opacity: 1; }
.knopf--klein { padding: 8px 16px; font-size: 12px; }
.knopf[disabled] { opacity: .4; cursor: not-allowed; }

.aktionen {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.aktionen p { color: var(--faint); font-size: 13px; }

/* Ablagefeld für Anlagen */
.ablage {
  border: 1px dashed var(--line-2); border-radius: var(--r);
  padding: 26px; text-align: center; color: var(--muted);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.ablage.ist-ueber { border-color: #fff; background: var(--flaeche-2); }
.ablage input[type=file] { display: none; }
.ablage__wahl { color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ablage__regel { display: block; margin-top: 8px; font-size: 12.5px; color: var(--faint); }
.ablage__liste { margin-top: 16px; display: grid; gap: 8px; text-align: left; }
.ablage__datei {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 13px; background: var(--flaeche-2);
  border-radius: var(--r); font-size: 13.5px;
}
.ablage__datei span:last-child { margin-left: auto; color: var(--faint); font-size: 12.5px; }

.phead__hinweis { color: var(--faint); font-size: 13px; margin-top: 6px !important; }
.abschnitt__hinweis { color: var(--faint); font-size: 13.5px; margin: -8px 0 22px; max-width: 76ch; }

/* Beschluss-Karten: die linke Kante trägt die Farbe aus der Farblogik */
.bliste { display: grid; gap: 26px; }
/* Grid-Kinder dürfen schmaler als ihr Inhalt werden — sonst drückt die
   breite Tabelle (min-width) die ganze Karte über den Bildschirmrand. */
.bliste > *, .felder > *, .tzeile > * { min-width: 0; }
.bkarte {
  background: var(--flaeche);
  border: 1px solid var(--line);
  border-left: 3px solid var(--farbe, #DCE6F4);
  border-radius: var(--r);
  padding: clamp(18px, 3vw, 30px);
}
.bkarte__kopf {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.bkarte__nr {
  font-size: 12px; letter-spacing: .16em; font-weight: 600;
  color: var(--farbe, #DCE6F4); white-space: nowrap;
}
.bkarte__titel { flex: 1; min-width: 0; color: var(--ice); font-weight: 500; overflow-wrap: anywhere; }
.bkarte__weg { font-size: 11.5px; }
.bkarte__teil {
  margin: 30px 0 18px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em;
  color: var(--faint);
}
.bkarte__teil + .abschnitt__hinweis { margin-top: -8px; }
.bliste__plus { margin-top: 18px; }
.feld__hilfe--oben { margin: 0 0 10px; }

/* Tabellen im Formular (Kapitalbedarf, Alternativen) */
.ftab-scroll { overflow-x: auto; }
.ftab { min-width: 600px; font-size: 14px; }
.ftab thead th {
  text-align: left; font-weight: 500; font-size: 11.5px; letter-spacing: .05em;
  color: var(--faint); padding: 0 8px 8px; border-bottom: 1px solid var(--line);
}
.ftab tbody th {
  text-align: left; font-weight: 500; color: var(--ice); white-space: nowrap;
  padding: 18px 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.ftab td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ftab tbody tr:last-child td, .ftab tbody tr:last-child th { border-bottom: 0; }
.ftab textarea { min-height: 46px; }
.ftab .einheit input { padding-right: 46px; }
.ftab__wahl { width: 60px; text-align: center !important; }
input.kreuz { width: 18px; height: 18px; margin-top: 12px; accent-color: #fff; cursor: pointer; }

.wahl--klein { margin-bottom: 0; }
.wahl--klein label { padding: 8px 20px; font-size: 13.5px; }

/* Zusammenfassung: eine Zeile je Beschluss */
.tzeilen { margin-bottom: 26px; }
.tzeile {
  display: grid; grid-template-columns: 40px 1fr minmax(170px, 230px);
  gap: 14px; align-items: center;
  padding: 10px 0 10px 12px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--farbe, transparent);
}
.tzeile--kopf {
  padding-top: 0; border-left-color: transparent;
  font-size: 11.5px; letter-spacing: .05em; color: var(--faint);
}
.tzeile__nr { color: var(--farbe); font-weight: 600; font-variant-numeric: tabular-nums; }
.tzeile__titel { color: var(--ice); overflow-wrap: anywhere; }
.tzeile .feld label {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ─────────────────────────────── Tabellen ──────────────────────────── */

.tab { font-size: 14.5px; }
.tab th {
  text-align: left; font-weight: 500; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .1em; color: var(--faint);
  padding: 0 14px 10px; border-bottom: 1px solid var(--line);
}
.tab td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tab tr:last-child td { border-bottom: 0; }
.tab tbody tr { transition: background .15s var(--ease); }
.tab tbody tr:hover { background: var(--flaeche); }
.tab .num { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.tab .betrag { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tab a.titel { font-weight: 500; }
.tab a.titel:hover { text-decoration: underline; text-underline-offset: 3px; }
.tab__hinweis { color: var(--faint); padding: 40px 14px; text-align: center; }

.tab-scroll { overflow-x: auto; }

/* Reiter und Suche */
.reiter {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.reiter a {
  padding: 10px 16px; font-size: 13px; color: var(--muted);
  border-bottom: 1px solid transparent; margin-bottom: -1px;
}
.reiter a:hover { color: #fff; }
.reiter a.is-current { color: #fff; border-bottom-color: #fff; }
.reiter .zahl { color: var(--faint); font-variant-numeric: tabular-nums; }

.suche { display: flex; gap: 10px; margin-bottom: 24px; max-width: 460px; }

/* ────────────────────────────── Detailseite ────────────────────────── */

.werte { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.wert--breit { grid-column: 1 / -1; }
.wert__label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.wert__inhalt { margin-top: 5px; color: var(--ice); white-space: pre-wrap; }

.stimmenliste { display: grid; gap: 2px; }
.stimme {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.stimme:last-child { border-bottom: 0; }
.stimme__name { flex: 1; }
/* Anmerkung und öffentliche Begründung dürfen mehrere Absätze haben. */
.stimme__kommentar { margin-top: 4px; font-size: 13.5px; color: var(--muted); white-space: pre-wrap; }
.stimme__wert { font-size: 13px; white-space: nowrap; }
.stimme__wert--ja         { color: var(--ja); }
.stimme__wert--nein       { color: var(--nein); }
.stimme__wert--enthaltung { color: var(--neutral); }
.stimme__wert--fehlt      { color: var(--faint); font-style: italic; }

/* Die eigene Zeile in der Stimmenliste. */
.stimme--ich {
  margin: 0 -14px; padding-left: 14px; padding-right: 14px;
  background: rgba(127,209,167,.07); border-left: 2px solid var(--ja);
}
.sicht--ich { color: var(--ja); border-color: rgba(127,209,167,.45); }

/* Eigene Stimme in der Antragsliste: grüner Haken oder deutlicher Hinweis. */
.meine { font-size: 12px; color: var(--ja); white-space: nowrap; }
.meine::before { content: "✓ "; font-weight: 700; }
.meine--fehlt { color: #F3D9A4; }
.meine--fehlt::before { content: "● "; font-size: 9px; vertical-align: 1px; }

/* „Beschluss festhalten“ als klickbare, auffällige Marke. */
.marke--aufruf {
  margin-top: 6px; color: #0A1120; background: #F3D9A4; border-color: #F3D9A4; font-weight: 600;
}
.marke--aufruf:hover { opacity: .85; }

/* Großer Hinweis oben auf dem Antrag: Abstimmung durch, Beschluss fehlt. */
.aufruf {
  display: grid; gap: 8px; justify-items: start;
  margin-bottom: 28px; padding: 22px 24px; border-radius: var(--r);
  border: 1px solid rgba(243,217,164,.55); border-left: 4px solid #F3D9A4;
  background: rgba(243,217,164,.08); color: var(--text); text-decoration: none;
}
.aufruf:hover { background: rgba(243,217,164,.12); opacity: 1; }
.aufruf__ueber {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: #F3D9A4; font-weight: 600;
}
.aufruf__titel { font-size: 19px; font-weight: 600; line-height: 1.35; }
.aufruf__text { color: var(--muted); font-size: 14.5px; max-width: 62ch; }
.aufruf .knopf { margin-top: 8px; }
.karte--aufruf { border-color: rgba(243,217,164,.55); box-shadow: 0 0 0 1px rgba(243,217,164,.25); }

/* Erledigt: grüner Haken mit kurzem Satz. */
.erledigt {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 22px; padding: 14px 18px; border-radius: var(--r);
  border: 1px solid rgba(127,209,167,.45); background: rgba(127,209,167,.08);
  color: var(--ice); font-size: 14.5px;
}
.erledigt strong { color: #BFEBD5; }
.erledigt__haken {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ja);
  position: relative;
}
.erledigt__haken::after {
  content: ""; position: absolute; left: 10px; top: 5px; width: 7px; height: 13px;
  border: solid #0A1120; border-width: 0 3px 3px 0; transform: rotate(45deg);
}

/* Danke-Seite */
.fertig { max-width: 720px; margin: 0 auto; }
.fertig__titel { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; line-height: 1.15; }
.fertig__text { color: var(--muted); margin: 12px 0 26px; font-size: 16px; }
.fertig__text strong { color: var(--text); }
.fertig__karte { margin-bottom: 20px; padding: 6px 22px; }
.fertig__zwischen {
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--faint);
  font-weight: 600; padding: 16px 0 6px;
}
.fertig__zeile {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.fertig__zeile:last-child { border-bottom: 0; }
.fertig__zeile small { color: var(--faint); font-size: 12.5px; }
.fertig__zeile--link { color: var(--text); text-decoration: none; }
.fertig__zeile--link:hover { opacity: 1; background: rgba(255,255,255,.03); }
.fertig__zeile .num { color: var(--faint); font-variant-numeric: tabular-nums; margin-right: 6px; }
.fertig__leer { color: var(--muted); padding: 6px 0 18px; }
.fertig .aufruf { margin-top: -6px; }
.zustand { font-size: 12.5px; white-space: nowrap; }
.zustand + .zustand { margin-left: 10px; }
.zustand--ok::before     { content: "✓ "; font-weight: 700; }
.zustand--ok     { color: var(--ja); }
.zustand--warten { color: #F3D9A4; }
.zustand--fehler { color: var(--nein); }

/* Haken in der Bildschirmmitte: zeichnet sich, bleibt kurz, verschwindet. */
.haken-blitz {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(7,12,26,.82) 0, rgba(7,12,26,.55) 30%, rgba(7,12,26,0) 65%);
  animation: haken-blitz 1.9s var(--ease) forwards;
}
.haken-blitz svg { width: 150px; height: 150px; filter: drop-shadow(0 10px 40px rgba(127,209,167,.35)); }
.haken-blitz__kreis { fill: rgba(127,209,167,.16); stroke: var(--ja); stroke-width: 4; }
.haken-blitz__strich {
  fill: none; stroke: var(--ja); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 80; stroke-dashoffset: 80;
  animation: haken-strich .45s .2s var(--ease) forwards;
}
@keyframes haken-blitz {
  0%   { opacity: 0; transform: scale(.85); }
  15%  { opacity: 1; transform: scale(1); }
  70%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes haken-strich { to { stroke-dashoffset: 0; } }

.wahl { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl label {
  display: inline-block; padding: 11px 24px; margin: 0;
  border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 14px; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.wahl label:hover { border-color: rgba(255,255,255,.5); }
.wahl input:checked + label { background: #fff; color: #141414; border-color: #fff; }
.wahl input:focus-visible + label { outline: 2px solid #fff; outline-offset: 3px; }

.zaehlung {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.zaehlung div { font-size: 13px; color: var(--faint); }
.zaehlung b {
  display: block; font-size: 22px; font-weight: 600; color: #fff;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}

.anlagenliste { display: grid; gap: 8px; }
.anlage {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; background: var(--flaeche);
  border: 1px solid var(--line); border-radius: var(--r); font-size: 14px;
}
.anlage:hover { border-color: var(--line-2); }
.anlage__groesse { margin-left: auto; color: var(--faint); font-size: 12.5px; white-space: nowrap; }

/* ───────────────────────────── Schmale Seiten ──────────────────────── */

.schmal { max-width: 440px; margin: 0 auto; }
.schmal .karte { padding: 34px; }
.schmal h1 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.schmal .feld { margin-bottom: 20px; }
.schmal .knopf { width: 100%; text-align: center; }

.fuss {
  border-top: 1px solid var(--line);
  padding: 26px var(--pad);
  color: var(--faint); font-size: 12.5px; text-align: center;
}

/* ─────────────────────────────── Schmal ────────────────────────────── */

@media (max-width: 760px) {
  .felder, .werte { grid-template-columns: 1fr; }
  .nav__links { gap: 14px; font-size: 11.5px; }
  .nav__user { display: none; }
  .zaehlung { gap: 18px; }
  .tzeile { grid-template-columns: 32px 1fr; }
  .tzeile .feld { grid-column: 1 / -1; }
  .tzeile--kopf > div:nth-child(n+3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  /* Der Haken ist Rückmeldung, keine Deko: ohne Bewegung, nur ein- und ausblenden. */
  .haken-blitz { animation: haken-blende 1.9s linear forwards !important; }
  .haken-blitz__strich { stroke-dashoffset: 0; }
}
@keyframes haken-blende { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
