/* HandwerkEasy — Calculator CSS
   Alle he-* Klassen die calc-ui.js schreibt.
   Kein service-spezifischer Code.
   ─────────────────────────────────────── */

/* ─── Layout ─────────────────────────────────────────────────────────────── */

.he-rechner {
  width: 100%;
  padding: 32px 0 0;
}

.he-layout {
  display: grid;
  /* S15 v4: Preisbox 460 statt 550 — mehr Platz für Rechner-Spalte auf Desktop */
  /* S16: minmax(0, 1fr) statt 1fr — verhindert dass nowrap-Inhalt die Spalte über Viewport drückt. */
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 24px;
  align-items: start;
  max-width: 1900px;
  margin: 0 auto;
}

.he-spalte-links {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.he-spalte-rechts {
  /* normaler Flow auf Phone+Tablet, sticky auf Desktop (siehe S15 v3-Block weiter unten) */
}

/* S15 v4: Single-column-Breakpoint von 800 → 1024 px.
   Tablet stackt jetzt Rechner und Preisbox untereinander (volle Breite). */
@media (max-width: 1024px) {
  .he-layout {
    grid-template-columns: 1fr;
  }
  .he-spalte-rechts {
    position: static;
  }
  /* S15 v5: Hero direkt in Schrittleiste übergehen — keine weiße Lücke. */
  .he-service-main {
    padding-top: 0;
  }
  .he-rechner {
    padding-top: 0;
  }
  .he-nav-progress {
    margin-top: 0;
  }
}

/* ─── S15 v3: Sticky Preisbox (Desktop ≥ 1025 px) ────────────────────────────
 * Die rechte Spalte (Preisbox) klebt am Viewport-Top — aber nur soweit der
 * .he-layout-Grid (Parent) im Viewport ist. Sobald der Rechner-Container
 * durchgescrollt ist, scrollt die Preisbox automatisch mit raus.
 *
 * Top-Werte koordinieren mit Auto-hide-Header + Schrittleiste:
 *   – Header sichtbar: top:130 = 72 (Header) + 50 (Schrittleiste) + 8 Abstand
 *   – Header versteckt (body.header-hidden): top:58 = 50 (Schrittleiste) + 8
 * Gleiche 280ms-Transition wie .he-nav-progress — alles bewegt sich
 * synchron, kein Flackern.
 *
 * align-self:start verhindert, dass die Spalte über die volle Grid-Höhe
 * stretcht — Voraussetzung für sauberes Sticky-Verhalten.
 * ─────────────────────────────────────────────────────────────────────────── */
@media (min-width: 1025px) {
  .he-spalte-rechts {
    position: sticky;
    top: 130px;
    align-self: start;
    transition: top 280ms cubic-bezier(.4, 0, .2, 1);
  }
  body.header-hidden .he-spalte-rechts {
    top: 58px;
  }
}

/* ─── Section ─────────────────────────────────────────────────────────────── */

.he-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.he-section-sub {
  font-size: 13px;
  color: var(--text-grau);
  margin-bottom: 14px;
  line-height: 1.5;
}

.he-divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── Sub-Stepper ────────────────────────────────────────────────────────── */
/* Verschachtelte Stepper ("davon Sprossen" etc.) — erscheinen unter Haupt-
   Stepper wenn dieser > 0 oder ein gekoppelter Toggle aktiv ist. Durch
   linken Rahmen und Einrückung visuell als Abhängigkeit erkennbar.
   Collapsible mit 150ms Slide-down + Fade beim Aufklappen. */

.he-sub-stepper-section {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--border);
  /* Collapsed default */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.15s cubic-bezier(.4,0,.2,1),
    opacity   0.15s cubic-bezier(.4,0,.2,1),
    margin    0.15s cubic-bezier(.4,0,.2,1),
    padding   0.15s cubic-bezier(.4,0,.2,1);
}

.he-sub-stepper-section.is-open {
  max-height: 240px;
  opacity: 1;
  margin-top: 10px;
  margin-bottom: 6px;
  padding: 10px 0 10px 14px;
}

.he-sub-stepper-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-grau);
  margin-bottom: 2px;
}

.he-sub-stepper-section .he-section-sub {
  font-size: 12px;
  margin-bottom: 10px;
}

.he-sub-stepper-section .he-stepper-micro {
  font-size: 11px;
}

/* Divider vor/nach/zwischen Sub-Steppern ausblenden — Subs gehören zum Haupt */
.he-divider:has(+ .he-sub-stepper-section) {
  display: none;
}
.he-sub-stepper-section + .he-divider {
  display: none;
}
/* Divider zwischen Toggle und folgendem Sub-Stepper ebenfalls ausblenden,
   weil Sub-Stepper visuell zum Toggle gehört */
.he-toggle-section + .he-divider {
  display: none;
}
/* Zwei direkt aufeinanderfolgende Sub-Stepper: oberer Margin kleiner */
.he-sub-stepper-section.is-open + .he-sub-stepper-section.is-open {
  margin-top: 0;
  padding-top: 6px;
}

/* ─── Toggle ─────────────────────────────────────────────────────────────── */
/* Ein/Aus-Schalter. Steuert per showWhenToggle die Sichtbarkeit von
   Sub-Steppern. Preishinweis erscheint in microcopy darunter. */

.he-toggle-section {
  margin: 6px 0;
}

.he-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--ease), background var(--ease);
}

.he-toggle-section:has(.he-toggle-switch.on) .he-toggle-row {
  border-color: var(--gruen);
  background: var(--gruen-light);
}

.he-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.he-toggle-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.he-toggle-sub {
  font-size: 12px;
  color: var(--text-grau);
  line-height: 1.4;
}

.he-toggle-switch {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background var(--ease);
  outline: none;
}

.he-toggle-switch:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 83, 25, 0.25);
}

.he-toggle-switch.on {
  background: var(--gruen);
}

.he-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: left var(--ease);
}

.he-toggle-switch.on .he-toggle-knob {
  left: 23px;
}

.he-toggle-micro {
  font-size: 12px;
  color: var(--text-grau);
  margin-top: 8px;
  padding-left: 2px;
  line-height: 1.4;
}

/* ─── Stepper ─────────────────────────────────────────────────────────────── */

.he-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.he-stepper {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--ease);
}

.he-stepper:focus-within {
  border-color: var(--gruen);
}

.he-stepper-btn {
  width: 52px;
  height: 56px;
  background: var(--gruen-light);
  border: none;
  font-size: 22px;
  font-weight: 700;
  color: var(--gruen);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
  user-select: none;
  flex-shrink: 0;
}

.he-stepper-btn:hover {
  background: #C8E6D0;
}

.he-stepper-input {
  width: 88px;
  height: 56px;
  border: none;
  border-left: 2px solid var(--border);
  border-right: 2px solid var(--border);
  text-align: center;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  outline: none;
  -moz-appearance: textfield;
}

.he-stepper-input::-webkit-inner-spin-button,
.he-stepper-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.he-stepper-unit {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-grau);
}

.he-stepper-micro {
  font-size: 12px;
  color: var(--text-grau);
  margin-top: 8px;
}

/* ─── Stepper-Group ───────────────────────────────────────────────────────── */
/* Mehrere Stepper unter einem gemeinsamen Section-Title in einer kompakten
   vertikalen Liste. Jedes Item: Icon links 40×40, Label/Sub mittig,
   Stepper-Buttons 44×44 rechts. Halbiert die mobile Höhe gegenüber
   einzelnen renderStepper-Sektionen.
   Empfohlen für Multi-Größen-Wahl (Fenster, Treppenhaus pro Stockwerk,
   Hecken-Meter pro Seite, etc.). */

.he-stepper-group {
  /* Section-Title + Subtitle erben von .he-section-title / .he-section-sub */
}

/* Mobile-First: kompakte Liste · Icon links, Label/Sub mittig, Stepper rechts.
   Über CSS-Grid platziert, damit Desktop-Switch via display:flex+order möglich
   ist (siehe @media-Block weiter unten). */

.he-sg-list {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.he-sg-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  grid-template-rows: auto auto auto;     /* Label · Größe · Beispiele */
  column-gap: 12px;
  align-items: stretch;     /* Icon stretcht über volle Item-Höhe */
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}

/* Mobile: letztes Listen-Item hat keinen Border-Bottom (Listen-Border umrandet schon).
   Desktop muss das wieder einschalten — siehe @media-Block weiter unten. */
.he-sg-item:last-child {
  border-bottom: none;
}

/* Highlight: nur Stern als orange Akzent — keine grüne Umrandung,
   damit nicht mit "selected"-State verwechselt wird. Aktuell-Wert egal. */
.he-sg-item--highlight .he-sg-label::after {
  content: ' ★';
  color: #F59E0B;
}

.he-sg-icon {
  grid-column: 1;
  grid-row: 1 / 4;            /* spannt alle 3 Zeilen: Label/Größe/Beispiele */
  align-self: stretch;        /* füllt Item-Höhe (Label oben bis letzte Sub-Zeile unten) */
  width: 44px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.he-sg-icon svg {
  display: block;
  width: 100%;
  height: 100%;               /* SVG nutzt preserveAspectRatio xMidYMax meet → bottom-aligned */
}

/* Vertikale Stepper-Zentrierung in der Grid-Cell, da align-items:stretch nun gilt */
.he-sg-stepper {
  grid-column: 3;
  grid-row: 1 / 4;            /* spannt alle 3 Zeilen */
  align-self: center;
}
.he-sg-label,
.he-sg-size,
.he-sg-sub {
  align-self: start;
}
.he-sg-label { padding-top: 1px; }

.he-sg-label {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  min-width: 0;
}

.he-sg-size {
  grid-column: 2;
  grid-row: 2;
  font-size: 11px;
  color: var(--text-grau);
  line-height: 1.3;
  margin-top: 1px;
  min-width: 0;
}

.he-sg-sub {
  grid-column: 2;
  grid-row: 3;
  font-size: 11px;
  color: var(--text-grau);
  line-height: 1.3;
  margin-top: 0;
  min-width: 0;
}

.he-sg-stepper {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  flex-shrink: 0;
}

.he-sg-btn {
  width: 44px;
  height: 44px;
  background: var(--gruen-light);
  border: 1.5px solid var(--border);
  font-size: 18px;
  font-weight: 700;
  color: var(--gruen);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  flex-shrink: 0;
  transition: background var(--ease);
}

.he-sg-btn:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
}

.he-sg-btn:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-left: none;
}

.he-sg-btn:hover {
  background: #C8E6D0;
}

.he-sg-input {
  width: 44px;
  height: 44px;
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  border-left: none;
  border-right: none;
  text-align: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  outline: none;
  -moz-appearance: textfield;
  background: var(--white);
}

.he-sg-input::-webkit-inner-spin-button,
.he-sg-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.he-sg-input:focus {
  outline: 2px solid var(--gruen);
  outline-offset: -2px;
}

/* Desktop ≥ 768 px: Karten-Stack pro Item.
   Reihenfolge in der Karte: Label → Maße → Icon (groß) → Stepper.
   Liste wird zu Grid mit auto-fit (Wrap zu 2-3 Reihen wenn nötig). */
@media (min-width: 768px) {
  .he-sg-list {
    display: grid;
    /* 5 Karten in einer Reihe — minmax(140) damit auch bei ~770 px Calc-Breite alle 5 reinpassen */
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    border: none;
    background: transparent;
    overflow: visible;
    align-items: stretch;
  }

  .he-sg-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 18px 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    overflow: visible;
    box-sizing: border-box;
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
  }

  /* Override Mobile-Regel: jede Desktop-Karte braucht Border-Bottom */
  .he-sg-item:last-child {
    border-bottom: 2px solid var(--border);
  }

  .he-sg-item:hover {
    border-color: var(--gruen);
    background: var(--gruen-light);
  }

  /* Highlight auf Desktop: dezenter Top-Akzent in Orange + Stern via ::after.
     Border bleibt neutral, damit es nicht wie "selected" wirkt. */
  .he-sg-item--highlight {
    border-top: 3px solid #F59E0B;
    padding-top: 16px;
  }

  /* Reihenfolge: Label → Größe → Beispiele → Icon → Stepper.
     order steuert Position; Grid-Properties aus Mobile werden im Flex ignoriert.
     align-self auf center → überschreibt Mobile-`align-self: start`. */
  /* Fixe Mindesthöhen pro Text-Element → alle Karten identisch hoch,
     Icon-Top + Stepper-Top auf gleicher absoluter Position */
  .he-sg-label {
    order: 1;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    min-height: 44px;          /* genug für 2 Zeilen bei 18px */
    align-self: stretch;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .he-sg-size {
    order: 2;
    font-size: 12px;
    line-height: 1.3;
    min-height: 16px;          /* 1 Zeile */
    margin-top: 0;
    align-self: center;
    color: var(--text-grau);
  }
  .he-sg-sub {
    order: 3;
    font-size: 12px;
    line-height: 1.3;
    min-height: 32px;          /* 2 Zeilen — kompakter (war 48 für 3 Zeilen) */
    margin-top: 0;
    align-self: stretch;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  .he-sg-icon {
    order: 4;
    width: 100%;
    max-width: 160px;
    aspect-ratio: 130 / 160;
    height: auto;
    margin-top: 10px;
    align-self: center;
  }
  .he-sg-stepper {
    order: 5;
    margin-top: 4px;
    align-self: center;
    width: 100%;
    max-width: 160px;
  }
  .he-sg-btn,
  .he-sg-input {
    flex: 1;
    width: auto;               /* override mobile fixed width */
    min-width: 40px;
    height: 44px;
    font-size: 18px;
  }
}

/* ─── Karten-Grid ─────────────────────────────────────────────────────────── */

.he-karten-grid {
  display: grid;
  gap: 10px;
}

.he-karten-2 { grid-template-columns: repeat(2, 1fr); }
.he-karten-3 { grid-template-columns: repeat(3, 1fr); }
.he-karten-4 { grid-template-columns: repeat(4, 1fr); }
.he-karten-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 640px) {
  .he-karten-3,
  .he-karten-4,
  .he-karten-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .he-karten-2,
  .he-karten-3,
  .he-karten-4,
  .he-karten-5 { grid-template-columns: 1fr; }
}

/* ─── Einzelkarte ─────────────────────────────────────────────────────────── */

.he-karte {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
  background: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 160px;
  user-select: none;
}

.he-karte:hover {
  border-color: var(--gruen);
  background: var(--gruen-light);
}

.he-karte.selected {
  border-color: var(--gruen);
  background: var(--gruen-light);
  box-shadow: 0 0 0 1px var(--gruen);
}

.he-karte.selected::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--gruen);
}

.he-karte-label {
  display: block;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  line-height: 1.25;
}

.he-karte-sub {
  display: block;
  font-size: 11px;
  color: var(--text-grau);
  line-height: 1.4;
}

/* Optionaler zweiter Untertext (z.B. „Beliebt bei Privatkunden") — eigene Zeile */
.he-karte-note {
  display: block;
  font-size: 11px;
  color: var(--text-grau);
  line-height: 1.4;
  margin-top: 0;          /* Abstand B (Sub → Note) reduziert (war 2px) */
}

.he-karte-badge {
  display: inline-block;
  background: var(--gruen);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  border-radius: 20px;
  padding: 4px 12px;
  margin-top: 6px;        /* Abstand C (Note → Badge) gleich wie Abstand D (Badge → Spar-Betrag) */
  align-self: center;
}

.he-karte-badge--empfohlen {
  background: #F59E0B;
  /* font-size, padding, height bleiben — nur Farbe anders */
}

/* Karten mit Empfehlungs-Badge bekommen einen orangenen Top-Akzent —
   Border bleibt neutral, sonst Verwechslung mit selected-State. */
.he-karte--recommended {
  border-top: 3px solid #F59E0B;
  padding-top: 12px;
}

/* Stern hinter dem Label — analog zur Stepper-Group-Highlight-Karte */
.he-karte--recommended .he-karte-label::after {
  content: ' ★';
  color: #F59E0B;
}

/* ─── Extras Toggle ───────────────────────────────────────────────────────── */

.he-extras-wrapper {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.he-extras-toggle {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-grau);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  transition: color var(--ease);
  cursor: pointer;
}

.he-extras-toggle:hover {
  color: var(--gruen);
}

.he-extras-sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gruen-light);
  color: var(--gruen);
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.he-extras-label {
  flex: 1;
  text-align: left;
}



.he-extras-chevron {
  font-size: 11px;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.he-extras-chevron.open {
  transform: rotate(180deg);
}

.he-extras-body {
  margin: 0;
  padding: 0 14px 14px;
  scroll-margin-top: 16px;
}

.he-extras-kat-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-grau);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 16px 0 8px;
}

/* ─── Extra Item ──────────────────────────────────────────────────────────── */

.he-extra {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
  transition: border-color var(--ease);
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

.he-extra:last-child { margin-bottom: 0; }

.he-extra.selected {
  border-color: var(--gruen);
}

.he-extra-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  min-height: 64px;
  transition: background var(--ease);
  gap: 12px;
}

.he-extra-header:hover {
  background: var(--gruen-light);
}

.he-extra.selected .he-extra-header {
  background: var(--gruen-light);
}

.he-extra-info {
  flex: 1;
  min-width: 0;
}

.he-extra-name {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  line-height: 1.3;
}

.he-extra-desc {
  display: block;
  font-size: 12px;
  color: var(--text-grau);
  margin-top: 2px;
  line-height: 1.4;
}

.he-extra-preis {
  font-weight: 700;
  font-size: 13px;
  color: var(--gruen);
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
  min-width: 80px;
  line-height: 1.4;
  transition: color var(--ease);
}

/* Toggle switch */
.he-toggle {
  width: 42px;
  height: 22px;
  border-radius: 11px;
  background: var(--border);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
  cursor: pointer;
}

.he-toggle::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  position: absolute;
  top: 3px;
  left: 3px;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.he-extra.selected .he-toggle {
  background: var(--gruen);
}

.he-extra.selected .he-toggle::after {
  left: 23px;
}

/* Extra sub-area */
.he-extra-sub {
  display: none;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  background: #FAFCFA;
}

.he-extra.selected .he-extra-sub {
  display: block;
}

.he-sub-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-grau);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* Qty input */
.he-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.he-qty-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-grau);
}

/* Mini-Stepper für Qty-Inputs in Extras (− [n] +) */
.he-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.he-qty-btn {
  width: 32px;
  height: 32px;
  background: var(--gruen-light);
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--gruen);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.he-qty-btn:hover {
  background: #C8E6D0;
}

.he-qty-input {
  width: 44px;
  height: 32px;
  padding: 0;
  border: none;
  border-left: 2px solid var(--border);
  border-right: 2px solid var(--border);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  outline: none;
  -moz-appearance: textfield;
  text-align: center;
  background: var(--white);
}

.he-qty-input:focus {
  border-color: var(--gruen);
}

/* Placeholder kompakt — schmales Input (44 px) erlaubt nur kurzen Text */
.he-qty-input::placeholder {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.65;
}

.he-qty-input::-webkit-inner-spin-button,
.he-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.he-qty-unit {
  font-size: 13px;
  color: var(--text-grau);
}

/* Freq options */
.he-freq-block {
  margin-top: 4px;
}

.he-freq-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.he-freq-btn {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-grau);
  background: var(--white);
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}

.he-freq-btn:hover {
  border-color: var(--gruen);
  color: var(--gruen);
}

.he-freq-btn.selected {
  border-color: var(--gruen);
  background: var(--gruen-light);
  color: var(--gruen);
}

.he-freq-btn.pending {
  border-color: #F59E0B;
  background: #FFFBEB;
  color: #92400E;
}

/* ─── Preisbox ────────────────────────────────────────────────────────────── */

.he-preisbox {
  background: var(--gruen-dark);
  border-radius: var(--radius);
  padding: 32px 28px;
  color: var(--white);
}

.he-pb-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.he-pb-summe {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2px;
  min-height: 48px;
  transition: font-size var(--ease);
}

.he-pb-summe.placeholder {
  font-size: 14px;
  opacity: 0.4;
  font-style: italic;
  font-weight: 400;
  padding-top: 12px;
  line-height: 1.5;
}

.he-pb-mwst {
  font-size: 11px;
  opacity: 0.5;
  margin-bottom: 2px;
}

.he-pb-sofort {
  font-size: 12px;
  opacity: 0.65;
  margin-bottom: 18px;
}

/* Breakdown */
.he-pb-breakdown {
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 14px 14px 12px;
  margin-bottom: 20px;
  font-size: 13px;
}

.he-pb-bd-titel {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.he-pb-zeile {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 5px;
  opacity: 0.82;
  font-size: 13px;
}

.he-pb-zeile:last-child { margin-bottom: 0; }
.he-pb-zeile.info    { opacity: 0.55; font-size: 12px; }
.he-pb-zeile.subtle  { opacity: 0.55; font-size: 11.5px; }
.he-pb-zeile.rech-strong { font-weight: 700; opacity: 1; }
.he-pb-zeile.rabatt  { color: #86EFAC; opacity: 1; font-weight: 700; }
.he-pb-zeile.gesamt  {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 8px;
  margin-top: 6px;
  font-weight: 800;
  opacity: 1;
  font-size: 14px;
}

.he-pb-sep {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 8px 0 10px;
}

.he-pb-bd-extras-titel {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.45;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

/* Extra lines in breakdown */
.he-pb-extra {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 7px;
}

.he-pb-extra-info {
  flex: 1;
  min-width: 0;
}

.he-pb-extra-name {
  display: block;
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.35;
}

.he-pb-extra-sub {
  display: block;
  font-size: 10px;
  opacity: 0.4;
  margin-top: 2px;
  line-height: 1.3;
}

.he-pb-extra-preis {
  font-size: 13px;
  opacity: 0.85;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
}

.he-pb-extra-preis.pending {
  color: #F59E0B;
  font-size: 11px;
  opacity: 1;
}

/* Included list */
.he-pb-inkl {
  margin-bottom: 22px;
  font-size: 13px;
}

.he-pb-inkl-titel {
  font-size: 11px;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 10px;
}

.he-inkl-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  opacity: 0.85;
  line-height: 1.4;
}

.he-inkl-icon {
  color: #86EFAC;
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 700;
}

/* CTA */
.he-btn-cta {
  width: 100%;
  background: var(--white);
  color: var(--gruen);
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 800;
  transition: background var(--ease);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.he-btn-cta:hover {
  background: var(--gruen-light);
}

/* Disabled-State: 0 Fenster gewählt → Button visuell deaktiviert.
   Marken-Grau statt Mid-Grün, kein Hover, cursor not-allowed. */
.he-btn-cta:disabled,
.he-btn-cta[disabled] {
  background: var(--border);
  color: var(--text-grau);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.he-btn-cta:disabled:hover,
.he-btn-cta[disabled]:hover {
  background: var(--border);
  transform: none;
}

/* Trust */
.he-trust {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.he-trust-item {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}

.he-trust-icon {
  color: #86EFAC;
  font-weight: 700;
}

/* ─── Mobile Anpassungen ──────────────────────────────────────────────────── */

@media (max-width: 640px) {

  .he-rechner {
    padding: 20px 16px 40px;
  }

  .he-stepper-input {
    width: 72px;
    font-size: 20px;
  }

  .he-pb-summe {
    font-size: 32px;
  }

  .he-pb-summe.placeholder {
    font-size: 13px;
  }

  .he-preisbox {
    padding: 24px 20px;
  }

  .he-section-title {
    font-size: 16px;
  }

  /* Mobile: Preisbox bleibt im normalen Flow nach den Inputs.
     Eine kompakte Sticky-Bar unten übernimmt die Sichtbarkeit (siehe .he-mobile-sticky). */
}

@media (min-width: 641px) and (max-width: 800px) {
  .he-pb-inkl { display: none; }
}


/* ─── Mobile Sticky Bar (Festpreis + CTA) ─────────────────────────────────── */
/* Fest unten am Bildschirm, sichtbar wenn ein Preis berechnet wurde. */

.he-mobile-sticky {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--gruen-dark);
  color: var(--white);
  padding: 14px clamp(10px, 4vw, 16px) calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 28px rgba(0, 46, 14, 0.28);
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 14px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.he-mobile-sticky--visible {
  display: flex;
}

.he-mobile-sticky-preis {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
  min-width: 0;
}

.he-mobile-sticky-preis-label {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  color: #86EFAC;
}

.he-mobile-sticky-preis-summe {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.he-mobile-sticky-cta--pending {
  background: rgba(255, 255, 255, 0.30) !important;
  color: rgba(255, 255, 255, 0.70) !important;
  cursor: not-allowed;
  box-shadow: none !important;
}
.he-mobile-sticky-cta--pending:hover,
.he-mobile-sticky-cta--pending:active { transform: none !important; box-shadow: none !important; }

.he-mobile-sticky-cart {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 120ms, transform 120ms, opacity 120ms;
}
.he-mobile-sticky-cart:hover:not(:disabled) { background: rgba(255, 255, 255, 0.20); transform: translateY(-1px); }
.he-mobile-sticky-cart:active:not(:disabled) { transform: scale(0.95); }
.he-mobile-sticky-cart:disabled { opacity: 0.4; cursor: not-allowed; }
.he-mobile-sticky-cart.is-added { background: var(--white); color: var(--gruen); }

.he-mobile-sticky-cta {
  background: var(--white);
  color: var(--gruen);
  border: none;
  border-radius: 999px;
  padding: 13px clamp(14px, 3.5vw, 20px);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.he-mobile-sticky-cta:hover,
.he-mobile-sticky-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.18);
  outline: none;
}

.he-mobile-sticky-cta:active {
  transform: translateY(0);
}

.he-mobile-sticky-cta::after {
  content: '\2192';
  font-size: 16px;
  font-weight: 700;
  margin-left: 2px;
}

@media (max-width: 800px) {
  /* Sticky-Bar immer sichtbar auf Mobile */
  .he-mobile-sticky { display: flex; }
  /* Body-Abstand für Sticky-Bar — Höhe der Bar (~78px) + Reserve + safe-area */
  body { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 801px) {
  .he-mobile-sticky { display: none !important; }
}

.he-mobile-sticky-cta:disabled,
.he-mobile-sticky-cta--idle {
  background: rgba(255, 255, 255, 0.85);
  color: var(--gruen);
  opacity: 0.92;
  box-shadow: none;
}

.he-mobile-sticky-cta--idle::after {
  content: '\2193';   /* down arrow */
}

.he-mobile-sticky-preis-summe.is-empty {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0;
}

/* ─── Sprossen-Toggle innerhalb Stepper-Group-Item ────────────────────────── */
.he-sg-sprossen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px dashed var(--border);
  width: 100%;
}

.he-sg-sprossen-label {
  font-size: 12px;
  color: var(--text-grau);
  font-weight: 600;
}

.he-sg-sprossen-btn {
  width: 36px;
  height: 22px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.he-sg-sprossen-btn .he-toggle-knob {
  width: 16px;
  height: 16px;
  top: 3px;
  left: 3px;
}

.he-sg-sprossen-btn.on {
  background: var(--gruen);
}

.he-sg-sprossen-btn.on .he-toggle-knob {
  left: 17px;
}

/* Mobile: Sprossen-Toggle in Grid Row 4 spannend über alle Spalten */
@media (max-width: 800px) {
  .he-sg-item {
    grid-template-rows: auto auto auto auto;
  }
  .he-sg-sprossen {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

/* ─── Sub-Toggle-Block in Stepper-Group-Item ─────────────────────────────── */
/* Toggle-Reihe + collapsible Sub-Stepper (Sprossen / Nicht öffenbar) */

.he-sg-subtoggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px dashed var(--border);
  width: 100%;
  order: 6;                 /* nach dem Stepper (order 5) auf Desktop */
  grid-column: 1 / -1;      /* spannt alle Spalten auf Mobile-Grid */
}

.he-sg-subtoggle + .he-sg-subtoggle {
  border-top: 1px dashed var(--border);
}

.he-sg-subtoggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.he-sg-subtoggle-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.he-sg-subtoggle-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-grau);
  line-height: 1.3;
}

.he-sg-subtoggle-hint {
  font-size: 11px;
  color: var(--text-grau);
  opacity: 0.85;
  line-height: 1.35;
  margin-top: 2px;
}

.he-sg-substepper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  margin-top: 4px;
  border-left: 2px solid var(--border);
}

.he-sg-substepper-label {
  font-size: 11px;
  color: var(--text-grau);
  font-weight: 600;
  flex: 1;
}

/* ─── Besondere Fenstermerkmale (Sprossen + Etagen) ───────────────────────── */

.he-besondere-box {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.he-merkmal {
  padding: 16px 18px;
}

.he-merkmal + .he-merkmal {
  border-top: 1px solid var(--border);
}

.he-merkmal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.he-merkmal-head-text {
  flex: 1;
  min-width: 0;
}

.he-merkmal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.he-merkmal-hint {
  font-size: 12px;
  color: var(--text-grau);
  line-height: 1.45;
  margin-top: 4px;
}

.he-merkmal-detail {
  margin-top: 14px;
  padding: 12px 14px;
  background: #FAFCFA;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.he-merkmal-detail-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.he-merkmal-detail-hint {
  font-size: 11px;
  color: var(--text-grau);
  line-height: 1.4;
  margin-bottom: 10px;
}

.he-merkmal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.he-merkmal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.he-merkmal-row-label {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.he-merkmal-row-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.he-merkmal-row-info {
  font-size: 11px;
  color: var(--text-grau);
  margin-top: 2px;
}

.he-merkmal-empty {
  font-size: 12px;
  color: var(--text-grau);
  font-style: italic;
}

/* Einzelpreis pro Fenster — prominent in Karte */
.he-sg-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--gruen);
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .he-sg-price {
    order: 3;            /* zwischen Maße/Beispiele und Icon */
    align-self: center;
    margin-top: 2px;
  }
}

@media (max-width: 800px) {
  .he-sg-price {
    grid-column: 2;
    font-size: 11px;
  }
}

/* Rabatt-Hint / Spar-Betrag in Intervall-Karte — prominent */
.he-karte-rabatt {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--gruen);
  letter-spacing: -0.01em;
  margin-top: 6px;
  text-align: center;
}

/* Pflichtfeld-Hint unter qty-Input (z.B. Wintergarten-Glasfläche) */
.he-qty-hint {
  font-size: 13px;
  color: #B45309;          /* warmes Orange — fordert auf, ohne aggressiv zu sein */
  font-weight: 600;
  margin: 8px 0 0;
  line-height: 1.4;
}


/* ─── ACCORDION-STEPPER (Session 11) ──────────────────────────────────────── */
/* Geführter 4-Schritte-Stepper für die Service-Seite Fensterreinigung.
   Ersetzt die sequenzielle Inputs-Ansicht durch Step-für-Step-Navigation.
   Bestehende Render-Funktionen werden in Step-Container gewrappt. */

.he-stepper-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Progress-Bar im Stepper-Flow — inline, scrollt mit weg.
   Globale Sticky-Variante kommt zusätzlich als .he-nav-progress (fixed, klebt
   unter dem Header, sichtbar nur während Rechner im Viewport). */
.he-step-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: var(--gruen-light);
  border: 1px solid rgba(0, 83, 25, 0.14);
  border-radius: 12px;
  font-family: var(--font-body);
  flex-wrap: wrap;
}
.he-step-progress-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gruen-dark);
  letter-spacing: -0.01em;
}
.he-step-progress-current {
  font-size: 14px;
  font-weight: 800;
  color: var(--gruen);
  letter-spacing: -0.01em;
}

/* Step-Pills: Fenster → Merkmale → Intervall → Extras */
.he-step-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.he-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 83, 25, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-grau);
  letter-spacing: -0.01em;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.he-step-pill[data-state="active"] {
  background: var(--gruen);
  color: #fff;
  border-color: var(--gruen);
}
.he-step-pill[data-state="completed"] {
  background: rgba(0, 83, 25, 0.14);
  color: var(--gruen-dark);
  border-color: rgba(0, 83, 25, 0.22);
}
.he-step-pill[data-state="completed"]::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gruen-mid);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2.5 6L5 8.5L9.5 4' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Einzelner Step-Container */
.he-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.he-step[data-state="locked"] {
  opacity: 0.55;
  pointer-events: none;
}
.he-step[data-state="active"] {
  border-color: rgba(0, 83, 25, 0.32);
  box-shadow: 0 4px 18px rgba(0, 83, 25, 0.07);
}
.he-step[data-state="completed"] {
  border-color: rgba(0, 83, 25, 0.18);
}

/* Step-Header (klickbar) */
.he-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  transition: background 200ms ease;
}
.he-step[data-state="active"] .he-step-header,
.he-step[data-state="locked"] .he-step-header {
  cursor: default;
}
.he-step[data-state="completed"] .he-step-header:hover {
  background: rgba(0, 83, 25, 0.04);
}
.he-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-grau);
  flex-shrink: 0;
  transition: all 200ms ease;
}
.he-step[data-state="active"] .he-step-number {
  background: var(--gruen);
  color: #fff;
  border-color: var(--gruen);
}
.he-step[data-state="completed"] .he-step-number {
  background: var(--gruen-mid);
  color: #fff;
  border-color: var(--gruen-mid);
  font-size: 0;
}
.he-step[data-state="completed"] .he-step-number::after {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M3.5 8.5L6.5 11.5L12.5 5.5' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 16px;
  background-repeat: no-repeat;
}

.he-step-titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.he-step-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}
.he-step-summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-grau);
  letter-spacing: -0.01em;
  display: none;
}
.he-step[data-state="completed"] .he-step-summary {
  display: block;
}

.he-step-edit {
  display: none;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-grau);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 200ms ease;
  flex-shrink: 0;
}
.he-step[data-state="completed"] .he-step-edit {
  display: inline-flex;
}
.he-step-edit:hover {
  border-color: var(--gruen);
  color: var(--gruen);
}

/* Step-Body (Content) */
.he-step-body {
  display: none;
  padding: 0 20px 20px;
  overflow: hidden;
  animation: he-step-open 220ms ease;
}
.he-step[data-state="active"] .he-step-body {
  display: block;
}
@keyframes he-step-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Weiter-Button am Ende des Body */
.he-step-next-row {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.he-step-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  background: var(--gruen);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.he-step-next:hover {
  background: var(--gruen-dark);
  transform: translateY(-1px);
}
.he-step-next:disabled {
  background: rgba(0, 83, 25, 0.35);
  cursor: not-allowed;
  transform: none;
}

/* Inline-Validierungshinweis */
.he-step-error {
  font-size: 13px;
  color: #B91C1C;
  background: #FEE2E2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  display: none;
}
.he-step-error.is-visible {
  display: block;
}

/* "Keine ..."-Schnellauswahl-Toggle (Step 2 + Step 4) */
.he-step-quick-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
  margin-bottom: 16px;
  font-family: var(--font-body);
}
.he-step-quick-toggle:hover {
  border-color: rgba(0, 83, 25, 0.3);
}
.he-step-quick-toggle[aria-pressed="true"] {
  background: var(--gruen-light);
  border-color: var(--gruen);
}
.he-step-quick-toggle-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}
.he-step-quick-toggle[aria-pressed="true"] .he-step-quick-toggle-checkbox {
  background: var(--gruen);
  border-color: var(--gruen);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M3 7L6 10L11 4' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.he-step-quick-toggle-label {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Mobile-Anpassungen */
@media (max-width: 640px) {
  .he-step-progress {
    padding: 12px 14px;
    gap: 8px;
  }
  .he-step-progress-label,
  .he-step-progress-current {
    font-size: 13px;
  }
  .he-step-pills {
    gap: 6px;
  }
  .he-step-pill {
    font-size: 11px;
    padding: 4px 9px;
  }
  .he-step-header {
    padding: 14px 16px;
    gap: 10px;
  }
  .he-step-body {
    padding: 0 16px 16px;
  }
  .he-step-edit {
    font-size: 11px;
    padding: 5px 9px;
  }
}


/* S23 Item 6 (v2): Cart-Button in der Preisbox — Outline-Weiß auf dunkelgrünem BG (Inverse zu .he-btn-cta) */
.he-btn-cta-cart {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.he-btn-cta-cart:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}
.he-btn-cta-cart:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.he-btn-cta-cart.is-added {
  background: var(--white);
  color: var(--gruen);
  border-color: var(--white);
  opacity: 1;
}

/* CTA-Hint unter Wunschtermin-sichern-Button (Session 11) */
.he-pb-cta-hint {
  font-size: 12px;
  color: var(--text-grau);
  text-align: center;
  margin: 10px 0 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}


/* ─── Preisbox-Modi (Session 12: Einmalig vs. Wiederkehrend) ──────────────── */

/* Subline direkt unter dem Hauptpreis */
.he-pb-subline {
  font-size: 13px;
  color: var(--text-grau);
  text-align: center;
  margin: 4px 0 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Info-Block (Modus-spezifisch) */
.he-pb-info {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: var(--gruen-light);
  border-radius: 10px;
  border: 1px solid rgba(0, 83, 25, 0.12);
}
.he-pb-info-row {
  font-size: 13px;
  color: var(--gruen-dark);
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}
.he-pb-info-row + .he-pb-info-row {
  margin-top: 4px;
}
.he-pb-info-jahr {
  font-size: 12px;
  color: var(--text-grau);
  font-weight: 500;
}

/* Subtext unter "Optionale Zusatzleistungen" */
.he-pb-zeile-sub {
  font-size: 11.5px;
  color: var(--text-grau);
  margin: -4px 0 6px;
  letter-spacing: -0.01em;
  font-weight: 500;
}

/* Zweiter Breakdown-Titel (Jahresübersicht) */
.he-pb-breakdown .he-pb-bd-titel + .he-pb-zeile {
  /* keine zusätzliche Spacing-Override */
}


/* ─── PREISBOX V2 — DUNKELGRÜN + 4-BLOCK-LAYOUT (Session 12 Stage 1) ──────── */
/* Komplette Umgestaltung: dunkelgrüner Hintergrund, weißer Text, 4 Blöcke
   (PREISÜBERSICHT / ZUSATZLEISTUNGEN / INTERVALLVORTEIL / JAHRESÜBERSICHT)
   + DAS IST ENTHALTEN unten. Override aller älteren Preisbox-Styles. */

.he-preisbox {
  background: var(--gruen-dark);
  color: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 6px 28px rgba(0, 46, 14, 0.18);
  position: sticky;
  top: 90px;
  font-family: var(--font-body);
}

/* Header-Bereich — DEIN FESTPREIS + Hauptpreis + Subline + Info */
.he-pb-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--gruen-mid);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
}

.he-pb-summe {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  display: inline;
}
.he-pb-summe.placeholder {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.01em;
}

.he-pb-summe-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.he-pb-summe-suffix {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  opacity: 0.85;
  letter-spacing: -0.01em;
}

.he-pb-subline {
  font-size: 13px;
  color: #fff;
  opacity: 0.85;
  margin: 0 0 4px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
}
.he-pb-subline strong {
  color: var(--gruen-mid);
  font-weight: 800;
}

.he-pb-info {
  margin: 0 0 18px;
  padding: 0;
  background: transparent;
  border: none;
}
.he-pb-info-row {
  font-size: 13px;
  color: #fff;
  opacity: 0.92;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
}
.he-pb-info-row strong {
  color: var(--gruen-mid);
  font-weight: 800;
}
.he-pb-info-row + .he-pb-info-row {
  margin-top: 2px;
}

/* Trust-Box (✓ Keine Zahlung vor Terminbestätigung) */
.he-pb-trust {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 10px;
}
.he-pb-trust-headline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--gruen-mid);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.he-pb-trust-headline-icon {
  flex-shrink: 0;
  font-weight: 800;
}
.he-pb-trust-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0 0 0 22px;
}

/* CTA — weißer Button mit grünem Text */
.he-btn-cta {
  display: block;
  width: 100%;
  background: #fff;
  color: var(--gruen-dark);
  border: none;
  border-radius: 12px;
  padding: 16px 22px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  margin: 0 0 18px;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.08);
}
.he-btn-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.14);
}
.he-btn-cta:disabled {
  background: rgba(255, 255, 255, 0.7);
  color: rgba(0, 46, 14, 0.6);
  cursor: not-allowed;
  transform: none;
}

/* CTA-Hint unter dem Button — S23: margin-top von -10px auf 14px,
   weil jetzt der Cart-Button dazwischen sitzt, der enge Abstand wirkt sonst gequetscht */
.he-pb-cta-hint {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin: 14px 0 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ─── Block-Container (Variante B: ein großer Hintergrund-Block) ─────── */
.he-pb-blocks {
  background: rgba(0, 83, 25, 0.45);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 12px;
  padding: 18px 18px 16px;
  margin: 0 0 18px;
}
/* Wenn keine Blöcke drin sind (Initial-Zustand vor Fensterauswahl), ausblenden */
.he-pb-blocks:empty {
  display: none;
}

/* ─── Einzelner Block (PREISÜBERSICHT / ZUSATZLEISTUNGEN / etc.) ─────── */
.he-pb-block {
  margin: 0;
  padding: 0;
  border-top: none;
}
.he-pb-block + .he-pb-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.he-pb-block-titel {
  font-size: 11px;
  font-weight: 800;
  color: var(--gruen-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
}

/* Zeile innerhalb eines Blocks */
.he-pb-zeile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.he-pb-zeile:last-child {
  margin-bottom: 0;
}
.he-pb-zeile-label {
  flex: 1;
  min-width: 0;
}
.he-pb-zeile-value {
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.he-pb-zeile.is-rabatt .he-pb-zeile-label,
.he-pb-zeile.is-rabatt .he-pb-zeile-value {
  color: var(--gruen-mid);
  font-weight: 800;
}
.he-pb-zeile.is-gesamt {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  font-weight: 800;
}
.he-pb-zeile-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: -6px 0 8px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* DAS IST ENTHALTEN-Block — Häkchen-Liste */
.he-pb-inkl {
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.he-pb-inkl-titel {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
}
.he-inkl-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.he-inkl-item:last-child { margin-bottom: 0; }
.he-inkl-icon {
  color: var(--gruen-mid);
  font-weight: 800;
  flex-shrink: 0;
  font-size: 14px;
}

/* Trust-Bar unter "Das ist enthalten" entfällt im neuen Design */
.he-trust { display: none; }

/* Legacy-Elemente verstecken (waren im alten Design) */
.he-pb-mwst,
.he-pb-sofort,
.he-pb-breakdown,
.he-pb-sep,
.he-pb-bd-titel,
.he-pb-bd-extras-titel,
.he-pb-extra { display: none; }

/* Mindestpreis-Zustand */
.he-preisbox.is-minprice .he-pb-label::after {
  content: " (Mindestpreis)";
  font-weight: 600;
  opacity: 0.8;
}

/* Mobile: Sticky-Abstand reduzieren */
@media (max-width: 800px) {
  .he-preisbox {
    position: static;
    padding: 22px 18px;
  }
}


/* ─── Scroll-Margin für sticky Header (90 px) ─────────────────────────── */
/* Wenn der Browser per Anker zu einem Element scrollt, lässt er 90 px Luft
   oben — damit der fixe 64-px-Header das Element nicht verdeckt. */
.he-rechner,
.he-stepper-group,
.he-step,
#he-calculator,
#preisrechner-start {
  scroll-margin-top: 90px;
}

/* ─── Final-Abschluss-Karte (Session 12 Stage 2) ──────────────────────── */
/* Erscheint links unter den 4 Stepper-Schritten, sobald alle Pflichtangaben
   gemacht wurden. Conversion-stark: weiß, grüner Border, klarer CTA. */
.he-step-final {
  display: none;
  background: var(--white);
  border: 1.5px solid rgba(0, 83, 25, 0.28);
  border-radius: 14px;
  padding: 28px 26px;
  margin-top: 16px;
  box-shadow: 0 4px 20px rgba(0, 83, 25, 0.06);
  font-family: var(--font-body);
}
.he-step-final.is-visible {
  display: block;
  animation: he-step-open 280ms ease;
}

.he-step-final-headline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  color: var(--gruen-dark);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.he-step-final-headline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gruen-mid);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.he-step-final-sub {
  font-size: 14px;
  color: var(--text-grau);
  line-height: 1.55;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.he-step-final-steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.he-step-final-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.he-step-final-steps li::before {
  content: counter(final-step);
  counter-increment: final-step;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gruen-light);
  color: var(--gruen-dark);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.he-step-final-steps {
  counter-reset: final-step;
}

.he-step-final-cta {
  display: block;
  width: 100%;
  background: var(--gruen);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 12px rgba(0, 83, 25, 0.14);
}
.he-step-final-cta:hover:not(:disabled) {
  background: var(--gruen-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 83, 25, 0.18);
}
.he-step-final-cta:disabled {
  background: rgba(0, 83, 25, 0.4);
  cursor: not-allowed;
  transform: none;
}

/* S23 Item 6: Sekundärer CTA "+ In den Warenkorb" — Outline unter dem Primary */
.he-step-final-cta-cart {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: transparent;
  color: var(--gruen);
  border: 1.5px solid var(--gruen);
  border-radius: 12px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.he-step-final-cta-cart:hover:not(:disabled) {
  background: rgba(0, 83, 25, 0.06);
  transform: translateY(-1px);
}
.he-step-final-cta-cart:disabled {
  cursor: default;
}
.he-step-final-cta-cart.is-added {
  background: var(--gruen);
  color: #fff;
  border-color: var(--gruen);
  transform: none;
}

@media (max-width: 640px) {
  .he-step-final {
    padding: 22px 18px;
  }
}


/* ─── Progress-Leiste (sticky, Session 12 Stage 3) ────────────────────── */
/* Lebt im normalen DOM-Flow VOR dem Rechner-Inhalt. Initial sichtbar als Teil
   der Seite (zwischen Hero und Rechner). Beim Scrollen klebt sie unter dem
   64-px-Header (top: 64). Sobald Parent (.he-rechner) durchgescrollt ist,
   verschwindet sie automatisch. z-index: 199 — knapp unter dem Header (200). */
.he-nav-progress {
  position: sticky;
  top: 72px;
  z-index: 199;
  /* Full-bleed: bricht aus .he-rechner (padding-top: 32) und .he-service-main
     (padding clamp 20-64 seitlich, 32 oben) komplett aus — Bar schließt direkt
     am Hero-Bottom an, kein Whitespace dazwischen. */
  margin-top: -72px;
  margin-left: calc(-1 * clamp(20px, 4vw, 64px));
  margin-right: calc(-1 * clamp(20px, 4vw, 64px));
  margin-bottom: 30px;
  padding: 10px clamp(20px, 4vw, 64px);
  background: var(--gruen-light);
  border: none;
  border-bottom: 1px solid rgba(0, 83, 25, 0.18);
  border-radius: 0;
  font-family: var(--font-body);
  box-shadow: 0 2px 10px rgba(0, 83, 25, 0.06);
}
.he-nav-progress-inner {
  max-width: 1900px;
  margin: 0 auto;
  /* Spiegelt das .he-layout-Grid (1fr 460px nach S15 v4) — Inhalt sitzt nur in der
     linken Spalte, sodass Progress-Bar und Pills bündig mit dem Rechner
     enden, ohne in den Preisbox-Bereich rüberzulaufen.
     row-gap: 0 → Pills-Reihe und Progress-Bar liegen direkt aneinander. */
  display: grid;
  /* S16: minmax(0, 1fr) statt 1fr — verhindert Overflow durch nowrap-Pills. */
  grid-template-columns: minmax(0, 1fr) 460px;
  column-gap: 24px;
  row-gap: 0;
  align-items: center;
}
.he-nav-progress-row {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 1024px) {
  .he-nav-progress-inner {
    grid-template-columns: 1fr;
  }
}
.he-nav-progress-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  letter-spacing: -0.01em;
}
.he-nav-progress-text-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gruen-dark);
  opacity: 0.7;
}
.he-nav-progress-text-current {
  font-size: 16px;
  font-weight: 800;
  color: var(--gruen-dark);
  letter-spacing: -0.01em;
}
/* Pills-Reihe mit Verbindern */
.he-nav-progress-pills {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
}

/* Verbinder-Linie zwischen Pills (gestrichelt = pending, voll = completed) */
.he-nav-progress-connector {
  flex: 1;
  height: 0;
  border-top: 2px dashed rgba(0, 83, 25, 0.22);
  margin: 0 6px;
  min-width: 12px;
  align-self: center;
  transition: border-color 200ms ease, border-style 200ms ease;
}
.he-nav-progress-connector.is-done {
  border-top-style: solid;
  border-top-color: var(--gruen-mid);
}

/* Pill mit Number-Circle */
.he-nav-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  background: var(--white);
  border: 1.5px solid #E5E7EB;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-grau);
  letter-spacing: -0.01em;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.he-nav-progress-pill-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F3F4F6;
  color: var(--text-grau);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  transition: background 200ms ease, color 200ms ease;
}
.he-nav-progress-pill[data-state="active"] {
  background: var(--gruen-dark);
  border-color: var(--gruen-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 46, 14, 0.16);
}
.he-nav-progress-pill[data-state="active"] .he-nav-progress-pill-num {
  background: #fff;
  color: var(--gruen-dark);
}
.he-nav-progress-pill[data-state="completed"] {
  background: var(--white);
  border-color: var(--gruen-mid);
  color: var(--gruen-dark);
  cursor: pointer;
}
.he-nav-progress-pill[data-state="completed"] .he-nav-progress-pill-num {
  background: var(--gruen-mid);
  color: #fff;
  position: relative;
}
.he-nav-progress-pill[data-state="completed"] .he-nav-progress-pill-num-text {
  visibility: hidden;
}
.he-nav-progress-pill[data-state="completed"] .he-nav-progress-pill-num::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M3 7L6 10L11 4' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Progress-Bar UNTER den Pills */
.he-nav-progress-bar {
  grid-column: 1;
  height: 4px;
  background: rgba(0, 83, 25, 0.1);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.he-nav-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gruen), var(--gruen-mid));
  border-radius: 2px;
  transition: width 320ms cubic-bezier(.4, 0, .2, 1);
}

@media (max-width: 640px) {
  .he-nav-progress {
    padding: 6px clamp(14px, 4vw, 20px);
  }
  .he-nav-progress-text {
    font-size: 11px;
  }
  .he-nav-progress-pill {
    font-size: 10px;
    padding: 3px 7px;
  }
}


/* ─── Berechnungsdetails-Akkordeon (Stage 2 — pro-Item-Aufschlüsselung) ─── */
.he-pb-bd-akkordeon {
  margin-top: 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 180ms ease;
}
.he-pb-bd-akkordeon:has(.he-pb-bd-akkordeon-body.is-open) {
  border-color: rgba(34, 197, 94, 0.32);
}
.he-pb-bd-akkordeon-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
}
.he-pb-bd-akkordeon-toggle:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}
.he-pb-bd-akkordeon-toggle[aria-expanded="true"] {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.he-pb-bd-akkordeon-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(34, 197, 94, 0.4);
}
.he-pb-bd-akkordeon-toggle::after {
  content: "+";
  font-size: 20px;
  font-weight: 800;
  color: var(--gruen-mid);
  line-height: 1;
  transition: transform 220ms ease;
  display: inline-block;
}
.he-pb-bd-akkordeon-toggle[aria-expanded="true"]::after {
  content: "−";
}
.he-pb-bd-akkordeon-body {
  display: none;
  padding: 14px 16px 12px;
}
.he-pb-bd-akkordeon-body.is-open {
  display: block;
}
.he-pb-bd-detail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.01em;
}
.he-pb-bd-detail-label {
  flex: 1;
  min-width: 0;
}
.he-pb-bd-detail-value {
  white-space: nowrap;
  flex-shrink: 0;
}
.he-pb-bd-detail.is-rabatt .he-pb-bd-detail-label,
.he-pb-bd-detail.is-rabatt .he-pb-bd-detail-value {
  color: var(--gruen-mid);
  font-weight: 700;
}
.he-pb-bd-detail.is-aufschlag {
  color: rgba(255, 255, 255, 0.78);
}
/* Sub-Zeilen ("davon …") als Unterpunkte einrücken */
.he-pb-bd-detail.is-aufschlag,
.he-pb-bd-detail.is-rabatt {
  padding-left: 16px;
}


/* ─────────────────────────────────────────────────────────────────────────
 * Session 13 v4 — Mobile + Tablet Stepper-Strip (Variante D)
 *
 * Auf <=1024 px: Pills versteckt, Strip-Layout mit "SCHRITT X / 4" links +
 * Step-Name rechts in einer Zeile. Darunter 8-px Progress-Balken.
 * Hintergrund #EDF7F1 (gruen-light), Schrift #005319 / #002E0E.
 *
 * Sticky bei top:0 mit z-index:100 — wird vom Mobile-Stack (z-index:200)
 * überdeckt solange der sichtbar ist. Verschwindet der Stack (Auto-hide
 * on scroll-down), wird die Progress-Bar oben sichtbar.
 * ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  /* Override Desktop-Styles — full-bleed via negative margins,
     bricht aus dem .he-service-main padding aus (clamp 20-64 px) */
  .he-nav-progress {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: calc(-1 * clamp(20px, 4vw, 64px));
    margin-right: calc(-1 * clamp(20px, 4vw, 64px));
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .he-nav-progress-inner {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
    grid-template-columns: 1fr;
  }

  .he-nav-progress-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px clamp(16px, 4vw, 22px);
    background: #EDF7F1;
    border-bottom: 1px solid rgba(0, 83, 25, 0.10);
    flex-wrap: nowrap;
    grid-column: 1;
  }

  /* Text-Container kollabiert — Children werden direkte Geschwister im Row-Flex */
  .he-nav-progress-text {
    display: contents;
  }

  .he-nav-progress-text-label {
    font-size: 13px;
    font-weight: 800;
    color: #005319;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    opacity: 1;
    flex-shrink: 0;
  }

  .he-nav-progress-text-current {
    font-size: 13px;
    font-weight: 700;
    color: #002E0E;
    letter-spacing: -0.01em;
    text-align: right;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Pills-Reihe komplett raus auf Mobile/Tablet */
  .he-nav-progress-pills {
    display: none;
  }

  /* Progress-Balken: 8 px hoch, hellerer Track, gradient-Fill */
  .he-nav-progress-bar {
    height: 8px;
    background: rgba(0, 83, 25, 0.12);
    border-radius: 0;
    overflow: hidden;
  }
  .he-nav-progress-bar-fill {
    background: linear-gradient(90deg, #005319, #22C55E);
    border-radius: 0;
  }
}

/* ═════ S22 Item 3 · Final-Card-Headline auf Tablet/Mobile ausblenden ═════
   "Dein Festpreis steht"-Banner stört auf kleinen Screens (Userin-Feedback S21→S22).
   Sub-Text + Steps + CTA bleiben. Desktop ≥1024px zeigt weiterhin die Headline. */
@media (max-width: 1023px) {
  .he-step-final-headline { display: none; }
}


/* ─── Card-Select Icon (he-karte-icon) ─────────────────────────────────
 * SVG-Piktogramm in card-select-Karten (z.B. Rasenmähen Verwilderung/Hang).
 * Pattern analog .he-sg-icon, aber für card-select-Karten oben zentriert.
 * Hinzugefügt 26.05.2026 für Rasen-Service-Page.
 */
.he-karte-icon {
  display: block;
  width: 100%;
  max-width: 110px;
  aspect-ratio: 130 / 160;
  margin: 0 auto 8px;
  overflow: hidden;
}
.he-karte-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Mobile: Icons etwas kleiner damit Karten kompakt bleiben */
@media (max-width: 700px) {
  .he-karte-icon {
    max-width: 80px;
    margin-bottom: 6px;
  }
}
