/* Formulare und Bestätigungen der öffentlichen Seiten im Stil der Verkaufsseiten, 9-10 (Design 01.11.2026):
   Gutschein ohne Konto (G1–G4) und Widerruf ohne Anmeldung (W1–W3). Ergänzt oeffentlich.css, ohne Skript.
   Regel aus oeffentlich_verkauf_entwurf.md: dieselbe Kopf- und Fußzeile, eine Spalte mit höchstens 40rem, ein großer
   Titel mit Vorspann; Bestätigungen als ruhige Karte mit Symbol und dem nächsten Schritt. */
:root {
  --fehler: #B42318;           /* 6.3:1 auf Weiß */
  --fehler-hell: #FDEDEC;
  --rahmen: #CBD3E3;           /* wie der Rand von .knopf.zweit */
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* ------------------------------------------------------------------ Seite */
.formular-seite { background: var(--grund); padding: 1.75rem 0 3rem; overflow-wrap: anywhere; }
.formular-seite .huelle { max-width: calc(var(--text-breite) + 2 * var(--rand)); }
.formular-seite .kopfzeile { margin-bottom: 1.5rem; }
.formular-seite h1 { font-size: 2rem; }
.formular-seite + .fuss { margin-top: 0; }
/* „Vertrag widerrufen“ auf den Seiten W1–W3 */
.kopf .knopf[aria-current], .widerruf-zeile .knopf[aria-current] { background: var(--grund); border-color: var(--tinte); }

/* ------------------------------------------------------------------ Blatt (weiße Karte) */
.blatt { background: #fff; border-radius: var(--radius); box-shadow: var(--schatten); padding: 1.5rem 1.25rem;
  display: grid; gap: 1.25rem; }
.blatt + .blatt, .meldung + .blatt { margin-top: 1rem; }
.blatt h2 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; display: flex; align-items: center; gap: .75rem; }
.blatt h2 .symbol, .abruf .symbol { width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--praxis-hell);
  color: var(--tinte); display: grid; place-items: center; flex: none; }
.blatt h2 .symbol .i, .abruf .symbol .i { width: 1.125rem; height: 1.125rem; }
.blatt p { margin: 0; }
.blatt .leise, .hinweis { color: var(--grau); font-size: .9375rem; }
/* Betrag auf G3 (<p class="betrag"><strong>) */
.blatt .betrag { color: var(--tinte); font-size: 1.375rem; }
.blatt .betrag strong { font-weight: 700; }

/* ------------------------------------------------------------------ Felder */
.feld { display: grid; gap: .375rem; }
.feld label, .feld .bez { font-weight: 600; color: var(--tinte); font-size: .9375rem; }
.feld input, .feld select { font: inherit; color: var(--text); background: #fff; width: 100%; min-height: 3rem;
  padding: .625rem .875rem; border: 1.5px solid var(--rahmen); border-radius: 12px; }
.feld input:focus-visible, .feld select:focus-visible { outline: 3px solid var(--tinte); outline-offset: 1px;
  border-color: var(--tinte); border-radius: 12px; }
.hinweis { margin: 0; }
/* Codefeld (A28): Großbuchstaben, gesperrt, nicht breiter als nötig */
.feld.code input { font-family: var(--mono); font-size: 1.125rem; letter-spacing: .14em; text-transform: uppercase;
  max-width: 13rem; }
.feld.fehlerhaft input { border-color: var(--fehler); background: var(--fehler-hell); }
.fehlertext { margin: 0; color: var(--fehler); font-size: .9375rem; font-weight: 600; display: flex; align-items: center;
  gap: .375rem; }
.fehlertext .i { width: 1rem; height: 1rem; }
.felder { display: grid; gap: 1.25rem; }
.felder.plz-ort { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; }

/* Auswahl als Karten (Radio), Ankreuzfeld */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: .875rem; font-weight: 600; color: var(--tinte); font-size: 1.125rem; }
.wahl { display: grid; gap: .75rem; }
.wahl .zwischentitel { margin: .5rem 0 0; font-size: .8125rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--taube); }
.wahlkarte { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; gap: .875rem; align-items: center;
  min-height: 3.75rem; padding: .875rem 1.125rem; border: 1.5px solid var(--rahmen); border-radius: 14px; cursor: pointer;
  background: #fff; }
.wahlkarte:hover { border-color: var(--tinte); }
.wahlkarte:has(input:checked) { border-color: var(--tinte); background: var(--praxis-hell);
  box-shadow: inset 0 0 0 1px var(--tinte); }
.wahlkarte input, .haken input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--tinte); }
.wahlkarte strong { display: block; color: var(--tinte); font-weight: 600; }
.wahlkarte .leise { display: block; line-height: 1.4; }
.wahlkarte .preis { font-weight: 700; color: var(--tinte); font-size: 1.125rem; white-space: nowrap; }
.haken { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .75rem; align-items: start; cursor: pointer;
  font-weight: 500; color: var(--tinte); }
.haken input { margin-top: .2rem; }
.unterfelder { display: grid; gap: 1rem; padding-left: 1rem; border-left: 3px solid var(--linie); }

/* ------------------------------------------------------------------ Bestellseite */
.rechtstext { max-height: 11rem; overflow: auto; padding: 1rem 1.125rem; border-radius: 12px; background: var(--grund);
  font-size: .9375rem; }
.rechtstext h3 { font-size: 1rem; }
.rechtstext p { margin: .5rem 0 0; color: var(--text); }
.rechtstext .fassung { color: var(--grau); font-size: .8125rem; margin: .125rem 0 0; }
.zusammenfassung { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .625rem 0; margin: 0; }
.zusammenfassung dt { color: var(--grau); padding-right: 1rem; font-size: .9375rem; line-height: 1.7; }
.zusammenfassung dd { margin: 0; font-weight: 500; color: var(--tinte); overflow-wrap: anywhere; }
.zusammenfassung .summe { padding-top: .875rem; margin-top: .25rem; border-top: 1px solid var(--linie); }
.zusammenfassung dd.summe { font-size: 1.375rem; font-weight: 700; }
.zusammenfassung dt.summe { color: var(--tinte); font-weight: 600; display: flex; align-items: center; }

/* ------------------------------------------------------------------ Meldungen über dem Formular */
.meldung { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .875rem; align-items: start;
  padding: 1rem 1.125rem; border-radius: 14px; background: var(--blau-blass); color: var(--tinte); margin-bottom: 1rem; }
.meldung .symbol { width: 2.25rem; height: 2.25rem; border-radius: 10px; background: #fff; display: grid;
  place-items: center; }
.meldung .symbol .i { width: 1.125rem; height: 1.125rem; }
.meldung p { margin: 0; }
.meldung strong { display: block; }
.meldung.fehler { background: var(--fehler-hell); color: #7A1A12; }
.meldung.fehler .symbol { color: var(--fehler); }

/* ------------------------------------------------------------------ Knöpfe unter dem Formular */
.aktionen { display: flex; flex-direction: column-reverse; gap: .5rem; margin-top: 1.5rem; }
.aktionen .knopf.haupt { width: 100%; }
.aktionen .weiterlink { justify-content: center; }

/* ------------------------------------------------------------------ Bestätigung (G4, W3) */
.bestaetigung { text-align: center; justify-items: center; padding: 2rem 1.25rem; }
.bestaetigung .gross-symbol { width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--praxis); color: var(--auf-praxis); }
.bestaetigung .gross-symbol .i { width: 1.875rem; height: 1.875rem; stroke-width: 2.25; }
.bestaetigung.warten .gross-symbol { background: var(--blau-blass); color: var(--tinte); }
.bestaetigung.nicht .gross-symbol { background: var(--rose); color: var(--tinte); }
.bestaetigung h2 { font-size: 1.5rem; display: block; }
.bestaetigung p { max-width: 30rem; }
.bestaetigung .knopf { margin-top: .25rem; }
/* 9-17: Ein langer Name des Angebots darf den Knopf umbrechen, sonst rollt die Seite bei 320 px */
.blatt .knopf { white-space: normal; text-align: center; }
.kennung { display: inline-block; font-family: var(--mono); font-size: 1.25rem; font-weight: 700; letter-spacing: .14em;
  color: var(--tinte); background: var(--grund); border-radius: 10px; padding: .375rem .875rem; }
/* Abrufe auf G4: PDF (Hauptknopf) und Beleg */
.abrufe { display: grid; gap: .75rem; width: 100%; margin: 0; padding: 0; list-style: none; text-align: left; }
.abruf { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .5rem .875rem; align-items: center;
  padding: 1rem 1.125rem; border: 1px solid var(--linie); border-radius: 14px; }
.abruf strong { color: var(--tinte); display: block; }
.abruf form { grid-column: 1 / -1; margin: 0; }
.abruf .knopf { width: 100%; }
.angaben { display: grid; gap: .25rem; justify-items: center; }
.angaben .leise { font-size: .875rem; }

/* ------------------------------------------------------------------ 9-19 Selbsteinschreibung (Design 04.11.2026) */
/* S1 Angebote und S3 Termine als Kartenzeilen (.abruf); der Preis in einer eigenen Zeile */
.abruf .preis { display: block; margin-top: .25rem; font-weight: 700; color: var(--tinte); }
/* S1: „Ansehen“ ist ein Link (G4 hat ein Formular); er nimmt am Handy die ganze Zeile wie dort */
.abruf > a.knopf { grid-column: 1 / -1; }
/* S3: Tagesleiste wie N2, je Tag mit freiem Termin ein Link; der gewählte Tag mit aria-current="date" */
.tage { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tage a { display: grid; justify-items: center; min-width: 3.25rem; min-height: 3.5rem; padding: .375rem .625rem;
  border: 1.5px solid var(--rahmen); border-radius: 12px; background: #fff; color: var(--grau); text-decoration: none;
  font-size: .8125rem; line-height: 1.3; }
.tage a strong { color: var(--tinte); font-size: 1.125rem; }
.tage a:hover { border-color: var(--tinte); }
.tage a[aria-current] { background: var(--praxis-hell); border-color: var(--tinte); box-shadow: inset 0 0 0 1px var(--tinte); }
/* S1: Link „Gutschein kaufen“ unter der Liste */
.gutschein-zeile { margin: 1rem 0 0; }

/* ------------------------------------------------------------------ ab 52rem */
@media (min-width: 52rem) {
  .formular-seite { padding: 3rem 0 4.5rem; }
  .formular-seite h1 { font-size: 2.5rem; }
  .blatt { padding: 2rem; }
  .felder.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aktionen { flex-direction: row; justify-content: space-between; align-items: center; }
  .aktionen .knopf.haupt { width: auto; }
  .bestaetigung { padding: 2.75rem 2.5rem; }
  .abruf { grid-template-columns: 2.25rem minmax(0, 1fr) auto; }
  .abruf form, .abruf > a.knopf { grid-column: auto; }
  .abruf .knopf { width: auto; }
}
