/* =========================================================
   DACHBESCHICHTUNG RICHTER – PREISRECHNER V10
   Schritt-Funnel · Live-Preis · Sticky Desktop & Mobile
   Inhaltsbreite: 1400px
   Primärfarbe: #085C99
   Live-Preis-Grün: #3E8F68
   ========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: clip !important;
}

.dbrpf,
.dbrpf *,
.dbrpf *::before,
.dbrpf *::after {
  box-sizing: border-box;
}


/* =========================================================
   1. GUTENBERG / FULL BLEED
   Hintergrund über die gesamte Viewport-Breite.
   Der Shortcode-Block bleibt im normalen Dokumentfluss;
   der Rechner selbst bricht aus der Inhaltsbreite aus.
   ========================================================= */

.wp-block-shortcode:has(> .dbrpf),
.entry-content > .wp-block-shortcode:has(> .dbrpf),
.wp-block-post-content > .wp-block-shortcode:has(> .dbrpf),
.wp-site-blocks .wp-block-shortcode:has(> .dbrpf) {
  position: relative !important;
  z-index: 5;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: visible !important;
}

.entry-content:has(.dbrpf),
.wp-block-post-content:has(.dbrpf),
.wp-site-blocks:has(.dbrpf),
.wp-block-group:has(.dbrpf),
main:has(.dbrpf) {
  overflow: visible !important;
}


/* =========================================================
   2. BASIS / OVERLAP ZUM HERO
   ========================================================= */

.dbrpf {
  --dbrpf-width: 1400px;

  --dbrpf-primary: #085c99;
  --dbrpf-primary-dark: #064875;
  --dbrpf-primary-deep: #073451;
  --dbrpf-primary-light: #147fbd;
  --dbrpf-accent: #2c9bd1;

  --dbrpf-green: #3e8f68;
  --dbrpf-green-dark: #2f7353;
  --dbrpf-green-deep: #245b42;
  --dbrpf-green-soft: #eef8f2;
  --dbrpf-green-soft-2: #e5f3eb;

  --dbrpf-text: #0b2233;
  --dbrpf-muted: #5a7180;
  --dbrpf-light-text: #758a97;
  --dbrpf-line: rgba(8, 92, 153, 0.13);

  /*
   * Fallback, falls der Header nicht automatisch erkannt wird.
   * JavaScript ersetzt diesen Wert mit der realen Header-Unterkante
   * plus einem kleinen Sicherheitsabstand.
   */
  --dbrpf-sticky-top: 82px;

  position: relative;
  isolation: isolate;

  /*
   * WICHTIG:
   * flow-root verhindert, dass der negative obere Rand des inneren
   * Funnel-Kastens mit dem Elternbereich kollabiert.
   *
   * Ergebnis:
   * - der SEKTIONSHINTERGRUND beginnt exakt NACH dem Hero,
   * - nur der eigentliche Funnel-Kasten ragt in den Hero hinein.
   */
  display: flow-root;
  overflow: visible;

  width: calc(100vw + 4px) !important;
  max-width: none !important;

  margin-top: 0 !important;
  margin-bottom: 0 !important;

  margin-left: calc(50% - 50vw - 2px) !important;
  margin-right: calc(50% - 50vw - 2px) !important;

  padding: 0 0 clamp(58px, 5vw, 78px);

  color: var(--dbrpf-text);

  background:
    linear-gradient(
      180deg,
      #f3f8fc 0%,
      #f8fbfd 44%,
      #f4f9fc 100%
    );
}

@supports (width: 100dvw) {
  .dbrpf {
    width: calc(100dvw + 4px) !important;

    margin-left: calc(50% - 50dvw - 2px) !important;
    margin-right: calc(50% - 50dvw - 2px) !important;
  }
}

.dbrpf::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;

  background:
    radial-gradient(
      circle at 7% 22%,
      rgba(44, 155, 209, 0.05),
      transparent 31%
    ),
    radial-gradient(
      circle at 94% 76%,
      rgba(62, 143, 104, 0.045),
      transparent 32%
    );

  pointer-events: none;
}

.dbrpf__inner {
  position: relative;
  z-index: 2;

  width: min(calc(100% - 64px), var(--dbrpf-width));
  max-width: var(--dbrpf-width);

  margin: -56px auto 0;
}

.dbrpf__frame {
  position: relative;

  width: 100%;

  background: rgba(255, 255, 255, 0.985);
  border: 1px solid rgba(8, 92, 153, 0.13);
  border-radius: 22px;

  box-shadow:
    0 30px 74px rgba(7, 52, 81, 0.13),
    0 5px 16px rgba(7, 52, 81, 0.055);

  overflow: visible;
}


/* =========================================================
   3. KOPF / FORTSCHRITT
   ========================================================= */

.dbrpf__topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: clamp(32px, 4vw, 62px);
  align-items: end;

  padding:
    clamp(26px, 2.8vw, 38px)
    clamp(28px, 3.2vw, 46px)
    clamp(24px, 2.5vw, 34px);

  background:
    linear-gradient(
      135deg,
      rgba(248, 252, 254, 0.98),
      rgba(243, 249, 252, 0.97)
    );

  border-radius: 22px 22px 0 0;
  border-bottom: 1px solid rgba(8, 92, 153, 0.12);
}

.dbrpf__topbar-copy {
  min-width: 0;
}

.dbrpf__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin: 0;

  color: var(--dbrpf-primary);

  font-size: 0.69rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dbrpf__kicker-line {
  width: 28px;
  height: 2px;
  flex: 0 0 28px;

  background: linear-gradient(90deg, var(--dbrpf-accent), var(--dbrpf-primary));
}

.dbrpf__topbar h2 {
  margin: 0 0 8px;

  color: var(--dbrpf-primary-deep);

  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.dbrpf__topbar h2 span {
  color: var(--dbrpf-primary);
}

.dbrpf__topbar-copy > p {
  max-width: 690px;
  margin: 0;

  color: var(--dbrpf-muted);

  font-size: 0.92rem;
  line-height: 1.55;
}

.dbrpf__progress {
  min-width: 0;
}

.dbrpf__progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 10px;

  font-size: 0.76rem;
}

.dbrpf__progress-meta > span {
  color: var(--dbrpf-green-dark);
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.dbrpf__progress-meta > strong {
  color: var(--dbrpf-text);
  font-weight: 720;
  text-align: right;
}

.dbrpf__progress-track {
  position: relative;
  overflow: hidden;

  width: 100%;
  height: 12px;

  background: #dceae3;
  border: 1px solid rgba(62, 143, 104, 0.16);
  border-radius: 999px;

  box-shadow: inset 0 1px 2px rgba(36, 91, 66, 0.08);
}

.dbrpf__progress-track > span {
  display: block;
  width: 0;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      #5aab7f 0%,
      var(--dbrpf-green) 56%,
      var(--dbrpf-green-dark) 100%
    );

  border-radius: inherit;

  box-shadow: 0 0 16px rgba(62, 143, 104, 0.22);

  transition: width 0.35s cubic-bezier(.22, 1, .36, 1);
}


/* =========================================================
   4. WORKSPACE
   ========================================================= */

.dbrpf__form,
.dbrpf__workspace,
.dbrpf__fields-column,
.dbrpf__price-column {
  overflow: visible;
}

.dbrpf__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  gap: clamp(28px, 3vw, 44px);
  align-items: start;

  padding:
    clamp(28px, 3vw, 44px)
    clamp(28px, 3.2vw, 46px)
    clamp(34px, 3.5vw, 50px);
}

.dbrpf__fields-column {
  min-width: 0;

  display: grid;
  gap: 18px;
}


/* =========================================================
   5. FORMULARSEKTIONEN
   ========================================================= */

.dbrpf__section {
  position: relative;

  padding: clamp(22px, 2vw, 30px);

  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #fbfdfe 100%
    );

  border: 1px solid rgba(8, 92, 153, 0.12);
  border-radius: 17px;

  box-shadow:
    0 12px 30px rgba(7, 52, 81, 0.045);
}

.dbrpf__section-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  align-items: start;

  margin-bottom: 20px;
}

.dbrpf__section-number {
  width: 42px;
  height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--dbrpf-primary);

  background:
    linear-gradient(
      145deg,
      rgba(8, 92, 153, 0.085),
      rgba(255, 255, 255, 0.86)
    );

  border: 1px solid rgba(8, 92, 153, 0.17);
  border-radius: 11px;

  font-size: 0.76rem;
  font-weight: 820;
}

/*
 * Sektionsnummern 01–06 bewusst unterschiedlich, aber gedeckt.
 * Die Farben bleiben im ruhigen Blau-/Naturfarbspektrum der Seite.
 */
.dbrpf__section-number--01 {
  color: #085c99;
  background: linear-gradient(145deg, rgba(8, 92, 153, 0.10), rgba(255, 255, 255, 0.88));
  border-color: rgba(8, 92, 153, 0.22);
}

.dbrpf__section-number--02 {
  color: #3f7f84;
  background: linear-gradient(145deg, rgba(63, 127, 132, 0.11), rgba(255, 255, 255, 0.88));
  border-color: rgba(63, 127, 132, 0.23);
}

.dbrpf__section-number--03 {
  color: #6673a1;
  background: linear-gradient(145deg, rgba(102, 115, 161, 0.11), rgba(255, 255, 255, 0.88));
  border-color: rgba(102, 115, 161, 0.23);
}

.dbrpf__section-number--04 {
  color: #3e8f68;
  background: linear-gradient(145deg, rgba(62, 143, 104, 0.11), rgba(255, 255, 255, 0.88));
  border-color: rgba(62, 143, 104, 0.23);
}

.dbrpf__section-number--05 {
  color: #947047;
  background: linear-gradient(145deg, rgba(148, 112, 71, 0.11), rgba(255, 255, 255, 0.88));
  border-color: rgba(148, 112, 71, 0.23);
}

.dbrpf__section-number--06 {
  color: #80667b;
  background: linear-gradient(145deg, rgba(128, 102, 123, 0.11), rgba(255, 255, 255, 0.88));
  border-color: rgba(128, 102, 123, 0.23);
}

.dbrpf__eyebrow {
  display: block;
  margin: 1px 0 4px;

  color: var(--dbrpf-primary);

  font-size: 0.66rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.dbrpf__section-head h3 {
  margin: 0 0 5px;

  color: var(--dbrpf-primary-deep);

  font-size: clamp(18px, 1.3vw, 22px);
  line-height: 1.16;
  font-weight: 690;
  letter-spacing: -0.022em;
}

.dbrpf__section-head p {
  max-width: 700px;
  margin: 0;

  color: var(--dbrpf-muted);

  font-size: 0.82rem;
  line-height: 1.48;
}

.dbrpf__error,
.dbrpf__form-error {
  margin: 0 0 16px;
  padding: 11px 13px;

  color: #8e2e35;
  background: #fff3f4;
  border: 1px solid rgba(174, 58, 68, 0.18);
  border-radius: 10px;

  font-size: 0.79rem;
  line-height: 1.42;
  font-weight: 650;
}

.dbrpf__form-error {
  margin: 0;
}

[hidden] {
  display: none !important;
}


/* =========================================================
   6. DACHFLÄCHE / STANDARD INPUTS
   ========================================================= */

.dbrpf__area-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: end;
}

.dbrpf__field-label {
  grid-column: 1 / -1;

  color: var(--dbrpf-text);

  font-size: 0.78rem;
  font-weight: 720;
}

.dbrpf__area-field {
  position: relative;
  width: min(100%, 360px);
}

.dbrpf__area-field > span {
  position: absolute;
  top: 50%;
  right: 17px;

  color: var(--dbrpf-primary);

  font-size: 0.86rem;
  font-weight: 780;

  transform: translateY(-50%);
  pointer-events: none;
}

.dbrpf__input,
.dbrpf__textarea {
  width: 100%;

  color: var(--dbrpf-text);
  background: #ffffff;

  border: 1px solid rgba(8, 92, 153, 0.19);
  border-radius: 11px;

  outline: none;

  font: inherit;
  font-size: 0.88rem;

  box-shadow: inset 0 1px 1px rgba(7, 52, 81, 0.025);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.dbrpf__input {
  min-height: 49px;
  padding: 10px 14px;
}

.dbrpf__input--area {
  padding-right: 48px;

  font-size: 1.03rem;
  font-weight: 700;
}

.dbrpf__textarea {
  min-height: 94px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.45;
}

.dbrpf__input::placeholder,
.dbrpf__textarea::placeholder {
  color: #91a2ad;
}

.dbrpf__input:focus,
.dbrpf__textarea:focus {
  border-color: rgba(8, 92, 153, 0.52);

  box-shadow:
    0 0 0 3px rgba(44, 155, 209, 0.10),
    inset 0 1px 1px rgba(7, 52, 81, 0.02);
}

.dbrpf__helper {
  margin: 0 0 2px;

  color: var(--dbrpf-muted);

  font-size: 0.75rem;
  line-height: 1.4;
  text-align: right;
}

.dbrpf__helper strong,
.dbrpf__helper-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  max-width: 100%;

  margin: 0 0 0 6px;
  padding: 5px 9px;

  color: var(--dbrpf-primary);
  background: rgba(8, 92, 153, 0.07);
  border-radius: 999px;

  font-size: 0.66rem;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}


/* =========================================================
   7. AUSWAHLKARTEN
   ========================================================= */

.dbrpf__choices {
  min-width: 0;
  margin: 0;
  padding: 0;

  border: 0;

  display: grid;
  gap: 10px;
}

.dbrpf__choices--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dbrpf__choices--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dbrpf-choice {
  position: relative;
  cursor: pointer;

  min-width: 0;
  min-height: 94px;
  padding: 15px 13px 13px;

  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 10px;
  row-gap: 9px;
  align-items: start;

  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f8fbfd 100%
    );

  border: 1px solid rgba(8, 92, 153, 0.13);
  border-radius: 12px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.dbrpf-choice:hover {
  border-color: rgba(8, 92, 153, 0.28);
  box-shadow: 0 8px 20px rgba(7, 52, 81, 0.055);
}

.dbrpf-choice.is-selected {
  background:
    linear-gradient(
      145deg,
      rgba(239, 248, 253, 0.98),
      rgba(247, 252, 254, 0.98)
    );

  border-color: rgba(8, 92, 153, 0.48);

  box-shadow:
    0 0 0 2px rgba(44, 155, 209, 0.07),
    0 8px 20px rgba(7, 52, 81, 0.055);
}

.dbrpf-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dbrpf-choice__indicator {
  position: relative;

  width: 20px;
  height: 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  border: 1.5px solid rgba(8, 92, 153, 0.29);
  border-radius: 50%;
}

.dbrpf-choice__indicator::after {
  content: "";

  width: 9px;
  height: 9px;

  background: var(--dbrpf-primary);
  border-radius: 50%;

  transform: scale(0);
  transition: transform 0.16s ease;
}

.dbrpf-choice.is-selected .dbrpf-choice__indicator {
  border-color: var(--dbrpf-primary);
}

.dbrpf-choice.is-selected .dbrpf-choice__indicator::after {
  transform: scale(1);
}

.dbrpf-choice__copy {
  min-width: 0;
}

.dbrpf-choice__copy strong {
  display: block;
  margin-bottom: 4px;

  color: var(--dbrpf-primary-deep);

  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 720;
}

.dbrpf-choice__copy small {
  display: block;

  color: var(--dbrpf-muted);

  font-size: 0.69rem;
  line-height: 1.38;
}

.dbrpf-choice__price {
  grid-column: 2;

  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;

  color: var(--dbrpf-primary);
  background: rgba(8, 92, 153, 0.07);
  border-radius: 999px;

  font-size: 0.66rem;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.dbrpf-choice--discount.is-selected {
  border-color: rgba(62, 143, 104, 0.45);
  background: var(--dbrpf-green-soft);
}

.dbrpf-choice--discount.is-selected .dbrpf-choice__indicator {
  border-color: var(--dbrpf-green);
}

.dbrpf-choice--discount.is-selected .dbrpf-choice__indicator::after,
.dbrpf-choice--discount .dbrpf-choice__price {
  background: var(--dbrpf-green);
  color: #ffffff;
}


/* =========================================================
   8. DACHFORM + ZUGANG
   ========================================================= */

.dbrpf__roof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  gap: 12px;
  align-items: stretch;
}

.dbrpf-access {
  position: relative;
  cursor: pointer;

  min-height: 100%;
  padding: 16px;

  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 10px 12px;
  align-items: center;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8fbfd
    );

  border: 1px solid rgba(8, 92, 153, 0.13);
  border-radius: 12px;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.dbrpf-access input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dbrpf-access__icon {
  width: 40px;
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--dbrpf-primary);
  background: rgba(8, 92, 153, 0.07);
  border: 1px solid rgba(8, 92, 153, 0.14);
  border-radius: 10px;
}

.dbrpf-access__icon svg {
  width: 19px;
  height: 19px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dbrpf-access__copy strong,
.dbrpf-access__copy small {
  display: block;
}

.dbrpf-access__copy strong {
  margin-bottom: 4px;

  color: var(--dbrpf-primary-deep);
  font-size: 0.82rem;
  font-weight: 720;
}

.dbrpf-access__copy small {
  color: var(--dbrpf-muted);
  font-size: 0.69rem;
  line-height: 1.38;
}

.dbrpf-access__price {
  grid-column: 2;

  width: fit-content;
  padding: 4px 8px;

  color: var(--dbrpf-primary);
  background: rgba(8, 92, 153, 0.07);
  border-radius: 999px;

  font-size: 0.66rem;
  font-weight: 800;
}

.dbrpf-access.is-selected {
  background: var(--dbrpf-green-soft);
  border-color: rgba(62, 143, 104, 0.44);

  box-shadow: 0 8px 20px rgba(36, 91, 66, 0.06);
}

.dbrpf-access.is-selected .dbrpf-access__icon {
  color: #ffffff;
  background: var(--dbrpf-green);
  border-color: var(--dbrpf-green);
}

.dbrpf-access.is-selected .dbrpf-access__price {
  color: #ffffff;
  background: var(--dbrpf-green);
}


/* =========================================================
   9. KONTAKT
   ========================================================= */

.dbrpf__section--contact {
  border-color: rgba(8, 92, 153, 0.18);
  box-shadow: 0 16px 34px rgba(7, 52, 81, 0.065);
}

.dbrpf__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dbrpf__field {
  min-width: 0;
}

.dbrpf__field--full {
  grid-column: 1 / -1;
}

.dbrpf__field label {
  display: block;
  margin-bottom: 6px;

  color: var(--dbrpf-text);

  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 710;
}

.dbrpf__field label span {
  color: var(--dbrpf-light-text);
  font-weight: 550;
}

.dbrpf__privacy {
  margin: 15px 0 0;

  color: var(--dbrpf-light-text);

  font-size: 0.69rem;
  line-height: 1.48;
}

.dbrpf__privacy a {
  color: var(--dbrpf-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dbrpf__submit-row {
  margin-top: 18px;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.dbrpf__button {
  cursor: pointer;

  min-height: 50px;
  padding: 12px 21px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      var(--dbrpf-primary-light),
      var(--dbrpf-primary) 68%,
      var(--dbrpf-primary-dark)
    );

  border: 1px solid var(--dbrpf-primary);
  border-radius: 10px;

  font: inherit;
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1;

  box-shadow:
    0 10px 24px rgba(8, 92, 153, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.dbrpf__button:hover,
.dbrpf__button:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(8, 92, 153, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.dbrpf__button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.dbrpf__button svg,
.dbrpf__price-jump svg,
.dbrpf__mobile-price-chevron svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dbrpf__trustline {
  color: var(--dbrpf-muted);

  font-size: 0.69rem;
  line-height: 1.35;
  font-weight: 650;
}


/* =========================================================
   10. DESKTOP: STICKY LIVE-PREIS
   ========================================================= */

.dbrpf__price-column {
  position: relative;
  align-self: stretch;
}

.dbrpf__price-card {
  position: sticky;
  top: var(--dbrpf-sticky-top);

  overflow-x: hidden;
  overflow-y: auto;

  width: 100%;
  max-height: calc(100vh - var(--dbrpf-sticky-top) - 18px);
  max-height: calc(100dvh - var(--dbrpf-sticky-top) - 18px);

  background:
    linear-gradient(
      155deg,
      #f4fbf7 0%,
      var(--dbrpf-green-soft) 44%,
      #ffffff 100%
    );

  border: 1px solid rgba(62, 143, 104, 0.25);
  border-radius: 19px;

  box-shadow:
    0 22px 50px rgba(36, 91, 66, 0.12),
    0 6px 18px rgba(7, 52, 81, 0.055);
}

.dbrpf__price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;

  background:
    linear-gradient(
      90deg,
      #70b58d,
      var(--dbrpf-green),
      var(--dbrpf-green-deep)
    );
}

.dbrpf__price-card-head {
  padding: 24px 24px 15px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dbrpf__price-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--dbrpf-green-deep);

  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.dbrpf__price-live-dot {
  width: 9px;
  height: 9px;

  background: var(--dbrpf-green);
  border-radius: 50%;

  box-shadow: 0 0 0 5px rgba(62, 143, 104, 0.11);
}

.dbrpf__price-card-head > small {
  color: #668274;
  font-size: 0.66rem;
}

.dbrpf__price-main {
  padding: 2px 24px 21px;
}

.dbrpf__price-main > span,
.dbrpf__price-main > small {
  display: block;
}

.dbrpf__price-main > span {
  margin-bottom: 4px;

  color: #587467;

  font-size: 0.72rem;
  font-weight: 650;
}

.dbrpf__price-main > strong {
  display: block;

  color: var(--dbrpf-green-deep);

  font-size: clamp(36px, 3vw, 48px);
  line-height: 0.98;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.dbrpf__price-main > small {
  margin-top: 7px;

  color: #6a8578;

  font-size: 0.65rem;
  line-height: 1.35;
}

.dbrpf__selection-summary {
  margin: 0 18px;
  padding: 15px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;

  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(62, 143, 104, 0.13);
  border-radius: 12px;
}

.dbrpf__selection-summary > div {
  min-width: 0;
}

.dbrpf__selection-summary span,
.dbrpf__selection-summary strong {
  display: block;
}

.dbrpf__selection-summary span {
  margin-bottom: 3px;

  color: #718a7e;

  font-size: 0.59rem;
  font-weight: 760;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.dbrpf__selection-summary strong {
  overflow: hidden;

  color: #315b47;

  font-size: 0.69rem;
  line-height: 1.35;
  font-weight: 680;

  text-overflow: ellipsis;
}

.dbrpf__price-divider {
  height: 1px;
  margin: 18px 24px 14px;

  background: rgba(62, 143, 104, 0.16);
}

.dbrpf__breakdown {
  display: grid;
  gap: 9px;
}

.dbrpf__price-card .dbrpf__breakdown {
  padding: 0 24px;
}

.dbrpf__breakdown > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dbrpf__breakdown span {
  color: #647d71;

  font-size: 0.72rem;
  line-height: 1.3;
}

.dbrpf__breakdown strong {
  color: var(--dbrpf-green-deep);

  font-size: 0.75rem;
  font-weight: 730;
  white-space: nowrap;
}

.dbrpf__breakdown-discount strong {
  color: var(--dbrpf-green);
}

.dbrpf__price-note {
  margin: 18px;
  padding: 13px;

  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;

  color: #5e776b;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(62, 143, 104, 0.13);
  border-radius: 11px;

  font-size: 0.66rem;
  line-height: 1.43;
}

.dbrpf__price-note svg {
  width: 19px;
  height: 19px;

  fill: none;
  stroke: var(--dbrpf-green);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dbrpf__price-jump {
  margin: 0 18px 18px;
  min-height: 45px;
  padding: 10px 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  color: #ffffff !important;
  background:
    linear-gradient(
      135deg,
      #4d9c74,
      var(--dbrpf-green) 60%,
      var(--dbrpf-green-dark)
    );
  border-radius: 10px;

  text-decoration: none !important;

  font-size: 0.75rem;
  font-weight: 760;

  box-shadow: 0 9px 20px rgba(62, 143, 104, 0.18);
}


/* =========================================================
   11. MOBILER LIVE-PREIS
   ========================================================= */

.dbrpf__mobile-price {
  display: none;
}


/* =========================================================
   12. HONEYPOT / ACCESSIBILITY
   ========================================================= */

.dbrpf__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.dbrpf__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* =========================================================
   13. MITTLERE DESKTOPBREITEN
   ========================================================= */

@media (min-width: 901px) and (max-width: 1180px) {
  .dbrpf__workspace {
    grid-template-columns: minmax(0, 1fr) minmax(315px, 350px);
    gap: 24px;
  }

  .dbrpf__choices--three {
    grid-template-columns: 1fr;
  }

  .dbrpf-choice {
    min-height: 82px;
  }

  .dbrpf__roof-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   14. TABLET / MOBIL
   ========================================================= */

@media (max-width: 900px) {
  .dbrpf {
    padding-bottom: 52px;
  }

  .dbrpf__inner {
    width: min(calc(100% - 30px), 760px);
    margin-top: -34px;
  }

  .dbrpf__frame {
    border-radius: 18px;
  }

  .dbrpf__topbar {
    grid-template-columns: 1fr;
    gap: 20px;

    padding: 24px 22px 22px;

    border-radius: 18px 18px 0 0;
  }

  .dbrpf__topbar h2 {
    font-size: clamp(25px, 7vw, 32px);
  }

  .dbrpf__topbar-copy > p {
    font-size: 0.86rem;
  }

  .dbrpf__progress-meta {
    margin-bottom: 8px;
  }

  .dbrpf__workspace {
    display: block;
    padding: 18px 18px 28px;
  }

  .dbrpf__price-column {
    display: none;
  }

  .dbrpf__mobile-price {
    position: sticky;
    top: var(--dbrpf-sticky-top);
    z-index: 50;

    display: block;

    margin: 14px 18px 0;

    background:
      linear-gradient(
        135deg,
        #f1faf5,
        var(--dbrpf-green-soft)
      );

    border: 1px solid rgba(62, 143, 104, 0.26);
    border-radius: 13px;

    box-shadow:
      0 12px 28px rgba(36, 91, 66, 0.14),
      0 3px 9px rgba(7, 52, 81, 0.05);

    overflow: hidden;
  }

  .dbrpf__mobile-price-toggle {
    cursor: pointer;

    width: 100%;
    min-height: 64px;
    padding: 10px 12px 10px 14px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 30px;
    gap: 9px;
    align-items: center;

    color: var(--dbrpf-green-deep);
    background: transparent;
    border: 0;

    text-align: left;
    font: inherit;
  }

  .dbrpf__mobile-price-copy small,
  .dbrpf__mobile-price-copy strong {
    display: block;
  }

  .dbrpf__mobile-price-copy small {
    margin-bottom: 2px;

    color: #678274;

    font-size: 0.61rem;
    line-height: 1.1;
    font-weight: 720;
    letter-spacing: 0.035em;
    text-transform: uppercase;
  }

  .dbrpf__mobile-price-copy strong {
    color: var(--dbrpf-green-deep);

    font-size: 1.4rem;
    line-height: 1;
    font-weight: 780;
    letter-spacing: -0.035em;
  }

  .dbrpf__mobile-price-status {
    padding: 5px 8px;

    color: #ffffff;
    background: var(--dbrpf-green);
    border-radius: 999px;

    font-size: 0.62rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .dbrpf__mobile-price-chevron {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--dbrpf-green-dark);
    background: rgba(62, 143, 104, 0.09);
    border-radius: 8px;

    transition: transform 0.2s ease;
  }

  .dbrpf__mobile-price-toggle[aria-expanded="true"] .dbrpf__mobile-price-chevron {
    transform: rotate(180deg);
  }

  .dbrpf__mobile-breakdown {
    padding: 13px 14px 14px;

    background: rgba(255, 255, 255, 0.75);
    border-top: 1px solid rgba(62, 143, 104, 0.14);
  }

  .dbrpf__mobile-breakdown .dbrpf__breakdown {
    gap: 7px;
  }

  .dbrpf__mobile-price-note {
    margin: 10px 0 0;

    color: #72877d;

    font-size: 0.61rem;
    line-height: 1.4;
  }

  .dbrpf__fields-column {
    gap: 14px;
  }

  .dbrpf__section {
    padding: 20px 17px;
    border-radius: 14px;
  }

  .dbrpf__section-head {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 17px;
  }

  .dbrpf__section-number {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .dbrpf__section-head h3 {
    font-size: 19px;
  }

  .dbrpf__section-head p {
    font-size: 0.78rem;
  }

  .dbrpf__choices--three,
  .dbrpf__choices--two,
  .dbrpf__roof-grid,
  .dbrpf__fields {
    grid-template-columns: 1fr;
  }

  .dbrpf-choice {
    min-height: 80px;
    padding: 13px;
  }

  .dbrpf__field--full {
    grid-column: auto;
  }

  .dbrpf__area-panel {
    grid-template-columns: 1fr;
  }

  .dbrpf__area-field {
    width: 100%;
  }

  .dbrpf__helper {
    text-align: left;
  }

  .dbrpf__helper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
  }

  .dbrpf__helper strong,
  .dbrpf__helper-price {
    margin: 0;
  }

  .dbrpf__submit-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dbrpf__button {
    width: 100%;
  }

  .dbrpf__trustline {
    text-align: center;
  }
}


/* =========================================================
   15. KLEINE MOBILGERÄTE
   ========================================================= */

@media (max-width: 480px) {
  .dbrpf__inner {
    width: calc(100% - 20px);
    margin-top: -28px;
  }

  .dbrpf__topbar {
    padding: 21px 16px 18px;
  }

  .dbrpf__kicker {
    font-size: 0.60rem;
    letter-spacing: 0.06em;
  }

  .dbrpf__progress-meta {
    align-items: flex-start;
  }

  .dbrpf__progress-meta > strong {
    max-width: 175px;
    line-height: 1.3;
  }

  .dbrpf__workspace {
    padding: 14px 10px 22px;
  }

  .dbrpf__mobile-price {
    margin: 10px 10px 0;
  }

  .dbrpf__mobile-price-toggle {
    grid-template-columns: minmax(0, 1fr) auto 28px;
    padding-left: 11px;
    padding-right: 9px;
  }

  .dbrpf__mobile-price-copy strong {
    font-size: 1.24rem;
  }

  .dbrpf__section {
    padding: 18px 14px;
  }

  .dbrpf__section-head {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .dbrpf__section-number {
    width: 34px;
    height: 34px;
    font-size: 0.68rem;
  }

  .dbrpf__section-head h3 {
    font-size: 18px;
  }

  .dbrpf-choice {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 9px;
  }

  .dbrpf-choice__copy strong {
    font-size: 0.80rem;
  }

  .dbrpf-choice__copy small {
    font-size: 0.67rem;
  }

  .dbrpf__price-jump {
    display: none;
  }
}


/* =========================================================
   16. REDUZIERTE BEWEGUNG
   ========================================================= */

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


/* =========================================================
   17. PREISRECHNER-KOPF – PROJEKTSTANDARD H2

   Fester H2-Standard Dachbeschichtung Richter:
   Desktop: clamp(35px, 2.85vw, 47px)
   Mobil:   clamp(32px, 9.2vw, 40px)

   Der kleine Kicker entspricht dem Muster der übrigen
   Inhaltsblöcke; die eigentliche Preisrechner-Überschrift
   ist eine echte H2.
   ========================================================= */

.dbrpf__topbar {
  align-items: center;
}

.dbrpf__topbar-copy {
  display: block;
  min-width: 0;
  min-height: 0;
}

.dbrpf__kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;

  margin: 0 0 13px;

  color: var(--dbrpf-primary);

  font-size: 0.70rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: normal;
}

.dbrpf__kicker-line {
  width: 31px;
  height: 2px;
  flex: 0 0 31px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      var(--dbrpf-primary),
      var(--dbrpf-accent)
    );
}

.dbrpf__topbar h2 {
  max-width: none;
  margin: 0;

  color: var(--dbrpf-primary-deep);

  font-size: clamp(35px, 2.85vw, 47px);
  line-height: 1.07;
  font-weight: 610;
  letter-spacing: -0.038em;

  text-wrap: balance;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .dbrpf__topbar h2 {
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .dbrpf__topbar {
    align-items: stretch;
  }

  .dbrpf__kicker {
    margin-bottom: 11px;
  }

  .dbrpf__topbar h2 {
    font-size: clamp(32px, 9.2vw, 40px);
    line-height: 1.09;
  }
}

@media (max-width: 480px) {
  .dbrpf__kicker {
    gap: 9px;
    font-size: 0.60rem;
    letter-spacing: 0.08em;
  }

  .dbrpf__kicker-line {
    width: 27px;
    flex-basis: 27px;
  }
}


/* =========================================================
   18. SCHRITT-FUNNEL / WIZARD
   Nur die aktive Formularseite ist sichtbar.
   Live-Preis rechts und Fortschrittsanzeige oben bleiben
   vollständig erhalten.
   ========================================================= */

.dbrpf__wizard-nav {
  display: none;
}

.dbrpf.is-wizard-ready .dbrpf__wizard-nav {
  display: grid;
  grid-template-columns: minmax(118px, 1fr) auto minmax(118px, 1fr);
  gap: 16px;
  align-items: center;

  margin-top: 0;
}

.dbrpf.is-wizard-ready .dbrpf__section:not([hidden]) {
  min-height: 420px;
  animation: dbrpfStepIn 0.34s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes dbrpfStepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dbrpf__wizard-button {
  cursor: pointer;

  min-height: 48px;
  padding: 11px 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border-radius: 10px;

  font: inherit;
  font-size: 0.80rem;
  line-height: 1;
  font-weight: 780;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}

.dbrpf__wizard-button svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dbrpf__wizard-button--next {
  justify-self: end;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      var(--dbrpf-primary-light),
      var(--dbrpf-primary) 68%,
      var(--dbrpf-primary-dark)
    );
  border: 1px solid var(--dbrpf-primary);

  box-shadow:
    0 9px 22px rgba(8, 92, 153, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.dbrpf__wizard-button--back {
  justify-self: start;

  color: var(--dbrpf-primary-deep);
  background: #ffffff;
  border: 1px solid rgba(8, 92, 153, 0.20);

  box-shadow: 0 7px 18px rgba(7, 52, 81, 0.055);
}

.dbrpf__wizard-button:hover:not(:disabled),
.dbrpf__wizard-button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
}

.dbrpf__wizard-button--next:hover:not(:disabled),
.dbrpf__wizard-button--next:focus-visible:not(:disabled) {
  box-shadow:
    0 13px 28px rgba(8, 92, 153, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.dbrpf__wizard-button--back:hover:not(:disabled),
.dbrpf__wizard-button--back:focus-visible:not(:disabled) {
  color: var(--dbrpf-primary);
  border-color: rgba(8, 92, 153, 0.34);
  box-shadow: 0 10px 22px rgba(7, 52, 81, 0.075);
}

.dbrpf__wizard-button:disabled {
  cursor: default;
  opacity: 0.34;
  transform: none;
  box-shadow: none;
}

.dbrpf__wizard-step {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;

  color: var(--dbrpf-muted);
  white-space: nowrap;
}

.dbrpf__wizard-step small {
  font-size: 0.65rem;
  font-weight: 680;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.dbrpf__wizard-step strong {
  color: var(--dbrpf-primary);
  font-size: 0.76rem;
  font-weight: 820;
}

@media (max-width: 900px) {
  .dbrpf.is-wizard-ready .dbrpf__section:not([hidden]) {
    min-height: 0;
  }

  .dbrpf.is-wizard-ready .dbrpf__wizard-nav {
    grid-template-columns: minmax(96px, 1fr) auto minmax(96px, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .dbrpf.is-wizard-ready .dbrpf__wizard-nav {
    grid-template-columns: 1fr auto 1fr;
    gap: 7px;
  }

  .dbrpf__wizard-button {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.73rem;
  }

  .dbrpf__wizard-step {
    display: grid;
    gap: 1px;
    text-align: center;
  }

  .dbrpf__wizard-step small {
    font-size: 0.54rem;
  }

  .dbrpf__wizard-step strong {
    font-size: 0.68rem;
  }
}

/* =========================================================
   KUNDENWUNSCH – KÄSTCHEN KLARER ERKENNBAR
   Dezent blaue Umrandung für die einzelnen Formularbereiche.
   Keine Änderung an Abständen, Größen oder Funktion.
   ========================================================= */

.dbrpf__section,
.dbrpf__step,
.dbrpf__panel,
.dbrpf__form-section,
.dbrpf__card {
  border-color: rgba(8, 92, 153, 0.28) !important;
  box-shadow:
    0 0 0 1px rgba(8, 92, 153, 0.035),
    0 10px 26px rgba(7, 52, 81, 0.055) !important;
}


/* Mobil etwas klarer sichtbar, weiterhin dezent */
@media (max-width: 720px) {
  .dbrpf__section,
  .dbrpf__step,
  .dbrpf__panel,
  .dbrpf__form-section,
  .dbrpf__card {
    border-color: rgba(8, 92, 153, 0.34) !important;
  }
}



/* =========================================================
   19. V10 – KOMPAKTER SCHRITT-FUNNEL NACH KUNDENVORLAGE

   - Kopf ohne große H2
   - Kicker: „Preisrechner: Live-Kalkulation“
   - normaler Erklärungstext darunter
   - Desktop deutlich kompakter
   - aktive Schrittkarte ohne künstliche Mindesthöhe
   - Live-Preis rechts kompakter, aber weiterhin vollständig
   - Scroll Anchoring im Wizard deaktiviert
   ========================================================= */

.dbrpf__workspace,
.dbrpf__fields-column,
.dbrpf__section,
.dbrpf__wizard-nav {
  overflow-anchor: none;
}

/* -------------------------
   KOMPAKTER KOPF
   ------------------------- */

.dbrpf__topbar {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.78fr);
  gap: clamp(30px, 3.4vw, 50px);
  align-items: center;

  padding:
    22px
    clamp(28px, 3vw, 40px)
    20px;
}

.dbrpf__topbar-copy {
  align-self: center;
}

.dbrpf__kicker {
  margin: 0 0 10px;

  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0.085em;
}

.dbrpf__kicker-line {
  width: 31px;
  flex-basis: 31px;
}

.dbrpf__topbar-copy > p {
  max-width: 650px;
  margin: 0;

  color: var(--dbrpf-muted);

  font-size: 0.91rem;
  line-height: 1.46;
  font-weight: 450;
}

/* Alte H2-Regel bleibt aus Kompatibilitätsgründen vorhanden,
   greift im V10-Markup aber nicht mehr. */
.dbrpf__topbar h2 {
  display: none !important;
}

.dbrpf__progress-meta {
  margin-bottom: 8px;
}

.dbrpf__progress-track {
  height: 10px;
}

/* -------------------------
   DESKTOP-WORKSPACE
   ------------------------- */

@media (min-width: 901px) {
  .dbrpf__workspace {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 360px);
    gap: clamp(24px, 2.5vw, 34px);

    padding:
      24px
      clamp(28px, 3vw, 40px)
      30px;
  }

  .dbrpf__fields-column {
    gap: 14px;
  }

  /* Kein leerer 420px-Kasten mehr.
     Die aktive Seite wird nur so hoch wie ihr Inhalt. */
  .dbrpf.is-wizard-ready .dbrpf__section:not([hidden]) {
    min-height: 0 !important;
    height: auto;

    padding: 21px 23px 22px;

    border-radius: 15px;

    animation: dbrpfStepCompactIn 0.18s ease both;
  }

  @keyframes dbrpfStepCompactIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .dbrpf__section-head {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 13px;

    margin-bottom: 16px;
  }

  .dbrpf__section-number {
    width: 40px;
    height: 40px;

    border-radius: 10px;
  }

  .dbrpf__eyebrow {
    margin-bottom: 3px;

    font-size: 0.63rem;
  }

  .dbrpf__section-head h3 {
    margin-bottom: 3px;

    font-size: clamp(18px, 1.25vw, 21px);
    line-height: 1.14;
  }

  .dbrpf__section-head p {
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .dbrpf__error,
  .dbrpf__form-error {
    margin-bottom: 13px;
    padding: 9px 11px;
  }

  .dbrpf__area-panel {
    gap: 7px 16px;
  }

  .dbrpf__input {
    min-height: 46px;
  }

  .dbrpf__textarea {
    min-height: 82px;
  }

  .dbrpf__choices {
    gap: 9px;
  }

  .dbrpf-choice {
    min-height: 78px;
    padding: 12px 11px 11px;

    row-gap: 7px;
  }

  .dbrpf-choice__copy strong {
    margin-bottom: 3px;
  }

  .dbrpf-choice__copy small {
    font-size: 0.67rem;
    line-height: 1.34;
  }

  .dbrpf__roof-grid {
    gap: 10px;
  }

  .dbrpf-access {
    padding: 13px;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px 10px;
  }

  .dbrpf-access__icon {
    width: 36px;
    height: 36px;
  }

  .dbrpf__fields {
    gap: 11px 12px;
  }

  .dbrpf__field label {
    margin-bottom: 5px;
  }

  .dbrpf__privacy {
    margin-top: 12px;
  }

  .dbrpf__submit-row {
    margin-top: 14px;
  }

  .dbrpf__button {
    min-height: 45px;
    padding: 10px 18px;
  }

  /* Schrittnavigation enger an die aktive Karte binden. */
  .dbrpf.is-wizard-ready .dbrpf__wizard-nav {
    gap: 12px;
  }

  .dbrpf__wizard-button {
    min-height: 44px;
    padding: 10px 16px;
  }

  /* -----------------------
     LIVE-PREIS KOMPAKTER
     ----------------------- */

  .dbrpf__price-card {
    border-radius: 16px;

    box-shadow:
      0 17px 38px rgba(36, 91, 66, 0.105),
      0 5px 14px rgba(7, 52, 81, 0.045);
  }

  .dbrpf__price-card-head {
    padding: 19px 19px 11px;
  }

  .dbrpf__price-main {
    padding: 1px 19px 16px;
  }

  .dbrpf__price-main > strong {
    font-size: clamp(34px, 2.65vw, 44px);
  }

  .dbrpf__price-main > small {
    margin-top: 5px;
  }

  .dbrpf__selection-summary {
    margin: 0 15px;
    padding: 12px;
    gap: 7px;
  }

  .dbrpf__selection-summary span {
    margin-bottom: 2px;
  }

  .dbrpf__selection-summary strong {
    font-size: 0.67rem;
  }

  .dbrpf__price-divider {
    margin: 14px 19px 11px;
  }

  .dbrpf__price-card .dbrpf__breakdown {
    padding: 0 19px;
  }

  .dbrpf__breakdown {
    gap: 7px;
  }

  .dbrpf__price-note {
    margin: 14px 15px;
    padding: 10px 11px;

    font-size: 0.63rem;
    line-height: 1.38;
  }

  .dbrpf__price-jump {
    min-height: 41px;
    margin: 0 15px 15px;
    padding: 9px 12px;
  }
}

/* -------------------------
   TABLET / MOBIL
   Die bestehende mobile Darstellung bleibt bewusst erhalten;
   nur der neue kompakte Kopf wird angepasst.
   ------------------------- */

@media (max-width: 900px) {
  .dbrpf__topbar {
    grid-template-columns: 1fr;
    gap: 17px;

    padding: 20px 20px 19px;
  }

  .dbrpf__kicker {
    margin-bottom: 9px;

    font-size: 0.66rem;
    letter-spacing: 0.075em;
  }

  .dbrpf__topbar-copy > p {
    font-size: 0.84rem;
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  .dbrpf__topbar {
    padding: 18px 15px 17px;
  }

  .dbrpf__kicker {
    margin-bottom: 8px;
    gap: 9px;

    font-size: 0.59rem;
    letter-spacing: 0.055em;
  }

  .dbrpf__kicker-line {
    width: 27px;
    flex-basis: 27px;
  }

  .dbrpf__topbar-copy > p {
    font-size: 0.80rem;
    line-height: 1.44;
  }
}


/* =========================================================
   20. V11 – H2 IM KICKER-DESIGN

   Kundenlogik für die Startseite:
   - „Preisrechner: Live-Kalkulation“ ist semantisch eine H2.
   - Optisch bleibt sie ein Kicker mit kurzer blauer Linie.
   - Deutlich größer als der bisherige Mini-Kicker,
     aber bewusst wesentlich kleiner als eine klassische H2.
   - Die Regel ist absichtlich spezifisch + !important,
     damit ein globaler H2-Fix der Website diese Sonderform
     nicht wieder auf 35–47 px vergrößert.
   ========================================================= */

.dbrpf__topbar h2.dbrpf__kicker {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;

  max-width: 100%;

  margin: 0 0 11px !important;

  color: var(--dbrpf-primary) !important;

  font-size: clamp(19px, 1.35vw, 24px) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: -0.012em !important;
  text-transform: uppercase;

  white-space: normal;
}

.dbrpf__topbar h2.dbrpf__kicker .dbrpf__kicker-line {
  width: 32px;
  height: 2px;
  flex: 0 0 32px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      var(--dbrpf-primary),
      var(--dbrpf-accent)
    );
}

.dbrpf__topbar h2.dbrpf__kicker > span:last-child {
  min-width: 0;
}

.dbrpf__topbar-copy > p {
  margin-top: 0;
}

@media (max-width: 900px) {
  .dbrpf__topbar h2.dbrpf__kicker {
    margin-bottom: 9px !important;

    font-size: clamp(18px, 3vw, 21px) !important;
    line-height: 1.17 !important;
    letter-spacing: -0.008em !important;
  }
}

@media (max-width: 480px) {
  .dbrpf__topbar h2.dbrpf__kicker {
    gap: 9px;

    margin-bottom: 8px !important;

    font-size: 18px !important;
    line-height: 1.18 !important;
  }

  .dbrpf__topbar h2.dbrpf__kicker .dbrpf__kicker-line {
    width: 27px;
    flex-basis: 27px;
  }
}


/* =========================================================
   21. V12 – KUNDENANPASSUNG 18.08.2026

   Global:
   - Erklärungstext im Rechnerkopf entfernt
   - Flächenhinweis „Typisch für Einfamilienhaus: 80–200 m²“

   Desktop:
   - Live-Preisdetails standardmäßig eingeklappt
   - grüner Ausklappbutton statt Kontakt-Button
   - weniger vertikaler Freiraum durch kompaktere rechte Karte

   Mobil:
   - bestehender Mobile-Livepreis und dessen Bedienung
     bleiben unverändert.
   ========================================================= */

.dbrpf__topbar h2.dbrpf__kicker {
  margin-bottom: 0 !important;
}

.dbrpf__area-field-wrap {
  min-width: 0;
}

.dbrpf__area-typical {
  margin: 7px 0 0;

  color: var(--dbrpf-muted);

  font-size: 0.68rem;
  line-height: 1.35;
  font-weight: 520;
}

@media (min-width: 901px) {

  /*
   * Die linke und rechte Seite sollen im eingeklappten Zustand
   * optisch näher beieinander liegen. Es wird keine feste Höhe
   * gesetzt; beide Spalten richten sich weiter nach ihrem Inhalt.
   */
  .dbrpf__workspace {
    align-items: start;
  }

  .dbrpf__price-card {
    overflow: hidden;
  }

  .dbrpf__price-details-toggle {
    cursor: pointer;

    width: calc(100% - 30px);
    min-height: 41px;

    margin: 14px 15px 15px;
    padding: 9px 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    color: #ffffff;

    background:
      linear-gradient(
        135deg,
        #4d9c74,
        var(--dbrpf-green) 60%,
        var(--dbrpf-green-dark)
      );

    border: 0;
    border-radius: 10px;

    font: inherit;
    font-size: 0.75rem;
    line-height: 1;
    font-weight: 760;
    text-align: left;

    box-shadow:
      0 9px 20px rgba(62, 143, 104, 0.18);

    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease;
  }

  .dbrpf__price-details-toggle svg {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 0.2s ease;
  }

  .dbrpf__price-details-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .dbrpf__price-details-toggle:hover,
  .dbrpf__price-details-toggle:focus-visible {
    transform: translateY(-1px);

    box-shadow:
      0 12px 25px rgba(62, 143, 104, 0.24);

    outline: none;
  }

  .dbrpf__price-details[hidden] {
    display: none !important;
  }

  .dbrpf__price-details:not([hidden]) {
    display: block;
  }

  /*
   * Im geöffneten Zustand beginnt der Detailbereich direkt
   * unter dem grünen Button.
   */
  .dbrpf__price-details .dbrpf__price-divider {
    margin-top: 0;
  }

  /*
   * Der bisherige Kontakt-Button ist aus dem Markup entfernt.
   * Diese Sicherheitsregel verhindert Alt-Caches.
   */
  .dbrpf__price-jump {
    display: none !important;
  }
}

/*
 * Mobile bleibt in Aufbau und Livepreis-Interaktion unverändert.
 * Der Desktop-Detailschalter befindet sich ohnehin in der dort
 * ausgeblendeten Desktop-Preisspalte.
 */
@media (max-width: 900px) {
  .dbrpf__area-typical {
    margin-top: 6px;

    font-size: 0.66rem;
  }
}
