/* ================================================================
   SMV Auflastungs-Tool — Design System & Theme Foundation
   4-Step Wizard Configurator for Vehicle Uprating
   Version: 2.0 — Complete Rewrite
   ================================================================ */

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */

:root {
  /* --- Brand Colors --- */
  --smv-primary: #004B87;
  --smv-secondary: #0085CA;
  --smv-dark: #003561;
  --smv-highlight: #3CA5D9;
  --smv-gradient: linear-gradient(135deg, #003561 0%, #004B87 50%, #0085CA 100%);
  /* Text-Akzent: in Light = dunkelblau, in Dark wird unten auf hellblau überschrieben */
  --accent-text: #004B87;

  /* --- Surfaces (Light Theme) --- */
  --surface-page: #f8fafc;
  --surface-card: #ffffff;
  --surface-elevated: #ffffff;
  --surface-input: #ffffff;
  --surface-hover: #f1f5f9;

  /* --- Text (Light Theme) --- */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* --- Borders (Light Theme) --- */
  --border-default: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: var(--smv-secondary);

  /* --- Semantic Colors --- */
  --success: #059669;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-text: #92400e;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --error-text: #991b1b;
  --info: var(--smv-secondary);
  --info-bg: #eff6ff;
  --info-text: #1e40af;

  /* --- Spacing --- */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* --- Border Radius --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* --- Shadows (Light Theme) --- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(0, 133, 202, 0.15);

  /* --- Typography --- */
  --font-display: 'Roboto', 'Inter', Arial, sans-serif;
  --font-body: 'Inter', 'Roboto', Arial, sans-serif;

  --text-xs: clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --text-base: clamp(0.875rem, 0.84rem + 0.18vw, 1rem);
  --text-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-xl: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --text-2xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-3xl: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem);
  --text-4xl: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --text-5xl: clamp(2rem, 1.6rem + 1.5vw, 3rem);

  /* --- Transitions --- */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* --- Layout --- */
  --wizard-max-width: 1100px;
  --header-height: 64px;
}

/* --- Dark Theme Overrides --- */
[data-theme="dark"] {
  /* Textfarbe für "Primary"-Akzent in Dark Mode deutlich heller (bessere Lesbarkeit) */
  --accent-text: #7dd3fc;

  --surface-page: #0f172a;
  --surface-card: #1e293b;
  --surface-elevated: #334155;
  --surface-input: #1e293b;
  --surface-hover: #334155;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --border-default: #334155;
  --border-subtle: #1e293b;

  --success-bg: rgba(5, 150, 105, 0.15);
  --success-text: #6ee7b7;
  --warning-bg: rgba(217, 119, 6, 0.15);
  --warning-text: #fcd34d;
  --error-bg: rgba(220, 38, 38, 0.15);
  --error-text: #fca5a5;
  --info-bg: rgba(0, 133, 202, 0.15);
  --info-text: #93c5fd;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.45), 0 8px 10px -6px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(0, 133, 202, 0.25);
}


/* ================================================================
   2. BASE STYLES & RESETS
   ================================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface-page);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0,75,135,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(0,133,202,0.03) 0%, transparent 50%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background-color var(--duration-slow) var(--ease-default),
    color var(--duration-slow) var(--ease-default);
  min-height: 100vh;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0,75,135,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(0,133,202,0.08) 0%, transparent 50%);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--smv-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

/* --- Typography --- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  margin-bottom: var(--space-md);
}

strong {
  font-weight: 600;
}

/* --- Accessibility --- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}


/* ================================================================
   3. HEADER (Fixed)
   ================================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-default);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background-color var(--duration-slow) var(--ease-default),
    border-color var(--duration-slow) var(--ease-default);
}

[data-theme="dark"] .header {
  background: rgba(30, 41, 59, 0.85);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.header__logo img {
  height: 36px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--accent-text);
}

[data-theme="dark"] .header__logo-text {
  color: var(--smv-highlight);
}

.beta-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--smv-highlight);
  background: #e3f1fb;
  border-radius: 6px;
  letter-spacing: .5px;
  vertical-align: middle;
  text-transform: uppercase;
  cursor: help;
}

@media (max-width: 768px) {
  .beta-badge { display: none; }
}

.header__center {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 var(--space-xl);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}


/* ================================================================
   4. PROGRESS BAR
   ================================================================ */

.progress-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.progress-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface-hover);
  border: 1px solid var(--border-default);
  position: relative;
  overflow: hidden;
  transition: all .35s cubic-bezier(.2,.9,.3,1);
  cursor: default;
  min-height: 38px;
}

.progress-step__circle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color .35s ease;
  line-height: 1;
}

.progress-step__label {
  position: relative;
  z-index: 2;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: -.005em;
  transition: color .35s ease;
  line-height: 1;
}

/* ACTIVE — gefüllter Pill mit Shimmer-Animation */
.progress-step--active {
  background: linear-gradient(90deg, var(--smv-primary), var(--smv-secondary));
  border-color: var(--smv-secondary);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--smv-secondary) 40%, transparent),
              0 0 0 3px color-mix(in srgb, var(--smv-secondary) 20%, transparent);
}
.progress-step--active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.25) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: stepShimmer 2.2s ease-in-out infinite;
  z-index: 1;
}
.progress-step--active .progress-step__circle { color: #fff; }
.progress-step--active .progress-step__label { color: #fff; font-weight: 700; }

[data-theme="dark"] .progress-step--active {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-color: #38bdf8;
  box-shadow: 0 4px 22px rgba(56,189,248,.4), 0 0 0 3px rgba(56,189,248,.25);
}

@keyframes stepShimmer {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* COMPLETED — grüner Pill mit Haken */
.progress-step--completed {
  background: color-mix(in srgb, var(--success) 14%, var(--surface-card));
  border-color: color-mix(in srgb, var(--success) 50%, transparent);
}
.progress-step--completed .progress-step__circle { display: inline-flex; color: var(--success); }
.progress-step--completed .progress-step__circle span { display: none; }
.progress-step--completed .progress-step__circle::after {
  content: "";
  width: 16px; height: 16px;
  background: center / contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  animation: checkPop .4s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes checkPop {
  0%   { transform: scale(0) rotate(-45deg); opacity: 0; }
  60%  { transform: scale(1.2) rotate(0deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.progress-step--completed .progress-step__label { color: var(--success); font-weight: 600; }

[data-theme="dark"] .progress-step--completed {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.45);
}
[data-theme="dark"] .progress-step--completed .progress-step__label { color: #4ade80; }
[data-theme="dark"] .progress-step--completed .progress-step__circle::after {
  background: center / contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

/* Connector zwischen den Steps — animiert beim Füllen */
.progress-connector {
  flex: 0 0 32px;
  height: 3px;
  background: var(--border-default);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.progress-connector__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--success), color-mix(in srgb, var(--success) 70%, var(--smv-secondary)));
  border-radius: 999px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.progress-connector--filled .progress-connector__fill { width: 100%; }


/* ================================================================
   5. WIZARD LAYOUT
   ================================================================ */

.wizard {
  padding-top: calc(var(--header-height) + var(--space-xl));
  min-height: 100vh;
  position: relative;
}

.wizard-step {
  max-width: var(--wizard-max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
  display: none;
  overflow-y: auto;
}

.wizard-step.active {
  display: block;
  animation: stepFadeIn var(--duration-slow) var(--ease-expo) forwards;
}

.wizard-step__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.wizard-step__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
}

/* Hero accent text */
.hero-title-accent {
  background: var(--smv-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Step 1 hero area */
.wizard-step--hero {
  text-align: center;
  padding-top: var(--space-3xl);
}

.wizard-step--hero .wizard-step__title {
  font-size: var(--text-5xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.wizard-step--hero .wizard-step__subtitle {
  margin-left: auto;
  margin-right: auto;
  font-size: var(--text-xl);
  max-width: 650px;
}

/* Result step visual */
.result-hero {
  text-align: center;
  padding: var(--space-3xl) 0;
  margin-bottom: var(--space-2xl);
  background: linear-gradient(180deg, rgba(0,75,135,0.03) 0%, transparent 100%);
  border-radius: var(--radius-xl);
}

[data-theme="dark"] .result-hero {
  background: linear-gradient(180deg, rgba(0,75,135,0.12) 0%, transparent 100%);
}

.result-hero__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.result-hero__number {
  font-size: var(--text-5xl);
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--accent-text);
  line-height: 1;
  letter-spacing: -0.03em;
}

[data-theme="dark"] .result-hero__number {
  color: var(--smv-secondary);
}

.result-hero__unit {
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--text-muted);
  margin-left: var(--space-xs);
}

.result-hero__gain {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--success);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
}

.result-hero__gain.visible {
  opacity: 1;
  transform: scale(1);
}


/* ================================================================
   6. COMPONENT STYLES
   ================================================================ */

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition:
    background var(--duration-fast) var(--ease-default),
    border-color var(--duration-fast) var(--ease-default),
    color var(--duration-fast) var(--ease-default),
    transform var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default);
}

.btn:active { transform: scale(0.97); }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--smv-secondary) 35%, transparent);
}

/* PRIMARY — Light Mode */
.btn--primary {
  background: linear-gradient(180deg, var(--smv-secondary) 0%, var(--smv-primary) 100%);
  color: #fff;
  border-color: var(--smv-primary);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 1px 3px rgba(0,75,135,.25);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #1a9adb 0%, var(--smv-secondary) 100%);
  border-color: var(--smv-secondary);
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 4px 14px rgba(0,75,135,.35);
  transform: translateY(-1px);
}
.btn--primary:active { transform: scale(.98) translateY(0); }

/* PRIMARY — Dark Mode (heller, glow) */
[data-theme="dark"] .btn--primary {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  border-color: #0ea5e9;
  color: #02141f;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 2px 8px rgba(14,165,233,.3);
}
[data-theme="dark"] .btn--primary:hover {
  background: linear-gradient(180deg, #7dd3fc 0%, #38bdf8 100%);
  border-color: #38bdf8;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 20px rgba(56,189,248,.45);
}

/* SECONDARY — Light Mode (Outline) */
.btn--secondary {
  background: transparent;
  color: var(--accent-text);
  border-color: var(--smv-primary);
}
.btn--secondary:hover {
  background: color-mix(in srgb, var(--smv-primary) 8%, transparent);
  border-color: var(--smv-secondary);
  color: var(--smv-secondary);
}

/* SECONDARY — Dark Mode (Glassmorph) */
[data-theme="dark"] .btn--secondary {
  background: rgba(125, 211, 252, .06);
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, .35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
[data-theme="dark"] .btn--secondary:hover {
  background: rgba(125, 211, 252, .15);
  border-color: #7dd3fc;
  color: #bae6fd;
  box-shadow: 0 4px 16px rgba(125,211,252,.2);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn--ghost:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}
[data-theme="dark"] .btn--ghost:hover {
  background: rgba(255,255,255,.06);
  color: #f1f5f9;
}

.btn--success {
  background: var(--success);
  color: var(--text-inverse);
  border-color: var(--success);
}

.btn--success:hover {
  background: #047857;
  border-color: #047857;
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 16px 32px;
  font-size: var(--text-lg);
  border-radius: var(--radius-md);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--loading {
  color: transparent !important;
  pointer-events: none;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-inverse);
  border-top-color: transparent;
  border-radius: var(--radius-full);
  animation: spin 0.6s linear infinite;
}

.btn__ripple {
  position: absolute;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s var(--ease-default) forwards;
  pointer-events: none;
}


/* --- Cards --- */

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl) var(--space-2xl);
  margin-bottom: var(--space-lg);
  transition:
    transform var(--duration-normal) var(--ease-spring),
    box-shadow var(--duration-normal) var(--ease-default),
    border-color var(--duration-normal) var(--ease-default),
    background-color var(--duration-slow) var(--ease-default);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card--highlighted {
  border-color: var(--smv-primary);
  box-shadow: var(--shadow-glow);
}

.card--flat {
  box-shadow: none;
}

.card--flat:hover {
  transform: none;
  box-shadow: none;
}


/* --- Input Groups --- */

.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.input-group__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.input-group__wrapper {
  position: relative;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  background: var(--surface-input);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition:
    border-color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default),
    background-color var(--duration-slow) var(--ease-default);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: var(--text-muted);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 133, 202, 0.15);
}

.input-group--error .input-group__label {
  color: var(--error);
}

.input-group--error input,
.input-group--error select,
.input-group--error textarea {
  border-color: var(--error);
}

.input-group--error input:focus,
.input-group--error select:focus,
.input-group--error textarea:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.input-group__hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.input-group__error {
  font-size: var(--text-xs);
  color: var(--error);
  font-weight: 500;
}


/* --- Badges --- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.badge--success {
  background: var(--success-bg);
  color: var(--success-text);
}

.badge--warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.badge--error {
  background: var(--error-bg);
  color: var(--error-text);
}

.badge--info {
  background: var(--info-bg);
  color: var(--info-text);
}

.badge--primary {
  background: var(--smv-primary);
  color: var(--text-inverse);
}


/* --- Tab Group --- */

.tab-group {
  display: flex;
  border-bottom: 2px solid var(--border-default);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.tab-group__item {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: color var(--duration-fast) var(--ease-default);
}

.tab-group__item:hover {
  color: var(--text-primary);
}

.tab-group__item--active {
  color: var(--accent-text);
}

[data-theme="dark"] .tab-group__item--active {
  color: var(--smv-secondary);
}

.tab-group__item--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--smv-primary);
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  animation: progressFill var(--duration-normal) var(--ease-expo) forwards;
}

[data-theme="dark"] .tab-group__item--active::after {
  background: var(--smv-secondary);
}


/* --- Metric Card --- */

.metric-card {
  background: var(--surface-hover);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: background-color var(--duration-slow) var(--ease-default);
}

.metric-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.metric-card__value {
  font-size: var(--text-2xl);
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
}

.metric-card__unit {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}


/* --- Trust Badge --- */

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 10px;
  background: var(--info-bg);
  color: var(--info-text);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}


/* --- Alert --- */

.alert {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.alert[hidden] {
  display: none !important;
}

.alert__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
}

.alert__content {
  flex: 1;
}

.alert__title {
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.alert--success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success);
}

/* Warning-Alert im SMV-CI-Look: blauer Tint, Secondary als Akzent-Border links */
.alert--warning {
  background: linear-gradient(135deg, color-mix(in srgb, var(--smv-primary) 6%, var(--surface-card, #fff)) 0%, var(--surface-card, #fff) 100%);
  color: var(--text-primary);
  border: 1px solid color-mix(in srgb, var(--smv-primary) 22%, transparent);
  border-left: 4px solid var(--smv-secondary);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--smv-primary) 8%, transparent);
}
.alert--warning strong { color: var(--accent-text); }
.alert--warning .alert__icon svg { stroke: var(--smv-secondary) !important; }
[data-theme="dark"] .alert--warning {
  background: linear-gradient(135deg, rgba(125,211,252,.08) 0%, rgba(125,211,252,.02) 100%);
  color: #e2e8f0;
  border-color: rgba(125,211,252,.3);
  border-left-color: #38bdf8;
}
[data-theme="dark"] .alert--warning strong { color: #7dd3fc; }
[data-theme="dark"] .alert--warning .alert__icon svg { stroke: #7dd3fc !important; }

.alert--error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error);
}

.alert--info {
  background: var(--info-bg);
  color: var(--info-text);
  border: 1px solid var(--info);
}


/* --- Tab Content --- */

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: stepFadeIn var(--duration-normal) var(--ease-expo) forwards;
}


/* --- Dropzone --- */

.dropzone {
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease-default),
    background-color var(--duration-fast) var(--ease-default);
}

.dropzone:hover,
.dropzone--active {
  border-color: var(--smv-secondary);
  background: var(--info-bg);
}

.dropzone__icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}

.dropzone__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.dropzone__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.dropzone__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.dropzone__hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.dropzone__privacy {
  font-size: var(--text-xs);
  color: var(--warning-text);
  background: var(--warning-bg);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  margin: var(--space-md) 0;
}

.dropzone__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.dropzone--scanning {
  border-color: var(--smv-secondary);
  background: var(--info-bg);
  animation: shimmer 2s infinite linear;
  background-image: linear-gradient(
    90deg,
    var(--info-bg) 0%,
    rgba(0, 133, 202, 0.08) 50%,
    var(--info-bg) 100%
  );
  background-size: 200% 100%;
}


/* --- Radio Card --- */

.radio-card {
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease-default),
    background-color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default);
}

.radio-card:hover {
  border-color: var(--smv-secondary);
  background: var(--surface-hover);
}

.radio-card--selected {
  border-color: var(--smv-secondary);
  background: var(--info-bg);
  box-shadow: 0 0 0 1px var(--smv-secondary);
}

.radio-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.radio-card__indicator {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease-default);
}

.radio-card--selected .radio-card__indicator {
  border-color: var(--smv-secondary);
  background: var(--smv-secondary);
}

.radio-card--selected .radio-card__indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: white;
}

.radio-card__title {
  font-weight: 600;
  font-size: var(--text-base);
}

.radio-card__description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-left: 28px;
}


/* --- Stepper (Numeric -/+ Input) --- */

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-input);
}

.stepper__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--text-lg);
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-default);
}

.stepper__btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.stepper__value {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 var(--space-xs);
  min-width: 80px;
  text-align: center;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-primary);
  font-family: var(--font-body);
}


/* --- Accordion --- */

.accordion {
  margin-bottom: var(--space-sm);
}

.accordion__item {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-base);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-card);
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color var(--duration-fast) var(--ease-default);
}

.accordion summary:hover {
  background: var(--surface-hover);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: '\25B6';
  font-size: var(--text-xs);
  transition: transform var(--duration-normal) var(--ease-spring);
  color: var(--text-muted);
}

.accordion details[open] summary::after,
.accordion[open] summary::after {
  transform: rotate(90deg);
}

.accordion__content {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-default);
  animation: stepFadeIn var(--duration-normal) var(--ease-expo) forwards;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}


/* --- Product Card --- */

.product-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-normal) var(--ease-spring),
    box-shadow var(--duration-normal) var(--ease-default);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface-hover);
}

.product-card__body {
  padding: var(--space-lg) var(--space-xl);
}

.product-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.product-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs) var(--space-md);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
}

.product-card__spec-label {
  color: var(--text-muted);
}

.product-card__spec-value {
  font-weight: 600;
  text-align: right;
}

.product-card__features {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.product-card__features li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
  padding-left: var(--space-lg);
  position: relative;
}

.product-card__features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.product-card__cta {
  width: 100%;
}


/* --- Felgen Selector & Images --- */

.felgen-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (max-width: 560px) {
  .felgen-selector {
    grid-template-columns: 1fr;
  }
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card input[type="radio"]:checked ~ .radio-card__content {
  border-color: var(--smv-secondary);
  background: var(--info-bg);
}

.radio-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.felgen-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

/* Form-Felgen-Cards: spezifisch gescoped um Konflikte mit .felgen-card
   (Warn-Hinweis im Angebot) zu vermeiden */
.felgen-selector .felgen-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  min-height: 260px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}
.felgen-selector .felgen-card::before { content: none; }
.felgen-selector .felgen-img,
.felgen-selector .felgen-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  transition: transform .25s cubic-bezier(.2,.9,.3,1);
  transform-origin: center center;
  padding: 0;
}
.felgen-selector .felgen-img {
  object-fit: contain;
  max-width: 160px;
  max-height: 160px;
}
.felgen-selector .felgen-svg-icon {
  width: 110px;
  height: 110px;
  color: var(--text-muted);
  transition: color .2s, transform .25s cubic-bezier(.2,.9,.3,1);
}
/* Zoom on hover */
.felgen-selector .radio-card.felgen-option:hover .felgen-img,
.felgen-selector .radio-card.felgen-option:hover .felgen-icon-wrap { transform: scale(1.18); }
.felgen-selector .radio-card.felgen-option:hover .felgen-svg-icon { transform: scale(1.18); color: var(--accent-text); }
.felgen-selector .radio-card.felgen-option input[type="radio"]:checked ~ .radio-card__content .felgen-img,
.felgen-selector .radio-card.felgen-option input[type="radio"]:checked ~ .radio-card__content .felgen-icon-wrap { transform: scale(1.12); }
.felgen-selector .radio-card.felgen-option input[type="radio"]:checked ~ .radio-card__content .felgen-svg-icon { color: var(--smv-secondary); }
.felgen-selector .felgen-info {
  width: 100%;
  text-align: center;
}

.felgen-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.felgen-traglast {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-text);
}

[data-theme="dark"] .felgen-traglast {
  color: var(--smv-highlight);
}

.felgen-custom-traglast {
  margin-top: var(--space-md);
}

.input-with-unit {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.input-with-unit input {
  flex: 1;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: var(--text-xs);
}


/* --- Form Section Label --- */

.form-section-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-section-note {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-muted);
}


/* --- Form Actions --- */

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: var(--space-lg);
}


/* --- Form Grid --- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-grid--full {
  grid-template-columns: 1fr;
}

.form-grid__full-width {
  grid-column: 1 / -1;
}


/* ================================================================
   7. SCAN-SPECIFIC STYLES
   ================================================================ */

.scan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  pointer-events: none;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--smv-secondary) 50%, transparent 100%);
  box-shadow: 0 0 12px var(--smv-secondary);
  animation: scanLine 2s ease-in-out infinite;
}

.scan-result-field {
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  animation: stepFadeIn var(--duration-normal) var(--ease-expo) forwards;
}

.scan-result-field__label {
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.scan-result-field__value {
  font-weight: 600;
  color: var(--text-primary);
}

.field-flash {
  animation: fieldFlash 0.8s var(--ease-default);
}


/* ================================================================
   8. COUNTER ANIMATION STYLES
   ================================================================ */

#zgg-counter {
  font-size: var(--text-5xl);
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--accent-text);
  line-height: 1;
  tabular-nums: true;
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] #zgg-counter {
  color: var(--smv-highlight);
}

/* Wenn Counter innerhalb der Hero-v2 liegt → weiss, damit er auf blauem
   Gradient gut lesbar ist (überschreibt die ID-Specificity-Regel oben). */
.result-hero-v2 #zgg-counter,
.result-hero-v2 #zgg-counter.result-hero-v2__counter,
[data-theme="dark"] .result-hero-v2 #zgg-counter {
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(125,211,252,.45);
}


/* --- Btn Icon --- */

.btn-icon {
  flex-shrink: 0;
}


/* --- Result Section --- */

.result-section {
  margin-bottom: var(--space-xl);
}

.result-error {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  color: var(--text-secondary);
}

.result-error h3 {
  color: var(--error);
  margin-bottom: var(--space-sm);
}


/* ================================================================
   9. RESULT SECTION STYLES
   ================================================================ */

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.result-header__title {
  font-size: var(--text-3xl);
  font-weight: 700;
}

.result-header__status {
  flex-shrink: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
@media (max-width: 720px) {
  .metric-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

.legal-hints {
  margin-bottom: var(--space-xl);
}

.legal-hints__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.legal-hints__list {
  list-style: none;
}

.legal-hints__list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
  padding-left: var(--space-lg);
  position: relative;
}

.legal-hints__list li::before {
  content: '\26A0';
  position: absolute;
  left: 0;
}

.product-recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}


/* ================================================================
   10. OFFER / STEP 4 STYLES
   ================================================================ */

.summary-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.summary-card__header {
  background: var(--smv-gradient);
  color: var(--text-inverse);
  padding: var(--space-lg);
}

.summary-card__header h3 {
  color: var(--text-inverse);
  margin-bottom: var(--space-xs);
}

.summary-card__body {
  padding: var(--space-lg);
}

.summary-line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
}

.summary-line-item:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: var(--text-base);
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
  border-top: 2px solid var(--border-default);
}

.summary-line-item__label {
  color: var(--text-secondary);
}

.summary-line-item__value {
  font-weight: 600;
  color: var(--text-primary);
}

.offer-form {
  max-width: 600px;
}

/* ── Offer Sub-Stepper ── */
.offer-sub-stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  font-size: var(--text-sm);
}

.offer-sub-stepper__step {
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-default),
              font-weight var(--duration-fast) var(--ease-default);
}

.offer-sub-stepper__step--active {
  font-weight: 700;
  color: var(--accent-text);
}

.offer-sub-stepper__step--done {
  color: var(--success);
}

.offer-sub-stepper__sep {
  color: var(--border-default);
  user-select: none;
}

/* ── Offer Option Cards ── */
.offer-option-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-default),
              background var(--duration-fast) var(--ease-default);
  margin-bottom: var(--space-xs);
}

.offer-option-card:hover {
  border-color: var(--smv-secondary);
  background: var(--surface-hover);
}

.offer-option-card:has(input:checked) {
  border-color: var(--smv-secondary);
  background: var(--info-bg);
  box-shadow: 0 0 0 1px var(--smv-secondary);
}

.offer-option-card input[type="checkbox"],
.offer-option-card input[type="radio"] {
  flex-shrink: 0;
  accent-color: var(--accent-text);
  width: 18px;
  height: 18px;
}

.offer-option-info {
  flex: 1;
  min-width: 0;
}

.offer-option-info strong {
  display: block;
  margin-bottom: 2px;
}

.offer-option-info span {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.offer-option-price {
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-primary);
}

.offer-options-title {
  font-weight: 600;
  font-size: var(--text-base);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

/* ── Offer Upsell Hint ── */
.offer-upsell {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--info-bg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-subtle);
}

.offer-upsell svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Offer Price Summary ── */
.offer-preis-summary {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--surface-hover);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
}

.offer-preis-title {
  font-weight: 600;
  margin-bottom: var(--space-md);
  font-size: var(--text-base);
}

.offer-preis-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  font-size: var(--text-sm);
}

.offer-preis-total {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--border-default);
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
  font-weight: 700;
  font-size: var(--text-lg);
}

.offer-preis-total span:last-child {
  color: var(--accent-text);
}

[data-theme="dark"] .offer-preis-total span:last-child {
  color: var(--smv-secondary);
}

/* ── Offer Compare / Flyer ── */
.offer-compare-details {
  margin-top: var(--space-lg);
}

.offer-compare-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--accent-text);
  font-weight: 500;
  padding: var(--space-sm) 0;
}

.offer-compare-table-wrap {
  overflow-x: auto;
  margin-top: var(--space-sm);
}

.offer-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.offer-compare-table th,
.offer-compare-table td {
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.offer-compare-table th.active {
  color: var(--accent-text);
  font-weight: 700;
}

.offer-compare-table .compare-price {
  font-weight: 600;
}

.offer-flyer-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--accent-text);
  text-decoration: none;
  margin-top: var(--space-md);
  padding: var(--space-xs) 0;
}

.offer-flyer-link:hover {
  text-decoration: underline;
}

/* ── Offer Review DL ── */
.offer-review-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
}

.offer-review-dl dt {
  color: var(--text-muted);
  font-weight: 500;
}

.offer-review-dl dd {
  margin: 0;
}

/* ── Offer Button Row ── */
.offer-btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xl);
  gap: var(--space-md);
}

/* Fahrzeug-Badge (persistent ab Step 2) */
.vehicle-badge {
  background: linear-gradient(135deg, color-mix(in srgb, var(--smv-primary, #005995) 12%, var(--surface-card, #fff)), var(--surface-card, #fff));
  border: 1px solid color-mix(in srgb, var(--smv-primary, #005995) 30%, transparent);
  border-radius: var(--radius-md, 8px);
  padding: var(--space-md, 1rem) var(--space-lg, 1.5rem);
  margin: 0 auto var(--space-lg, 1.5rem);
  max-width: 1100px;
  display: flex;
  align-items: center;
  gap: var(--space-lg, 1.5rem);
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.vehicle-badge__head { display: flex; align-items: center; gap: .75rem; color: var(--smv-primary, #005995); flex-shrink: 0; }
.vehicle-badge__label { font-size: var(--text-xs, .75rem); text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 600; }
.vehicle-badge__title { font-size: var(--text-lg, 1.125rem); font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.vehicle-badge__specs { display: flex; flex-wrap: wrap; gap: var(--space-md, 1rem) var(--space-xl, 2rem); flex: 1; min-width: 0; }
.vehicle-badge__spec { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vehicle-badge__spec span { font-size: var(--text-xs, .75rem); color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.vehicle-badge__spec strong { font-size: var(--text-sm, .875rem); color: var(--text-primary); font-weight: 600; white-space: nowrap; }
@media (max-width: 720px) {
  .vehicle-badge { padding: var(--space-sm, .75rem) var(--space-md, 1rem); gap: .75rem; flex-direction: column; align-items: flex-start; }
  .vehicle-badge__head { width: 100%; }
  .vehicle-badge__specs { gap: .5rem var(--space-md, 1rem); width: 100%; padding-top: .5rem; border-top: 1px solid color-mix(in srgb, var(--smv-primary) 20%, transparent); }
  .vehicle-badge__spec { flex: 1 1 calc(50% - 1rem); min-width: calc(50% - 1rem); }
  .vehicle-badge__spec strong { font-size: var(--text-xs, .75rem); white-space: normal; }
}
@media (max-width: 420px) {
  .vehicle-badge__spec { flex-basis: 100%; min-width: 100%; }
}

/* Artikel-Nr. in Preisübersicht */
.offer-preis-artnr { display: inline-block; margin-left: .4rem; font-size: var(--text-xs, .7rem); color: var(--text-muted); font-weight: 500; }

.parkbremse-hint { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md, 1rem); margin-top: var(--space-md, 1rem); }
.parkbremse-hint figure { margin: 0; }
.parkbremse-hint img { width: 100%; height: auto; border-radius: var(--radius-md, 8px); display: block; border: 1px solid var(--border-subtle, rgba(0,0,0,.1)); }
.parkbremse-hint figcaption { font-size: var(--text-xs, .75rem); color: var(--text-muted); text-align: center; margin-top: .35rem; }
@media (max-width: 520px) { .parkbremse-hint { grid-template-columns: 1fr; } }

.parkbremse-re-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg, 1.5rem);
  margin-top: var(--space-lg, 1.5rem);
  padding: var(--space-lg, 1.5rem);
  background: color-mix(in srgb, var(--smv-primary, #005995) 10%, var(--surface-card, #fff));
  border: 1px solid color-mix(in srgb, var(--smv-primary, #005995) 30%, transparent);
  border-left: 4px solid var(--smv-secondary, #0085CA);
  border-radius: var(--radius-md, 8px);
  align-items: center;
  animation: fadeIn .3s ease;
}
[data-theme="dark"] .parkbremse-re-info {
  background: linear-gradient(135deg, rgba(125,211,252,.08), rgba(56,189,248,.04));
  border-color: rgba(125,211,252,.3);
  border-left-color: #38bdf8;
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.parkbremse-re-info[hidden] { display: none; }
.parkbremse-re-info__text strong { display: block; color: var(--accent-text); margin-bottom: .5rem; font-size: var(--text-base, 1rem); font-weight: 700; letter-spacing: -.005em; }
.parkbremse-re-info__text span { display: block; color: var(--text-primary); font-size: var(--text-sm, .875rem); line-height: 1.6; }
[data-theme="dark"] .parkbremse-re-info__text strong { color: #bae6fd; }
[data-theme="dark"] .parkbremse-re-info__text span { color: #e2e8f0; }
[data-theme="dark"] .parkbremse-re-info__text span strong { color: #f1f5f9; font-weight: 700; }
.parkbremse-re-info figure { margin: 0; }
.parkbremse-re-info img { width: 100%; height: auto; border-radius: var(--radius-md, 8px); display: block; border: 1px solid var(--border-subtle, rgba(0,0,0,.1)); }
.parkbremse-re-info figcaption { font-size: var(--text-xs, .75rem); color: var(--text-muted); text-align: center; margin-top: .35rem; }
@media (max-width: 640px) { .parkbremse-re-info { grid-template-columns: 1fr; } }

/* ── Offer Question Card (Parkbremse) ── */
.offer-option-card--question {
  background: var(--warning-bg);
  border-color: var(--warning);
}

.success-screen {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.success-screen__icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--success-bg);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
  animation: popIn var(--duration-slow) var(--ease-spring) forwards;
}

.success-screen__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.success-screen__text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 200;
}


/* ================================================================
   11. CHAT FAB & PANEL
   ================================================================ */

.chat-fab {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--smv-primary);
  color: var(--text-inverse);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition:
    transform var(--duration-fast) var(--ease-spring),
    background-color var(--duration-fast) var(--ease-default);
  animation: pulseGlow 3s infinite ease-in-out;
}

.chat-fab:hover {
  transform: scale(1.08);
  background: var(--smv-dark);
}

.chat-fab:active {
  transform: scale(0.95);
}

.chat-fab__video {
  position: fixed;
  bottom: calc(var(--space-xl) + 10px);
  right: calc(var(--space-xl) + 72px);
  width: 120px;
  height: auto;
  z-index: 89;
  pointer-events: none;
  opacity: 0.9;
}

.chat-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100%;
  background: var(--surface-card);
  border-left: 1px solid var(--border-default);
  box-shadow: var(--shadow-xl);
  z-index: 95;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-expo);
}

.chat-panel--open {
  transform: translateX(0);
  animation: slideInFromRight var(--duration-slow) var(--ease-expo) forwards;
}

.chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-default);
  background: var(--smv-gradient);
  color: var(--text-inverse);
  flex-shrink: 0;
}

.chat-panel__header h3 {
  color: var(--text-inverse);
}

.chat-panel__close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-inverse);
  cursor: pointer;
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--duration-fast) var(--ease-default);
}

.chat-panel__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.chat-bubble {
  max-width: 85%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.5;
  animation: stepFadeIn var(--duration-normal) var(--ease-expo) forwards;
}

.chat-bubble--agent {
  background: var(--surface-hover);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-sm);
}

.chat-bubble--user {
  background: var(--smv-primary);
  color: var(--text-inverse);
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-sm);
}

.chat-panel__input-area {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-default);
  flex-shrink: 0;
}

.chat-panel__input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: var(--surface-input);
  color: var(--text-primary);
  transition:
    border-color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default);
}

.chat-panel__input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 133, 202, 0.15);
}

.chat-panel__send {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--smv-primary);
  color: var(--text-inverse);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--duration-fast) var(--ease-default);
}

.chat-panel__send:hover {
  background: var(--smv-dark);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-hover);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-sm);
  align-self: flex-start;
  max-width: 70px;
  margin: var(--space-sm) var(--space-md);
}
.typing-indicator[hidden] { display: none !important; }

.typing-indicator__dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--text-muted);
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator__dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator__dot:nth-child(3) {
  animation-delay: 0.4s;
}


/* ================================================================
   12. THEME TOGGLE
   ================================================================ */

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  transition:
    background-color var(--duration-fast) var(--ease-default),
    color var(--duration-fast) var(--ease-default),
    transform var(--duration-normal) var(--ease-spring);
}

.theme-toggle:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.theme-toggle:active {
  transform: rotate(30deg);
}

.theme-toggle__sun,
.theme-toggle__moon {
  transition: opacity var(--duration-normal) var(--ease-default),
              transform var(--duration-normal) var(--ease-spring);
  position: absolute;
}

.theme-toggle__sun {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle__moon {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="dark"] .theme-toggle__sun {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle__moon {
  opacity: 1;
  transform: rotate(0deg);
}


/* ================================================================
   13. LANGUAGE SWITCHER
   ================================================================ */

.lang-switcher {
  position: relative;
}

.lang-switcher__trigger {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-default),
    border-color var(--duration-fast) var(--ease-default);
}

.lang-switcher__trigger:hover {
  background: var(--surface-hover);
  border-color: var(--smv-secondary);
}

.lang-switcher__options {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--space-xs);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 120px;
  z-index: 110;
}

.lang-switcher__options[hidden] {
  display: none;
}

.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-default);
}

.lang-switcher__option:hover {
  background: var(--surface-hover);
}

.lang-switcher__option--active {
  color: var(--accent-text);
  font-weight: 600;
}

[data-theme="dark"] .lang-switcher__option--active {
  color: var(--smv-secondary);
}


/* ================================================================
   14. MODAL
   ================================================================ */

/* Produktvergleich-Popup */
.compare-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: var(--space-lg, 1.5rem); animation: fadeIn .2s ease; }
.compare-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.compare-modal__dialog {
  position: relative;
  background: var(--surface-card, #fff);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 25px 80px rgba(0,0,0,.6);
  max-width: 1200px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: var(--space-2xl, 2.5rem) var(--space-2xl, 2.5rem) var(--space-xl, 2rem);
  animation: modalIn .25s cubic-bezier(.2,.9,.3,1);
}
.compare-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-hover, rgba(0,0,0,.08));
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  transition: background .15s, transform .15s;
  z-index: 2;
}
.compare-modal__close:hover { background: rgba(0,0,0,.2); transform: rotate(90deg); }
.compare-modal__header { text-align: center; margin-bottom: var(--space-xl, 2rem); padding-right: 48px; }
.compare-modal__header h2 { margin: 0 0 .35rem; font-size: var(--text-2xl, 1.75rem); color: var(--text-primary); }
.compare-modal__header p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm, .9rem); }

.compare-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-lg, 1.25rem);
  align-items: stretch;
}
.compare-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: var(--surface-card, #fff);
  border: 1px solid var(--border-subtle, rgba(0,0,0,.08));
  border-radius: var(--radius-lg, 14px);
  padding: var(--space-lg, 1.25rem) var(--space-md, 1rem);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  min-width: 0;
}
.compare-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.compare-card--active { border-color: var(--smv-primary, #005995); border-width: 2px; box-shadow: 0 10px 28px color-mix(in srgb, var(--smv-primary, #005995) 28%, transparent); background: color-mix(in srgb, var(--smv-primary, #005995) 4%, var(--surface-card, #fff)); padding: calc(var(--space-lg, 1.25rem) - 1px) calc(var(--space-md, 1rem) - 1px); }
.compare-card__badge {
  position: absolute; top: 12px; left: 12px;
  padding: .22rem .6rem;
  background: var(--smv-primary, #005995); color: #fff;
  border-radius: 999px;
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  z-index: 2;
}
.compare-card__image {
  height: 160px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  padding: .75rem;
  border: 1px solid rgba(0,0,0,.06);
}
.compare-card__image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.compare-card__title { margin: .3rem 0 0; font-size: var(--text-lg, 1.125rem); font-weight: 700; color: var(--text-primary); line-height: 1.2; text-align: center; }
.compare-card__subtitle { margin: 0; font-size: var(--text-xs, .75rem); color: var(--text-secondary); text-align: center; line-height: 1.35; min-height: 2.1em; }
.compare-card__price { text-align: center; color: var(--smv-primary, #005995); font-size: var(--text-xl, 1.3rem); font-weight: 800; padding: .4rem 0; border-top: 1px solid var(--border-subtle, rgba(0,0,0,.08)); border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,.08)); letter-spacing: -.01em; }
.compare-card__specs { margin: 0; padding: 0; font-size: var(--text-xs, .75rem); display: flex; flex-direction: column; gap: .55rem; align-self: start; }
.compare-card__specs > div { display: flex; flex-direction: column; gap: 2px; padding: .1rem 0; }
.compare-card__specs dt { color: var(--text-muted); font-weight: 500; font-size: .65rem; text-transform: uppercase; letter-spacing: .04em; }
.compare-card__specs dd { margin: 0; color: var(--text-primary); font-weight: 600; line-height: 1.3; }
.compare-card__pros, .compare-card__cons { list-style: none; margin: 0; padding: 0; font-size: var(--text-xs, .75rem); display: flex; flex-direction: column; gap: .3rem; }
.compare-card__pros li, .compare-card__cons li { position: relative; padding-left: 1.1rem; line-height: 1.35; color: var(--text-secondary); }
.compare-card__pros li::before { content: ""; position: absolute; left: 0; top: .15rem; width: .9rem; height: .9rem; background: center / contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>"); }
.compare-card__cons li::before { content: ""; position: absolute; left: 0; top: .15rem; width: .9rem; height: .9rem; background: center / contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>"); }

.compare-card__btn { width: 100%; margin-top: auto; }

@media (max-width: 1100px) {
  .compare-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .compare-modal__dialog { padding: var(--space-xl, 1.5rem) var(--space-md, 1rem); }
  .compare-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md, 1rem); }
  .compare-card { padding: var(--space-md, 1rem) .75rem; }
  .compare-card__image { height: 140px; }
}
@media (max-width: 440px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* Product Detail Modal */
#productModal { position: fixed; inset: 0; z-index: 200; }
#productModal[hidden] { display: none !important; }
.product-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
  animation: fadeIn .2s ease;
}
.product-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 95vw);
  max-height: 92vh;
  background: var(--surface-card, #fff);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 25px 80px rgba(0,0,0,.5);
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn .25s cubic-bezier(.2,.9,.3,1);
}
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -45%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.product-modal-scroll { overflow-y: auto; }
.product-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff; border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background .15s;
}
.product-modal-close:hover { background: rgba(0,0,0,.8); }
.product-modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff; border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background .15s;
}
.product-modal-nav:hover { background: rgba(0,0,0,.8); }
.product-modal-nav--prev { left: 12px; }
.product-modal-nav--next { right: 12px; }
.product-modal-hero {
  position: relative;
  background: linear-gradient(135deg, var(--surface-hover, #f5f5f5), var(--surface-card, #fff));
  padding: var(--space-xl, 2rem);
  display: flex; align-items: center; justify-content: center;
}
.product-modal-gallery { width: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--space-md, 1rem); }
.product-modal-image { width: 100%; display: flex; align-items: center; justify-content: center; }
.product-modal-image img { max-width: 100%; max-height: 320px; object-fit: contain; border-radius: var(--radius-md, 8px); }
.product-modal-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.product-modal-thumb { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm, 6px); background: var(--surface-card, #fff); cursor: pointer; overflow: hidden; transition: border-color .15s, transform .15s; }
.product-modal-thumb:hover { transform: translateY(-2px); }
.product-modal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-modal-thumb--active { border-color: var(--smv-primary, #005995); }
.product-modal-content { padding: var(--space-xl, 2rem); }
.product-modal-header { margin-bottom: var(--space-lg, 1.5rem); }
.product-modal-name { font-size: var(--text-3xl, 1.875rem); margin: 0 0 .25rem; color: var(--text-primary); }
.product-modal-subtitle { color: var(--text-secondary); font-size: var(--text-lg, 1.125rem); }
.product-modal-desc { color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--space-lg, 1.5rem); font-size: var(--text-base, 1rem); }
.product-modal .product-card-specs { margin: var(--space-lg, 1.5rem) 0; padding: var(--space-md, 1rem); background: var(--surface-hover, rgba(0,0,0,.03)); border-radius: var(--radius-md, 8px); }
.hero-skip { display: flex; justify-content: center; margin: 0 auto var(--space-lg, 1.5rem); }
.hero-skip .btn { gap: .45rem; }

.intro-video-wrap { max-width: 420px; margin: 0 auto var(--space-xl, 2rem); background: var(--surface-card, #fff); border: 1px solid var(--border-subtle, rgba(0,0,0,.08)); border-radius: var(--radius-md, 8px); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.intro-video-head { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; color: var(--smv-primary, #005995); font-weight: 600; font-size: var(--text-sm, .875rem); background: color-mix(in srgb, var(--smv-primary, #005995) 6%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--smv-primary, #005995) 15%, transparent); }
.intro-video { position: relative; width: 100%; aspect-ratio: 9/16; max-height: 70vh; background: #000; }
.intro-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Product Modal Badge (Beliebt / Premium / Smart) */
.product-modal-badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.15) inset;
}
.product-modal-badge--beliebt { background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff; }
.product-modal-badge--premium { background: linear-gradient(135deg, #fbbf24, #d97706); color: #1c1917; }
.product-modal-badge--smart { background: linear-gradient(135deg, #38bdf8, #0284c7); color: #fff; }
.product-modal-badge svg { flex-shrink: 0; }

/* Prospekt-Download-Karte im Produkt-Modal */
.product-modal-prospekt {
  display: flex; align-items: center; gap: var(--space-md, 1rem);
  padding: var(--space-md, 1rem) var(--space-lg, 1.25rem);
  margin: var(--space-lg, 1.5rem) 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--smv-primary) 10%, var(--surface-card, #fff)), var(--surface-card, #fff));
  border: 1px solid color-mix(in srgb, var(--smv-primary) 25%, transparent);
  border-left: 4px solid var(--smv-secondary, #0085CA);
  border-radius: var(--radius-md, 10px);
  color: var(--text-primary);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-modal-prospekt:hover { transform: translateX(2px); box-shadow: 0 6px 20px rgba(0,0,0,.12); border-left-color: var(--smv-primary); }
.product-modal-prospekt__icon { color: var(--smv-secondary); flex-shrink: 0; display: flex; }
.product-modal-prospekt__text { flex: 1; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.product-modal-prospekt__text strong { font-size: var(--text-base, 1rem); color: var(--text-primary); font-weight: 700; }
.product-modal-prospekt__text span { font-size: var(--text-sm, .8rem); color: var(--text-secondary); }
.product-modal-prospekt__arrow { color: var(--text-muted); flex-shrink: 0; transition: transform .2s; }
.product-modal-prospekt:hover .product-modal-prospekt__arrow { transform: translateX(4px); color: var(--smv-secondary); }
[data-theme="dark"] .product-modal-prospekt { background: linear-gradient(135deg, rgba(125,211,252,.08), rgba(125,211,252,.02)); border-color: rgba(125,211,252,.25); border-left-color: #38bdf8; }
[data-theme="dark"] .product-modal-prospekt__icon { color: #7dd3fc; }
[data-theme="dark"] .product-modal-prospekt:hover .product-modal-prospekt__arrow { color: #7dd3fc; }

/* Unsupported Brand Card – SMV CI */
.unsupported-brand-card {
  position: relative;
  text-align: center;
  padding: var(--space-2xl, 2.5rem) var(--space-xl, 2rem);
  background: linear-gradient(135deg, color-mix(in srgb, var(--smv-primary) 8%, var(--surface-card, #fff)), var(--surface-card, #fff));
  border: 1px solid color-mix(in srgb, var(--smv-primary) 22%, transparent);
  border-left: 4px solid var(--smv-secondary);
  border-radius: var(--radius-lg, 14px);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--smv-primary) 10%, transparent);
  overflow: hidden;
}
.unsupported-brand-card::before {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 160px; height: 160px;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--smv-secondary) 12%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.unsupported-brand-card > * { position: relative; }
.unsupported-brand-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--smv-primary), var(--smv-secondary));
  color: #fff;
  margin-bottom: var(--space-md, 1rem);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--smv-secondary) 35%, transparent);
}
.unsupported-brand-card h3 { margin: 0 0 var(--space-md, 1rem); font-size: var(--text-xl, 1.25rem); color: var(--text-primary); }
.unsupported-brand-card p { margin: 0 auto var(--space-md, 1rem); max-width: 560px; color: var(--text-secondary); line-height: 1.6; font-size: var(--text-sm, .9rem); }
.unsupported-brand-card p strong { color: var(--text-primary); }
.unsupported-brand-card__actions { display: flex; gap: var(--space-md, 1rem); justify-content: center; flex-wrap: wrap; margin: var(--space-lg, 1.5rem) 0 var(--space-md, 1rem); }
.unsupported-brand-card__small { font-size: var(--text-xs, .75rem) !important; color: var(--text-muted) !important; margin-top: var(--space-md, 1rem) !important; }
[data-theme="dark"] .unsupported-brand-card {
  background: linear-gradient(135deg, rgba(125,211,252,.08), rgba(125,211,252,.02));
  border-color: rgba(125,211,252,.3);
  border-left-color: #38bdf8;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
[data-theme="dark"] .unsupported-brand-card::before {
  background: radial-gradient(circle at top right, rgba(56,189,248,.15) 0%, transparent 70%);
}
[data-theme="dark"] .unsupported-brand-card__icon {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  box-shadow: 0 6px 24px rgba(56,189,248,.4);
}
[data-theme="dark"] .unsupported-brand-card h3 { color: #f1f5f9; }
[data-theme="dark"] .unsupported-brand-card p { color: #e2e8f0; }
[data-theme="dark"] .unsupported-brand-card p strong { color: #f1f5f9; }

/* Offer Success Hint (Minuten-Hinweis) */
.offer-success-hint {
  display: inline-flex; align-items: center; gap: .6rem;
  max-width: 520px;
  margin: 0 auto var(--space-xl, 2rem);
  padding: .75rem 1.1rem;
  background: color-mix(in srgb, var(--smv-primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--smv-primary) 25%, transparent);
  border-radius: var(--radius-md, 10px);
  color: var(--text-secondary);
  font-size: var(--text-sm, .875rem);
  text-align: left;
  line-height: 1.45;
}
.offer-success-hint svg { color: var(--accent-text); flex-shrink: 0; }
.offer-success-hint strong { color: var(--text-primary); font-weight: 700; }
[data-theme="dark"] .offer-success-hint { background: rgba(125,211,252,.08); border-color: rgba(125,211,252,.3); }
[data-theme="dark"] .offer-success-hint svg { color: #7dd3fc; }
[data-theme="dark"] .offer-success-hint strong { color: #f1f5f9; }

/* Felgen/Reifen-Hinweis im Angebot – SMV CI mit dezentem Achtung-Akzent */
.felgen-card {
  position: relative;
  margin-bottom: var(--space-lg, 1.25rem);
  padding: var(--space-xl, 1.75rem);
  background: linear-gradient(135deg, color-mix(in srgb, var(--smv-primary) 8%, var(--surface-card, #fff)) 0%, var(--surface-card, #fff) 100%);
  border: 1px solid color-mix(in srgb, var(--smv-primary) 22%, transparent);
  border-left: 4px solid var(--smv-secondary);
  border-radius: var(--radius-lg, 14px);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--smv-primary) 10%, transparent);
  overflow: hidden;
}
.felgen-card::before {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--smv-secondary) 12%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.felgen-card__header { position: relative; display: flex; align-items: flex-start; gap: var(--space-md, 1rem); margin-bottom: var(--space-lg, 1.25rem); }
.felgen-card__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--smv-primary), var(--smv-secondary));
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--smv-secondary) 35%, transparent);
}
.felgen-card__title { margin: 0 0 .25rem; font-size: var(--text-lg, 1.125rem); font-weight: 700; color: var(--text-primary); line-height: 1.25; }
.felgen-card__lede { margin: 0; font-size: var(--text-sm, .875rem); color: var(--text-secondary); line-height: 1.5; }

.felgen-card__compare {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md, 1rem);
  padding: var(--space-lg, 1.25rem);
  background: var(--surface-card, #fff);
  border: 1px solid color-mix(in srgb, var(--smv-primary) 15%, transparent);
  border-radius: var(--radius-md, 10px);
  margin-bottom: var(--space-md, 1rem);
}
.felgen-stat { text-align: center; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.felgen-stat__label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.felgen-stat__value { font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; display: inline-flex; align-items: baseline; justify-content: center; gap: .3rem; }
.felgen-stat__value span { font-size: .75rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.felgen-stat__meta { font-size: .7rem; color: var(--text-muted); }
.felgen-stat--current .felgen-stat__value { color: var(--text-secondary); }
.felgen-stat--needed .felgen-stat__value { color: var(--accent-text); }
.felgen-card__arrow { color: var(--smv-secondary); display: flex; }

.felgen-card__note {
  position: relative;
  display: flex; gap: .7rem; align-items: flex-start;
  padding: var(--space-md, .9rem) var(--space-md, 1rem);
  background: color-mix(in srgb, var(--smv-primary) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--smv-primary) 18%, transparent);
  border-left: 3px solid var(--smv-secondary);
  border-radius: var(--radius-md, 8px);
  font-size: var(--text-sm, .82rem);
  line-height: 1.55;
  color: var(--text-secondary);
}
.felgen-card__note svg { flex-shrink: 0; color: var(--smv-secondary); margin-top: .15rem; }
.felgen-card__note strong { color: var(--text-primary); font-weight: 700; }

@media (max-width: 560px) {
  .felgen-card__compare { grid-template-columns: 1fr; }
  .felgen-card__arrow { transform: rotate(90deg); justify-self: center; }
}

/* Dark Mode */
[data-theme="dark"] .felgen-card {
  background: linear-gradient(135deg, rgba(125,211,252,.08) 0%, rgba(125,211,252,.02) 100%);
  border-color: rgba(125,211,252,.3);
  border-left-color: #38bdf8;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
[data-theme="dark"] .felgen-card::before {
  background: radial-gradient(circle at top right, rgba(56,189,248,.15) 0%, transparent 70%);
}
[data-theme="dark"] .felgen-card__icon {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  box-shadow: 0 4px 16px rgba(56,189,248,.35);
}
[data-theme="dark"] .felgen-card__title { color: #f1f5f9; }
[data-theme="dark"] .felgen-card__lede { color: #cbd5e1; }
[data-theme="dark"] .felgen-card__compare { background: rgba(0,0,0,.25); border-color: rgba(125,211,252,.2); }
[data-theme="dark"] .felgen-stat--current .felgen-stat__value { color: #cbd5e1; }
[data-theme="dark"] .felgen-stat--needed .felgen-stat__value { color: #7dd3fc; }
[data-theme="dark"] .felgen-card__arrow { color: #38bdf8; }
[data-theme="dark"] .felgen-card__note { background: rgba(125,211,252,.06); border-color: rgba(125,211,252,.2); border-left-color: #38bdf8; color: #e2e8f0; }
[data-theme="dark"] .felgen-card__note svg { color: #7dd3fc; }
[data-theme="dark"] .felgen-card__note strong { color: #f1f5f9; }

.product-modal-video { position: relative; width: 100%; aspect-ratio: 16/9; margin: var(--space-lg, 1.5rem) 0; border-radius: var(--radius-md, 8px); overflow: hidden; background: #000; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.product-modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.product-modal .product-features { list-style: none; padding: 0; margin: var(--space-lg, 1.5rem) 0; }
.product-modal .product-features li { padding: .5rem 0 .5rem 1.75rem; position: relative; color: var(--text-secondary); line-height: 1.5; }
.product-modal .product-features li::before { content: "✓"; position: absolute; left: 0; color: var(--smv-primary, #005995); font-weight: 700; }
@media (max-width: 640px) {
  .product-modal { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; top: 0; left: 0; transform: none; }
  @keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-default);
}

.modal-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.modal {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--duration-normal) var(--ease-spring);
}

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

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-default);
  position: sticky;
  top: 0;
  background: var(--surface-card);
  z-index: 1;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal__title {
  font-size: var(--text-xl);
  font-weight: 700;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--surface-hover);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color var(--duration-fast) var(--ease-default),
    color var(--duration-fast) var(--ease-default);
}

.modal__close:hover {
  background: var(--border-default);
  color: var(--text-primary);
}

.modal__body {
  padding: var(--space-xl);
}

.modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-default);
}

.modal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--border-default);
}

.modal__nav-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color var(--duration-fast) var(--ease-default),
    border-color var(--duration-fast) var(--ease-default);
}

.modal__nav-btn:hover {
  background: var(--surface-hover);
  border-color: var(--smv-secondary);
  color: var(--smv-secondary);
}

.modal__nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}


/* ================================================================
   15. ANIMATION KEYFRAMES
   ================================================================ */

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

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

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

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes progressFill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@keyframes scanLine {
  0% {
    top: 0%;
  }
  100% {
    top: 100%;
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes ripple {
  from {
    transform: scale(0);
    opacity: 0.6;
  }
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: var(--shadow-lg), 0 0 0 0 rgba(0, 75, 135, 0.3);
  }
  50% {
    box-shadow: var(--shadow-lg), 0 0 0 12px rgba(0, 75, 135, 0);
  }
}

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

@keyframes checkDraw {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-6px);
  }
}

@keyframes fieldFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4);
  }
  50% {
    box-shadow: 0 0 12px 4px rgba(5, 150, 105, 0.3);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
  }
}

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 80ms; }
.stagger > *:nth-child(3) { animation-delay: 160ms; }
.stagger > *:nth-child(4) { animation-delay: 240ms; }
.stagger > *:nth-child(5) { animation-delay: 320ms; }
.stagger > *:nth-child(6) { animation-delay: 400ms; }


/* ================================================================
   15b. TRUST BADGES & GRID
   ================================================================ */

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-xl);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* Trust-Grid (Step 3) overrides the small pill .trust-badge */
.trust-grid .trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs, .5rem);
  padding: var(--space-lg, 1.5rem) var(--space-md, 1rem);
  background: var(--surface-card, rgba(255,255,255,.03));
  border: 1px solid var(--border-subtle, rgba(255,255,255,.08));
  border-radius: var(--radius-md, 10px);
  font-size: var(--text-sm, .875rem);
  width: 100%;
  min-height: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.trust-grid .trust-label {
  font-weight: 700;
  font-size: var(--text-base, 1rem);
  color: var(--text-primary);
  line-height: 1.3;
}
.trust-grid .trust-desc {
  font-size: var(--text-xs, .75rem);
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.trust-icon {
  color: var(--accent-text);
  margin-bottom: var(--space-sm);
}

[data-theme="dark"] .trust-icon {
  color: var(--smv-highlight);
}

.trust-label {
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
}

.trust-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
}


/* ================================================================
   15c. FAQ SECTION & FILTERS
   ================================================================ */

.faq-section {
  margin-top: var(--space-2xl);
}

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.faq-filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-default),
    border-color var(--duration-fast) var(--ease-default),
    color var(--duration-fast) var(--ease-default);
}

.faq-filter-btn:hover {
  border-color: var(--smv-secondary);
  color: var(--smv-secondary);
}

.faq-filter-btn.active {
  background: var(--smv-primary);
  border-color: var(--smv-primary);
  color: var(--text-inverse);
}

[data-theme="dark"] .faq-filter-btn.active {
  background: var(--smv-secondary);
  border-color: var(--smv-secondary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: var(--text-sm);
}

.faq-table th,
.faq-table td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-default);
  text-align: left;
}

.faq-table th {
  background: var(--surface-hover);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.faq-table td {
  color: var(--text-secondary);
}


/* ================================================================
   15d. PRODUCTS GRID
   ================================================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.product-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-card, #fff);
  border: 1px solid var(--border-subtle, rgba(255,255,255,.08));
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.product-tile:hover, .product-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
  border-color: color-mix(in srgb, var(--smv-primary, #0085CA) 40%, transparent);
  outline: none;
}

.product-tile-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: .25rem .6rem;
  background: var(--smv-primary, #0085CA);
  color: #fff;
  font-size: var(--text-xs, .7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.product-tile-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-md, 1rem);
}
.product-tile-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.product-tile:hover .product-tile-image img { transform: scale(1.04); }

.product-tile-body {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: var(--space-md, 1rem) var(--space-lg, 1.5rem) var(--space-lg, 1.5rem);
  flex: 1;
}
.product-tile-name {
  font-size: var(--text-xl, 1.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}
.product-tile-subtitle {
  font-size: var(--text-sm, .875rem);
  color: var(--text-secondary);
  line-height: 1.4;
}
.product-tile-fact {
  margin-top: auto;
  padding-top: .75rem;
  font-size: var(--text-xs, .75rem);
  color: var(--smv-primary, #0085CA);
  font-weight: 600;
  letter-spacing: .02em;
}

.products-compare-action {
  text-align: center;
  margin-bottom: var(--space-xl);
}


/* ================================================================
   15e. UPLOAD PREVIEW
   ================================================================ */

.upload-preview {
  padding: var(--space-lg);
}

.preview-image-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-md);
}

.preview-image-wrap img {
  max-height: 300px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
}

.preview-remove {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-status {
  margin-bottom: var(--space-md);
}

.scan-progress {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.scan-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  border-top-color: var(--smv-secondary);
  border-radius: var(--radius-full);
  animation: spin 0.6s linear infinite;
}

.scan-spinner--sm {
  width: 14px;
  height: 14px;
  border-width: 2px;
  display: inline-block;
}

.scan-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.scan-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--slate-400);
  transition: color 0.25s ease;
  min-height: 22px;
}

.scan-step--active {
  color: var(--text-primary);
  font-weight: 600;
}

.scan-step--done {
  color: var(--slate-500);
}

.scan-step-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-default);
  display: inline-block;
  margin: 2px;
}

.scan-step-check {
  color: var(--smv-secondary);
  flex-shrink: 0;
}

.scan-step-label {
  line-height: 1.3;
}

.preview-results-title {
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.preview-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.preview-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}


/* ================================================================
   15f. FOOTER
   ================================================================ */

.site-footer {
  background: var(--surface-card);
  border-top: 1px solid var(--border-default);
  padding: var(--space-lg) var(--space-xl);
  transition: background-color var(--duration-slow) var(--ease-default);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  max-width: var(--wizard-max-width);
  margin: 0 auto;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

.footer-links a {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.footer-links a:hover {
  color: var(--smv-secondary);
}


/* ================================================================
   15g. CHAT OVERLAY
   ================================================================ */

.chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 94;
  transition: opacity var(--duration-normal) var(--ease-default);
}


/* ================================================================
   15h. HERO TITLE ACCENT
   ================================================================ */

.hero-title-accent {
  background: var(--smv-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ================================================================
   15i. SKIP LINK
   ================================================================ */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--smv-primary);
  color: var(--text-inverse);
  padding: var(--space-sm) var(--space-md);
  z-index: 200;
  transition: top var(--duration-fast) var(--ease-default);
}

.skip-link:focus {
  top: 0;
}


/* ================================================================
   15j. STEPPER INPUT OVERRIDE
   ================================================================ */

.stepper-input {
  border: none !important;
  text-align: center;
  width: 100%;
  padding: 8px 0 !important;
  background: transparent !important;
}

.stepper-input:focus {
  box-shadow: none !important;
}

.stepper__unit {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
}


/* ================================================================
   16. RESPONSIVE BREAKPOINTS
   ================================================================ */

/* --- Tablet (1024px) --- */
@media (max-width: 1024px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .product-recommendations {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .product-card__image {
    height: 160px;
  }
}

/* --- Mobile Landscape / Small Tablet (768px) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .header {
    padding: 0 var(--space-md);
  }

  .header__center {
    padding: 0 var(--space-sm);
  }

  .progress-step { padding: 8px 12px; gap: 0; min-height: 32px; }
  .progress-step__label { display: none; }
  .progress-step__circle { font-size: .85rem; }
  .progress-connector { flex: 0 0 16px; }

  .wizard-step {
    padding: var(--space-lg) var(--space-md);
  }

  .wizard-step__title {
    font-size: var(--text-2xl);
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    width: 100%;
  }

  .radio-card {
    padding: var(--space-md);
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .modal {
    max-width: 100%;
    max-height: 95vh;
    margin: var(--space-sm);
    border-radius: var(--radius-lg);
  }

  .modal__header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--space-md);
  }

  .modal__body {
    padding: var(--space-md);
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-card__header {
    padding: var(--space-md);
  }

  .summary-card__body {
    padding: var(--space-md);
  }

  .product-card__specs {
    grid-template-columns: 1fr;
  }

  .tab-group {
    gap: var(--space-xs);
  }

  .tab-group__item {
    padding: var(--space-sm) var(--space-sm);
    font-size: var(--text-xs);
  }
}

/* --- Mobile Portrait (480px) --- */
@media (max-width: 480px) {
  .progress-step { padding: 6px 10px; min-height: 28px; }
  .progress-step__circle { font-size: .8rem; }
  .progress-connector { flex: 0 0 12px; }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn--ghost {
    width: auto;
  }

  .wizard-step {
    padding: var(--space-md) var(--space-sm);
  }

  .wizard-step__title {
    font-size: var(--text-xl);
  }

  .wizard-step__subtitle {
    font-size: var(--text-base);
  }

  .card {
    padding: var(--space-md);
  }

  .dropzone {
    padding: var(--space-xl);
  }

  .header__logo-text {
    display: none;
  }

  .chat-fab {
    width: 52px;
    height: 52px;
    bottom: var(--space-md);
    right: var(--space-md);
  }

  .chat-fab__video {
    width: 80px;
    right: calc(var(--space-md) + 60px);
    bottom: calc(var(--space-md) + 6px);
  }

  .success-screen {
    padding: var(--space-xl) var(--space-md);
  }

  .modal-overlay {
    padding: var(--space-sm);
  }

  .alert {
    flex-direction: column;
    gap: var(--space-sm);
  }
}


/* ================================================================
   17. UTILITY CLASSES
   ================================================================ */

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-xs  { margin-top: var(--space-xs); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-xs  { margin-bottom: var(--space-xs); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.hidden {
  display: none !important;
}

.fade-in {
  animation: stepFadeIn var(--duration-normal) var(--ease-expo) forwards;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ================================================================
   18. PRINT STYLES
   ================================================================ */

@media print {
  .header,
  .chat-fab,
  .chat-fab__video,
  .chat-panel,
  .theme-toggle,
  .lang-switcher,
  .progress-bar,
  .btn--ghost,
  .dropzone,
  #confetti-canvas {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .wizard {
    padding-top: 0;
    min-height: auto;
  }

  .wizard-step {
    max-width: 100%;
    padding: 0;
    display: block !important;
    animation: none !important;
  }

  .wizard-step:not(.active) {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .card:hover {
    transform: none;
    box-shadow: none;
  }

  .product-card:hover {
    transform: none;
    box-shadow: none;
  }

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

  .summary-card__header {
    background: var(--smv-primary);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .result-header__status .badge {
    border: 1px solid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 10pt;
    color: #666;
  }

  .modal-overlay {
    display: none !important;
  }
}

/* ================================================================
   17. MOBILE POLISH (≤720px) - gezielte Fixes für Komponenten
   ================================================================ */
@media (max-width: 720px) {
  /* Offer sub-stepper — horizontal scroll statt umbrechen */
  .offer-sub-stepper { flex-wrap: wrap; gap: .3rem; font-size: .78rem; }
  .offer-sub-stepper__step { white-space: nowrap; }

  /* Auflastungsvariante und Lieferart: Karten stapeln */
  .offer-content .card > div[style*="display:flex"][style*="gap:var(--space-md)"] { flex-direction: column !important; }

  /* Offer-btn-row stapelt auf Mobile */
  .offer-btn-row { flex-direction: column-reverse; gap: .75rem; }
  .offer-btn-row .btn { width: 100%; justify-content: center; }

  /* Hero-Titel etwas kleiner auf Mobile */
  .wizard-step--hero .wizard-step__title { font-size: clamp(1.75rem, 6vw, 2.5rem); }

  /* Felgen-Card Stat-Werte kleiner */
  .felgen-stat__value { font-size: 1.4rem; }

  /* Intro-Video volle Breite auf Mobile */
  .intro-video-wrap { max-width: 100%; }

  /* Product detail modal fullscreen auf Mobile */
  .product-modal { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; top: 0; left: 0; transform: none; }
  .product-modal-nav { width: 36px; height: 36px; }
  .product-modal-nav--prev { left: 8px; }
  .product-modal-nav--next { right: 8px; }
  .product-modal-close { top: 8px; right: 8px; }
  .product-modal-content { padding: var(--space-lg, 1rem); }
  .product-modal-name { font-size: var(--text-2xl, 1.5rem); }
  .product-modal-image img { max-height: 240px; }

  /* Compare modal fullscreen */
  .compare-modal { padding: 0; }
  .compare-modal__dialog { max-height: 100vh; border-radius: 0; padding: var(--space-lg, 1rem) var(--space-md, .75rem); max-width: 100vw; }
  .compare-modal__header h2 { font-size: var(--text-xl, 1.25rem); }

  /* Offer options responsive */
  .offer-option-card { flex-wrap: wrap; }
  .offer-option-card .offer-option-price { font-size: var(--text-sm); margin-left: auto; }

  /* Chat panel volle Breite */
  .chat-panel { width: 100% !important; right: 0 !important; left: 0 !important; max-width: 100vw; }

  /* Upload preview bilder kleiner */
  .preview-image-wrap img { max-width: 100%; max-height: 280px; }

  /* Result-produkte-grid — stapeln */
  .result-produkte-grid { grid-template-columns: 1fr !important; }

  /* Parkbremse hints untereinander */
  .parkbremse-hint { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* Angebot-Header Preis-Badge unter Titel */
  .offer-content .card[style*="justify-content:space-between"] { flex-direction: column; align-items: flex-start !important; gap: .5rem !important; }

  /* Hero-Skip-Button volle Breite */
  .hero-skip .btn { width: 100%; }

  /* Trust-Grid auf Mobile 1 Spalte */
  .trust-grid { grid-template-columns: 1fr !important; }

  /* Wizard-Step padding reduzieren */
  .wizard-step { padding: var(--space-md, 1rem) var(--space-sm, .75rem); }

  /* Form-Inputs und Buttons Touch-Target 44px min */
  .btn { min-height: 44px; padding: 12px 20px; }
  input, select, textarea { min-height: 44px; font-size: 16px; /* verhindert iOS Zoom */ }
}

/* ================================================================
   18. RESULT HERO V2 - Ergebnisseite im Premium-Look
   ================================================================ */
.result-hero-v2 {
  position: relative;
  max-width: 1100px;
  margin: 0 auto var(--space-lg, 1.25rem);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 20px 60px color-mix(in srgb, var(--smv-primary) 25%, transparent),
              0 4px 12px rgba(0,0,0,.08);
  color: #fff;
  isolation: isolate;
}
.result-hero-v2__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #003561 0%, #004B87 50%, #0085CA 100%);
  z-index: -2;
}
.result-hero-v2__bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(125,211,252,.35) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(56,189,248,.25) 0%, transparent 45%);
  z-index: 0;
}
.result-hero-v2__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .4;
}
.result-hero-v2__inner {
  position: relative;
  padding: var(--space-2xl, 2.25rem) var(--space-2xl, 2.25rem);
}
.result-hero-v2__status {
  display: flex;
  align-items: center;
  gap: var(--space-md, 1rem);
  margin-bottom: var(--space-xl, 2rem);
  flex-wrap: wrap;
}
.result-hero-v2__check {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(34,197,94,.45), 0 0 0 4px rgba(34,197,94,.2);
  flex-shrink: 0;
  animation: checkPulse 2.4s ease-in-out infinite;
}
@keyframes checkPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(34,197,94,.45), 0 0 0 4px rgba(34,197,94,.2); }
  50%      { box-shadow: 0 8px 28px rgba(34,197,94,.55), 0 0 0 8px rgba(34,197,94,.1); }
}
.result-hero-v2__label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.7);
  margin-bottom: .2rem;
}
.result-hero-v2__title {
  font-size: var(--text-2xl, 1.625rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.result-hero-v2__chassis {
  margin-left: auto;
  padding: .6rem 1rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}
.result-hero-v2__chassis span {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.65);
  margin-bottom: .25rem;
}
.result-hero-v2__chassis strong {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
}

.result-hero-v2__counter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-md, 1rem) 0;
}
.result-hero-v2__counter-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.7);
  margin-bottom: .5rem;
}
.result-hero-v2__counter-row {
  display: inline-flex;
  align-items: baseline;
  gap: .6rem;
  margin-bottom: .8rem;
}
.result-hero-v2__counter {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -.03em;
  text-shadow: 0 4px 24px rgba(125,211,252,.4);
}
.result-hero-v2__unit {
  font-size: var(--text-2xl, 1.5rem);
  font-weight: 600;
  color: rgba(255,255,255,.8);
}
.result-hero-v2__gain {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(22,163,74,.9));
  color: #fff;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(34,197,94,.4);
  opacity: 0;
  transform: scale(.85);
  transition: opacity var(--duration-normal, .35s) var(--ease-spring, cubic-bezier(.2,.9,.3,1)),
              transform var(--duration-normal, .35s) var(--ease-spring, cubic-bezier(.2,.9,.3,1));
  white-space: nowrap;
  align-self: center;
}
.result-hero-v2__gain.visible { opacity: 1 !important; transform: scale(1) !important; }

/* Metric Grid V2 (Vorher -> Nachher -> HA) */
.metric-grid-v2 {
  max-width: 1100px;
  margin: 0 auto var(--space-lg, 1.25rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr;
  gap: var(--space-md, 1rem);
  align-items: center;
}
.metric-card-v2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md, 1rem);
  padding: var(--space-lg, 1.25rem) var(--space-lg, 1.25rem);
  background: var(--surface-card, #fff);
  border: 1px solid var(--border-subtle, rgba(0,0,0,.08));
  border-radius: var(--radius-lg, 14px);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.metric-card-v2:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.metric-card-v2__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}
.metric-card-v2__body { flex: 1; min-width: 0; }
.metric-card-v2__label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .2rem;
}
.metric-card-v2__value {
  font-family: var(--font-display);
  font-size: var(--text-2xl, 1.6rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -.02em;
}
.metric-card-v2__value span {
  font-size: .7em;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}
.metric-card-v2__meta {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: .35rem;
}

/* Varianten-Farben */
.metric-card-v2--before .metric-card-v2__icon {
  background: color-mix(in srgb, var(--text-muted) 18%, transparent);
  color: var(--text-secondary);
}
.metric-card-v2--after {
  border-color: color-mix(in srgb, var(--success) 35%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--success) 6%, var(--surface-card, #fff)), var(--surface-card, #fff));
}
.metric-card-v2--after .metric-card-v2__icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 4px 14px rgba(34,197,94,.35);
}
.metric-card-v2--after .metric-card-v2__value { color: #16a34a; }

.metric-card-v2--ha {
  border-color: color-mix(in srgb, var(--smv-secondary) 35%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--smv-secondary) 6%, var(--surface-card, #fff)), var(--surface-card, #fff));
}
.metric-card-v2--ha .metric-card-v2__icon {
  background: linear-gradient(135deg, var(--smv-primary), var(--smv-secondary));
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--smv-secondary) 35%, transparent);
}
.metric-card-v2--ha .metric-card-v2__value { color: var(--accent-text); }

.metric-card-v2__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--smv-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--smv-secondary) 12%, transparent);
  animation: arrowSlide 2.5s ease-in-out infinite;
}
@keyframes arrowSlide {
  0%, 100% { transform: translateX(0); opacity: .8; }
  50%      { transform: translateX(3px); opacity: 1; }
}

/* Dark Mode */
[data-theme="dark"] .metric-card-v2 {
  background: var(--surface-elevated);
  border-color: var(--border-default);
}
[data-theme="dark"] .metric-card-v2--after {
  background: linear-gradient(135deg, rgba(34,197,94,.1), var(--surface-elevated));
  border-color: rgba(34,197,94,.3);
}
[data-theme="dark"] .metric-card-v2--after .metric-card-v2__value { color: #4ade80; }
[data-theme="dark"] .metric-card-v2--ha {
  background: linear-gradient(135deg, rgba(125,211,252,.1), var(--surface-elevated));
  border-color: rgba(125,211,252,.3);
}
[data-theme="dark"] .metric-card-v2--ha .metric-card-v2__icon {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  box-shadow: 0 4px 16px rgba(56,189,248,.4);
}
[data-theme="dark"] .metric-card-v2--ha .metric-card-v2__value { color: #7dd3fc; }
[data-theme="dark"] .metric-card-v2__arrow { color: #38bdf8; background: rgba(56,189,248,.12); }

/* Result Body Card - Container fuer Alerts nach dem Hero */
.result-body-card {
  max-width: 1100px;
  margin: 0 auto;
}

/* Mobile */
@media (max-width: 720px) {
  .result-hero-v2__inner { padding: var(--space-xl, 1.5rem) var(--space-lg, 1.25rem); }
  .result-hero-v2__status { gap: .75rem; margin-bottom: var(--space-lg, 1.25rem); }
  .result-hero-v2__chassis { margin-left: 0; width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .result-hero-v2__counter { font-size: clamp(2.8rem, 12vw, 4rem); }
  .result-hero-v2__check { width: 44px; height: 44px; }
  .result-hero-v2__title { font-size: var(--text-xl, 1.375rem); }

  .metric-grid-v2 { grid-template-columns: 1fr; gap: var(--space-sm, .75rem); }
  .metric-card-v2__arrow { display: none; }
}

/* ================================================================
   19. OFFER SUMMARY V2 - Uebersichts-Schritt im Angebot
   ================================================================ */
.offer-summary-v2 {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg, 1.25rem);
}

/* Summary Card */
.summary-card {
  background: var(--surface-card, #fff);
  border: 1px solid var(--border-subtle, rgba(0,0,0,.08));
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}
.summary-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); }

.summary-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-md, 1rem);
  padding: var(--space-lg, 1.25rem) var(--space-xl, 1.5rem);
  border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,.06));
  position: relative;
}
.summary-card__header--vehicle  { background: linear-gradient(135deg, color-mix(in srgb, var(--smv-primary) 5%, var(--surface-card, #fff)), var(--surface-card, #fff)); }
.summary-card__header--product  { background: linear-gradient(135deg, color-mix(in srgb, var(--smv-secondary) 6%, var(--surface-card, #fff)), var(--surface-card, #fff)); }
.summary-card__header--customer { background: linear-gradient(135deg, color-mix(in srgb, var(--smv-primary) 4%, var(--surface-card, #fff)), var(--surface-card, #fff)); }

.summary-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--smv-primary), var(--smv-secondary));
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--smv-secondary) 30%, transparent);
}
.summary-card__label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .15rem;
}
.summary-card__title {
  margin: 0;
  font-size: var(--text-lg, 1.15rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}
.summary-card__pill {
  margin-left: auto;
  padding: .35rem .8rem;
  background: linear-gradient(135deg, var(--smv-primary), var(--smv-secondary));
  color: #fff;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--smv-secondary) 30%, transparent);
}
.summary-card__pill--muted {
  background: color-mix(in srgb, var(--text-muted) 20%, transparent);
  color: var(--text-secondary);
  box-shadow: none;
}

.summary-card__body {
  padding: var(--space-lg, 1.25rem) var(--space-xl, 1.5rem);
}

/* Summary Grid (label + value boxes) */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md, 1rem);
}
.summary-grid__item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .65rem .85rem;
  background: var(--surface-hover, rgba(0,0,0,.02));
  border: 1px solid var(--border-subtle, rgba(0,0,0,.05));
  border-radius: var(--radius-md, 8px);
  min-width: 0;
  overflow: hidden;
}
.summary-grid__item--full { grid-column: 1 / -1; }
.summary-grid__item span {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.summary-grid__item strong {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}
.summary-grid__item--highlight {
  background: linear-gradient(135deg, color-mix(in srgb, var(--smv-primary) 8%, var(--surface-card, #fff)), var(--surface-card, #fff));
  border-color: color-mix(in srgb, var(--smv-primary) 25%, transparent);
}
.summary-grid__item--highlight strong {
  color: var(--accent-text);
  font-size: 1rem;
  font-weight: 800;
}

/* Produkt-Hero mit Bild */
.summary-hero-product {
  display: flex;
  align-items: center;
  gap: var(--space-lg, 1.25rem);
  padding: var(--space-md, 1rem);
  background: linear-gradient(135deg, color-mix(in srgb, var(--smv-primary) 5%, var(--surface-card, #fff)), var(--surface-card, #fff));
  border: 1px solid var(--border-subtle, rgba(0,0,0,.06));
  border-radius: var(--radius-md, 10px);
  margin-bottom: var(--space-lg, 1.25rem);
}
.summary-hero-product img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm, 8px);
  padding: .3rem;
  flex-shrink: 0;
}
.summary-hero-product__info { flex: 1; min-width: 0; }
.summary-hero-product__subtitle {
  font-size: var(--text-sm, .875rem);
  color: var(--text-secondary);
  margin-bottom: .4rem;
}
.summary-hero-product__badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.summary-hero-product__badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .7rem;
  background: color-mix(in srgb, var(--smv-secondary) 12%, transparent);
  color: var(--accent-text);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--smv-secondary) 25%, transparent);
}

/* Summary Lines (Preispositionen) */
.summary-lines {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-bottom: var(--space-lg, 1.25rem);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md, 1rem);
  padding: .75rem 0;
  border-bottom: 1px dashed var(--border-subtle, rgba(0,0,0,.08));
}
.summary-line:last-child { border-bottom: none; }
.summary-line__info { flex: 1; min-width: 0; }
.summary-line__name {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.summary-line__art {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: .15rem;
}
.summary-line__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.summary-line__tag {
  display: inline-flex;
  padding: .15rem .5rem;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 4px;
}
.summary-line__tag--main     { background: color-mix(in srgb, var(--smv-primary) 12%, transparent); color: var(--accent-text); }
.summary-line__tag--gutachten{ background: color-mix(in srgb, #8b5cf6 12%, transparent); color: #7c3aed; }
.summary-line__tag--montage  { background: color-mix(in srgb, #f59e0b 14%, transparent); color: #d97706; }
.summary-line__tag--fracht   { background: color-mix(in srgb, var(--text-muted) 15%, transparent); color: var(--text-secondary); }

/* Summary Total - Blickfang */
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg, 1.25rem) var(--space-xl, 1.5rem);
  margin: 0 calc(-1 * var(--space-xl, 1.5rem)) calc(-1 * var(--space-lg, 1.25rem));
  background: linear-gradient(135deg, #003561 0%, #004B87 50%, #0085CA 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.summary-total::before {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 160px; height: 100%;
  background: radial-gradient(circle at top right, rgba(125,211,252,.35), transparent 60%);
  pointer-events: none;
}
.summary-total__label {
  position: relative;
  z-index: 1;
}
.summary-total__main {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.summary-total__sub {
  font-size: .72rem;
  color: rgba(255,255,255,.7);
  margin-top: .15rem;
}
.summary-total__price {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  text-shadow: 0 4px 18px rgba(125,211,252,.4);
  font-variant-numeric: tabular-nums;
}

/* Dark Mode */
[data-theme="dark"] .summary-card {
  background: var(--surface-elevated);
  border-color: var(--border-default);
}
[data-theme="dark"] .summary-card__header { border-bottom-color: var(--border-default); }
[data-theme="dark"] .summary-card__header--vehicle,
[data-theme="dark"] .summary-card__header--product,
[data-theme="dark"] .summary-card__header--customer {
  background: linear-gradient(135deg, rgba(125,211,252,.08), var(--surface-elevated));
}
[data-theme="dark"] .summary-card__icon {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  box-shadow: 0 4px 16px rgba(56,189,248,.4);
}
[data-theme="dark"] .summary-grid__item {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .summary-grid__item--highlight {
  background: linear-gradient(135deg, rgba(125,211,252,.12), var(--surface-elevated));
  border-color: rgba(125,211,252,.3);
}
[data-theme="dark"] .summary-grid__item--highlight strong { color: #7dd3fc; }
[data-theme="dark"] .summary-hero-product {
  background: linear-gradient(135deg, rgba(125,211,252,.08), var(--surface-elevated));
  border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .summary-hero-product__badge {
  background: rgba(125,211,252,.12);
  color: #7dd3fc;
  border-color: rgba(125,211,252,.3);
}

/* Mobile */
@media (max-width: 640px) {
  .summary-card__header { padding: var(--space-md, 1rem) var(--space-lg, 1.25rem); flex-wrap: wrap; }
  .summary-card__pill { margin-left: auto; }
  .summary-card__body { padding: var(--space-md, 1rem) var(--space-lg, 1.25rem); }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .summary-grid__item--full { grid-column: 1 / -1; }
  .summary-hero-product { flex-direction: column; align-items: flex-start; text-align: left; }
  .summary-hero-product img { width: 100%; max-width: 200px; height: auto; margin: 0 auto; }
  .summary-total { padding: var(--space-md, 1rem) var(--space-lg, 1.25rem); margin: 0 calc(-1 * var(--space-lg, 1.25rem)) calc(-1 * var(--space-md, 1rem)); flex-direction: column; align-items: flex-start; gap: .5rem; }
  .summary-line__name { font-size: .85rem; }
}

/* ================================================================
   20. MONTAGE-INFO-HINT & UNVERBINDLICH-HINT
   ================================================================ */
.montage-info-hint {
  display: flex;
  gap: var(--space-md, 1rem);
  align-items: flex-start;
  margin-top: var(--space-md, 1rem);
  padding: var(--space-md, 1rem) var(--space-lg, 1.25rem);
  background: linear-gradient(135deg, color-mix(in srgb, var(--smv-primary) 8%, var(--surface-card, #fff)) 0%, var(--surface-card, #fff) 100%);
  border: 1px solid color-mix(in srgb, var(--smv-primary) 22%, transparent);
  border-left: 4px solid var(--smv-secondary);
  border-radius: var(--radius-md, 10px);
  animation: fadeIn .3s ease;
}
.montage-info-hint__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--smv-primary), var(--smv-secondary));
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--smv-secondary) 30%, transparent);
}
.montage-info-hint__text { flex: 1; min-width: 0; }
.montage-info-hint__text strong {
  display: block;
  color: var(--accent-text);
  font-size: var(--text-base, .95rem);
  font-weight: 700;
  margin-bottom: .3rem;
}
.montage-info-hint__text span {
  display: block;
  color: var(--text-secondary);
  font-size: var(--text-sm, .85rem);
  line-height: 1.55;
}
[data-theme="dark"] .montage-info-hint {
  background: linear-gradient(135deg, rgba(125,211,252,.08), rgba(125,211,252,.02));
  border-color: rgba(125,211,252,.3);
  border-left-color: #38bdf8;
}
[data-theme="dark"] .montage-info-hint__icon {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
}
[data-theme="dark"] .montage-info-hint__text strong { color: #7dd3fc; }
[data-theme="dark"] .montage-info-hint__text span { color: #e2e8f0; }

/* Unverbindlich-Hinweis direkt über dem Absende-Button */
.unverbindlich-hint {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin: var(--space-lg, 1.25rem) auto var(--space-md, 1rem);
  padding: var(--space-md, .9rem) var(--space-lg, 1.1rem);
  max-width: 720px;
  background: color-mix(in srgb, var(--success) 6%, var(--surface-card, #fff));
  border: 1px solid color-mix(in srgb, var(--success) 25%, transparent);
  border-radius: var(--radius-md, 10px);
  font-size: var(--text-sm, .85rem);
  color: var(--text-secondary);
  line-height: 1.55;
}
.unverbindlich-hint svg { color: var(--success); flex-shrink: 0; margin-top: .1rem; }
.unverbindlich-hint strong { color: var(--text-primary); font-weight: 700; }
.unverbindlich-hint u { text-decoration-color: var(--success); text-decoration-thickness: 2px; text-underline-offset: 2px; }
[data-theme="dark"] .unverbindlich-hint {
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.3);
  color: #e2e8f0;
}
[data-theme="dark"] .unverbindlich-hint strong { color: #f1f5f9; }
[data-theme="dark"] .unverbindlich-hint svg { color: #4ade80; }
[data-theme="dark"] .unverbindlich-hint u { text-decoration-color: #4ade80; }
