/*
 * Liderpool Rollladen-Konfigurator — Styles (Baustein B)
 * Spec: sbb24/web/specs/liderpool_konfigurator.md
 *
 * Marken-Farben: Brand-Blau #0c527b / Brand-Orange #f07800
 * Breakpoints: 375px (Mobile), 768px (Tablet), 1440px (Desktop)
 * Touch-Targets: min 44px (WCAG 2.5.5)
 * CLS-Praevention: feste Min-Heights fuer Bild-/SVG-/Preis-Container
 */

/* ============================================================
   CSS-Variablen
   ============================================================ */
:root {
  --lk-brand: #0c527b;
  --lk-brand-light: #1575b0;
  --lk-orange: #f07800;
  --lk-text: #1a1a1a;
  --lk-text-muted: #666;
  --lk-border: #d0dce6;
  --lk-bg: #f7fafc;
  --lk-bg-card: #ffffff;
  --lk-radius: 8px;
  --lk-shadow: 0 2px 8px rgba(12, 82, 123, 0.10);
  --lk-transition: 0.18s ease;
}

/* ============================================================
   Reset / Base (scoped zu #liderpool-konfigurator)
   ============================================================ */
#liderpool-konfigurator,
#liderpool-konfigurator *,
#liderpool-konfigurator *::before,
#liderpool-konfigurator *::after {
  box-sizing: border-box;
}

#liderpool-konfigurator {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--lk-text);
  background: var(--lk-bg);
  padding: 24px 16px;
  max-width: 1200px;
  margin: 0 auto;
  /* CLS-Praevention: Mount-Container reserviert Hoehe, bevor der Wizard gemountet wird
     (Spinner -> Wizard-Mount erzeugt sonst Layout-Shift; web-debugger 2026-06-17) */
  min-height: 620px;
}

/* ============================================================
   Spinner (Lade-Zustand)
   ============================================================ */
.lk-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 16px;
  color: var(--lk-text-muted);
}

.lk-spinner-inner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--lk-border);
  border-top-color: var(--lk-brand);
  border-radius: 50%;
  animation: lk-spin 0.7s linear infinite;
}

@keyframes lk-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   Header
   ============================================================ */
.lk-header {
  text-align: center;
  margin-bottom: 24px;
}

.lk-headline {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--lk-brand);
  margin: 0 0 8px;
}

.lk-subline {
  color: var(--lk-text-muted);
  margin: 0;
  font-size: 1rem;
}

/* ============================================================
   Fortschritts-Leiste
   ============================================================ */
.lk-progress {
  display: flex;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  gap: 0;
  counter-reset: none;
}

.lk-progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: default;
  padding: 8px 4px;
}

/* Verbindungslinie zwischen Schritten */
.lk-progress-step + .lk-progress-step::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(-50% + 20px);
  right: calc(50% + 20px);
  height: 2px;
  background: var(--lk-border);
  transition: background var(--lk-transition);
}

.lk-progress-step.is-done + .lk-progress-step::before,
.lk-progress-step.is-active + .lk-progress-step::before {
  background: var(--lk-brand);
}

.lk-progress-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lk-border);
  color: var(--lk-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background var(--lk-transition), color var(--lk-transition);
  z-index: 1;
}

.lk-progress-step.is-active .lk-progress-num {
  background: var(--lk-brand);
  color: #fff;
}

.lk-progress-step.is-done .lk-progress-num {
  background: var(--lk-orange);
  color: #fff;
}

/* Haken fuer erledigte Schritte */
.lk-progress-step.is-done .lk-progress-num::after {
  content: '✓';
}

.lk-progress-step.is-done .lk-progress-num-text {
  display: none;
}

.lk-progress-label {
  font-size: 0.75rem;
  margin-top: 4px;
  color: var(--lk-text-muted);
  text-align: center;
}

.lk-progress-step.is-active .lk-progress-label {
  color: var(--lk-brand);
  font-weight: 600;
}

/* ============================================================
   Layout: Wizard (einspaltig — Preis-Panel ist jetzt Fixed-Bottom-Banner)
   Layout-Rework 2026-06-15: rechtes Preis-Panel entfernt.
   Wizard nutzt volle Breite auf allen Viewports.
   ============================================================ */
.lk-layout {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.lk-wizard {
  flex: 1;
  min-width: 0;
  /* Padding unten damit Fixed-Bottom-Banner Inhalt/Buttons nicht verdeckt.
     Banner-Hoehe ca. 68px (normal) + 16px Abstand = 84px.
     Bei aufgeklapptem Toggle-Bereich bis zu ~240px — daher 260px als sicherer Wert. */
  padding-bottom: 84px;
}

/* ============================================================
   Schritt-Container (CLS-Praevention: feste Min-Height)
   ============================================================ */
.lk-step {
  min-height: 320px;
}

.lk-step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--lk-brand);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lk-border);
}

/* ============================================================
   Modell-Cards (Schritt 1)
   ============================================================ */
.lk-winder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.lk-winder-card {
  border: 2px solid var(--lk-border);
  border-radius: var(--lk-radius);
  padding: 12px;
  background: var(--lk-bg-card);
  cursor: pointer;
  transition: border-color var(--lk-transition), box-shadow var(--lk-transition), transform var(--lk-transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-height: 44px; /* Touch-Target */
}

.lk-winder-card:hover,
.lk-winder-card:focus-visible {
  border-color: var(--lk-brand-light);
  box-shadow: var(--lk-shadow);
  outline: 2px solid var(--lk-brand);
  outline-offset: 2px;
}

.lk-winder-card.is-active {
  border-color: var(--lk-brand);
  box-shadow: 0 0 0 3px rgba(12, 82, 123, 0.2);
}

/* Modell-Bild (CLS: feste Min-Height) */
.lk-winder-img {
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lk-winder-img img {
  width: 100%;
  height: 100px;
  object-fit: contain;
}

.lk-winder-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--lk-text);
}

.lk-winder-preis {
  font-size: 0.85rem;
  color: var(--lk-brand);
}

/* ============================================================
   Farb-Auswahl (Schritt 1)
   ============================================================ */
.lk-color-section,
.lk-bepl-section,
.lk-rail-section,
.lk-acc-section {
  margin-top: 24px;
}

.lk-color-section h3,
.lk-bepl-section h3,
.lk-rail-section h3,
.lk-acc-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--lk-text);
}

.lk-required {
  color: #c00;
  font-size: 0.9em;
}

.lk-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lk-color-btn {
  border: 2px solid var(--lk-border);
  border-radius: var(--lk-radius);
  padding: 8px;
  background: var(--lk-bg-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
  min-height: 44px;
  transition: border-color var(--lk-transition);
}

.lk-color-btn.is-active {
  border-color: var(--lk-brand);
  box-shadow: 0 0 0 3px rgba(12, 82, 123, 0.2);
}

.lk-color-btn:hover,
.lk-color-btn:focus-visible {
  border-color: var(--lk-brand-light);
  outline: 2px solid var(--lk-brand);
  outline-offset: 2px;
}

.lk-color-img {
  width: 56px;
  height: 40px;
  min-height: 40px; /* CLS */
  border-radius: 4px;
  overflow: hidden;
  background: var(--lk-border);
}

.lk-color-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lk-color-btn span {
  font-size: 0.8rem;
  text-align: center;
}

/* ============================================================
   Beplankung-Buttons
   ============================================================ */
.lk-bepl-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lk-bepl-btn {
  border: 2px solid var(--lk-border);
  border-radius: 20px;
  padding: 8px 16px;
  background: var(--lk-bg-card);
  cursor: pointer;
  font-size: 0.9rem;
  min-height: 44px;
  transition: border-color var(--lk-transition);
}

.lk-bepl-btn.is-active {
  border-color: var(--lk-brand);
  background: rgba(12, 82, 123, 0.06);
  color: var(--lk-brand);
  font-weight: 600;
}

.lk-bepl-btn:hover,
.lk-bepl-btn:focus-visible {
  border-color: var(--lk-brand-light);
  outline: 2px solid var(--lk-brand);
  outline-offset: 2px;
}

/* A2: Beplankung als Bild-Galerie (Grid mit je Bild + Label + Preis) */
.lk-bepl-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.lk-bepl-img-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 2px solid var(--lk-border);
  border-radius: 8px;
  padding: 8px 4px 6px;
  background: var(--lk-bg-card);
  cursor: pointer;
  font-size: 0.78rem;
  text-align: center;
  min-height: 44px;
  transition: border-color var(--lk-transition);
}

.lk-bepl-img-btn.is-active {
  border-color: var(--lk-brand);
  background: rgba(12, 82, 123, 0.06);
}

.lk-bepl-img-btn:hover,
.lk-bepl-img-btn:focus-visible {
  border-color: var(--lk-brand-light);
  outline: 2px solid var(--lk-brand);
  outline-offset: 2px;
}

.lk-bepl-img-wrap {
  width: 64px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0;
}

.lk-bepl-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lk-bepl-img-label {
  font-size: 0.72rem;
  color: var(--lk-text);
  font-weight: 500;
  line-height: 1.2;
}

.lk-bepl-img-btn.is-active .lk-bepl-img-label {
  color: var(--lk-brand);
  font-weight: 600;
}

.lk-bepl-img-preis {
  font-size: 0.68rem;
  color: var(--lk-text-muted);
}

.lk-bepl-img-btn.is-active .lk-bepl-img-preis {
  color: var(--lk-brand);
}

.lk-laengs-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.lk-laengs-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--lk-brand);
  cursor: pointer;
}

.lk-laengs-toggle label {
  cursor: pointer;
  font-size: 0.9rem;
}

/* ============================================================
   Schienen-Eingabe + allg. Inputs
   ============================================================ */
.lk-input {
  border: 2px solid var(--lk-border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fff;
  color: var(--lk-text);
  transition: border-color var(--lk-transition);
  min-height: 44px;
}

.lk-input:focus {
  border-color: var(--lk-brand);
  outline: 2px solid var(--lk-brand);
  outline-offset: 2px;
}

.lk-rail-hint {
  font-size: 0.85rem;
  color: var(--lk-text-muted);
  margin: 4px 0 8px;
}

/* ============================================================
   Zubehoer
   ============================================================ */
.lk-acc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.lk-acc-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--lk-brand);
  cursor: pointer;
}

.lk-acc-row label {
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.3;
}

/* ============================================================
   Schritt 2 — Form + Maße
   ============================================================ */
.lk-form-section {
  margin-bottom: 24px;
}

.lk-form-section h3,
.lk-mass-section h3,
.lk-svg-section h3,
.lk-cut-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.lk-form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lk-form-btn {
  border: 2px solid var(--lk-border);
  border-radius: 20px;
  padding: 10px 20px;
  background: var(--lk-bg-card);
  cursor: pointer;
  font-size: 0.9rem;
  min-height: 44px;
  transition: border-color var(--lk-transition);
}

.lk-form-btn.is-active {
  border-color: var(--lk-brand);
  background: rgba(12, 82, 123, 0.06);
  color: var(--lk-brand);
  font-weight: 600;
}

.lk-form-btn:hover,
.lk-form-btn:focus-visible {
  border-color: var(--lk-brand-light);
  outline: 2px solid var(--lk-brand);
  outline-offset: 2px;
}

.lk-mass-section {
  margin-bottom: 20px;
}

.lk-input-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.lk-input-row label {
  font-size: 0.9rem;
  font-weight: 500;
}

.lk-input-row input {
  max-width: 200px;
}

/* ============================================================
   SVG Pool-Schema (CLS: feste Min-Height)
   ============================================================ */
.lk-svg-section {
  margin: 24px 0;
}

.lk-svg-container {
  min-height: 180px;
  background: var(--lk-bg-card);
  border: 1px solid var(--lk-border);
  border-radius: var(--lk-radius);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lk-pool-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.lk-svg-pool {
  fill: rgba(12, 82, 123, 0.12);
  stroke: var(--lk-brand);
  stroke-width: 2;
}

.lk-svg-dim {
  fill: var(--lk-text-muted);
  font-size: 11px;
  font-family: inherit;
}

.lk-svg-cutout {
  fill: var(--lk-orange);
  opacity: 0.8;
}

.lk-svg-mini {
  max-width: 160px;
  min-height: 120px;
}

/* ============================================================
   Ausschnitte (Schritt 2)
   ============================================================ */
.lk-cut-section {
  margin-top: 24px;
}

.lk-cut-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.lk-cut-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--lk-brand);
  cursor: pointer;
}

.lk-cut-row label {
  font-size: 0.9rem;
  flex: 1;
  cursor: pointer;
}

.lk-cut-qty {
  width: 80px;
}

/* ============================================================
   Schritt 3 — Lamellen (Tabs + Swatch-Grid)
   ============================================================ */
.lk-lamella-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--lk-border);
  margin-bottom: 20px;
}

.lk-lamella-tab {
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 20px;
  background: none;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--lk-text-muted);
  margin-bottom: -2px;
  min-height: 44px;
  transition: color var(--lk-transition), border-color var(--lk-transition);
}

.lk-lamella-tab.is-active {
  color: var(--lk-brand);
  border-bottom-color: var(--lk-brand);
  font-weight: 600;
}

.lk-lamella-tab:hover,
.lk-lamella-tab:focus-visible {
  color: var(--lk-brand);
  outline: 2px solid var(--lk-brand);
  outline-offset: 2px;
}

.lk-flaeche-info {
  font-size: 0.85rem;
  color: var(--lk-brand);
  margin: 0 0 12px;
}

/* Swatch-Grid */
.lk-swatch-section {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 100px; /* CLS */
}

.lk-swatch {
  border: 2px solid var(--lk-border);
  border-radius: var(--lk-radius);
  padding: 8px;
  background: var(--lk-bg-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 88px;
  min-height: 44px;
  transition: border-color var(--lk-transition), box-shadow var(--lk-transition);
}

.lk-swatch.is-active {
  border-color: var(--lk-brand);
  box-shadow: 0 0 0 3px rgba(12, 82, 123, 0.2);
}

.lk-swatch:hover,
.lk-swatch:focus-visible {
  border-color: var(--lk-brand-light);
  outline: 2px solid var(--lk-brand);
  outline-offset: 2px;
}

.lk-swatch__color {
  width: 56px;
  height: 40px;
  min-height: 40px; /* CLS */
  border-radius: 4px;
  overflow: hidden;
  background: var(--lk-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lk-swatch__color img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lk-swatch__label {
  font-size: 0.78rem;
  text-align: center;
  color: var(--lk-text);
}

/* ============================================================
   Preis-Panel — Fixed-Bottom-Banner (ALLE Viewports)
   Layout-Rework 2026-06-15:
   Das alte sticky-rechts Desktop-Panel ist weggefallen.
   Das Banner ist jetzt auf Desktop, Tablet und Mobile identisch:
   fixed unten, volle Breite, kompakt.
   Feste Mindest-Höhe (68px) verhindert CLS bei Preis-Update.
   ============================================================ */
.lk-preis-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-top: 2px solid var(--lk-brand);
  border-radius: var(--lk-radius) var(--lk-radius) 0 0;
  padding: 10px 16px;
  /* Feste Mindest-Hoehe = CLS=0: Preis-Update verschiebt keine anderen Elemente */
  min-height: 68px;
  box-shadow: 0 -4px 20px rgba(12, 82, 123, 0.15);
}

/* Inneres Flex-Layout des Banners */
.lk-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Preis-Block (Label + Brutto nebeneinander auf Desktop, gestapelt auf Mobile) */
.lk-banner-preis-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

/* Label "ca. Richtpreis (inkl. 19% MwSt.)" */
.lk-preis-label {
  font-size: 0.85rem;
  color: var(--lk-text-muted);
  white-space: nowrap;
}

/* Hauptpreis im Banner */
.lk-preis-brutto {
  font-size: 1.6rem;
  color: var(--lk-brand);
  font-weight: 700;
  white-space: nowrap;
}

/* Sonderfall-Text statt Preis */
.lk-banner-sonder {
  font-size: 1rem;
  color: var(--lk-orange);
}

/* Pending-Text wenn Preis noch nicht berechenbar */
.lk-banner-pending {
  font-size: 0.9rem;
  color: var(--lk-text-muted);
  font-style: italic;
}

/* Toggle-Button "Aufschlüsselung ▸" */
.lk-banner-toggle {
  background: none;
  border: 1px solid var(--lk-brand);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--lk-brand);
  cursor: pointer;
  white-space: nowrap;
  min-height: 36px;
  transition: background var(--lk-transition), color var(--lk-transition);
  flex-shrink: 0;
}
.lk-banner-toggle:hover,
.lk-banner-toggle:focus-visible {
  background: rgba(12, 82, 123, 0.08);
  outline: 2px solid var(--lk-brand);
  outline-offset: 2px;
}

/* Aufklappbarer Aufschlüsselungs-Bereich (erscheint über dem Banner) */
.lk-banner-details {
  /* Wenn sichtbar: bricht nach unten um (padding-top 8px zum banner-inner) */
  width: 100%;
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.lk-banner-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
}

.lk-banner-details-list li {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dashed var(--lk-border);
}

.lk-banner-details-list .lk-pos-gesamt {
  font-weight: 600;
  border-bottom: none;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--lk-border);
}

/* Legacy-Klassen (für Konsistenz in bestehenden Aufrufen im Schritt-4-Block) */
.lk-preis-summe {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.lk-preis-hinweis {
  font-size: 0.75rem;
  color: var(--lk-text-muted);
  margin: 0 0 12px;
  line-height: 1.4;
}

.lk-preis-details {
  font-size: 0.85rem;
  margin-top: 8px;
}

.lk-preis-details summary {
  cursor: pointer;
  color: var(--lk-brand);
  user-select: none;
}

.lk-preis-details ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.lk-preis-details li {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dashed var(--lk-border);
}

.lk-preis-details .lk-pos-gesamt {
  font-weight: 600;
  border-bottom: none;
  margin-top: 4px;
}

.lk-preis-pending {
  font-size: 0.9rem;
  color: var(--lk-text-muted);
}

.lk-preis-sondergroesse {
  font-size: 0.9rem;
  background: #fff8f0;
  border: 1px solid var(--lk-orange);
  border-radius: 6px;
  padding: 12px;
  color: var(--lk-text);
}

/* ============================================================
   Navigations-Buttons
   ============================================================ */
.lk-wizard-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  flex-wrap: wrap;
}

.lk-btn {
  border: none;
  border-radius: var(--lk-radius);
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background var(--lk-transition), transform var(--lk-transition);
}

.lk-btn-next {
  background: var(--lk-brand);
  color: #fff;
}

.lk-btn-next:hover,
.lk-btn-next:focus-visible {
  background: var(--lk-brand-light);
  outline: 2px solid var(--lk-brand);
  outline-offset: 2px;
}

.lk-btn-prev {
  background: var(--lk-border);
  color: var(--lk-text);
}

.lk-btn-prev:hover,
.lk-btn-prev:focus-visible {
  background: #c0d0dc;
  outline: 2px solid var(--lk-brand);
  outline-offset: 2px;
}

/* ============================================================
   Zusammenfassung (Schritt 4)
   ============================================================ */
.lk-preview {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 16px;
  background: var(--lk-bg-card);
  border: 1px solid var(--lk-border);
  border-radius: var(--lk-radius);
  margin-bottom: 24px;
  min-height: 120px; /* CLS */
}

.lk-preview-img {
  width: 120px;
  height: 80px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--lk-bg);
}

.lk-preview-text {
  flex: 1;
  min-width: 120px;
  font-size: 0.95rem;
}

.lk-preview-swatch {
  width: 56px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lk-preview-swatch span {
  display: none;
}

/* Preis-Tabelle */
.lk-zusammen-preis {
  margin-bottom: 24px;
}

.lk-zusammen-preis h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.lk-preis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.lk-preis-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--lk-border);
}

.lk-preis-zahl {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lk-preis-sum {
  font-weight: 500;
}

.lk-preis-total td {
  border-top: 2px solid var(--lk-brand);
  font-size: 1.1rem;
  padding-top: 10px;
}

/* ============================================================
   Kontakt-Formular
   ============================================================ */
.lk-contact-form {
  background: var(--lk-bg-card);
  border: 1px solid var(--lk-border);
  border-radius: var(--lk-radius);
  padding: 24px;
}

.lk-contact-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--lk-brand);
}

.lk-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.lk-form-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--lk-text);
}

.lk-form-row .lk-input {
  width: 100%;
}

.lk-textarea {
  resize: vertical;
  min-height: 88px;
}

.lk-dsgvo-hinweis {
  font-size: 0.8rem;
  color: var(--lk-text-muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.lk-dsgvo-hinweis a {
  color: var(--lk-brand);
}

.lk-form-actions {
  display: flex;
  justify-content: flex-end;
}

.lk-btn-submit {
  border: none;
  border-radius: var(--lk-radius);
  padding: 14px 36px;
  background: var(--lk-orange);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  transition: background var(--lk-transition), transform var(--lk-transition);
}

.lk-btn-submit:hover,
.lk-btn-submit:focus-visible {
  background: #d06000;
  outline: 2px solid var(--lk-orange);
  outline-offset: 2px;
}

.lk-btn-submit:disabled {
  background: var(--lk-border);
  color: var(--lk-text-muted);
  cursor: not-allowed;
}

/* ============================================================
   Feedback-Meldungen / Alerts
   ============================================================ */
.lk-form-feedback {
  margin-top: 16px;
}

.lk-alert {
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.lk-alert--success {
  background: #e8f5ea;
  border: 1px solid #5aab6e;
  color: #1d6b30;
}

.lk-alert--error {
  background: #fdecea;
  border: 1px solid #e07070;
  color: #8b1a1a;
}

.lk-alert--warn {
  background: #fff8f0;
  border: 1px solid var(--lk-orange);
  color: #7a4000;
}

.lk-alert--info {
  background: #e8f2fb;
  border: 1px solid var(--lk-brand);
  color: var(--lk-brand);
}

.lk-error-banner {
  background: #fdecea;
  border: 2px solid #e07070;
  border-radius: var(--lk-radius);
  padding: 20px;
  text-align: center;
  color: #8b1a1a;
}

.lk-validation-error {
  background: #fdecea;
  border: 1px solid #e07070;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #8b1a1a;
  margin-bottom: 12px;
  display: none;
}

/* ============================================================
   Bild-Platzhalter (Null-Guard-Fallback)
   ============================================================ */
.lk-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 40px;
  background: var(--lk-brand);
  border-radius: 4px;
  opacity: 0.15;
}

.lk-winder-img .lk-img-placeholder {
  width: 100%;
  height: 100px;
  min-height: 100px;
  border-radius: 4px;
}

/* ============================================================
   Uebergroesse-Hinweis
   ============================================================ */
.lk-uebergroesse-hinweis {
  min-height: 0;
  margin-bottom: 8px;
}

/* ============================================================
   Modell-Infoboxen (Punkt 4 — Robin-Feedback)
   ============================================================ */

/* Subtitle unter dem Modellnamen in der Card */
.lk-winder-subtitle {
  font-size: 0.75rem;
  color: var(--lk-text-muted);
  text-align: center;
  line-height: 1.3;
}

/* Der runde i-Button (IN der Card, oben rechts absolut) */
.lk-winder-card {
  position: relative; /* Anker fuer absolut positionierten i-Button */
}

.lk-info-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--lk-brand);
  background: rgba(255,255,255,0.9);
  color: var(--lk-brand);
  font-size: 0.7rem;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background var(--lk-transition), color var(--lk-transition);
  z-index: 2;
  flex-shrink: 0;
}

.lk-info-btn.is-active,
.lk-info-btn:hover,
.lk-info-btn:focus-visible {
  background: var(--lk-brand);
  color: #fff;
  outline: 2px solid var(--lk-brand);
  outline-offset: 2px;
}

/* Ausgeklappte Infobox — erscheint innerhalb der Card */
.lk-info-box {
  background: #f0f7fb;
  border: 1px solid var(--lk-brand);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 6px;
  text-align: left;
  width: 100%;
}

.lk-info-box ul {
  margin: 0;
  padding-left: 16px;
}

.lk-info-box li {
  margin-bottom: 3px;
}

/* Zweite Bild-Ansicht (angle + front) in der Winder-Card */
.lk-winder-angle-img {
  width: 100%;
  height: 100px;
  object-fit: contain;
}

/* ============================================================
   Lamellen-Material-Infoboxen (Punkt 5 — Robin-Feedback)
   ============================================================ */
.lk-material-infobox {
  background: linear-gradient(135deg, #f0f7fb 0%, #e8f2f8 100%);
  border: 1px solid var(--lk-brand);
  border-radius: var(--lk-radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  min-height: 80px; /* CLS */
}

.lk-material-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lk-brand);
  margin: 0 0 4px;
}

.lk-material-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lk-orange);
  margin: 0 0 8px;
}

.lk-material-text {
  font-size: 0.85rem;
  color: var(--lk-text);
  margin: 0 0 10px;
  line-height: 1.5;
}

.lk-material-pros {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.lk-material-pros li {
  font-size: 0.82rem;
  color: var(--lk-text);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Haken-Icon vor jedem Pro-Punkt */
.lk-material-pros li::before {
  content: '✓';
  color: #2a8a45;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Swatch-Preis unter dem Swatch-Label */
.lk-swatch__preis {
  font-size: 0.75rem;
  color: var(--lk-brand);
  text-align: center;
}

/* ============================================================
   Zuschnitt-Details (Punkt 6 — Robin-Feedback)
   ============================================================ */
.lk-cut-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--lk-bg);
  border: 1px solid var(--lk-border);
  border-radius: 6px;
  width: 100%;
  min-height: 60px; /* CLS */
}

.lk-cut-diagram {
  width: 80px;
  height: 60px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--lk-border);
  flex-shrink: 0;
}

/* Asset-Platzhalter fuer fehlende Diagramm-/Modellbilder */
.lk-img-placeholder--asset {
  width: 80px;
  height: 60px;
  background: var(--lk-brand);
  opacity: 0.12;
  border-radius: 4px;
  flex-shrink: 0;
}

.lk-cut-desc {
  font-size: 0.82rem;
  color: var(--lk-text-muted);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

/* SVG Ausschnitt-Label (Buchstabe in Marker) */
.lk-svg-cutout-label {
  fill: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: inherit;
  pointer-events: none;
}

/* ============================================================
   Baustein D — Cover-Bild-Swap (2026-06-12)
   CLS=0: aspect-ratio 16/9 fixiert die Hoehe des Cover-Containers.
   ============================================================ */

/* Haupt-Layout-Container: Cover links, Maßskizze rechts */
.lk-cover-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 0;
  background: transparent;
  border: none;
  min-height: 0;
  /* Ueberschreibt .lk-svg-container defaults */
}

/* Cover-Behaelter: 16:9 aspect-ratio → CLS=0 */
.lk-cover-wrap {
  flex: 1 1 auto;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--lk-radius);
  border: 1px solid var(--lk-border);
  background: #e0eaf2; /* Platzhalter-Farbe waehrend Bild laedt */
  position: relative;
}

/* Das echte Render-Bild */
.lk-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--lk-radius);
  /* loading="lazy" wird im JS gesetzt */
}

/* Fallback-Container bei fehlendem Cover-Bild (Schema-SVG drin) */
.lk-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lk-bg-card);
}

.lk-cover-fallback .lk-pool-svg {
  width: 100%;
  height: 100%;
  max-width: none;
}

/* Maßskizze — kleinere Sekundaer-Darstellung */
.lk-massskizze-wrap {
  flex: 0 0 200px;
  width: 200px;
  background: var(--lk-bg-card);
  border: 1px solid var(--lk-border);
  border-radius: var(--lk-radius);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Hoehe folgt dem Cover-Bereich */
}

.lk-massskizze-wrap .lk-pool-svg {
  width: 100%;
  height: auto;
  max-width: 200px;
}

/* Mini-Container fuer Zusammenfassung (Schritt 4) */
.lk-cover-mini {
  max-width: 380px;
  flex-shrink: 0;
}

.lk-cover-mini .lk-cover-wrap {
  /* aspect-ratio bleibt 16:9 */
}

.lk-cover-mini .lk-massskizze-wrap {
  flex: 0 0 140px;
  width: 140px;
}

/* Vorschau-Block in Zusammenfassung: Cover statt Modell-Foto */
.lk-preview--komposit {
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 20px;
}

/* Lamellen-Info im Zusammenfassungs-Text */
.lk-preview-lamella {
  font-size: 0.88rem;
  color: var(--lk-text-muted);
  margin: 4px 0 0;
}

/* Breakpoints */
@media (max-width: 600px) {
  .lk-preview--komposit {
    flex-direction: column;
  }
  .lk-cover-mini {
    max-width: 100%;
    width: 100%;
  }
  .lk-cover-layout {
    flex-direction: column;
  }
  .lk-massskizze-wrap {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 479px) {
  /* Auf kleinen Mobiles: Maßskizze kompakter */
  .lk-massskizze-wrap {
    max-width: 100%;
  }
}

/* Alte Komposit-CSS-Klassen (nicht mehr in Nutzung, aber kein Crash wenn noch referenziert) */
.lk-komposit-container {
  /* Legacy: kein Inhalt mehr, aber kein display:none um potentielle Alt-Referenzen nicht zu brechen */
}
.lk-komposit-mini {
  /* Legacy */
}
.lk-comp-cover { opacity: 0.92; }
.lk-comp-roller { fill: rgba(220,225,230,0.85); stroke: rgba(180,190,200,0.7); stroke-width: 1; }
.lk-comp-roller-shine { stroke: rgba(255,255,255,0.6); stroke-width: 1.5; }
.lk-comp-device { /* kein CSS noetig */ }

/* ============================================================
   Breakpoint: Tablet (768px)
   Layout-Rework 2026-06-15: lk-preis-panel ist jetzt global fixed-bottom.
   Keine Panel-Override mehr nötig — nur Layout-spezifische Anpassungen.
   ============================================================ */
@media (max-width: 768px) {
  /* Layout-Richtung spielt keine Rolle mehr (Wizard ist eh einspaltig),
     aber explizit column bleibt für eventuelle zukünftige Kinder in .lk-layout */
  .lk-layout {
    flex-direction: column;
  }

  /* Banner kompakter auf Tablet */
  .lk-preis-panel {
    padding: 10px 12px;
  }

  .lk-preis-brutto {
    font-size: 1.4rem;
  }

  .lk-winder-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  #liderpool-konfigurator {
    padding: 16px 12px;
  }

  .lk-headline {
    font-size: 1.4rem;
  }

  .lk-progress-label {
    display: none; /* Auf Mobile/Tablet nur Nummern */
  }
}

/* ============================================================
   Breakpoint: Mobile (375px)
   ============================================================ */
@media (max-width: 479px) {
  .lk-winder-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lk-lamella-tab {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .lk-btn {
    padding: 12px 18px;
    font-size: 0.9rem;
  }

  .lk-btn-submit {
    padding: 14px 24px;
  }

  .lk-winder-img img,
  .lk-winder-img .lk-img-placeholder {
    height: 80px;
  }
}

/* ============================================================
   Breakpoint: Desktop (1440px)
   ============================================================ */
@media (min-width: 1440px) {
  #liderpool-konfigurator {
    padding: 32px;
  }

  .lk-winder-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ============================================================
   Stufe 3 — LKViz-Integration
   ============================================================ */

/* Canvas-Singleton (persistenter 2.5D-Render) */
.lk-viz-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #1a2535;
  border-radius: var(--lk-radius);
  touch-action: none; /* Verhindert Scroll-Konflikt beim Zeichnen auf Mobile */
  cursor: default;
}

/* LKViz-Container (Schritt 2 + 3) */
.lk-viz-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lk-viz-container .lk-massskizze-wrap {
  max-width: 220px;
  margin-top: 8px;
  align-self: flex-start;
}

/* Schritt 3: Viz-Vorschau oben */
.lk-s3-viz-section {
  margin-bottom: 16px;
}

.lk-s3-viz-container {
  max-height: 340px;
  overflow: hidden;
  border-radius: var(--lk-radius);
}

/* ---- Cutout-Palette (Schritt 2) ---- */
.lk-cutout-palette-section {
  margin-top: 24px;
  background: var(--lk-bg-card);
  border: 1px solid var(--lk-border);
  border-radius: var(--lk-radius);
  padding: 16px;
}

.lk-cutout-palette-section h3 {
  font-size: 0.95rem;
  color: var(--lk-brand);
  margin: 0 0 8px;
}

.lk-cutout-palette-hint {
  font-size: 0.82rem;
  color: var(--lk-text-muted);
  margin: 0 0 12px;
}

.lk-cutout-mode-hint {
  display: none;
  font-size: 0.82rem;
  color: var(--lk-orange);
  background: #fff8f0;
  border-left: 3px solid var(--lk-orange);
  padding: 6px 10px;
  margin-bottom: 10px;
  border-radius: 0 4px 4px 0;
}
.lk-cutout-mode-hint.is-visible {
  display: block;
}

.lk-cutout-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.lk-cutout-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  background: var(--lk-bg);
  border: 2px solid var(--lk-border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
  color: var(--lk-text);
  transition: border-color var(--lk-transition), background var(--lk-transition);
  min-height: 72px; /* Touch-Target */
  white-space: pre-line;
}
.lk-cutout-type-btn:hover {
  border-color: var(--lk-brand-light);
  background: #eef4f8;
}
.lk-cutout-type-btn.is-active {
  border-color: var(--lk-orange);
  background: #fff3e8;
  color: var(--lk-orange);
}
.lk-cutout-type-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 3px;
}

.lk-cutout-undo-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lk-cutout-undo,
.lk-cutout-redo,
.lk-cutout-clear {
  padding: 8px 14px;
  font-size: 0.85rem;
  min-height: 44px;
}

.lk-cutout-clear {
  background: #fdecea;
  border-color: #e57373;
  color: #b71c1c;
}
.lk-cutout-clear:hover {
  background: #e57373;
  color: #fff;
}

/* ---- Detail + Lifestyle Panels (Schritt 3) ---- */
.lk-s3-panel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.lk-s3-detail-panel,
.lk-s3-lifestyle-panel {
  background: var(--lk-bg-card);
  border: 1px solid var(--lk-border);
  border-radius: var(--lk-radius);
  padding: 14px;
}

.lk-s3-panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lk-brand);
  margin-bottom: 8px;
}

.lk-s3-panel-img-wrap {
  position: relative;
  min-height: 120px;
  background: #f0f4f8;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.lk-s3-panel-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.lk-s3-panel-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  font-size: 0.8rem;
  color: var(--lk-text-muted);
}

.lk-s3-panel-hint {
  font-size: 0.75rem;
  color: var(--lk-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ---- Handmuster-Link (Schritt 3) ---- */
.lk-handmuster-hint {
  margin: 12px 0;
  padding: 10px 14px;
  background: #f0f7fc;
  border-left: 3px solid var(--lk-brand);
  border-radius: 0 var(--lk-radius) var(--lk-radius) 0;
  font-size: 0.88rem;
  color: var(--lk-text);
}

.lk-handmuster-link {
  color: var(--lk-brand);
  font-weight: 600;
  text-decoration: underline;
}
.lk-handmuster-link:hover {
  color: var(--lk-orange);
}

/* ---- Artikel-Link in Winder-Card (Schritt 1) ---- */
.lk-winder-article-link {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--lk-brand);
  text-decoration: underline;
  padding: 4px 0;
  min-height: 32px; /* Touch-Target erweiterung */
}
.lk-winder-article-link:hover {
  color: var(--lk-orange);
}

/* ---- Mobile Responsive fuer Panels + Palette ---- */
@media (max-width: 600px) {
  .lk-s3-panel-row {
    grid-template-columns: 1fr;
  }

  .lk-cutout-palette {
    grid-template-columns: repeat(3, 1fr);
  }

  .lk-viz-canvas {
    aspect-ratio: 4 / 3; /* etwas groesser auf Mobile fuer einfacheres Zeichnen */
  }

  .lk-s3-viz-container {
    max-height: 260px;
  }
}

/* ============================================================
   3-ZONEN-LAYOUT (Wizard-Umbau 2026-06-15)
   Struktur: links | mitte (.lk-center-stage + .lk-preis-unter) | rechts
   Der Fixed-Bottom-Banner wird durch zentralen Preis-Block unter der
   mittigen Ansicht ersetzt (Schritte 1-3). Schritt 4 unveraendert.
   ============================================================ */

/* Aeusseres Grid — 3 Spalten, Haupt-Wrapper fuer jeden Schritt */
.lk-zonen {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr minmax(220px, 300px);
  gap: 0 20px;
  align-items: start;
  width: 100%;
}

/* Linke Zone: Modell-Auswahl / Form+Maße+Lamellen / Cutout-Checkbox-Liste */
.lk-zone-left {
  /* Natuerliche Hoehe, scrollt mit */
}

/* Mittlere Zone: Pool-Darstellung + Preis darunter */
.lk-zone-center {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Pool-Bild / Canvas / SVG — volle Breite der mittigen Spalte */
.lk-center-stage {
  width: 100%;
}

/* Preis zentral unter der Pool-Darstellung (CLS: feste min-height) */
.lk-preis-unter {
  min-height: 64px;
  background: var(--lk-bg-card);
  border: 1.5px solid var(--lk-brand);
  border-top: 3px solid var(--lk-brand);
  border-radius: 0 0 var(--lk-radius) var(--lk-radius);
  padding: 10px 16px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Preis-Label "ca. Richtpreis (inkl. MwSt.)" */
.lk-preis-unter .lk-preis-label {
  font-size: 0.82rem;
  color: var(--lk-text-muted);
  white-space: nowrap;
}

/* Brutto-Betrag */
.lk-preis-unter .lk-preis-brutto {
  font-size: 1.5rem;
  color: var(--lk-brand);
  font-weight: 700;
  white-space: nowrap;
}

/* Pending / Sonder-Text im Preis-Block */
.lk-preis-unter .lk-preis-pending-text,
.lk-preis-unter .lk-preis-sonder-text {
  font-size: 0.9rem;
  color: var(--lk-text-muted);
}
.lk-preis-unter .lk-preis-sonder-text {
  color: var(--lk-orange);
  font-weight: 600;
}

/* Rechte Zone: Modell-Detail / Lifestyle + Detail-Panels / Cutout-Infos */
.lk-zone-right {
  /* Natuerliche Hoehe, scrollt mit */
}

/* ---- Schritt 1: Winder-Liste links (kompakt, role=radiogroup) ---- */
.lk-winder-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Kompakter Winder-Eintrag in der linken Sidebar-Liste */
.lk-winder-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 2px solid var(--lk-border);
  border-radius: var(--lk-radius);
  background: var(--lk-bg-card);
  cursor: pointer;
  transition: border-color var(--lk-transition), box-shadow var(--lk-transition);
  min-height: 44px;
  text-align: left;
  width: 100%;
}
.lk-winder-list-item:hover,
.lk-winder-list-item:focus-visible {
  border-color: var(--lk-brand-light);
  outline: 2px solid var(--lk-brand);
  outline-offset: 2px;
}
.lk-winder-list-item.is-active {
  border-color: var(--lk-brand);
  box-shadow: 0 0 0 3px rgba(12,82,123,0.18);
  background: rgba(12,82,123,0.04);
}
.lk-winder-list-thumb {
  width: 44px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 3px;
  background: var(--lk-bg);
}
.lk-winder-list-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lk-text);
  flex: 1;
  min-width: 0;
}
.lk-winder-list-preis {
  font-size: 0.78rem;
  color: var(--lk-brand);
  white-space: nowrap;
}

/* ---- Schritt 1: Modell-Detail (mittlere Zone) ---- */
.lk-winder-detail {
  background: var(--lk-bg-card);
  border: 1px solid var(--lk-border);
  border-radius: var(--lk-radius);
  padding: 16px;
  min-height: 200px; /* CLS */
}
.lk-winder-detail-img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  margin-bottom: 12px;
}
.lk-winder-detail-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lk-brand);
  margin: 0 0 4px;
}
.lk-winder-detail-subtitle {
  font-size: 0.88rem;
  color: var(--lk-text-muted);
  margin: 0 0 8px;
}
.lk-winder-detail-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--lk-text);
}
.lk-winder-detail-desc ul {
  margin: 4px 0;
  padding-left: 16px;
}

/* ---- Schritt 1: Rechte Zone (Farb/Bepl/Schiene/Zubehör Controls) ---- */
.lk-s1-right-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lk-s1-right-controls .lk-color-section,
.lk-s1-right-controls .lk-bepl-section,
.lk-s1-right-controls .lk-rail-section,
.lk-s1-right-controls .lk-acc-section {
  margin-top: 0; /* Override: kein top-margin im rechten Panel */
}

/* Modell-Artikel-Link (rechte Zone Schritt 1) */
.lk-s1-article-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--lk-brand);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  padding: 6px 0;
}
.lk-s1-article-link:hover {
  color: var(--lk-orange);
}

/* ---- Schritt 2: Preset-Buttons ---- */
.lk-size-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.lk-preset-btn {
  border: 2px solid var(--lk-border);
  border-radius: var(--lk-radius);
  padding: 8px 6px;
  background: var(--lk-bg-card);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lk-text);
  min-height: 44px;
  text-align: center;
  transition: border-color var(--lk-transition), background var(--lk-transition);
}
.lk-preset-btn:hover,
.lk-preset-btn:focus-visible {
  border-color: var(--lk-brand-light);
  outline: 2px solid var(--lk-brand);
  outline-offset: 2px;
}
.lk-preset-btn.is-active {
  border-color: var(--lk-brand);
  background: rgba(12,82,123,0.07);
  color: var(--lk-brand);
}

/* Slider-Eingabe */
.lk-slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.lk-slider-row label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
  font-weight: 500;
}
.lk-slider-row label .lk-slider-val {
  font-weight: 700;
  color: var(--lk-brand);
  font-size: 1rem;
}
.lk-slider {
  width: 100%;
  accent-color: var(--lk-brand);
  height: 6px;
  cursor: pointer;
}
/* Freies Zahlenfeld fuer Sondergroessen */
.lk-freenum-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.lk-freenum-row label {
  font-size: 0.78rem;
  color: var(--lk-text-muted);
  white-space: nowrap;
}
.lk-freenum {
  width: 80px;
  padding: 4px 8px;
  border: 1.5px solid var(--lk-border);
  border-radius: 4px;
  font-size: 0.88rem;
  min-height: 36px;
}
.lk-freenum:focus {
  border-color: var(--lk-brand);
  outline: 2px solid var(--lk-brand);
  outline-offset: 2px;
}

/* ---- Schritt 2: Lamellen-Gruppen ohne Tabs (immer sichtbar) ---- */
.lk-lamella-all-groups {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lk-lamella-group-block {
  margin-bottom: 16px;
}
.lk-lamella-group-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lk-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--lk-border);
}
/* Swatch-Grid kompakter in linker Zone */
.lk-lamella-group-block .lk-swatch-section {
  min-height: 0; /* Override: CLS-Reserve nicht noetig in Links-Layout */
  gap: 8px;
}
.lk-lamella-group-block .lk-swatch {
  min-width: 70px; /* etwas kleiner in der Sidebar */
}

/* ---- Schritt 2: Pool-Vorschau (mittlere Zone) ---- */
/* Canvas/Cover nimmt volle Breite, kein Seitenrand */
.lk-zone-center .lk-svg-container,
.lk-zone-center .lk-viz-container {
  width: 100%;
  min-height: 200px;
}

/* ---- Schritt 2: Palette+Canvas nebeneinander (wie Blaupause) ---- */
.lk-canvas-with-palette {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.lk-canvas-with-palette .lk-svg-container,
.lk-canvas-with-palette .lk-viz-container {
  flex: 1;
  min-width: 0;
}
/* Vertikale Palette rechts vom Canvas */
.lk-cutout-palette-vertical {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  width: 56px;
}
.lk-cutout-type-btn-vert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 3px;
  background: var(--lk-bg);
  border: 2px solid var(--lk-border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.65rem;
  line-height: 1.2;
  text-align: center;
  color: var(--lk-text);
  transition: border-color var(--lk-transition), background var(--lk-transition);
  min-height: 52px;
  white-space: pre-line;
}
.lk-cutout-type-btn-vert:hover,
.lk-cutout-type-btn-vert:focus-visible {
  border-color: var(--lk-brand-light);
  outline: 2px solid var(--lk-brand);
  outline-offset: 2px;
}
.lk-cutout-type-btn-vert.is-active {
  border-color: var(--lk-orange);
  background: #fff3e8;
  color: var(--lk-orange);
}
.lk-cutout-type-btn-vert img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ---- Schritt 3: Detail + Lifestyle rechts ---- */
/* Wiederverwendet .lk-s3-detail-panel / .lk-s3-lifestyle-panel aus bestehendem CSS */
/* Kein Override noetig — Panel-Styles sind bereits vorhanden */

/* ---- Breakpoints fuer 3-Zonen-Layout ---- */

/* Tablet: 2-spaltig (rechte Zone faellt unter, links+mitte oben) */
@media (max-width: 1024px) {
  .lk-zonen {
    grid-template-columns: minmax(220px, 280px) 1fr;
    grid-template-rows: auto auto;
  }
  .lk-zone-left {
    grid-column: 1;
    grid-row: 1;
  }
  .lk-zone-center {
    grid-column: 2;
    grid-row: 1;
  }
  .lk-zone-right {
    grid-column: 1 / -1; /* volle Breite */
    grid-row: 2;
  }
}

/* Mobile: 1-spaltig (DOM-Reihenfolge: links → mitte → rechts) */
@media (max-width: 768px) {
  .lk-zonen {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .lk-zone-left  { grid-column: 1; grid-row: 1; }
  .lk-zone-center { grid-column: 1; grid-row: 2; }
  .lk-zone-right  { grid-column: 1; grid-row: 3; }

  /* Slider-Val groesser auf Mobile */
  .lk-slider-row label .lk-slider-val { font-size: 1.1rem; }

  /* Preset-Buttons 2-spaltig bleibt */

  /* Winder-Detail-Bild kleiner */
  .lk-winder-detail-img { max-height: 180px; }

  /* Palette vertikal → horizontal auf Mobile */
  .lk-canvas-with-palette {
    flex-direction: column;
  }
  .lk-cutout-palette-vertical {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  .lk-cutout-type-btn-vert {
    flex: 1 1 calc(25% - 6px);
    min-width: 50px;
  }
}

/* Schritt-Titel in 3-Zonen-Ansicht: ueber dem gesamten Grid */
.lk-zonen-title {
  grid-column: 1 / -1;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--lk-brand);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lk-border);
}

/* Abstand zwischen Schritt-Titel und 3-Zonen-Grid */
.lk-step--zonen {
  /* Kein extra Padding, Titel hat margin-bottom */
}

/* Preis-Banner (altes Fixed-Bottom) wird in 3-Zonen deaktiviert.
   Wenn noch im DOM: versteckt halten. */
.lk-preis-panel.is-hidden-zonen {
  display: none !important;
}

/* Zone-Section-Separator (leichte Trennung, kein Border noetig) */
.lk-zone-left,
.lk-zone-right {
  padding-top: 2px;
}

/* Zone-Titel (kleiner H3-Stil fuer Abschnitte INNERHALB einer Zone) */
.lk-zone-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--lk-text);
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--lk-border);
}

/* Schritt-2-Zuschnitt-Texte (linke Zone auf Mobile als Fallback) */
.lk-s2-cutout-fallback {
  margin-top: 12px;
}
.lk-s2-cutout-fallback .lk-cut-section {
  margin-top: 0;
}

/* Placeholder wenn kein Modell gewaehlt (mittlere Zone Schritt 1) */
.lk-zone-center-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--lk-bg-card);
  border: 2px dashed var(--lk-border);
  border-radius: var(--lk-radius);
  color: var(--lk-text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

/* Undo-Row in Schritt 3 (Canvas+Palette-Kontext) */
.lk-s3-undo-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Material-Infobox in der linken Zone kompakter */
.lk-zone-left .lk-material-infobox {
  padding: 12px 14px;
  margin-bottom: 12px;
}

/* Handmuster-Link in linker Zone */
.lk-zone-left .lk-handmuster-hint {
  margin: 8px 0;
  font-size: 0.82rem;
}

/* ============================================================
   Feinschliff S2-S4 (2026-06-16)
   ============================================================ */

/* --- S2: m²-Flaechenanzeige einmalig (unter Slidern) --- */
.lk-flaeche-block {
  font-size: 0.88rem;
  color: var(--lk-brand);
  margin: 6px 0 10px;
  min-height: 20px;
}
.lk-flaeche-label {
  color: var(--lk-text-muted);
}
.lk-flaeche-wert {
  font-size: 1rem;
  font-weight: 700;
}

/* --- S2: Mitte — Lifestyle GROSS oben --- */
.lk-s2-lifestyle-main {
  width: 100%;
  position: relative;
  background: #e0eaf2;
  border-radius: var(--lk-radius);
  border: 1px solid var(--lk-border);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 10px;
  min-height: 120px;
}
.lk-s2-lifestyle-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--lk-radius);
}
.lk-s2-lifestyle-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--lk-text-muted);
}

/* --- S2: Mitte — Canvas KLEIN + SVG-Skizze nebeneinander (bottom row) --- */
.lk-s2-bottom-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.lk-s2-canvas-small {
  flex: 1;
  min-width: 0;
  max-height: 160px;
  overflow: hidden;
}
/* Canvas in S2 mini skalieren */
.lk-s2-canvas-small .lk-viz-canvas {
  max-height: 160px;
}
.lk-s2-skizze {
  flex: 0 0 130px;
  width: 130px;
  min-height: 100px;
}

/* --- S2: Rechte Zone — Lamellen-Infoblock --- */
.lk-s2-lamella-infoblock {
  background: var(--lk-bg-card);
  border: 1px solid var(--lk-border);
  border-radius: var(--lk-radius);
  padding: 12px 14px;
}
.lk-s2-lamella-namepreis {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}
.lk-s2-lamella-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lk-text);
}
.lk-s2-lamella-preis {
  font-size: 0.88rem;
  color: var(--lk-brand);
  font-weight: 600;
}

/* --- S3: Radius-Ausschnitt-Gruppe --- */
.lk-radius-row {
  background: var(--lk-bg-card);
  border: 1px solid var(--lk-border);
  border-radius: var(--lk-radius);
  padding: 10px 12px;
  margin-bottom: 12px;
  flex-direction: column;
  align-items: flex-start;
}
.lk-radius-title {
  font-size: 0.9rem;
  margin-bottom: 8px;
  width: 100%;
}
.lk-radius-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.lk-radius-option-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lk-radius-option-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  cursor: pointer;
}
.lk-radius-option-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lk-text);
}
.lk-radius-option-preis {
  font-size: 0.78rem;
  color: var(--lk-text-muted);
}

/* --- S4: Zweispalten-Layout --- */
.lk-s4-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.lk-s4-col-left,
.lk-s4-col-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Top-Down-Mini in S4 (kleiner als in anderen Schritten) */
.lk-s4-topdown {
  max-width: 280px;
  overflow: hidden;
  border-radius: var(--lk-radius);
  border: 1px solid var(--lk-border);
  padding: 8px;
  background: #fff;
}
/* SVG-Schema innerhalb des S4-Mini-Top-Down */
.lk-s4-topdown svg {
  width: 100%;
  height: auto;
  display: block;
}
.lk-s4-topdown .lk-viz-canvas,
.lk-s4-topdown .lk-cover-wrap {
  max-height: 140px;
}

/* Konfigurationstext in S4 */
.lk-s4-summary {
  background: var(--lk-bg-card);
  border: 1px solid var(--lk-border);
  border-radius: var(--lk-radius);
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.lk-s4-summary p {
  margin: 2px 0;
}

/* Ausschnitt-Liste in S4 */
.lk-s4-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lk-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 6px;
}
.lk-s4-cutouts {
  background: var(--lk-bg-card);
  border: 1px solid var(--lk-border);
  border-radius: var(--lk-radius);
  padding: 12px 14px;
}
.lk-s4-cutout-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}
.lk-s4-cutout-list li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed var(--lk-border);
}
.lk-s4-cutout-list li:last-child {
  border-bottom: none;
}
.lk-s4-cutout-name { color: var(--lk-text); }
.lk-s4-cutout-preis { color: var(--lk-brand); font-weight: 600; }
.lk-s4-drawn-note {
  font-size: 0.78rem;
  color: var(--lk-text-muted);
  margin: 6px 0 0;
  font-style: italic;
}

/* Lamellen-Bilder in S4 */
.lk-s4-img-panel {
  background: var(--lk-bg-card);
  border: 1px solid var(--lk-border);
  border-radius: var(--lk-radius);
  padding: 10px 12px;
}
.lk-s4-lamella-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* PROMINENTE Preis-Box in S4 */
.lk-s4-preis-prominent {
  background: var(--lk-bg-card);
  border: 2px solid var(--lk-brand);
  border-radius: var(--lk-radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(12, 82, 123, 0.12);
}
.lk-s4-preis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--lk-border);
}
.lk-s4-preis-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lk-brand);
  margin: 0;
}
.lk-s4-brutto-gross {
  font-size: 2rem;
  font-weight: 800;
  color: var(--lk-brand);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Tabellen-Rows in prominenter Preis-Box etwas groesser */
.lk-s4-preis-prominent .lk-preis-table td {
  padding: 8px 10px;
  font-size: 0.95rem;
}
.lk-s4-preis-prominent .lk-preis-total td {
  font-size: 1.15rem;
  padding-top: 12px;
}

/* Responsive: S4 auf Mobile einspaltig */
@media (max-width: 768px) {
  .lk-s4-layout {
    grid-template-columns: 1fr;
  }
  .lk-s4-brutto-gross {
    font-size: 1.5rem;
  }
  .lk-s2-bottom-row {
    flex-direction: column;
  }
  .lk-s2-skizze {
    flex: 0 0 auto;
    width: 100%;
    max-width: 200px;
  }
}
