/*
 * Betten-Michel - Boxspringbett-Konfigurator
 * Copyright (c) 2026 "Betten-Michel", Alexander Michel, Edenkoben. Alle Rechte vorbehalten.
 * Developed by Jérémy Michel.
 * Dieser Quellcode und die zugehörigen Dateien sind urheberrechtlich geschützt.
 * Jegliche Vervielfältigung, Verbreitung, Veränderung oder Nutzung – ganz oder
 * in Teilen – ist ohne ausdrückliche schriftliche Genehmigung von Betten-Michel
 * untersagt.
 *
 * Kontakt: info@betten-michel.de
 */

/* ------------------------------------------------------------------
   Custom CSS – nur Dinge, die Tailwind nicht elegant abdeckt
   (Range-Slider-Optik, dezente Scrollbar, Toast-Animation).
   ------------------------------------------------------------------ */

/* ------------------------------------------------------------------
   Site-Header (wiederverwendbar auf landing + configurator)
   ------------------------------------------------------------------ */
.site-header {
  border-bottom: 1px solid #e8e8ea;
  background: #ffffff;
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-header__logo img {
  height: 44px;
  width: auto;
  display: block;
}
.site-header__subtitle {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #55555a;
  padding-left: 16px;
  border-left: 1px solid #e8e8ea;
}
@media (max-width: 640px) {
  .site-header__inner { padding: 10px 16px; gap: 12px; }
  .site-header__logo img { height: 34px; }
  .site-header__subtitle {
    font-size: 10px;
    padding-left: 12px;
  }
}

/* Mobile-Spacer am unteren Rand des Panel-Footers:
   Auf Mobile bekommt der Sticky-Button-Footer zusaetzliches Bottom-Padding,
   damit die Buttons nicht zu nah an der Gesten-Leiste / dem unteren Rand sitzen.
   `env(safe-area-inset-bottom)` deckt iOS-Notch-/Home-Indicator-Geraete sauber ab. */
@media (max-width: 768px) {
  .panel-footer {
    padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px));
  }
}

/* Konfigurator-Main schoepft die verbleibende Hoehe unter dem Header. */
.configurator-main {
  /* Header ~63 px Desktop, ~53 px Mobile (siehe oben). 70 px ist konservativ. */
  height: calc(100dvh - 70px);
}
@media (max-width: 640px) {
  .configurator-main { height: calc(100dvh - 56px); }
}

/* Viewport-Lock: auf der Konfigurator-Seite darf die Page selbst NICHT
   scrollen. Internes Scrolling im Panel (overflow-y-auto im Step-Inhalt)
   bleibt erhalten. Bei langem Step 6 nimmt der Panel-Inhalt mehr Raum.
   Page-Hintergrund = Manufaktur-Cream, damit kein weisser Bereich auftaucht
   falls auf bestimmten iOS-Geraeten doch minimal ueberlaufen wird. */
body[data-page="configurator"] {
  overflow: hidden;
  background: #f4f1ec;
}

/* Mobile: Viewer + Panel teilen die container-Hoehe per Flex-Basis,
   sodass die Summe NIE den Container ueberlaeuft (was vorher mit
   2×50dvh + Header passierte). */
@media (max-width: 1023px) {
  .configurator-viewer {
    flex: 1 1 50%;
    min-height: 0;
  }
  .configurator-panel {
    flex: 1 1 50%;
    min-height: 0;
  }
  /* In Schritt 6 bekommt das Panel mehr Raum (mehr Form-Inhalt) */
  body[data-step="summary"] .configurator-viewer { flex-basis: 25%; }
  body[data-step="summary"] .configurator-panel  { flex-basis: 75%; }
}

/* ------------------------------------------------------------------
   Landing-Page
   ------------------------------------------------------------------ */
.landing {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.landing-hero { text-align: left; }
.landing-hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #55555a;
  margin: 0 0 14px;
}
.landing-hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  color: #1a1a1d;
  margin: 0 0 18px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.landing-hero__lede {
  font-size: 17px;
  line-height: 1.55;
  color: #55555a;
  max-width: 620px;
  margin: 0 0 28px;
}
.landing-hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.landing-cta-primary {
  display: inline-block;
  background: #1a1a1d;
  color: #ffffff;
  text-decoration: none;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.landing-cta-primary:hover { background: #2a2a2d; }
.landing-cta-primary:active { transform: translateY(1px); }
.landing-hero__hint { font-size: 13px; color: #55555a; margin: 0; }

.landing-note {
  background: #f4f1ec;
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.55;
  color: #55555a;
}
.landing-note__link { color: #1a1a1d; }

.landing-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid #e8e8ea;
  padding-top: 28px;
  font-size: 13px;
  color: #55555a;
  line-height: 1.55;
}
.landing-footer a { color: #1a1a1d; text-decoration: none; }
.landing-footer a:hover { text-decoration: underline; }
.landing-footer__heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a1a1d;
  margin: 0 0 6px;
  font-weight: 600;
}
@media (max-width: 640px) {
  .landing { padding: 32px 16px 56px; gap: 36px; }
  .landing-footer { grid-template-columns: 1fr; gap: 18px; }
}

/* ------------------------------------------------------------------
   Honeypot – versteckt fuer Menschen, sichtbar fuer naive Bots
   ------------------------------------------------------------------ */
.hp-field {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Range-Slider: schmale Bahn, dezenter Daumen im Anthrazit-Stil. */
input[type="range"].slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: #d8d4cd;
  outline: none;
  border-radius: 999px;
  margin: 14px 0;
}

input[type="range"].slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a1a1d;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.12s ease;
}

input[type="range"].slider::-webkit-slider-thumb:hover {
  transform: scale(1.08);
}

input[type="range"].slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a1a1d;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

/* Zahlen-Eingabefeld neben dem Slider: ohne Spinner, kompakt. */
input[type="number"].numeric {
  -moz-appearance: textfield;
}

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

/* Toast-Animation. */
.toast {
  pointer-events: auto;
  background: rgba(26, 26, 29, 0.94);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  max-width: 420px;
  text-align: center;
  animation: toast-in 0.18s ease-out, toast-out 0.25s ease-in 3.2s forwards;
}

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

@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px); }
}

/* Scrollbar im Konfigurationspanel: unaufdringlich. */
.scroll-panel::-webkit-scrollbar {
  width: 8px;
}
.scroll-panel::-webkit-scrollbar-thumb {
  background: #d8d4cd;
  border-radius: 999px;
}
.scroll-panel::-webkit-scrollbar-thumb:hover {
  background: #b4b4b8;
}

/* Viewer-Canvas randlos, OrbitControls greifen sauber. */
#viewer canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
  touch-action: none;
}

/* Option-Karten (z. B. Stofffarbe / Fußhöhe) – dezenter Hover/Active. */
.option-card {
  border: 1.5px solid transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.option-card[aria-pressed="true"] {
  border-color: #1a1a1d;
  background-color: #fafaf8;
}
.option-card:hover:not([aria-pressed="true"]) {
  border-color: #b4b4b8;
}

/* ------------------------------------------------------------------
   Step-Flow: Fortschritts-Dots + Fade-Übergang zwischen Schritten
   ------------------------------------------------------------------ */

.progress-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 0 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #b4b4b8;
}
.progress-dot:disabled {
  cursor: default;
}
.progress-dot__bar {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: #e8e8ea;
  transition: background-color 0.18s ease;
}
.progress-dot__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: inherit;
  transition: color 0.18s ease;
}
.progress-dot[data-state="visited"] {
  color: #55555a;
}
.progress-dot[data-state="visited"] .progress-dot__bar {
  background: #b4b4b8;
}
.progress-dot[data-state="current"] {
  color: #1a1a1d;
}
.progress-dot[data-state="current"] .progress-dot__bar {
  background: #1a1a1d;
}
.progress-dot:hover:not(:disabled) .progress-dot__bar {
  background: #55555a;
}

/* 200ms Fade zwischen Schritten – wird per JS via .is-fading getriggert. */
.step-fade {
  opacity: 1;
  transition: opacity 200ms ease;
}
.step-fade.is-fading {
  opacity: 0;
}

/* Liegehöhen-Chip: auf Mobile noch dezenter, damit der Viewer nicht erdrückt wird. */
@media (max-width: 640px) {
  #liegehoehe-chip {
    bottom: 8px;
    right: 8px;
    padding: 6px 10px;
  }
  #liegehoehe-chip p:first-child { font-size: 9px; }
  #liegehoehe-chip p:last-child  { font-size: 14px; }
}

/* Bestseller-Badge auf Matratzenkarten – subtil, in Akzentfarbe. */
.bestseller-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1d;
  background: rgba(26, 26, 29, 0.06);
  border: 1px solid rgba(26, 26, 29, 0.18);
  border-radius: 999px;
}

/* Material-/Matratzen-Karten: einheitliche Optik mit dezenter Hover-Akzentuierung. */
.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 14px;
  background: #ffffff;
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
  min-height: 48px;
}
.choice-card[aria-pressed="true"] {
  border-color: #1a1a1d;
  background: #fafaf8;
}
.choice-card:hover:not([aria-pressed="true"]) {
  border-color: #b4b4b8;
}
.choice-card__title {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1d;
}
.choice-card__short {
  font-size: 12px;
  color: #55555a;
  line-height: 1.4;
}
.choice-card__meta {
  margin-top: 4px;
  font-size: 11px;
  color: #55555a;
}

/* ------------------------------------------------------------------
   Foto-Galerie + Lightbox (wiederverwendbar in Schritt 3 + 5)
   ------------------------------------------------------------------ */
.photo-gallery__strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.photo-gallery__strip::-webkit-scrollbar { height: 6px; }
.photo-gallery__strip::-webkit-scrollbar-thumb { background: #d8d4cd; border-radius: 999px; }

.photo-gallery__item { flex: 0 0 auto; scroll-snap-align: start; list-style: none; }

.photo-gallery__thumb {
  display: block;
  width: 132px;
  height: 96px;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.photo-gallery__thumb:hover { border-color: #1a1a1d; transform: translateY(-1px); }
.photo-gallery__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Lightbox */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox-backdrop.is-open { display: flex; }

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, calc(100vw - 96px));
  max-height: calc(100dvh - 96px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.lightbox-image {
  max-width: 100%;
  max-height: calc(100dvh - 180px);
  object-fit: contain;
  border-radius: 8px;
  background: #1a1a1d;
  user-select: none;
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  max-width: 700px;
  padding: 0 12px;
}

.lightbox-nav, .lightbox-close {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-close    { top: 16px; right: 16px; font-size: 24px; }

@media (max-width: 640px) {
  .lightbox-backdrop { padding: 12px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-nav--prev { left: 8px; }
  .lightbox-nav--next { right: 8px; }
  .lightbox-close   { top: 8px; right: 8px; }
  .lightbox-image   { max-height: calc(100dvh - 220px); }
}

/* ------------------------------------------------------------------
   Härtegrad-/Topper-Pills (Schritt 5)
   ------------------------------------------------------------------ */
.firmness-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.firmness-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-height: 48px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1.5px solid #e8e8ea;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.firmness-pill:hover:not([aria-pressed="true"]) {
  border-color: #b4b4b8;
}
.firmness-pill[aria-pressed="true"] {
  border-color: #1a1a1d;
  background: #fafaf8;
}
.firmness-pill__num {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1d;
}
.firmness-pill__label {
  font-size: 12px;
  color: #55555a;
  line-height: 1.2;
}

/* ------------------------------------------------------------------
   Beratungs-CTA in Schritt 5 (dezent, aber sichtbar)
   ------------------------------------------------------------------ */
.advisor-cta {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: #fafaf8;
  border: 1.5px solid #e8e8ea;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.advisor-cta:hover {
  border-color: #1a1a1d;
  background: #f5f1ea;
}
.advisor-cta__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1d;
}
.advisor-cta__subtitle {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #55555a;
}

/* ------------------------------------------------------------------
   Matratzen-Beratungs-Popup
   ------------------------------------------------------------------ */
.advisor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.advisor-backdrop.is-open { display: flex; }

.advisor-modal {
  background: #ffffff;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 32px);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.advisor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #e8e8ea;
}
.advisor-progress { flex: 1; }
.advisor-progress__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #55555a;
  margin-bottom: 4px;
}
.advisor-progress__bar {
  height: 4px;
  background: #e8e8ea;
  border-radius: 999px;
  overflow: hidden;
}
.advisor-progress__fill {
  height: 100%;
  background: #1a1a1d;
  width: 0;
  transition: width 0.25s ease;
}
.advisor-close {
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #55555a;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 999px;
}
.advisor-close:hover { background: #f4f1ec; color: #1a1a1d; }

.advisor-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.advisor-question {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1d;
  margin: 0 0 4px;
  line-height: 1.35;
}
.advisor-helper {
  font-size: 12px;
  color: #55555a;
  margin: 0 0 14px;
}
.advisor-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.advisor-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1.5px solid #e8e8ea;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.advisor-option:hover { border-color: #b4b4b8; }
.advisor-option.is-selected,
.advisor-option[aria-pressed="true"] {
  border-color: #1a1a1d;
  background: #fafaf8;
}
.advisor-option__indicator {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1.5px solid #b4b4b8;
  flex-shrink: 0;
  position: relative;
}
.advisor-option.is-selected .advisor-option__indicator,
.advisor-option[aria-pressed="true"] .advisor-option__indicator {
  border-color: #1a1a1d;
  background: #1a1a1d;
  box-shadow: inset 0 0 0 3px #ffffff;
}
.advisor-option__label {
  font-size: 14px;
  color: #1a1a1d;
  line-height: 1.35;
}

.advisor-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #e8e8ea;
  background: #fafaf8;
}
.advisor-btn {
  flex: 1;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.advisor-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.advisor-btn--primary {
  background: #1a1a1d;
  color: #ffffff;
}
.advisor-btn--primary:hover:not(:disabled) { background: #2a2a2d; }
.advisor-btn--secondary {
  background: #ffffff;
  color: #1a1a1d;
  border-color: #e8e8ea;
}
.advisor-btn--secondary:hover:not(:disabled) { border-color: #1a1a1d; }

/* Partner 2 / Couple-Flow im Advisor – dezente Akzentfarbe */
.advisor-modal[data-phase="partner2"] .advisor-progress__fill { background: #6b8a5f; }
.advisor-phase-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b8a5f;
  background: rgba(107, 138, 95, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* Intermission-Screen */
.advisor-intermission p {
  font-size: 14px;
  line-height: 1.55;
  color: #55555a;
  margin: 0 0 12px;
}
.advisor-intermission__hint {
  background: #fafaf8;
  border-left: 3px solid #6b8a5f;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px !important;
}

/* Couple-Empfehlung: zwei Karten nebeneinander, auf Mobile untereinander */
.couple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 18px;
}
@media (max-width: 600px) {
  .couple-grid { grid-template-columns: 1fr; }
}
.couple-card {
  background: #fafaf8;
  border: 1.5px solid #e8e8ea;
  border-radius: 10px;
  padding: 12px 14px;
}
.couple-card__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b8a5f;
  font-weight: 600;
  margin: 0 0 4px;
}
.couple-card__firmness {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1d;
  margin: 0 0 8px;
}
.couple-card__explanation {
  font-size: 12px;
  line-height: 1.5;
  color: #55555a;
  margin: 0;
}

/* Empfehlungsseite */
.advisor-result__eyebrow {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #55555a;
  margin: 0 0 6px;
}
.advisor-result__title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1d;
  margin: 0 0 4px;
  line-height: 1.25;
}
.advisor-result__firmness {
  font-size: 14px;
  color: #1a1a1d;
  margin: 0 0 16px;
}
.advisor-result__explanation {
  font-size: 14px;
  line-height: 1.55;
  color: #1a1a1d;
  margin: 0 0 18px;
}
.advisor-result__altsHeading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #55555a;
  margin: 0 0 8px;
  font-weight: 600;
}
.advisor-result__alts {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.advisor-alt {
  padding: 10px 12px;
  background: #fafaf8;
  border: 1px solid #e8e8ea;
  border-radius: 8px;
  font-size: 13px;
}
.advisor-alt__name {
  display: block;
  font-weight: 600;
  color: #1a1a1d;
  margin-bottom: 2px;
}
.advisor-alt__reason { color: #55555a; line-height: 1.4; }
.advisor-result__note {
  font-size: 12px;
  line-height: 1.55;
  color: #55555a;
  background: #f4f1ec;
  border-radius: 8px;
  padding: 10px 12px;
}

@media (max-width: 640px) {
  .advisor-modal {
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }
  .advisor-question { font-size: 16px; }
  .advisor-result__title { font-size: 20px; }
}

/* Split-Toggle in Schritt 5 (unterschiedliche Härtegrade pro Seite) */
.split-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid #e8e8ea;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.split-toggle:hover { border-color: #b4b4b8; }
.split-toggle input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #1a1a1d;
}
.split-toggle input[type="checkbox"]:checked + span strong { color: #1a1a1d; }
.split-toggle:has(input:checked) {
  border-color: #1a1a1d;
  background: #fafaf8;
}

/* Doppel-Spalten-Layout fuer Pills im Split-Modus. */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.split-grid__col { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 480px) {
  .split-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* Wert-Pulse: kurze visuelle Bestätigung wenn ein Slider-Wert sich ändert. */
@keyframes value-pulse {
  0%   { transform: scale(1);    color: #1a1a1d; }
  35%  { transform: scale(1.08); color: #1a1a1d; }
  100% { transform: scale(1);    color: inherit; }
}
.value-pulse {
  display: inline-block;
  animation: value-pulse 260ms ease-out;
}

/* Liegehöhe-Hinweisbox auf der Zusammenfassungsseite. */
.liegehoehe-note {
  background: rgba(244, 241, 236, 0.6);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.55;
  color: #55555a;
}
.liegehoehe-note__title {
  font-weight: 600;
  color: #1a1a1d;
  font-size: 12px;
  margin: 0 0 4px;
}
.liegehoehe-note__body { margin: 0; }
.liegehoehe-note strong { color: #1a1a1d; font-weight: 600; }

/* Hinweis-Box (z. B. Steppungs-Disclaimer in Schritt 3) */
.advisory-note {
  font-size: 12px;
  line-height: 1.55;
  color: #55555a;
  background: rgba(26, 26, 29, 0.04);
  border-left: 2px solid #b4b4b8;
  padding: 8px 12px;
  border-radius: 4px;
}

/* Farb-Swatches (5 Stück pro Material). */
.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 4px 8px;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease;
  min-height: 48px;
}
.color-swatch[aria-pressed="true"] {
  border-color: #1a1a1d;
}
.color-swatch:hover:not([aria-pressed="true"]) {
  border-color: #b4b4b8;
}
.color-swatch__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.color-swatch__label {
  font-size: 11px;
  color: #1a1a1d;
  text-align: center;
  line-height: 1.2;
}

/* ------------------------------------------------------------------
   Mobile-Anpassung für Schritt 6 (Zusammenfassung & Anfrage):
   Vorschau dezent klein, Formular bekommt den Hauptteil des Bildschirms,
   komfortable Touch-Targets. Nur unterhalb 768px aktiv.
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
  /* Die 25/75-Aufteilung Viewer/Panel uebernimmt jetzt das Flex-Layout
     weiter oben (configurator-viewer/-panel + body[data-step="summary"]).
     Hier nur noch die formspezifischen Inputs/Spacings. */

  /* Komfortable Eingabefelder + großzügiger vertikaler Abstand. */
  body[data-step="summary"] #step-content input[type="text"],
  body[data-step="summary"] #step-content input[type="email"],
  body[data-step="summary"] #step-content input[type="tel"],
  body[data-step="summary"] #step-content textarea {
    min-height: 48px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 16px;            /* verhindert iOS-Zoom beim Fokus */
  }
  body[data-step="summary"] #step-content form > div,
  body[data-step="summary"] #step-content form > label {
    margin-top: 16px;
  }
  body[data-step="summary"] #step-content form > div:first-child {
    margin-top: 0;
  }
  /* Submit-Button (Sticky-Footer) bekommt etwas Luft nach oben. */
  body[data-step="summary"] #next-btn {
    min-height: 48px;
  }
}
