/* 29.11.2026 (Jeremias): TGA-Fachplanung, KfW-Neubau und Testprodukte auf /anfrage, Backoffice-Formular, /bestellformular und im
   Kundenportal. Nur Werte aus Design 34f12b (docs/DESIGN.md): Navy #05173D, Stahlblau #3D6189, Porzellan #EEEBE3, Sand dunkel #796B44,
   Linien #E6E1D6/#D9D2C0, Text grau #56677D. Mobil zuerst.
   1. Zwischenüberschrift „Weitere Leistungen“ im Bereich
   2. „Mehr erfahren“ (<details>, ohne JavaScript) und „ab“ vor dem Preis
   3. Hinweis Testprodukt (Bearbeitungszeit 2 bis 5 Wochen, unverbindlich)
   4. /anfrage und Backoffice-Formular: Box in allen Bereichen gleich hoch, Scrollen IN der Box (Stahlblau-Balken, Verlauf unten) */

/* 1 ------------------------------------------------------------------ Weitere Leistungen */
.bf2-weitere-titel { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; font: 600 12px/1.3 var(--schrift, Archivo, sans-serif);
  letter-spacing: .12em; text-transform: uppercase; color: #05173D; }
.bf2-weitere-titel::after { content: ""; flex: 1; height: 1px; background: #D9D2C0; }

/* 2 ------------------------------------------------------------------ Mehr erfahren, „ab“ */
.bf2-info { margin: 0; padding: 0 12px 8px; font-size: 13px; line-height: 1.45; color: #56677D; }
.bf2-info summary { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; cursor: pointer; list-style: none;
  font-weight: 600; color: #796B44; text-decoration: underline; text-decoration-color: rgba(121, 107, 68, .35); text-underline-offset: 3px; }
.bf2-info summary::-webkit-details-marker { display: none; }
.bf2-info summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.bf2-info[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.bf2-info summary:hover { color: #05173D; }
.bf2-info summary:focus-visible { outline: 2px solid #3D6189; outline-offset: 2px; border-radius: 4px; }
.bf2-info p { margin: 4px 0 2px; }
.bf2-ab { font-size: .72em; font-weight: 600; }

/* 3 ------------------------------------------------------------------ Hinweis Testprodukt */
.tn-test-hinweis { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 14px 16px 14px 14px; border: 1px solid #C7BEA4;
  border-left: 4px solid #3D6189; border-radius: 14px; background: #EEEBE3; color: #05173D; }
.tn-test-hinweis[hidden] { display: none; }
.tn-test-hinweis p { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 600; }
.tn-test-hinweis-sym { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #05173D; color: #fff; }
[data-tn-recht-test][hidden], [data-tn-recht-normal][hidden], [data-tn-knopf-test][hidden], [data-tn-knopf-normal][hidden] { display: none; }

/* 4 ------------------------------------------------------------------ /anfrage: Box fest, Scrollen in der Box */
.ms .bf2-panels > .bf2-panel { position: relative; display: flex; flex-direction: column; height: clamp(260px, calc(100svh - 470px), 560px); padding: 0; overflow: visible; }
.ms .bf2-panels > .bf2-panel[hidden] { display: none; }
.ms .bf2-panel-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 10px 30px 12px;
  border-radius: inherit; scrollbar-width: thin; scrollbar-color: #3D6189 rgba(217, 210, 192, .55); scrollbar-gutter: stable; }
.ms .bf2-panel-scroll::-webkit-scrollbar { width: 8px; }
.ms .bf2-panel-scroll::-webkit-scrollbar-track { background: rgba(217, 210, 192, .55); border-radius: 99px; margin: 10px 0; }
.ms .bf2-panel-scroll::-webkit-scrollbar-thumb { background: #3D6189; border-radius: 99px; }
.ms .bf2-panel-scroll:focus-visible { outline: 2px solid #3D6189; outline-offset: -2px; }
/* Scroll-Hinweis: Verlauf und weicher Schatten am unteren Rand der Box; am Ende liegt er auf dem leeren Innenabstand */
.ms .bf2-panel-scroll::after { content: ""; position: sticky; bottom: -30px; display: block; height: 42px; margin: -12px -10px -30px -12px;
  background: linear-gradient(to bottom, rgba(246, 245, 241, 0), rgba(246, 245, 241, .96) 70%);
  box-shadow: 0 -1px 0 rgba(217, 210, 192, 0); pointer-events: none; }
.ms .bf2-panel-scroll > .bf2-paket:first-child { margin-top: 2px; }
.ms .bf2-p-kopf { flex: none; }
@media (min-width: 1001px) {
  .ms .bf2-panels > .bf2-panel { height: clamp(300px, calc(100vh - 430px), 600px); }
  .ms .bf2-panel-scroll { padding: 14px 12px 30px 14px; }
  /* Bereich TGA, Heizung & KfW: erste Zeile Heizlast, Abgleich, BzA, BnD nebeneinander */
  .ms.ms-stil-a .bf2-panel[data-bf2-panel="heizung"] .bf2-karten:not(.bf2-karten-weitere) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ms.ms-stil-a .bf2-panel[data-bf2-panel="heizung"] .bf2-karten:not(.bf2-karten-weitere) .bf2-karte-text > b { font-size: 13.5px;
    hyphens: manual; overflow-wrap: normal; padding-right: 16px; }
  .ms.ms-stil-a .bf2-panel[data-bf2-panel="heizung"] .bf2-karten:not(.bf2-karten-weitere) .bf2-karte-text > small { padding-right: 0; }
  .ms.ms-stil-a .bf2-panel[data-bf2-panel="heizung"] .bf2-karten:not(.bf2-karten-weitere) .bf2-ka-zuschuss { font-size: 10.5px;
    padding-left: 6px; padding-right: 6px; }
}
@media (min-width: 1001px) and (max-height: 860px) { .ms .bf2-panels > .bf2-panel { height: clamp(260px, calc(100vh - 400px), 600px); } }
@media (max-width: 1000px) {
  /* 30.11.2026 (Jeremias): Produktfenster etwa dreimal so hoch – man soll die Leistungen gut sehen; die Seite scrollt dafür */
  .ms .bf2-panels > .bf2-panel { height: clamp(520px, calc(100svh - 200px), 720px); }
}
@media (prefers-reduced-motion: reduce) { .bf2-info summary::after { transition: none; } }

/* Handy (Jeremias: „alles auf einen Blick inkl. Weiter-Knopf“): Schritt 1 kompakt – Überschrift kleiner, Bereichskacheln flach
   (Symbol links, Text rechts, 2 × 2), darunter die feste Box; „Weiter“ steht unten in der festen Leiste */
@media (max-width: 720px) {
  .ms.ms-stil-a [data-ms-schritt="1"] .ms-titel { margin-bottom: 4px; font-size: 25px; line-height: 1.15; }
  .ms.ms-stil-a [data-ms-schritt="1"] .ms-lead { margin-bottom: 10px; font-size: 13.5px; line-height: 1.4; }
  .ms.ms-stil-a .bf2-bereiche { gap: 8px; }
  .ms.ms-stil-a .bf2-bk { flex-direction: row; align-items: center; gap: 8px; min-height: 54px; padding: 7px 8px; border-radius: 14px; }
  .ms.ms-stil-a .bf2-bk-sym { flex: none; width: 34px; height: 34px; }
  .ms.ms-stil-a .bf2-bk-sym .bf2-sym { width: 20px; height: 20px; }
  .ms.ms-stil-a .bf2-bk-text b { font-size: 13px; line-height: 1.2; }
  .ms.ms-stil-a .bf2-bk-text small { font-size: 11px; }
  .ms.ms-stil-a .bf2-bk-text small[data-bf2-bk-anzahl] { display: none; }
  .ms.ms-stil-a .bf2-bk-zahl { top: 4px; right: 4px; padding: 0 6px; font-size: 11px; }
  .ms.ms-stil-a .bf2-bk.bf2-offen::after { bottom: -13px; border-width: 7px; margin-left: -7px; }
  .ms.ms-stil-a .bf2-panels > .bf2-panel { margin-top: 12px; height: clamp(560px, calc(100svh - 170px), 720px); }
  .ms.ms-stil-a .bf2-p-kopf h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ms.ms-stil-a .bf2-p-kopf .bf2-badge.tn-foerder-badge { position: absolute; top: -12px; right: 12px; z-index: 2; margin: 0; }
  .ms.ms-stil-a .bf2-panel-scroll { padding: 14px 8px 30px 10px; }
}
