/* Mitgliedschaftsformular, einfache Fassung: Stile aus doku/entwuerfe/formular-einfacher/entwurf.css; ab jetzt wird diese Datei gepflegt. */
/* Entwurf «Formular einfacher»: nur was das heutige Formular (css/mitglied-werden.css) nicht schon hat.
   Felder, Auswahlkacheln, Häkchen, Hinweise, Fehlerübersicht und Paketkarten kommen von dort (#app …). */

/* ---------- Rahmen und Schritte ---------- */
#app .nf .wrap { max-width: 760px; }
#app .nf { padding-bottom: calc(var(--nf-kosten-h, 64px) + 48px); }
#app .nf .nf-seite[data-schritt="1"] { }
#app .nf-kopf { display: grid; justify-items: center; gap: 12px; margin: 0 0 28px; scroll-margin-top: 16px; }
#app .nf-kopf .v9-fortschritt__text { margin: 0; color: var(--text); font-size: 15px; }
#app .nf-kopf .v9-fortschritt__text strong { color: var(--titel); }
#app .nf-reiter ol { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
#app .nf-reiter li { position: relative; display: flex; }
#app .nf-reiter li + li::before { content: ''; position: absolute; top: 15px; right: calc(50% + 17px); width: calc(100% - 34px); height: 2px; background: var(--linie); }
#app .nf-reiter__knopf { display: grid; justify-items: center; gap: 6px; min-width: 104px; padding: 0 4px; border: 0; background: none; cursor: pointer; color: var(--text-dunkel); font-size: 13.5px; font-weight: 600; }
#app .nf-reiter__nr { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--rand); background: #fff; color: var(--text-dunkel); font-size: 13px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
#app .nf-reiter__knopf.ist-fertig .nf-reiter__nr { border-color: var(--petrol); color: var(--petrol); }
#app .nf-reiter__knopf[aria-current] .nf-reiter__nr { border-color: var(--petrol); background: var(--petrol); color: #fff; }
#app .nf-reiter__knopf[aria-current] .nf-reiter__name { color: var(--titel); }
#app .nf .seite__kopf { text-align: center; margin-bottom: 24px; }
#app .nf .seite__titel { font-family: Montserrat, var(--schrift); font-weight: 700; font-size: clamp(26px, 3.4vw, 36px); }
#app .nf .seite__text { margin: 0 auto; max-width: 56ch; }
#app .nf-gruppe { display: grid; gap: 22px; margin: 0 0 26px; }
#app .nf-gruppe--familie { padding: 20px; border: 1px solid var(--linie); border-radius: var(--r-gross); background: #fff; }
#app .nf-zwischentitel { margin: 0; font-size: 18px; }
#app .nf-klein { color: var(--text); font-weight: 400; font-size: 14px; }
#app .nf-schmal { max-width: 560px; margin-inline: auto; }
#app .nf-aktionen { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
#app .nf-aktionen [data-weiter], #app .nf-aktionen [data-senden] { margin-left: auto; }
#app .nf-kontakt { margin: 18px 0 0; font-size: 14.5px; color: var(--text); }
#app .nf-einleitung { margin: 0 0 18px; color: var(--text-dunkel); }
#app .nf-notiz { margin: 14px 0 0; padding: 10px 14px; border: 2px dashed #c9a400; border-radius: var(--r); background: #fffdf0; color: #3d3500; font-size: 14px; line-height: 1.45; }
#app .nf-feld { min-width: 0; }

/* ---------- Haushalt ---------- */
#app .nf-kinderwahl { display: grid; gap: 0; }
#app .nf-kinderwahl .feld__label { margin: 0 0 6px; }
#app .nf-kinderwahl__zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
#app .nf-zaehler { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--rand); border-radius: var(--r); background: #fff; }
#app .nf-zaehler .feld__label { margin: 0; }
#app .nf-zaehler__regler { display: flex; align-items: center; gap: 4px; }
#app .nf-zaehler__knopf { width: 40px; height: 40px; border: 1.5px solid var(--rand); border-radius: 50%; background: #fff; color: var(--petrol); font-size: 22px; line-height: 1; cursor: pointer; }
#app .nf-zaehler__knopf:hover:not(:disabled) { border-color: var(--petrol); background: var(--petrol-hell); }
#app .nf-zaehler__knopf:disabled { opacity: .35; cursor: default; }
#app .nf-zaehler__wert { min-width: 30px; text-align: center; color: var(--titel); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
#app .nf-kinderwahl.hat-fehler { position: relative; }
#app .nf-kinderwahl.hat-fehler::before { content: ''; position: absolute; left: -14px; top: 2px; bottom: 2px; width: 4px; border-radius: 2px; background: var(--fehler); }

/* ---------- Paket ---------- */
#app .nf-pakete .v9-pakete { margin-bottom: 18px; }
@media (min-width: 1000px) { #app .nf:has(.nf-seite[data-schritt="1"]) .wrap { max-width: 1200px; } #app .nf:has(.nf-seite[data-schritt="1"]) .nf-schmal, #app .nf:has(.nf-seite[data-schritt="1"]) .nf-aktionen, #app .nf:has(.nf-seite[data-schritt="1"]) .fehlerbox, #app .nf:has(.nf-seite[data-schritt="1"]) .nf-kontakt { max-width: 760px; margin-inline: auto; } #app .nf:has(.nf-seite[data-schritt="1"]) .nf-aktionen { display: flex; } }
#app .nf-vergleich { display: flex; justify-content: center; margin: 0 0 26px; }
#app .nf-seite[data-schritt="1"] > .fehler-text { justify-content: center; }

/* ---------- Bestattungsfond ---------- */
#app .nf-wichtig { margin: 0 0 26px; padding: 20px 22px; border-radius: var(--r-gross); background: var(--petrol-dunkel, #183442); color: #fff; }
#app .nf-wichtig__titel { margin: 0 0 12px; color: #fff; font-size: 19px; }
#app .nf-wichtig__liste { margin: 0; display: grid; }
#app .nf-wichtig__liste > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
#app .nf-wichtig__liste dt { color: var(--gelb); font-weight: 650; }
#app .nf-wichtig__liste dd { margin: 0; color: #e4eef1; line-height: 1.5; }
#app .nf-wichtig__liste strong { color: #fff; }
#app .nf-wichtig a { color: #fff; text-decoration-color: var(--gelb); }
#app .nf-wichtig__link { margin: 12px 0 0; font-weight: 650; }
#app .nf-eltern { display: grid; gap: 8px; }
#app .nf-eltern .haken { padding: 12px 14px; border: 1.5px solid var(--rand); border-radius: var(--r); background: #fff; }
#app .nf-eltern .haken:has(:checked) { border-color: var(--petrol); background: var(--petrol-zart); }
#app .nf-eltern .haken__text { color: var(--titel); font-weight: 500; }
#app .nf-eltern .wahl__preis { display: block; margin-top: 2px; }
#app .nf-haken.hat-fehler { position: relative; }
#app .nf-haken.hat-fehler::before { content: ''; position: absolute; left: -14px; top: 2px; bottom: 2px; width: 4px; border-radius: 2px; background: var(--fehler); }

/* ---------- Personen ---------- */
#app .nf-personen { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
#app .nf-person { border: 1.5px solid var(--rand); border-radius: var(--r-gross); background: #fff; scroll-margin-top: 16px; }
#app .nf-person.ist-offen { border-color: var(--petrol); box-shadow: var(--schatten-1); }
#app .nf-person.hat-fehler:not(.ist-offen) { border-color: var(--fehler); }
#app .nf-person__kopf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto 18px; align-items: center; gap: 4px 12px; width: 100%; padding: 14px 18px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: var(--r-gross); }
#app .nf-person__rolle { padding: 3px 10px; border-radius: 999px; background: var(--petrol); color: #fff; font-size: 13px; font-weight: 650; }
#app .nf-person__name { color: var(--titel); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#app .nf-person__alter { color: var(--text); font-weight: 500; }
#app .nf-person__zustand { color: var(--text); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
#app .nf-person__zustand--ok { color: var(--petrol); }
#app .nf-person__zustand--ok::before { content: '✓ '; }
#app .nf-person__pfeil { width: 10px; height: 10px; border: solid var(--petrol); border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -4px; justify-self: end; transition: transform var(--kurz) ease; }
#app .nf-person.ist-offen .nf-person__pfeil { transform: rotate(-135deg); margin-top: 4px; }
#app .nf-person__kopf .marke { white-space: nowrap; }
#app .nf-person__kopf > .marke:empty { display: none; }
#app .nf-person__inhalt { padding: 4px 18px 18px; border-top: 1px solid var(--linie); }
#app .nf-raster { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 16px; padding-top: 16px; }
#app .nf-raster > * { grid-column: 1 / -1; }
#app .nf-raster > .nf-feld--halb { grid-column: span 3; }
#app .nf-raster > .nf-feld--drittel { grid-column: span 2; }
#app .nf-raster > .nf-feld--zweidrittel { grid-column: span 4; }
#app .nf-raster > .hinweis { margin: 0; }
#app .nf-teilgruppe + .nf-teilgruppe { margin-top: 10px; padding-top: 6px; border-top: 1px dashed var(--linie); }
#app .nf-teilgruppe__titel { margin: 14px 0 -4px; color: var(--petrol); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
#app .nf-teil { margin: 14px 0 0; color: var(--text); font-size: 14px; }
#app .nf-teil strong { color: var(--titel); }
#app .nf-teil__knoepfe { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
#app .nf-person__fertig { display: flex; justify-content: flex-end; margin-top: 20px; }
#app .nf-person__weg { margin: 14px 0 0; text-align: right; }
#app .nf-rot { border-left-color: var(--fehler); background: var(--fehler-hell); color: #5c1610; }
#app .nf-rot .linkknopf { display: inline; margin-left: 4px; color: var(--fehler); font-weight: 650; }
#app .nf-hinzu { display: flex; gap: 10px; margin-top: 14px; }
#app .nf-tel { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px; }

/* ---------- Abschluss ---------- */
#app .nf-vertrag { margin: 0 0 20px; padding: 20px 22px; border: 1.5px solid var(--rand); border-radius: var(--r-gross); background: #fff; }
#app .nf-vertrag--fond { border-color: #c9a400; }
#app .nf-vertrag--leise { border-style: dashed; background: transparent; }
#app .nf-vertrag__kopf { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 12px; }
#app .nf-vertrag__kopf h3 { margin: 0; font-size: 19px; }
#app .nf-vertrag__kopf p { margin: 2px 0 0; color: var(--text); font-size: 14.5px; }
#app .nf-vertrag__nr { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--petrol); color: #fff; font-weight: 700; }
#app .nf-vertrag--fond .nf-vertrag__nr { background: var(--gelb); color: var(--auf-gelb); }
#app .nf-zeilen { margin: 0 0 14px; }
#app .nf-zeile { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 4px 14px; padding: 9px 0; border-top: 1px solid var(--linie); }
#app .nf-zeile dt { color: var(--text); font-size: 14.5px; }
#app .nf-zeile dd { margin: 0; color: var(--titel); overflow-wrap: anywhere; }
#app .nf-zeile__aendern { font-size: 14px; align-self: start; }
#app .nf-bestimmungen { display: grid; gap: 2px; margin: 4px 0 14px; padding: 10px 14px; border-radius: var(--r); background: var(--petrol-zart); }
#app .nf-pad { display: grid; place-items: center; width: 100%; height: 130px; border: 2px dashed var(--rand); border-radius: var(--r); background: #fff; cursor: crosshair; color: var(--text); font-size: 14.5px; }
#app .nf-pad.ist-unterschrieben { border-style: solid; border-color: var(--petrol); }
#app .nf-pad__strich { font: italic 400 34px/1 'Brush Script MT', 'Segoe Script', cursive; color: #10224a; transform: rotate(-4deg); }
#app .hat-fehler .nf-pad { border-color: var(--fehler); }
#app .nf-pad__loeschen { margin-top: 6px; font-size: 14px; }
#app .nf-danach { display: grid; gap: 12px; margin: 0 0 20px; padding-left: 22px; }
#app .nf-ende .seite__kopf { text-align: left; }

/* ---------- Kostenleiste ---------- */
#app .nf-kosten { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: var(--petrol-dunkel, #183442); color: #fff; box-shadow: 0 -6px 20px rgba(0, 0, 0, .14); }
#app .nf-kosten__innen { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto; padding: 8px 20px max(8px, env(safe-area-inset-bottom)); }
#app .nf-kosten__muenze { flex: none; width: 40px; height: 40px; }
#app .nf-kosten__zeilen { flex: 1; margin: 0; display: grid; }
#app .nf-kosten__zeile { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; line-height: 1.5; }
#app .nf-kosten__zeile dt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#app .nf-kosten__zeile dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
#app .nf-kosten__zeile.ist-gelb dd { color: var(--gelb); }
#app .nf-kosten__zeile.ist-total { margin-top: 2px; padding-top: 2px; border-top: 1px solid rgba(255, 255, 255, .25); }
#app .nf-kosten__dünn { font-weight: 400; color: #c9dde2; }

/* ---------- Entwurfsleiste (nur Entwurf) ---------- */
.nf-ew { position: fixed; z-index: 99; right: 12px; bottom: calc(var(--nf-kosten-h, 60px) + 12px); display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #fedc00; color: #183442; box-shadow: 0 8px 28px rgba(0, 0, 0, .3); font: 600 13px/1.3 Montserrat, Helvetica, Arial, sans-serif; }
.nf-ew__zu { border: 0; background: #183442; color: #fedc00; border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }
.nf-ew.ist-zu .nf-ew__inhalt { display: none; }
.nf-ew__inhalt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nf-ew__titel { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.nf-ew__wahl { display: flex; gap: 4px; }
.nf-ew__wahl button { border: 1.5px solid #183442; background: #fff; color: #183442; border-radius: 999px; padding: 4px 10px; font: inherit; cursor: pointer; }
.nf-ew__wahl button:hover { background: #183442; color: #fff; }
.nf-ew__link { color: #183442; }

/* ---------- Handy ---------- */
@media (max-width: 719px) {
  #app .nf-kopf { position: sticky; top: 0; z-index: 30; margin: 0 -20px 20px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--linie); }
  #app .nf-reiter__knopf { min-width: 0; padding: 0 6px; }
  #app .nf-reiter__name { display: none; }
  #app .nf-reiter__knopf[aria-current] .nf-reiter__name { display: none; }
  #app .nf-reiter li + li::before { right: calc(50% + 15px); width: calc(100% - 30px); }
  #app .nf-reiter li { flex: 1; justify-content: center; }
  #app .nf-reiter ol { width: 100%; }
  #app .nf-reiter__nr { width: 28px; height: 28px; }
  #app .nf .seite__kopf { text-align: left; }
  #app .nf-gruppe--familie { padding: 14px; }
  #app .nf-kinderwahl__zwei { grid-template-columns: minmax(0, 1fr); }
  #app .nf-wichtig { padding: 16px; }
  #app .nf-wichtig__liste > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  #app .nf-person__kopf { grid-template-columns: auto minmax(0, 1fr) 18px; padding: 12px 14px; }
  #app .nf-person__kopf .marke, #app .nf-person__kopf .nf-person__zustand { grid-column: 2 / 3; justify-self: start; }
  #app .nf-person__pfeil { grid-row: 1; grid-column: 3; }
  #app .nf-person__inhalt { padding: 2px 14px 16px; }
  #app .nf-raster > .nf-feld--halb, #app .nf-raster > .nf-feld--drittel, #app .nf-raster > .nf-feld--zweidrittel { grid-column: 1 / -1; }
  #app .nf-raster > .nf-feld--drittel { grid-column: span 2; } #app .nf-raster > .nf-feld--zweidrittel { grid-column: span 4; }
  #app .nf-vertrag { padding: 16px; }
  #app .nf-zeile { grid-template-columns: minmax(0, 1fr) auto; }
  #app .nf-zeile dt { grid-column: 1; } #app .nf-zeile dd { grid-column: 1 / -1; grid-row: 2; } #app .nf-zeile__aendern { grid-column: 2; grid-row: 1; }
  #app .nf-aktionen .knopf { flex: 1; }
  #app .nf-kosten__innen { padding-inline: 14px; }
  .nf-ew { left: 8px; right: 8px; bottom: calc(var(--nf-kosten-h, 52px) + 8px); justify-content: space-between; }
  .nf-ew.ist-zu { left: auto; }
  .nf-ew__titel, .nf-ew__link { display: none; }
}
