/* Bestellformular-2 / Anfrage-2 (ENTWURF 19.11.2026): mehrere Leistungen zu EINEM Objekt.
   Ergänzt bestellformular.css (gleiche Seite, gleiche Variablen) um Schritte, Leistungs-Karten, Gruppen je Leistung und die
   Zusammenfassung (PC rechts mitlaufend, Handy unten fest). Farben nur aus docs/DESIGN.md (Design 34f12b). Mobil zuerst. */
.bf2 { --bf2-porzellan: #EEEBE3; --bf2-feldrand: #D9D2C0; --bf2-knopfrand: #C7BEA4; --bf2-sand: #E0CCA6; --bf2-sand-dunkel: #796B44;
  --bf2-preis: #70623F; --bf2-stahl: #3D6189; --bf2-navy: #05173D; --bf2-navy-dunkel: #102035; --bf2-grau: #56677D; --bf2-linie: #E4EAEE; }
body.bf2-body { margin: 0; background: #fff; }

/* ---------------------------------------------------------------- Raster: Formular links, Übersicht rechts */
.bf2-seite { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bf2 .bv-a-info { position: static; }

/* ---------------------------------------------------------------- Schritte */
.bf2-schritt { margin: 0 0 30px; padding: 0; border: 0; min-width: 0; }
.bf2-schritt + .bf2-schritt { padding-top: 28px; border-top: 1px solid var(--bf2-linie); }
.bf2-schritt legend { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 0; font: 400 26px/1.15 var(--schrift);
  letter-spacing: -.025em; color: var(--bf2-navy); }
.bf2-schritt legend em { font-family: var(--kursiv); font-style: italic; color: var(--bf2-sand-dunkel); }
.bf2-nr { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bf2-navy);
  color: var(--bf2-sand); font: italic 600 21px/1 var(--kursiv); }
.bf2-hinweis { margin: -8px 0 18px; font-size: 14.5px; line-height: 1.55; color: var(--bf2-grau); }
/* Rabatt-Staffel über den Leistungs-Karten: kurz, hell (Porzellan, Sand-Rand links) */
.bf2-staffel { margin: -6px 0 18px; padding: 10px 14px; border: 1px solid var(--bf2-feldrand); border-left: 3px solid var(--bf2-knopfrand);
  border-radius: 10px; background: var(--bf2-porzellan); font-size: 14.5px; line-height: 1.5; color: var(--bf2-navy); }
.bf2-staffel b { font-weight: 600; }
.bf2-staffel em { font-family: var(--kursiv); font-style: italic; font-weight: 600; color: var(--bf2-sand-dunkel); white-space: nowrap; }
.bf2-staffel span { color: var(--bf2-grau); }

/* Schritt 1: Objektangaben ohne Kasten der bedingten Felder (es sind Grundangaben, keine Zusatzfragen) */
.bf2 [data-bf2-schritt="1"] .tnc-field[data-show-field] { padding: 0; background: none; border-radius: 0; }
.bf2 [data-bf2-schritt="1"] .tnc-field[data-show-field]::before { display: none; }
.bf2 [data-bf2-schritt="1"] .tnc-options-h { flex-direction: row; flex-wrap: wrap; }
.bf2 [data-bf2-schritt="1"] .tnc-options-h .tnc-opt { flex: 1 1 180px; }

/* ---------------------------------------------------------------- Leistungs-Karten */
.bf2 .bf2-leistungen { margin-bottom: 0; }
.bf2 .bf2-leistungen > .tnc-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bf2-karten { display: grid; grid-template-columns: 1fr; gap: 12px; }
.bf2-karte { position: relative; min-width: 0; border: 1px solid var(--bf2-feldrand); border-radius: 16px; background: var(--bf2-porzellan);
  transition: border-color .2s, background-color .2s, box-shadow .2s; }
.bf2-karte-kopf { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 6px 14px; padding: 16px 16px 15px;
  cursor: pointer; }
.bf2-check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bf2-haken { width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; border: 1.5px solid var(--bf2-knopfrand); background: #fff;
  display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.bf2-haken::after { content: ""; width: 11px; height: 6px; margin-top: -3px; border: solid transparent; border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg); }
.bf2-karte-text { min-width: 0; }
.bf2-karte-text b { display: block; font: 600 16px/1.35 var(--schrift); color: var(--bf2-navy); }
.bf2-karte-text small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--bf2-grau); }
.bf2-karte-preis { grid-column: 2; white-space: nowrap; color: var(--bf2-preis); font: italic 500 20px/1.2 var(--kursiv); }
.bf2-karte-preis small { font: 400 12px var(--schrift); color: var(--bf2-grau); font-style: normal; }
.bf2-karte-preis .bf2-mwst { margin-left: 4px; }
.bf2-karte:hover { border-color: var(--bf2-knopfrand); background: #F4F2EC; }
.bf2-karte:has(.bf2-check:checked) { border-color: var(--bf2-stahl); background: #fff; box-shadow: 0 0 0 3px rgba(61, 97, 137, .14), 0 18px 34px -26px rgba(5, 23, 61, .45); }
.bf2-karte:has(.bf2-check:checked) .bf2-haken { background: var(--bf2-navy); border-color: var(--bf2-navy); }
.bf2-karte:has(.bf2-check:checked) .bf2-haken::after { border-color: var(--bf2-sand); }
.bf2-karte:has(.bf2-check:focus-visible) { outline: 2px solid var(--bf2-navy); outline-offset: 3px; }
.bf2-badge.tn-foerder-badge { position: static; display: inline-block; margin: -6px 0 12px 56px; }
.bf2-variante { padding: 0 16px 14px 56px; }
.bf2-variante .tnc-field { margin: 0; }
.bf2 .bf2-variante .tnc-field[data-show-field] { padding: 12px 14px 12px 16px; background: var(--bf2-porzellan); }
.bf2-ausfuehrung { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--bf2-linie); }
.bf2-ausfuehrung .tnc-field { margin-bottom: 14px; }
.bf2 .bf2-leistungen.invalid .bf2-karte, .bf2 .bf2-leistungen.o_has_error .bf2-karte { border-color: var(--fehler); }

/* ---------------------------------------------------------------- Schritt 3: gemeinsame Unterlagen + Gruppen je Leistung */
.bf2-gruppe { margin: 0 0 12px; border: 1px solid var(--bf2-linie); border-radius: 16px; background: #fff; }
.bf2-gruppe > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 18px;
  cursor: pointer; list-style: none; font-size: 15.5px; color: var(--bf2-navy); }
.bf2-gruppe > summary::-webkit-details-marker { display: none; }
.bf2-gruppe > summary::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border: solid var(--bf2-navy); border-width: 0 2px 2px 0;
  transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
.bf2-gruppe[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.bf2-gruppe > summary small { margin-left: auto; font-size: 12.5px; color: var(--bf2-sand-dunkel); }
.bf2-gruppe > .tnc-rows { padding: 4px 18px 6px; }
.bf2-gruppe:has(.invalid, .o_has_error) { border-color: var(--fehler); }

/* ---------------------------------------------------------------- Übersicht (hell, je Leistung nur der Festpreis) */
.bf2-summe h2 { margin: 0 0 16px; font-size: 30px; }
.bf2-summe h2 em { color: var(--bf2-sand-dunkel); }
.bf2-pos { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.45; color: var(--bf2-navy); }
.bf2-pos li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bf2-linie); }
.bf2-pos .bf2-betrag { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.bf2-pos .bf2-pos-leer { color: var(--bf2-grau); }
.bf2-abr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin: 14px 0 0; font-size: 14px; line-height: 1.45;
  color: var(--bf2-grau); }
.bf2-abr[hidden] { display: none; }
.bf2-abr dt, .bf2-abr dd { margin: 0; }
.bf2-abr dd { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--bf2-navy); }
.bf2-abr .bf2-minus, .bf2-abr .bf2-plus { color: var(--bf2-navy); font-weight: 600; }
.bf2-abr dd.bf2-minus { color: var(--bf2-stahl); }
.bf2-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 16px 18px 14px;
  border: 1px solid var(--bf2-feldrand); border-radius: 18px; background-color: var(--bf2-porzellan);
  background-image: linear-gradient(rgba(199, 190, 164, .45) 1px, transparent 1px), linear-gradient(90deg, rgba(199, 190, 164, .45) 1px, transparent 1px);
  background-size: 32px 32px; }
.bf2-total-label { font: 600 13px var(--schrift); letter-spacing: .06em; text-transform: uppercase; color: var(--bf2-navy); }
.bf2-total-wert { color: var(--bf2-preis); font: italic 400 40px/1 var(--kursiv); white-space: nowrap; }
.bf2-total-unter { margin: 8px 2px 0; font-size: 13.5px; color: var(--bf2-grau); }
.bf2-total-note { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--bf2-grau); }

/* ---------------------------------------------------------------- Handy-Leiste (unten fest, hell) */
.bf2-leiste { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff; color: var(--bf2-navy); border-top: 1px solid var(--bf2-feldrand); border-radius: 18px 18px 0 0;
  box-shadow: 0 -18px 36px -24px rgba(5, 23, 61, .45); }
.bf2-leiste-knopf { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 4px; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bf2-leiste-links { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.bf2-leiste-links small { font-size: 13px; color: var(--bf2-grau); }
.bf2-leiste-rabatt { color: var(--bf2-sand-dunkel) !important; font-weight: 600; }
.bf2-leiste-wert { font: italic 500 26px/1 var(--kursiv); color: var(--bf2-preis); white-space: nowrap; }
.bf2-leiste-wert small { margin-left: 4px; font: 400 12px var(--schrift); color: var(--bf2-grau); }
.bf2-leiste-pfeil { font-size: 14px; color: var(--bf2-navy); transition: transform .2s; }
.bf2-leiste-knopf[aria-expanded="true"] .bf2-leiste-pfeil { transform: rotate(180deg); }
.bf2-leiste-pos { max-height: 46vh; overflow: auto; margin: 4px 4px 4px; overscroll-behavior: contain; }
.bf2-leiste-pos[hidden] { display: none; }
.bf2-leiste-pos .bf2-abr { margin-bottom: 4px; }

/* ---------------------------------------------------------------- Erfolg + Zahlung */
.bf2-fertig h2 { font-size: 30px; margin-bottom: 12px; }
.bf2-fertig h2 em { color: var(--bf2-sand-dunkel); }
.bf2-zahlung { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--bf2-feldrand); border-radius: 18px; background: var(--bf2-porzellan); }
.bf2-pille { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 7px 7px 7px 26px;
  border: 1px solid var(--bf2-knopfrand); border-radius: 999px; background: var(--bf2-porzellan); color: var(--bf2-navy); text-decoration: none;
  font: 700 14px var(--schrift); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 10px 22px -12px rgba(16, 32, 53, .45); cursor: pointer; }
.bf2-pille i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bf2-navy); color: var(--bf2-porzellan); font-style: normal; }
.bf2-pille:hover { border-color: var(--bf2-stahl); }
.bf2-rechnung { font-weight: 600; color: var(--bf2-navy); }
.bf2-held-klein { min-height: 0 !important; padding-bottom: 150px !important; }
.bf2-zahl-raster { position: relative; z-index: 4; max-width: 640px; margin-top: -110px; }
.bf2-test-band { margin: 0 0 16px; padding: 8px 12px; border-radius: 10px; background: #FFF4E5; color: #7A4A00; font-size: 13px; font-weight: 600; }
.bf2-kasse { text-align: center; }
.bf2-kasse-betrag { margin: 6px 0 0; font: italic 400 48px/1 var(--kursiv); color: var(--bf2-preis); }
.bf2-kasse-text { margin: 6px 0 16px; color: var(--bf2-grau); font-size: 14px; }
.bf2-kasse-karte { display: flex; flex-direction: column; gap: 4px; max-width: 320px; margin: 0 auto 18px; padding: 14px 16px; border: 1px solid var(--bf2-feldrand);
  border-radius: 12px; background: var(--bf2-porzellan); text-align: left; font-size: 14px; color: var(--bf2-navy); }

/* ---------------------------------------------------------------- ab Tablet */
@media (min-width: 640px) {
  .bf2-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf2-karte:has(.bf2-variante [data-key]:not([hidden])) { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .bf2-seite { order: 2; }
  .bf2-summe { display: none; }                 /* unter 1080 px übernimmt die feste Leiste unten */
  body.bf2-body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1081px) {
  .bf2-leiste { display: none !important; }
  .bf2-seite { align-self: stretch; }             /* Spalte so hoch wie das Formular – darin läuft die Übersicht mit */
  .bf2-summe { position: sticky; top: 24px; z-index: 2; }
  .bf2-info { position: relative; z-index: 1; }
}
@media (max-width: 720px) {
  .bf2-schritt legend { font-size: 22px; gap: 12px; }
  .bf2-nr { width: 36px; height: 36px; font-size: 18px; }
  .bf2-karte-kopf { grid-template-columns: 24px minmax(0, 1fr); padding: 14px 14px 13px; gap: 4px 12px; }
  .bf2-haken { width: 24px; height: 24px; }
  .bf2-karte-preis { font-size: 18px; }
  .bf2-badge.tn-foerder-badge { margin-left: 50px; }
  .bf2-variante { padding: 0 12px 12px 12px; }
  .bf2-gruppe > summary { padding: 12px 14px; }
  .bf2-gruppe > .tnc-rows { padding: 4px 12px 6px; }
  .bf2-zahl-raster { margin-top: -80px; }
}
@media (prefers-reduced-motion: reduce) { .bf2-karte, .bf2-haken, .bf2-gruppe > summary::after, .bf2-leiste-pfeil { transition: none; } }

/* ---------------------------------------------------------------- 20.11.2026 (Jeremias): größere Felder, gut auf dem Tablet
   Eingabe- und vor allem Auswahlfelder (Dropdowns, z. B. U-Werte) ≥ 48 px hoch und ≥ 17 px Schrift – nur Werte der Seite, keine
   neuen Farben. Gilt für /bestellformular-2 und /anfrage-2. */
.bf2 .tnc-input { min-height: 52px; font-size: 17px; line-height: 1.4; }
.bf2 .tnc-select { min-height: 56px; font-size: 17px; padding-top: 14px; padding-bottom: 14px; background-size: 18px; }
.bf2 .tnc-textarea { min-height: 104px; }
.bf2 .tnc-opt { min-height: 48px; align-items: center; font-size: 17px; }
.bf2 .tnc-opt input[type="checkbox"], .bf2 .tnc-opt input[type="radio"], .bf2 .tnc-consent input[type="checkbox"] { width: 22px; height: 22px; flex: none; }
.bf2 .tnc-label { font-size: 16px; }
.bf2 .tnc-file { min-height: 64px; }
.bf2 .bf2-variante .tnc-opt-single { font-weight: 600; }
/* Erfolgsseite des neuen Bestellablaufs: drei nächste Schritte */
.bf2-weiter { margin: 14px 0; padding-left: 22px; display: grid; gap: 10px; font-size: 16px; line-height: 1.5; }
.bf2-hinweis-ablauf2 { padding: 14px 16px; border-radius: 14px; background: var(--porzellan, #EEEBE3); color: var(--navy, #05173D); }

/* ---------------------------------------------------------------- NEU-19.72 /anfrage-2 (nur Endkunden, Jeremias 20.11.2026)
   Preise netto: auf den Karten fett, größer, Stahlblau; Preisleiste „Gesamt netto – nur … €“ (unterstrichen) und darunter gleich
   groß „Gesamtpreis inkl. MwSt.“ (PAngV). Wohneinheiten mit Schieberegler + Zahlenfeld. */
.bf2[data-bf2-modus="endkunde"] .bf2-karte-preis { color: var(--bf2-stahl); font: 700 22px/1.2 var(--schrift); font-style: normal; }
.bf2[data-bf2-modus="endkunde"] .bf2-karte-preis small { font-weight: 500; }
.bf2-total-a2 { flex-wrap: wrap; row-gap: 4px; }
.bf2-total-a2 .bf2-total-wert { color: var(--bf2-navy); font: 700 32px/1.1 var(--schrift); font-style: normal; }
.bf2-total-a2 .bf2-total-zusatz { flex-basis: 100%; text-align: right; font-size: 14px; font-weight: 600; color: var(--bf2-navy); }
.bf2-total-brutto { margin-top: 10px; background-image: none; background-color: #fff; }
.bf2-nur { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.bf2-leiste-brutto { display: block; font-size: 12.5px; font-weight: 600; }
.bf2-regler-huelle { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.bf2-regler-huelle input[type=number] { width: 100%; max-width: 220px; }
.bf2-regler { width: 100%; max-width: 100%; height: 36px; margin: 0; accent-color: var(--bf2-stahl, #3D6189); cursor: pointer; }
.bf2-regler-leer { opacity: .55; }
@media (max-width: 480px) { .bf2-total-a2 .bf2-total-wert { font-size: 27px; } }

/* NEU-19.72 /bestellformular-2: Zusatzleistungen −20 % */
.bf2-zusatz { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--bf2-feldrand); }
.bf2-zusatz-titel { margin: 0 0 4px; font: 600 19px/1.3 var(--schrift); color: var(--bf2-navy); }
.bf2-zusatz-titel em { font-family: var(--kursiv); font-weight: 500; color: var(--bf2-stahl); }
.bf2-zusatz-text { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--bf2-grau); }
.bf2-karte-preis .bf2-alt { display: inline-block; margin-right: 8px; font: 400 15px/1.2 var(--schrift); color: var(--bf2-grau); text-decoration: line-through; }
.bf2-karte-preis .bf2-zusatz-hinweis { display: block; margin-top: 2px; font: 600 12.5px/1.3 var(--schrift); color: #2E7D4F; white-space: normal; }
.bf2-ist-haupt { border-color: var(--bf2-stahl); }
.bf2-ist-haupt .bf2-zusatz-hinweis { color: var(--bf2-stahl); }
.bf2-karte-preis .bf2-zusatz-hinweis.bf2-kurz { display: inline-block; margin: 0 0 0 8px; padding: 2px 8px; border-radius: 999px;
  background: #E5F2EA; font-size: 13px; vertical-align: middle; }
.bf2-karte.bf2-ausgeschlossen { display: none; }
