/* kredit.optimumfinanz.com. Baut auf tokens.css von optimumfinanz.com auf.
   Ruhiges Formular auf Creme, Karten in Weiß, Schwarzblau für Text, Gold nur für den
   Hauptknopf, den Fortschritt und den Fokus. Erkennungszeichen ist die Monatsrechnung
   als Kassenbuch mit Haarlinien. Keine Schmuckbewegung. Mobil zuerst, ab 360 px. */

:root {
  --creme: #f5f3ee;
  --creme-tief: #ece8df;
  --linie: #e2ddd2;
  --linie-stark: #cfc8b9;
  --feld: #fdfcfa;
  --fehler: #a4262c;
  --fehler-grund: #fbf1f1;
  --ok: #2f6b3a;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--gold-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-tint); }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h2:focus, h1:focus { outline: none; }
.kicker {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 60;
  background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------------ Demo-Band */
.demo-band {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1rem;
  padding: 0.55rem 1rem;
  background: var(--ink); color: var(--creme);
  font-size: 0.9375rem; font-weight: 500; text-align: center;
}
.demo-band button {
  min-height: 40px; padding: 0.35rem 1rem;
  border-radius: 999px; border: 1px solid var(--gold-soft);
  background: transparent; color: #fff; cursor: pointer; font-weight: 600;
}
.demo-band button:hover { background: rgba(255, 255, 255, 0.08); }

/* ------------------------------------------------------------------ Kopf */
.kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 72rem; margin: 0 auto;
  padding: 1rem 1rem 0.9rem;
  border-bottom: 1px solid var(--linie);
}
.marke { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.marke-loewe { width: 40px; height: 40px; }
.marke-wort { width: 104px; height: auto; }
.kopf-titel { font-size: 0.875rem; font-weight: 600; color: var(--ink-muted); }

/* ------------------------------------------------------------------ Rahmen */
.rahmen {
  max-width: 72rem; margin: 0 auto;
  padding: 1rem 1rem 3rem;
}
main:focus { outline: none; }
.formular { max-width: 46rem; margin: 0 auto; }

/* ------------------------------------------------------------------ Start */
.start { max-width: 46rem; margin: 0 auto; padding-top: 1rem; }
.start h1 { font-size: clamp(2.1rem, 7.6vw, 3.4rem); line-height: 1.05; margin-bottom: 1rem; }
.start-lede { font-size: 1.0625rem; color: var(--ink-muted); margin: 0 0 1.25rem; max-width: 38rem; }

.warnung {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--ink);
  border-left-width: 5px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}
.start-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 0 0 0.9rem; }
.befugnis { font-size: 0.9375rem; color: var(--ink-muted); margin: 0 0 2.25rem; max-width: 38rem; }

.start-block { margin: 0 0 2rem; }
.start-block h2 { font-size: clamp(1.35rem, 4.4vw, 1.75rem); margin-bottom: 1rem; }

.ablauf { list-style: none; margin: 0; padding: 0; counter-reset: ablauf; border-top: 1px solid var(--linie); }
.ablauf > li {
  counter-increment: ablauf;
  position: relative;
  padding: 0.9rem 0 0.9rem 2.75rem;
  border-bottom: 1px solid var(--linie);
}
.ablauf > li::before {
  content: counter(ablauf);
  position: absolute; left: 0; top: 0.85rem;
  width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center;
  border: 1px solid var(--linie-stark); border-radius: 50%;
  font-family: var(--font-display); font-size: 0.875rem; font-weight: 500;
  color: var(--gold-deep); background: #fff;
}
.ablauf strong { display: block; font-weight: 600; }
.ablauf span { color: var(--ink-muted); font-size: 0.9375rem; }
.ablauf-kurz > li { padding-block: 0.7rem; }

.bereit { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.bereit li {
  background: #fff; border: 1px solid var(--linie); border-radius: 14px;
  padding: 0.8rem 1rem;
}
.bereit strong { display: block; }
.bereit span { color: var(--ink-muted); font-size: 0.9375rem; }

.sicher {
  background: var(--creme-tief);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  font-size: 0.9375rem;
}
.sicher p { margin: 0 0 0.5rem; }
.sicher p:last-child { margin: 0; }

/* ------------------------------------------------------------------ Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.5rem;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease), transform 150ms var(--ease);
}
.btn:disabled { cursor: not-allowed; opacity: 0.6; }
/* Hauptknopf Weiß auf Gold (Entscheidung Luca 05.11.2026). Beim Darüberfahren wächst ein
   Schwarzblau-Kreis aus der Mitte, wie auf optimumfinanz.com. */
.btn-primary {
  position: relative; overflow: hidden;
  color: #fff; border-color: var(--gold);
  background-color: var(--gold);
  background-image: radial-gradient(circle, var(--ink) 49.5%, transparent 50.5%);
  background-size: 0 0; background-position: center; background-repeat: no-repeat;
  box-shadow: 0 1px 2px rgba(17, 21, 26, 0.08);
  transition: border-radius 600ms cubic-bezier(0.23, 1, 0.32, 1), background-size 800ms cubic-bezier(0.19, 1, 0.22, 1), border-color 600ms, transform 150ms var(--ease);
}
.btn-primary > span { position: relative; z-index: 1; }
.btn-primary:hover:not(:disabled) { border-radius: 12px; border-color: transparent; background-size: 300% 300%; }
.btn-primary:active:not(:disabled) { transform: scale(0.97); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--linie-stark); }
.btn-secondary:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-deep); }
.btn-lg { min-height: 54px; padding: 0.9rem 1.9rem; font-size: 1rem; }

.knopf-text {
  min-height: 44px; padding: 0.4rem 0.6rem; margin: -0.4rem -0.6rem;
  border: 0; background: none; cursor: pointer;
  color: var(--gold-deep); font-weight: 600; font-size: 0.875rem;
  text-decoration: underline; text-underline-offset: 0.18em;
}
.knopf-text:hover { color: var(--ink); }
.knopf-neu, .knopf-datei {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 48px; padding: 0.6rem 1.1rem;
  border: 1px dashed var(--linie-stark); border-radius: 12px;
  background: #fff; color: var(--ink); cursor: pointer; font-weight: 600; font-size: 0.9375rem;
}
.knopf-neu:hover, .knopf-datei:hover { border-color: var(--gold); border-style: solid; }
.upload input[type=file]:focus-visible + .knopf-datei,
.knopf-datei:focus-within { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

/* ------------------------------------------------------------------ Fortschritt */
.leiste { margin: 0 0 1rem; }
.fortschritt-text { margin: 0 0 0.4rem; font-size: 0.875rem; font-weight: 600; }
.balken { height: 4px; border-radius: 999px; background: var(--linie); overflow: hidden; }
.balken span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 250ms var(--ease); }
.alle-schritte { margin-top: 0.6rem; }
.alle-schritte summary {
  cursor: pointer; font-size: 0.875rem; color: var(--ink-muted); min-height: 44px;
  display: inline-flex; align-items: center;
}
.schrittliste { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.15rem; }
.schritt-knopf {
  display: flex; align-items: center; gap: 0.65rem; width: 100%;
  min-height: 44px; padding: 0.3rem 0.5rem;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  text-align: left; font-size: 0.9375rem; color: var(--ink);
}
.schritt-knopf:hover:not(:disabled) { background: #fff; }
.schritt-knopf:disabled { cursor: default; color: var(--ink-faint); }
.schritt-knopf[aria-current="step"] { background: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
.schritt-nr {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--linie-stark); background: var(--creme);
  font-size: 0.75rem; font-weight: 600;
}
.schritt-knopf.ist-fertig .schritt-nr { background: var(--ink); border-color: var(--ink); color: #fff; }
.schritt-knopf[aria-current="step"] .schritt-nr { border-color: var(--gold); color: var(--gold-deep); background: #fff; }

/* ------------------------------------------------------------------ Karte und Schritt */
.karte {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 20px;
  padding: 1.25rem 1rem 1.5rem;
  box-shadow: 0 24px 48px -28px rgba(17, 21, 26, 0.18);
}
.schritt-kopf { margin-bottom: 1rem; }
.schritt-kopf h2 { font-size: clamp(1.55rem, 5.6vw, 2.1rem); margin: 0; }
.einleitung { margin: 0 0 1.25rem; color: var(--ink-muted); }

.abschnitt { margin: 1.75rem 0 0.9rem; padding-top: 1.25rem; border-top: 1px solid var(--linie); }
.schritt-inhalt > .abschnitt:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.abschnitt h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.25rem; }
.abschnitt-hilfe { margin: 0; font-size: 0.9375rem; color: var(--ink-muted); }
.untertitel { margin: 1rem 0 0.4rem; font-weight: 600; font-size: 0.9375rem; }

.hinweis {
  margin: 0 0 1.1rem;
  padding: 0.8rem 1rem;
  background: var(--creme);
  border-radius: 12px;
  font-size: 0.9375rem;
}
.hinweis p { margin: 0 0 0.5rem; }
.hinweis p:last-child { margin: 0; }
.hinweis.warnung { background: #fff; font-size: 1rem; }
.hinweis-ernst { background: var(--fehler-grund); color: #6e1a1e; border: 1px solid #ecc9cb; }
.hinweis.befugnis { background: transparent; padding: 0; color: var(--ink-muted); margin-top: 1.25rem; }

/* ------------------------------------------------------------------ Felder */
.feld { margin: 0 0 1.1rem; min-width: 0; }
fieldset.feld { border: 0; padding: 0; margin-inline: 0; }
.feld-label { display: block; font-size: 0.9375rem; font-weight: 500; margin-bottom: 0.35rem; padding: 0; }
.freiwillig { font-weight: 400; color: var(--ink-faint); }
.feld-hilfe { margin: -0.15rem 0 0.45rem; font-size: 0.8125rem; color: var(--ink-muted); }

.feld input[type=text], .feld input[type=email], .feld input[type=tel], .feld input[type=date], .feld select {
  display: block; width: 100%;
  min-height: 48px; padding: 0.7rem 0.9rem;
  font-size: 1rem; /* 16 px, sonst zoomt iOS beim Antippen */
  background: var(--feld);
  border: 1px solid var(--linie-stark);
  border-radius: 12px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
  -webkit-appearance: none; appearance: none;
}
.feld input[type=date] { min-width: 0; }
.feld select {
  padding-right: 2.5rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 52%, calc(100% - 0.8rem) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.feld input:focus, .feld select:focus {
  outline: none; background-color: #fff; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(188, 143, 53, 0.18);
}
.mit-einheit { position: relative; }
.mit-einheit input { padding-right: 2.75rem !important; }
.einheit {
  position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%);
  color: var(--ink-muted); pointer-events: none; font-size: 0.9375rem;
}
.feld-radio .optionen { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.option {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 48px; padding: 0.5rem 1rem 0.5rem 0.8rem;
  border: 1px solid var(--linie-stark); border-radius: 12px;
  background: var(--feld); cursor: pointer; font-size: 0.9375rem;
}
.option:hover { border-color: var(--gold); }
.option:has(input:checked) { border-color: var(--gold); background: var(--gold-tint); font-weight: 600; }
.option input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold-deep); flex: none; }

.hat-fehler input, .hat-fehler select { border-color: var(--fehler) !important; }
.hat-fehler .option { border-color: var(--fehler); }
.feld-fehler { margin: 0.4rem 0 0; color: var(--fehler); font-size: 0.875rem; font-weight: 500; }
.feld-fehler::before { content: "! "; font-weight: 700; }

.zeile { display: grid; gap: 0 1rem; grid-template-columns: minmax(0, 1fr); }
.zeile > .feld { margin-bottom: 1.1rem; }
@media (min-width: 340px) {
  .zeile:has(> .b-drittel) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .zeile:has(> .b-zweidrittel:first-child) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
@media (min-width: 540px) {
  .zeile:has(> .b-halb) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zeile:has(> .b-drittel ~ .b-drittel) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 539px) {
  .zeile:has(> .b-drittel ~ .b-drittel) { grid-template-columns: minmax(0, 1fr); }
}

/* Listen mit wiederholbaren Einträgen */
.liste { margin: 0 0 1.25rem; }
.liste-titel { font-weight: 600; font-size: 0.9375rem; margin: 0.25rem 0 0.5rem; }
.liste-leer { margin: 0 0 0.75rem; color: var(--ink-faint); font-size: 0.9375rem; }
.eintrag {
  margin: 0 0 0.9rem; padding: 0.9rem 0.9rem 0.2rem;
  border: 1px solid var(--linie); border-radius: 16px; background: #fff;
  min-width: 0;
}
.liste-innen .eintrag { background: var(--creme); border-style: dashed; }
.eintrag-kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 0; margin-bottom: 0.6rem; float: left;
}
.eintrag-kopf + * { clear: both; }
.eintrag-titel { font-weight: 600; font-size: 0.9375rem; }
.liste-innen { margin: 0.25rem 0 1rem; padding: 0.75rem; background: #faf9f6; border-radius: 14px; }
.liste.hat-fehler { border-left: 3px solid var(--fehler); padding-left: 0.75rem; }

/* Navigation */
.nav {
  display: flex; flex-wrap: wrap-reverse; justify-content: space-between; gap: 0.75rem;
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--linie);
}
.nav .btn-primary { flex: 1 1 auto; }

/* Fehlerliste oben im Schritt */
.fehlerliste {
  margin: 0 0 1.25rem; padding: 0.9rem 1rem;
  border: 1px solid #ecc9cb; border-left: 4px solid var(--fehler);
  border-radius: 12px; background: var(--fehler-grund);
}
.fehlerliste, .schritt-kopf, .feld, .liste, .upload, .haken { scroll-margin-top: 5rem; }
.fehlerliste:focus { outline: 2px solid var(--fehler); outline-offset: 2px; }
.fehlerliste-titel { margin: 0 0 0.4rem; font-weight: 600; color: #6e1a1e; }
.fehlerliste ul { margin: 0; padding-left: 1.1rem; }
.fehlerliste li { margin: 0.2rem 0; font-size: 0.9375rem; }
.fehlerliste a { color: #6e1a1e; }

/* ------------------------------------------------------------------ Monatsrechnung (Kassenbuch) */
.ledger-rahmen { overflow-x: auto; margin: 0 0 1rem; }
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.ledger td { padding: 0.5rem 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.ledger td:first-child { padding-right: 1rem; }
.l-betrag { text-align: right; white-space: nowrap; }
.l-kopf th {
  text-align: left; padding: 1.1rem 0 0.35rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep);
  border-bottom: 1px solid var(--ink);
}
.l-leer td { color: var(--ink-faint); }
.l-summe td { font-weight: 600; border-bottom: 2px solid var(--linie-stark); }
.ergebnis {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem;
  margin: 0 0 1.25rem; padding: 1rem 0 1.1rem;
  border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink);
}
.ergebnis-label { margin: 0; font-weight: 600; }
.ergebnis-betrag {
  margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.1;
}
.ergebnis.negativ .ergebnis-betrag { color: var(--fehler); }
.abgeloest { margin: 0.4rem 0 0; padding-left: 1.1rem; }

.mini-rechnung {
  margin-top: 1.5rem; padding: 0.85rem 1rem;
  border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink);
  background: linear-gradient(var(--creme), var(--creme));
  border-radius: 0;
}
.mini-titel { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.mini-betrag { margin: 0.1rem 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.mini-betrag.negativ { color: var(--fehler); }
.mini-detail { margin: 0; font-size: 0.8125rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ Unterlagen */
.upload-person { margin: 0 0 1.75rem; }
.upload-person > h3 { font-size: 1.125rem; font-weight: 600; margin: 1.5rem 0 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--linie); }
.upload {
  margin: 0 0 0.9rem; padding: 0.95rem 1rem;
  border: 1px solid var(--linie); border-radius: 16px; background: #fff;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.upload.ist-pflicht { border-color: var(--linie-stark); }
.upload.zieht { border-color: var(--gold); background: var(--gold-tint); }
.upload.hat-fehler { border-color: var(--fehler); background: var(--fehler-grund); }
.upload-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.upload-kopf h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 0 0 0.25rem; }
.marke-pflicht, .marke-frei {
  flex: none; display: inline-block; margin-left: 0.5rem;
  padding: 0.05rem 0.55rem; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 0.1em;
}
.marke-pflicht { background: var(--ink); color: #fff; }
.marke-frei { background: var(--creme-tief); color: var(--ink-muted); }
.upload-liste { list-style: none; margin: 0.35rem 0 0.75rem; padding: 0; border-top: 1px solid var(--linie); }
.upload-liste li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0; border-bottom: 1px solid var(--linie); font-size: 0.9375rem;
}
.datei-typ {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.1rem 0.4rem; border: 1px solid var(--linie-stark); border-radius: 6px; color: var(--ink-muted);
}
.datei-name { overflow-wrap: anywhere; line-height: 1.35; }
.datei-groesse { color: var(--ink-muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.upload-liste .knopf-text { margin: 0; }
.upload-weitere { margin-top: 0.5rem; }
.upload-weitere > summary {
  cursor: pointer; min-height: 48px; display: flex; align-items: center;
  font-weight: 600; color: var(--gold-deep);
}
.upload-weitere[open] > summary { margin-bottom: 0.5rem; }

/* ------------------------------------------------------------------ Prüfen */
.zusammen { margin: 0 0 1rem; border-top: 1px solid var(--linie); }
.zusammen-teil { border-bottom: 1px solid var(--linie); }
.zusammen-teil > summary {
  cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; list-style: none;
}
.zusammen-teil > summary::-webkit-details-marker { display: none; }
.zusammen-teil > summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; color: var(--gold-deep); }
.zusammen-teil[open] > summary::after { content: "\2212"; }
.zusammen-liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 0 0.75rem; font-size: 0.9375rem; }
.zusammen-liste dt { color: var(--ink-muted); font-size: 0.8125rem; margin-top: 0.5rem; }
.zusammen-liste dd { margin: 0; overflow-wrap: anywhere; }
.zusammen-liste dt.zusammen-eintrag { color: var(--ink); font-weight: 600; font-size: 0.9375rem; margin-top: 1rem; }
.zusammen-liste dd.zusammen-eintrag { display: none; }
@media (min-width: 640px) {
  .zusammen-liste { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0.35rem 1.25rem; }
  .zusammen-liste dt { margin-top: 0; font-size: 0.875rem; }
  .zusammen-liste dt.zusammen-eintrag { grid-column: 1 / -1; margin-top: 0.75rem; }
}
.knopf-aendern { display: inline-block; margin: 0 0 1rem; }

.haken-gruppe { display: grid; gap: 0.75rem; margin: 0 0 1rem; }
.haken-zwei { margin-top: 1.5rem; padding: 1rem; border: 1px dashed var(--linie-stark); border-radius: 16px; }
.haken-zwei h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 0; }
.haken label {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem; align-items: start;
  padding: 0.9rem 1rem; border: 1px solid var(--linie); border-radius: 14px; background: #fff; cursor: pointer;
}
.haken label:hover { border-color: var(--linie-stark); }
.haken:has(input:checked) label { border-color: var(--gold); background: #fffdf8; }
.haken.hat-fehler label { border-color: var(--fehler); }
.haken input { width: 22px; height: 22px; margin: 0.15rem 0 0; accent-color: var(--gold-deep); }
.haken-inhalt { display: grid; gap: 0.3rem; }
.haken-titel { font-weight: 600; font-size: 0.9375rem; }
.haken-text { font-size: 0.9375rem; line-height: 1.55; }
.haken .feld-fehler { margin-left: 1rem; }
.kontaktweg { margin-top: 0.5rem; }
.kontaktweg legend span:first-child { font-weight: 400; }

.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.senden-status { margin: 1rem 0 0; }
.senden-status p { margin: 0 0 0.4rem; font-weight: 500; font-size: 0.9375rem; }
.senden-fehler {
  margin: 1rem 0 0; padding: 0.9rem 1rem;
  border: 1px solid #ecc9cb; border-left: 4px solid var(--fehler); border-radius: 12px; background: var(--fehler-grund);
}
.senden-fehler p { margin: 0 0 0.4rem; }
.senden-fehler p:last-child { margin: 0; }

/* ------------------------------------------------------------------ Danke */
.danke-kopf { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--linie); }
.danke-kopf h2 { font-size: clamp(1.7rem, 6vw, 2.3rem); }
.kennung { font-size: 1.125rem; margin: 0 0 0.25rem; }
.kennung strong { font-family: var(--font-display); font-weight: 500; letter-spacing: 0.06em; font-size: 1.5rem; margin-left: 0.25rem; }
.karte > .schritt-inhalt > h3 { font-size: 1.125rem; font-weight: 600; margin-top: 1.5rem; }

/* ------------------------------------------------------------------ Fuß */
.fuss {
  border-top: 1px solid var(--linie);
  background: var(--creme-tief);
  font-size: 0.8125rem; color: var(--ink-muted);
}
.fuss-innen { max-width: 72rem; margin: 0 auto; padding: 1.75rem 1rem 2.25rem; display: grid; gap: 0.75rem; }
.fuss p { margin: 0; }
.fuss-warnung { color: var(--ink); font-weight: 600; font-size: 0.875rem; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.fuss-links a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.todo-offen { background: #fff4d6; outline: 1px dashed #b88a1a; padding: 0 0.2em; }

/* ------------------------------------------------------------------ Rechtstext-Seiten */
.text-seite { max-width: 46rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.text-seite h1 { font-size: clamp(1.9rem, 6.4vw, 2.6rem); }
.text-seite h2 { font-size: 1.3rem; margin-top: 2rem; }
.text-seite h3 { font-size: 1.0625rem; font-weight: 600; margin-top: 1.5rem; }
.text-seite p, .text-seite li { max-width: 42rem; }
.text-seite ul { padding-left: 1.2rem; }
.text-seite li { margin: 0.3rem 0; }
.text-seite table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin: 0.75rem 0 1.25rem; }
.text-seite th, .text-seite td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--linie); }
.text-seite th { font-weight: 600; border-bottom-color: var(--ink); }
.tabelle-rahmen { overflow-x: auto; }
.stand { color: var(--ink-muted); font-size: 0.9375rem; }
.zurueck-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ------------------------------------------------------------------ Breite Bildschirme */
@media (min-width: 720px) {
  .karte { padding: 2rem 2.25rem 2.25rem; }
  .kopf { padding-inline: 1.5rem; }
  .rahmen { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
  .rahmen.mit-leiste { display: grid; grid-template-columns: 15rem minmax(0, 46rem); gap: 2.5rem; justify-content: center; align-items: start; }
  .leiste { position: sticky; top: 1.5rem; }
  .alle-schritte > summary { display: none; }
  .rahmen.mit-leiste .formular { min-width: 0; }
  .start { padding-top: 2.5rem; }
}
@media (max-width: 1023px) {
  .rahmen .formular { max-width: 46rem; margin: 0 auto; }
  .leiste { max-width: 46rem; margin-inline: auto; }
}

@media (max-width: 539px) {
  .demo-band { flex-wrap: nowrap; gap: 0.75rem; padding: 0.4rem 0.75rem; font-size: 0.8125rem; text-align: left; }
  .demo-band button { min-height: 36px; padding: 0.25rem 0.8rem; white-space: nowrap; font-size: 0.8125rem; }
  .upload-liste li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .upload-liste .datei-groesse { grid-column: 2; grid-row: 2; margin-top: -0.35rem; }
  .upload-liste .knopf-text { grid-column: 3; grid-row: 1 / span 2; }
  .fehlerliste, .schritt-kopf, .feld, .liste, .upload, .haken { scroll-margin-top: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .demo-band, .leiste, .nav, .fuss { display: none; }
  body { background: #fff; }
  .karte { box-shadow: none; border: 0; }
}
