/**
 * ═══════════════════════════════════════════════════
 * woschn Konfigurator – Styles
 * Brand Identity Design System
 * ═══════════════════════════════════════════════════
 */

/* ─── Self-hosted Inter Font (DSGVO-konform) ─── */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('https://xzikempsruhsgczhqwuz.supabase.co/storage/v1/object/public/resources/fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('https://xzikempsruhsgczhqwuz.supabase.co/storage/v1/object/public/resources/fonts/Inter-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('https://xzikempsruhsgczhqwuz.supabase.co/storage/v1/object/public/resources/fonts/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('https://xzikempsruhsgczhqwuz.supabase.co/storage/v1/object/public/resources/fonts/Inter-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('https://xzikempsruhsgczhqwuz.supabase.co/storage/v1/object/public/resources/fonts/Inter-ExtraBold.woff2') format('woff2'); }

/* ─── Design Tokens / CSS Custom Properties ─── */
:root {
  --primary: #4000FF;
  --primary-dark: #3200CC;
  --primary-light: #5A1FFF;
  --primary-glow: rgba(64, 0, 255, 0.15);
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-medium: #4A5568;
  --text-light: #718096;
  --border: #E2E8F0;
  --success: #10B981;
  --success-light: rgba(16, 185, 129, 0.08);
  --shadow-sm: 0 4px 20px rgba(64, 0, 255, 0.04);
  --shadow-md: 0 12px 40px rgba(64, 0, 255, 0.08);
  --shadow-lg: 0 24px 60px rgba(64, 0, 255, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ─── Header ─── */
.konfig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.konfig-header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.konfig-header .logo:hover {
  opacity: 0.8;
}

.konfig-header .logo img {
  height: 28px;
  width: auto;
}

.konfig-header .close-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-medium);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

.konfig-header .close-link:hover {
  color: var(--text-dark);
}

.konfig-header .close-link svg {
  width: 18px;
  height: 18px;
}

/* ─── 50:50 Split Layout ─── */
.konfig-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 69px;
}

/* ─── LEFT: Visual Panel ─── */
.konfig-visual {
  position: sticky;
  top: 69px;
  height: calc(100vh - 69px);
  overflow: hidden;
  background: linear-gradient(135deg, #1a0a3e 0%, #2d1266 40%, #4000FF 100%);
}

.visual-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}

.visual-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* ─── Cover variant: full-bleed image ─── */
.visual-slide--cover {
  padding: 0;
}

.visual-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(64, 0, 255, 0.4) 0%, rgba(26, 10, 62, 0.8) 100%);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
}

.visual-slide--cover .visual-title,
.visual-slide--cover .visual-subtitle {
  position: relative;
  z-index: 1;
}

.visual-icon {
  width: 120px;
  height: 120px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.visual-icon svg {
  width: 56px;
  height: 56px;
  stroke: rgba(255, 255, 255, 0.9);
  fill: none;
  stroke-width: 1.5;
}

.visual-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.visual-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  max-width: 420px;
  line-height: 1.6;
}

.visual-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.visual-particle:nth-child(1) { width: 300px; height: 300px; top: -80px; right: -60px; }
.visual-particle:nth-child(2) { width: 200px; height: 200px; bottom: -40px; left: -30px; }
.visual-particle:nth-child(3) { width: 150px; height: 150px; bottom: 20%; right: 10%; }

/* ─── LEFT: Result Offer (Step 4) ─── */
.visual-offer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
  overflow: hidden;
  padding: 0;
  background-color: var(--primary);
  background-image: linear-gradient(135deg, rgba(20, 8, 54, 0.38), rgba(64, 0, 255, 0.18)), url('../../webseite_neu/img/hintergund.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-offer.active {
  opacity: 1;
  pointer-events: auto;
}

.visual-offer-img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: clamp(360px, 44vw, 700px);
  height: calc(100% - 48px);
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-40%);
  filter: saturate(1.08) contrast(1.02);
  z-index: 2;
}

.visual-offer-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(18, 6, 48, 0.38), rgba(64, 0, 255, 0.16));
  z-index: 1;
}

/* ─── USP Content (LEFT on Step 4) ─── */
.usp-content {
  max-width: 440px;
  margin: 0 auto;
}

.usp-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.usp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.usp-badge svg { width: 14px; height: 14px; }

.usp-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.usp-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: 28px;
}

.usp-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.usp-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.usp-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.usp-icon svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.7);
}

.usp-list-compact {
  gap: 18px;
  margin-bottom: 0;
}

.usp-list-compact .usp-item {
  align-items: center;
}

.usp-list-compact .usp-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
}

.usp-text strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.usp-text span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.usp-quote {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  margin-top: 8px;
}

.usp-quote p {
  font-size: 0.9375rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 8px;
}

.usp-quote-author {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ─── Result Phase Transition (RIGHT) ─── */
.result-phase {
  display: none;
}

.result-phase.active {
  display: block;
  animation: fadeInUp 0.4s var(--ease);
}

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

/* ─── Offer Cards (light theme, RIGHT side) ─── */
/* ─── Offer Summary / Checkout Style ─── */
.offer-summary {
  background: transparent;
  margin-bottom: 24px;
}

.summary-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.summary-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--text-dark);
  padding: 6px 0;
}

.summary-row .s-value {
  font-weight: 600;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 12px 0;
}

.summary-total span:first-child {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
}

.summary-total .s-total-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.price-original-total {
  text-decoration: line-through;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.5em;
  margin-right: 12px;
  vertical-align: middle;
}

.result-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── Richtpreis Disclaimer ─── */
.offer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* ─── Promo / Strikethrough Pricing ─── */
.price-original {
  text-decoration: line-through;
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.85em;
  margin-right: 4px;
}

.promo-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 8px;
  text-transform: uppercase;
}

/* ─── Data Error Overlay ─── */
.konfig-error-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 24px;
}

.konfig-error-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.konfig-error-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px;
}

.konfig-error-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

.konfig-error-card .btn-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 32px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

/* ─── Back to Offer inline button ─── */
.btn-back-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  margin-bottom: 16px;
  transition: color var(--transition);
}

.btn-back-inline:hover { color: var(--primary); }
.btn-back-inline svg { width: 16px; height: 16px; }

/* ─── RIGHT: Form Panel ─── */
.konfig-form {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 69px);
  padding: 48px 56px 0;
  position: relative;
}

.konfig-form-inner {
  flex: 1;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

/* ─── Progress Dots ─── */
.konfig-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}

.progress-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.5s var(--ease), width 0.5s var(--ease);
}

.progress-dot.active { background: var(--primary); width: 48px; }
.progress-dot.done { background: var(--success); }

/* ─── Steps ─── */
.konfig-step {
  display: none;
  animation: kfadeUp 0.4s var(--ease);
}

.konfig-step.active { display: block; }

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

.step-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.konfig-step h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.konfig-step .subtitle {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 440px;
}

/* ─── Address Autocomplete ─── */
.address-wrapper { position: relative; }

.address-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: 1.5px solid #CBD5E0;
  border-radius: 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.address-input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(64, 0, 255, 0.12); border-color: var(--primary); }
.address-input::placeholder { color: var(--text-light); }

.address-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-light);
  pointer-events: none;
  transition: color var(--transition);
}

.address-input:focus ~ .address-icon { color: var(--primary); }

.address-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  z-index: 50;
  overflow: hidden;
  display: none;
}

.address-suggestions.open { display: block; }

.address-suggestion {
  padding: 14px 18px;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text-dark);
  transition: background 0.15s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.address-suggestion:hover,
.address-suggestion.highlighted { background: var(--bg-light); }
.address-suggestion + .address-suggestion { border-top: 1px solid rgba(0, 0, 0, 0.04); }
.address-suggestion svg { width: 16px; height: 16px; color: var(--text-light); flex-shrink: 0; margin-top: 2px; }
.address-suggestion .addr-main { font-weight: 500; }
.address-suggestion .addr-sub { font-size: 0.8125rem; color: var(--text-light); margin-top: 1px; }

/* ─── Location Cards ─── */
.locations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.location-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 14px;
  animation: kfadeUp 0.35s var(--ease);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.location-card .loc-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(64, 0, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-card .loc-icon svg { width: 18px; height: 18px; stroke: var(--primary); fill: none; stroke-width: 2; }
.location-card .loc-info { flex: 1; min-width: 0; }
.location-card .loc-address { font-size: 0.9375rem; font-weight: 500; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.location-card .loc-meta { font-size: 0.8125rem; color: var(--text-light); margin-top: 2px; }

.location-card .loc-remove {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all var(--transition);
  flex-shrink: 0;
}

.location-card .loc-remove:hover { background: rgba(239, 68, 68, 0.08); color: #EF4444; }
.location-card .loc-remove svg { width: 16px; height: 16px; }

.add-location-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: opacity var(--transition);
  margin-top: 8px;
}

.add-location-btn:hover { opacity: 0.7; }
.add-location-btn svg { width: 16px; height: 16px; }

/* ─── Form Fields ─── */
.form-group { display: flex; flex-direction: column; gap: 16px; }
.input-row { display: flex; gap: 12px; }
.input-row > * { flex: 1; min-width: 0; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.8125rem; font-weight: 600; color: var(--text-dark); }

.form-field input,
.form-field select {
  padding: 14px 16px;
  border: 1.5px solid #CBD5E0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field select:focus { background: #fff; box-shadow: 0 0 0 3px rgba(64, 0, 255, 0.12); border-color: var(--primary); }
.form-field input::placeholder { color: var(--text-light); }

/* ─── Equipment Sections ─── */
.equipment-section { margin-bottom: 8px; }

.equipment-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1.5px solid #CBD5E0;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: #fff;
  user-select: none;
  transition: all var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.equipment-toggle:hover { border-color: #a0aec0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.equipment-toggle.active { border-color: var(--primary); background: rgba(64, 0, 255, 0.03); box-shadow: 0 0 0 3px rgba(64, 0, 255, 0.12); }

.equipment-checkbox { display: none; }

.equipment-icon {
  display: none;
}

.equipment-icon svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 1.5; }
.equipment-info { flex: 1; }
.equipment-name { font-size: 1rem; font-weight: 600; color: var(--text-dark); }
.equipment-desc { font-size: 0.8125rem; color: var(--text-light); margin-top: 2px; }
.equipment-price-tag { font-size: 0.875rem; font-weight: 600; color: var(--primary); white-space: nowrap; }

.equipment-close {
  display: none;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: none;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-medium);
  padding: 0;
  transition: background 0.15s;
}
.equipment-close:hover { background: rgba(0,0,0,0.12); }
.equipment-toggle.active .equipment-close { display: flex; }

.equipment-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), padding 0.3s var(--ease);
  padding: 0 20px;
  border: 1.5px solid #CBD5E0;
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-top: -2px;
}

.equipment-details.open {
  max-height: 500px;
  opacity: 1;
  padding: 20px;
  border-color: rgba(64, 0, 255, 0.1);
  background: rgba(64, 0, 255, 0.015);
}

.detail-row { display: flex; align-items: center; justify-content: space-between; }
.detail-row + .detail-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.detail-label { font-size: 0.9375rem; font-weight: 500; color: var(--text-dark); }

/* Wash module hint (Box-Modul / Zentral-Modul indicator) */
.wash-module-hint {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  display: none; /* shown via JS */
}
.wash-module-hint.mod-box {
  display: block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.wash-module-hint.mod-central {
  display: block;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.wash-module-hint strong { font-weight: 700; }

.counter-controls { display: flex; align-items: center; gap: 12px; }

.counter-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all var(--transition);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.counter-btn:hover { border-color: var(--primary); color: var(--primary); }
.counter-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.counter-value {
  font-size: 1.25rem;
  font-weight: 700;
  width: 56px;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 6px 4px;
  background: var(--bg-light);
  color: var(--text-dark);
  outline: none;
  box-shadow: 0 4px 20px rgba(64, 0, 255, 0.04);
  -moz-appearance: textfield;
  appearance: textfield;
  transition: all var(--transition);
  touch-action: manipulation;
}

.counter-value::-webkit-outer-spin-button,
.counter-value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.counter-value:focus { background: #fff; box-shadow: 0 12px 40px rgba(64, 0, 255, 0.08); border-color: var(--primary-glow); }

.manufacturer-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #CBD5E0;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  outline: none;
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.manufacturer-select:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(64, 0, 255, 0.12);
  border-color: var(--primary);
}

/* ─── Navigation ─── */
.konfig-nav {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  padding-bottom: 16px;
}

.btn-next {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-next::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-next:hover::before { width: 300px; height: 300px; }
.btn-next:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-next:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-next:disabled:hover::before { width: 0; height: 0; }
.btn-next svg { width: 18px; height: 18px; }

.btn-back {
  padding: 16px 24px;
  background: var(--bg-light);
  color: var(--text-medium);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-back:hover { background: #edf0f3; color: var(--text-dark); }

/* ─── Price Footer (opens UPWARD) ─── */
.konfig-footer-wrap {
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin: 0 -56px;
  width: calc(100% + 112px);
  display: flex;
  flex-direction: column;
}

/* Breakdown sits ABOVE the footer bar and opens upward */
.price-breakdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  background: var(--bg-light);
  border-top: 1px solid transparent;
  padding: 0 56px;
}

.price-breakdown.open { max-height: 600px; border-top-color: var(--border); }

.price-breakdown-inner {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.breakdown-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
  margin-bottom: 2px;
}

.breakdown-group-title:first-child { margin-top: 0; }
.breakdown-item { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--text-medium); padding: 2px 0; }
.breakdown-item .breakdown-value { font-weight: 600; color: var(--text-dark); }

.konfig-price-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 20px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-amount { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); letter-spacing: -0.01em; }
.price-label { font-size: 0.875rem; color: var(--text-light); font-weight: 500; }
.price-suffix { font-size: 0.875rem; color: var(--text-light); font-weight: 400; }

.price-breakdown-toggle {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.price-breakdown-toggle:hover { opacity: 0.7; }
.price-breakdown-toggle svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.price-breakdown-toggle.open svg { transform: rotate(180deg); }

/* ─── Appointment Booking (Dummy) ─── */
.booking-section { margin-top: 8px; }
.booking-section h3 { font-size: 1.125rem; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.booking-section .booking-desc { font-size: 0.875rem; color: var(--text-medium); margin-bottom: 20px; line-height: 1.6; }

.date-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.date-option {
  padding: 12px 6px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--bg-light);
  box-shadow: 0 4px 20px rgba(64, 0, 255, 0.04);
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: all var(--transition);
}

.date-option:hover { box-shadow: 0 12px 40px rgba(64, 0, 255, 0.08); background: #fff; }
.date-option.selected { border-color: var(--primary-glow); background: rgba(64, 0, 255, 0.03); box-shadow: 0 12px 40px rgba(64, 0, 255, 0.15); }
.date-option .do-day { font-size: 0.6875rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; }
.date-option .do-date { font-size: 1.125rem; font-weight: 700; color: var(--text-dark); margin-top: 2px; }
.date-option .do-month { font-size: 0.75rem; color: var(--text-light); margin-top: 1px; }

.date-option.selected .do-day,
.date-option.selected .do-month { color: var(--primary); }

.date-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.date-nav-label { font-size: 0.8125rem; font-weight: 600; color: var(--text-medium); }
.date-nav-btns { display: flex; gap: 6px; }

.date-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.date-nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.date-nav-btn svg { width: 14px; height: 14px; }

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.time-option {
  padding: 12px 8px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--bg-light);
  box-shadow: 0 4px 20px rgba(64, 0, 255, 0.04);
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all var(--transition);
}

.time-option:hover { box-shadow: 0 12px 40px rgba(64, 0, 255, 0.08); background: #fff; }
.time-option.selected { border-color: var(--primary-glow); background: rgba(64, 0, 255, 0.03); color: var(--primary); font-weight: 600; box-shadow: 0 12px 40px rgba(64, 0, 255, 0.15); }
.time-option.unavailable { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

.booking-confirm-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--success-light);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.booking-confirm-info svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }
.booking-confirm-info strong { font-weight: 600; }

/* ─── Result Button Styles ─── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.0625rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(64, 0, 255, 0.2);
}

.btn-cta:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(64, 0, 255, 0.35); }
.btn-cta:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-cta svg { width: 20px; height: 20px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--bg-light);
  color: var(--text-medium);
  border: none;
  border-radius: var(--radius-sm);
  width: 100%;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-secondary:hover { background: #edf0f3; color: var(--text-dark); }

.trust-hints {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.8125rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.trust-hints span { display: flex; align-items: center; gap: 5px; }
.trust-hints svg { width: 14px; height: 14px; color: var(--success); }

.privacy-note {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.privacy-note a { color: var(--primary); text-decoration: underline; }

/* ─── Shared Booking Modal (NimbusPop / Zoho Bookings) ─── */
.booking-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: modalFadeIn 0.3s ease-out;
}

.booking-modal.open {
  display: block;
}

.booking-modal.closing {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.booking-modal-card {
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: modalSlideIn 0.4s var(--ease);
}

.booking-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 40px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, rgba(64, 0, 255, 0.03) 0%, rgba(90, 31, 255, 0.03) 100%);
}

.booking-modal-header h3 {
  margin: 0 0 8px;
  color: #1a1a1a;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.booking-modal-header p,
.booking-modal-footer p {
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
}

.booking-modal-header p {
  font-size: 1rem;
}

.booking-modal-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: none;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.booking-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.booking-modal-close svg {
  width: 24px;
  height: 24px;
}

.booking-modal-body {
  padding: 0;
  height: min(600px, calc(90vh - 160px));
  min-height: 360px;
  overflow: auto;
}

.booking-inline-container {
  min-height: 600px;
}

.booking-modal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

.booking-modal-footer svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgba(64, 0, 255, 0.8);
}

.booking-modal-footer p {
  font-size: 0.875rem;
}

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

@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── Utility ─── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: kspin 0.6s linear infinite;
}

@keyframes kspin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* ─── Responsive ─── */
@media (max-width: 900px), (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  .konfig-layout { grid-template-columns: 1fr; padding-top: 69px; }
  .konfig-visual { display: none; }
  .konfig-form { padding: 32px 24px 0; min-height: auto; }
  .konfig-footer-wrap { margin: 0 -24px; width: calc(100% + 48px); }
  .konfig-price-footer { padding: 16px 24px; }
  .price-breakdown { padding: 0 24px; }
  .konfig-header { padding: 16px 20px; }
  .konfig-header .logo img { height: 24px; }
  .input-row { flex-direction: column; }
  .date-grid { grid-template-columns: repeat(4, 1fr); }
  .time-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .konfig-form { padding: 24px 20px 0; }
  .konfig-footer-wrap { margin: 0 -20px; width: calc(100% + 40px); }
  .konfig-price-footer { padding: 14px 20px; }
  .price-breakdown { padding: 0 20px; }
  .date-grid { grid-template-columns: repeat(3, 1fr); }
  .booking-modal-backdrop { padding: 12px; }
  .booking-modal-card { border-radius: 18px; }
  .booking-modal-header { padding: 22px 20px 18px; }
  .booking-modal-header h3 { font-size: 1.35rem; }
  .booking-modal-header p { font-size: 0.875rem; }
  .booking-modal-body { height: calc(90vh - 148px); min-height: 320px; }
  .booking-modal-footer { padding: 14px 20px; }
  .booking-modal-footer p { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .visual-slide { transition: opacity 0.3s; transform: none !important; }
  .visual-slide.active { transform: none !important; }
  .konfig-step { animation: none; }
  .location-card { animation: none; }
}

/* B2B Safety Box */
.b2b-safety {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-medium);
  border: 1px solid var(--border);
  text-align: left;
}
.b2b-safety-header {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.b2b-safety-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.b2b-safety-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.b2b-safety-list li svg {
  flex-shrink: 0;
  color: var(--primary);
  width: 16px;
  height: 16px;
}
.b2b-safety-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.b2b-safety-steps li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.b2b-safety-steps li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--border);
  color: var(--text-dark);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
}

.b2b-safety-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.5;
}
