/* ====================================================
   Hamburg Zimmerei – Dachflächenfenster-Konfigurator
   Wiederverwendbare Engine-Styles (Dachflächenfenster,
   später Fassadenfenster & Türen).
   Erbt Header/Footer/Hero/Buttons/Cookie aus style.css.
   ==================================================== */

/* Velux-Farb-Tokens → Hamburg-Zimmerei-CI (Gold/Dunkel).
   Dadurch lassen sich die Konfigurator-Regeln 1:1 übernehmen. */
:root {
  --blue: var(--gold);
  --blue-mid: #8A6643;
  --blue-light: var(--gold-light);
  --sky: var(--gold-light);
  --sky-light: #F3ECE3;
  --success: #2F7A4F;
  --success-bg: #EEF6F0;
  --error: #C0392B;
  --error-bg: #FBEEEC;
  --radius-card: 12px;
  --shadow: 0 4px 24px rgba(26, 24, 21, 0.10);
  --shadow-lg: 0 16px 56px rgba(26, 24, 21, 0.18);
}

/* ── HERO-ERWEITERUNGEN (Badge + Trust-Anker) ── */
.hero-badge {
  margin-bottom: 24px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 154, 108, 0.15);
  border: 1px solid rgba(196, 154, 108, 0.35);
  border-radius: var(--radius);
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero-trust {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
}

.hero-trust-item svg {
  color: var(--gold-light);
  flex-shrink: 0;
}

a.hero-trust-item { transition: color var(--transition); }
a.hero-trust-item:hover { color: var(--gold-light); }

/* Gefüllter Gold-CTA (Fallback zur Critical-CSS im Head) */
.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(166, 124, 82, 0.3);
}
.btn-gold:hover {
  background: var(--blue-mid);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(166, 124, 82, 0.42);
}

/* ── PROZESS (3 Schritte) ── */
.prozess-section { background: var(--white); }

.prozess-intro { text-align: center; margin-bottom: 64px; }
.prozess-intro .gold-divider { margin-left: auto; margin-right: auto; }
.prozess-intro .section-sub { margin-left: auto; margin-right: auto; }

.prozess-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: flex-start;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.prozess-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 12px;
  min-width: 0;
}

.prozess-num-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(166, 124, 82, 0.30);
}

.prozess-step:nth-child(even) .prozess-num-wrap { background: var(--blue-mid); }

.prozess-step--link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.prozess-step--link:hover { transform: translateY(-4px); }
.prozess-step--link:hover .prozess-num-wrap {
  box-shadow: 0 8px 24px rgba(166, 124, 82, 0.45);
}
.prozess-step--link:hover h3 { color: var(--gold); }

.prozess-step-icon {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.prozess-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.3;
}

.prozess-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Pfeil zwischen den Schritten (zeigt die Reihenfolge) */
.prozess-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(100% + 12px);
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0.55;
  pointer-events: none;
}

/* ── VORTEILE ── */
.vorteile-section {
  background: var(--dark-section);
  position: relative;
  overflow: hidden;
}

/* Dachraum mit Tageslicht durch Dachfenster greift das Thema "Licht" auf */
.vorteile-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg,
      rgba(26, 24, 21, 0.45) 0%,
      rgba(26, 24, 21, 0.78) 55%,
      var(--dark-section) 100%),
    url('../assets/dachfenster-einbau.webp');
  background-size: cover, cover;
  background-position: center top, center center;
  background-repeat: no-repeat, no-repeat;
  pointer-events: none;
  z-index: 0;
}

.vorteile-section .container { position: relative; z-index: 1; }

.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.vorteil-card {
  background: var(--warm-white);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  border: 1px solid transparent;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.30);
}

.vorteil-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.vorteil-card:hover { border-color: var(--warm-gray); box-shadow: var(--shadow); }
.vorteil-card:hover::before { transform: scaleX(1); }

.vorteil-icon {
  width: 56px; height: 56px;
  background: var(--sky-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.vorteil-icon svg {
  width: 28px; height: 28px;
  color: var(--gold);
}

.vorteil-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--black);
}

.vorteil-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── KONFIGURATOR SECTION ── */
.konfigurator-section {
  background: var(--warm-white);
  position: relative;
  overflow: hidden;
}

.konfigurator-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(166, 124, 82, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.konfigurator-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(166, 124, 82, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.konfigurator-intro {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.konfigurator-intro .section-label {
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  opacity: 0.9;
}

.konfigurator-intro .section-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.konfigurator-intro .section-title em {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  font-style: normal;
  font-size: 1.25em;
  color: var(--gold);
}

.konfigurator-intro .gold-divider {
  margin-left: auto;
  margin-right: auto;
  margin-top: 22px;
  width: 40px;
}

.konfigurator-intro .section-sub {
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  line-height: 1.7;
  max-width: 520px;
}

.konfigurator-intro--compact {
  margin-bottom: 28px;
}
.konfigurator-intro--compact .section-title {
  font-size: clamp(22px, 2.4vw, 30px);
}
.konfigurator-intro--compact .section-sub {
  margin-top: 12px;
}

.konfigurator-intro--dark {
  background: var(--dark-section);
  border-radius: 20px;
  padding: 36px 28px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.konfigurator-intro--dark .section-sub {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .konfigurator-intro--dark {
    padding: 28px 20px;
  }
}

.konfig-reassure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--success);
}
.konfig-reassure svg { color: var(--success); flex-shrink: 0; }

/* ── CONFIG CARD ── */
.config-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.config-header {
  background: linear-gradient(135deg, var(--gold) 0%, var(--blue-mid) 100%);
  padding: 20px 40px 18px;
  color: var(--white);
}

.config-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.config-step-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.config-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.config-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.config-header-reassure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.config-header-reassure svg { flex-shrink: 0; }

.config-step-fraction {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.config-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.config-progress-fill {
  height: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* ── CONFIG BODY ── */
.config-body {
  padding: 28px 40px;
  min-height: 200px;
}

.config-step {
  display: none;
  animation: stepIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.config-step.active { display: block; }
.config-step.slide-back { animation: stepInBack 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes stepInBack {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.step-question {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.info-btn {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--warm-gray);
  background: var(--warm-white);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-family: var(--font);
}

.info-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* ── OPTION CARDS ── */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

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

.option-card,
div.option-card {
  border: 2px solid var(--card-border, var(--warm-gray));
  border-radius: var(--radius-card);
  padding: 20px 14px;
  cursor: pointer;
  background: var(--card-bg, var(--warm-white));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}

.option-card:hover,
div.option-card:hover {
  border-color: var(--card-accent, var(--gold-light));
  background: var(--card-bg-hover, var(--sky-light));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 24, 21, 0.08);
}

.option-card.selected,
div.option-card.selected {
  border-color: var(--card-accent, var(--gold));
  background: var(--card-bg-hover, var(--sky-light));
  box-shadow: 0 0 0 2px var(--card-accent, var(--gold)), 0 4px 16px rgba(26, 24, 21, 0.14);
}

.option-card.selected .option-check,
div.option-card.selected .option-check {
  opacity: 1;
  transform: scale(1);
}

.option-check {
  position: absolute;
  top: 8px; right: 8px;
  width: 20px; height: 20px;
  background: var(--card-accent, var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.option-check svg { width: 10px; height: 10px; color: white; }

.option-counter {
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  background: var(--card-accent, var(--gold));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(166, 124, 82, 0.3);
  z-index: 2;
  transition: all 0.2s ease;
  pointer-events: none;
}

.option-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--icon-bg, #FBF1E6);
  color: var(--icon-color, var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.option-icon svg { width: 34px; height: 34px; }

.option-card:hover .option-icon { transform: scale(1.06); }
.option-card.selected .option-icon { filter: saturate(1.15); }

.option-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}

/* ── Pastell-Farbschema pro Kachel-Position ──
   Position 1..4 bekommt je eine eigene Farbe, danach wiederholt sich der Zyklus.
   Da :nth-child pro Grid zaehlt, ist die Reihenfolge in jedem Schritt identisch:
   1. Kachel immer Farbe A, 2. Kachel Farbe B usw. */
.option-card:nth-child(4n + 1) {
  --card-bg: #FBF1E6;
  --card-bg-hover: #F6E6D2;
  --card-border: #EFDFC9;
  --card-accent: #B5854E;
  --icon-bg: #F3E1C7;
  --icon-color: #A0703C;
}
.option-card:nth-child(4n + 2) {
  --card-bg: #EFF4EA;
  --card-bg-hover: #E2EBD9;
  --card-border: #DDE7D3;
  --card-accent: #6B8A4E;
  --icon-bg: #DEEAD2;
  --icon-color: #5C7A3F;
}
.option-card:nth-child(4n + 3) {
  --card-bg: #EAF1F7;
  --card-bg-hover: #DBE9F2;
  --card-border: #D7E4EE;
  --card-accent: #5E89A8;
  --icon-bg: #D5E5F0;
  --icon-color: #436F8E;
}
.option-card:nth-child(4n + 4) {
  --card-bg: #F8EEF0;
  --card-bg-hover: #F0DEE2;
  --card-border: #ECDCE0;
  --card-accent: #AE7480;
  --icon-bg: #F1DCE1;
  --icon-color: #8E5A66;
}

/* "Wie viele Fenster?" – grosse Kacheln einheitlich neutral,
   nur die kleinen Icon-Kacheln behalten ihre Positionsfarbe (von oben). */
.option-card.quantity-card {
  --card-bg: #FBF1E6;
  --card-bg-hover: #F6E6D2;
  --card-border: #EFDFC9;
  --card-accent: #B5854E;
}

.option-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── QUANTITY CONTROLS (Step 3) ── */
.quantity-controls {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  padding: 6px 12px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--warm-gray);
  z-index: 3;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--warm-gray);
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: all var(--transition);
}

.qty-btn:hover {
  background: var(--gold);
  color: white;
  transform: scale(1.1);
}

.qty-val {
  font-weight: 800;
  font-size: 14px;
  color: var(--gold);
  min-width: 12px;
  text-align: center;
}

.config-summary-box {
  background: var(--warm-white);
  border: 1.5px dashed var(--gold-light);
  border-radius: 16px;
  padding: 24px;
  animation: fadeIn 0.4s ease-out;
}

.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(166, 124, 82, 0.12);
}

.summary-item:last-child { border-bottom: none; }
.summary-item-label { font-weight: 600; color: var(--black); }
.summary-item-qty {
  font-weight: 800;
  color: var(--gold);
  background: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
}

/* Info-Button in einzelner Karte */
.card-info-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--warm-gray);
  background: var(--white);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-family: var(--font);
  transition: all var(--transition);
  line-height: 1;
}

.card-info-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* ── MODELL STEP ── */
.modell-figur {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 8px;
  padding: 14px 16px;
  background: var(--warm-white);
  border: 1px dashed var(--warm-gray);
  border-radius: 12px;
  color: var(--text-muted);
}

.modell-figur svg {
  flex: 0 0 110px;
  width: 110px;
  height: auto;
}

.modell-figur figcaption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .modell-figur {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .modell-figur svg { flex-basis: auto; width: 130px; }
}

.modell-input-wrap {
  position: relative;
  margin-top: 20px;
}

.modell-input-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.modell-unknown-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  -webkit-user-select: none;
  user-select: none;
}

.modell-unknown-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }

.groesse-tiles-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--warm-gray);
}

.groesse-tiles-wrap .groesse-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.groesse-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.groesse-sketch {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
  color: var(--gold);
}

.groesse-sketch svg {
  width: 132px;
  height: auto;
}

.groesse-sketch svg text {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  fill: currentColor;
}

.groesse-slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.groesse-slider-label {
  flex: 0 0 52px;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}

.groesse-range {
  flex: 1 1 auto;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 100px;
  background: var(--warm-gray);
  outline: none;
  cursor: pointer;
}

.groesse-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(166, 124, 82, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.groesse-range::-webkit-slider-thumb:hover { transform: scale(1.12); }

.groesse-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(166, 124, 82, 0.35);
  cursor: pointer;
}

.groesse-range:focus-visible { box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.25); }

.groesse-value-box {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.groesse-value-box input[type="number"] {
  width: 64px;
  padding: 8px 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: var(--black);
  background: var(--warm-white);
  border: 1.5px solid var(--warm-gray);
  border-radius: 8px;
  outline: none;
  transition: border-color var(--transition);
  -moz-appearance: textfield;
  appearance: textfield;
}

.groesse-value-box input[type="number"]::-webkit-outer-spin-button,
.groesse-value-box input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.groesse-value-box input[type="number"]:focus { border-color: var(--gold); }

.groesse-value-box span {
  font-size: 13px;
  color: var(--text-muted);
}

.groesse-preview {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
}

@media (max-width: 480px) {
  .groesse-slider-row { gap: 10px; }
  .groesse-slider-label { flex-basis: 44px; font-size: 12px; }
  .groesse-value-box input[type="number"] { width: 54px; }
}

/* ── ZUSATZ CARDS ── */
.zusatz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.zusatz-card {
  border: 2px solid var(--warm-gray);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  display: flex;
  flex-direction: column;
}

.zusatz-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.zusatz-card.selected {
  border-color: var(--gold);
  background: var(--sky-light);
  box-shadow: 0 0 0 2px var(--gold), 0 12px 32px rgba(166, 124, 82, 0.15);
}

.zusatz-card.selected .option-check {
  opacity: 1;
  transform: scale(1);
}

.zusatz-icon-area {
  width: 100%;
  height: 80px;
  background: var(--icon-bg, #f5f5f4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.zusatz-icon-area svg {
  width: 48px;
  height: 48px;
  color: var(--icon-color, #6b7280);
  stroke: var(--icon-color, #6b7280);
  transition: transform 0.3s ease;
}

.zusatz-card:hover .zusatz-icon-area svg { transform: scale(1.1); }
.zusatz-card.selected .zusatz-icon-area { filter: saturate(1.2); }

.zusatz-info {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.zusatz-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}

.zusatz-sub {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
}

/* Stückzahl-Steuerung in der Zusatz-Karte: kompakt, mittig, nicht volle Breite */
.zusatz-card .quantity-controls {
  align-self: center;
  margin-top: 14px;
}

/* ── FORM INPUTS (Step 8) – im Konfigurator gescoped ── */
.config-card .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.config-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}

.config-card .form-group.full-width { grid-column: 1 / -1; }

.config-card .form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.config-card .form-group input {
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--black);
  background: var(--warm-white);
  border: 1.5px solid var(--warm-gray);
  border-radius: 10px;
  outline: none;
  transition: all var(--transition);
  width: 100%;
}

.config-card .form-group input:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.12);
}

.config-card .form-group input.error { border-color: var(--error); }

.field-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 2px;
}

.form-textarea {
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--black);
  background: var(--warm-white);
  border: 1.5px solid var(--warm-gray);
  border-radius: 10px;
  outline: none;
  transition: all var(--transition);
  width: 100%;
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.12);
}

/* Consent */
.consent-group {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}

.consent-label input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.consent-label a { color: var(--gold); text-decoration: underline; }
.consent-label a:hover { color: var(--blue-mid); }

/* ── CONFIG NAV ── */
.config-nav {
  padding: 24px 40px;
  border-top: 1px solid var(--warm-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--warm-white);
}

.btn-config-back {
  background: transparent;
  border: 1.5px solid var(--warm-gray);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-config-back:hover {
  border-color: var(--gold-light);
  color: var(--gold);
}

.btn-config-back:disabled {
  opacity: 0;
  pointer-events: none;
}

.btn-config-next {
  background: var(--gold);
  color: var(--white);
  padding: 14px 36px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(166, 124, 82, 0.3);
}

.btn-config-next:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(166, 124, 82, 0.4);
}

.btn-config-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── CONFIG SUCCESS / ERROR ── */
.config-success {
  display: none;
  text-align: center;
  padding: 64px 40px;
}

.config-success.visible { display: block; }

.success-icon {
  width: 72px; height: 72px;
  background: var(--success-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.success-icon svg { width: 36px; height: 36px; color: var(--success); }

.config-success h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.config-success p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto 32px;
}

.config-success p strong { color: var(--white); }

.config-error-msg {
  background: var(--error-bg);
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--error);
  text-align: center;
  display: none;
}

.config-error-msg.visible { display: block; }

/* ── INFO MODAL ── */
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.info-modal.open { opacity: 1; pointer-events: all; }

.info-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.info-modal-content {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}

.info-modal.open .info-modal-content { transform: translateY(0) scale(1); }

.info-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--warm-gray);
  background: var(--warm-white);
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-family: var(--font);
  line-height: 1;
}

.info-modal-close:hover { background: var(--black); border-color: var(--black); color: var(--white); }

.info-modal-icon {
  width: 48px; height: 48px;
  background: var(--sky-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.info-modal-icon svg { width: 24px; height: 24px; color: var(--gold); }

#modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 14px;
}

#modal-body { font-size: 14px; color: var(--text-muted); line-height: 1.75; }
#modal-body p { margin-bottom: 12px; }
#modal-body ul { padding-left: 20px; margin-bottom: 12px; }
#modal-body li { margin-bottom: 6px; }
#modal-body strong { color: var(--black); }

/* Langes Kompositum (z.B. „Dachflächenfenster") nie abschneiden */
.hero h1 { overflow-wrap: break-word; hyphens: auto; }

/* ── RESPONSIVE ── */
@media (max-width: 1050px) {
  .vorteile-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 26px; }
}

@media (max-width: 900px) {
  .config-header { padding: 24px 24px 20px; }
  .config-body { padding: 28px 24px; }
  .config-nav { padding: 20px 24px; }
  .config-card .form-grid { grid-template-columns: 1fr; }
  .option-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .prozess-grid-3 { gap: 12px; }
  .prozess-step { padding: 0 4px; }
  .prozess-step h3 { font-size: 13px; }
  .prozess-step p { font-size: 11px; }
  .prozess-num-wrap { width: 48px; height: 48px; margin-bottom: 12px; }
  .prozess-step-icon { width: 22px; height: 22px; }
  .prozess-step:not(:last-child)::after { top: 24px; left: calc(100% + 6px); width: 9px; height: 9px; }
  .vorteile-grid { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: repeat(2, 1fr); }
  .option-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .option-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .zusatz-grid { grid-template-columns: 1fr; }
  .info-modal-content { padding: 28px 24px; }
}

@media (max-width: 380px) {
  .hero-badge { font-size: 9px; letter-spacing: 0.1em; }
}
