/* v20 — Zusatz-Zubehör-Sektion in der Bike-Config: Checkbox-Liste unter den Größen-Pills */
/* v1 — RAD ELSTER Verleih-Formular Prototyp v2 */

:root {
  --teal: #1A8489;
  --teal-dark: #146568;
  --teal-50: #f0f7f7;
  --teal-100: #e0eded;
  --teal-200: #c4dcdc;
  --teal-300: #8fbfc0;
  --teal-tint: rgba(26, 132, 137, 0.08);
  --teal-border: rgba(26, 132, 137, 0.16);

  --ink: #1a1a1a;
  --ink-2: #333;
  --ink-3: #666;
  --ink-4: #999;
  --line: #e8e8e8;
  --bg: #fafafa;
  --paper: #ffffff;
  --danger: #dc2626;
  --danger-bg: #fef2f2;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.10);

  --font-display: 'Exo 2', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html, body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
input:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ─── Header ───────────────────────────────────────────── */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255, 255, 255, 0.92);
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--teal);
}
.logo span { color: var(--ink); }
.lang-switch { display: flex; gap: 2px; }
.lang-switch button {
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: var(--r-sm);
  transition: color 120ms var(--ease), background 120ms var(--ease);
}
.lang-switch button.active { color: var(--teal); background: var(--teal-50); }
.lang-switch button:hover:not(.active) { color: var(--ink); }

/* ─── Hero ──────────────────────────────────────────── */
.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  text-align: center;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--teal);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before, .eyebrow::after {
  content: ''; width: 24px; height: 1px; background: var(--teal); opacity: 0.4;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.hero p {
  font-size: 17px;
  color: var(--ink-3);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Progress ─────────────────────────────────────── */
.progress {
  max-width: 720px;
  margin: 40px auto 32px;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-4);
  font-size: 13px;
  font-weight: 500;
  transition: color 200ms var(--ease);
}
.progress-step .dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  transition: all 240ms var(--ease);
}
.progress-step.active { color: var(--ink); }
.progress-step.active .dot {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  box-shadow: 0 0 0 6px var(--teal-tint);
}
.progress-step.done .dot {
  background: var(--teal-50);
  border-color: var(--teal-300);
  color: var(--teal);
}
.progress-step.done .dot svg { width: 14px; height: 14px; }
.progress-line {
  flex: 0 1 40px;
  height: 1.5px;
  background: var(--line);
  transition: background 240ms var(--ease);
}
.progress-line.done { background: var(--teal-300); }

/* ─── Wizard Container ─────────────────────────────── */
.wizard {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px 160px;
}
.step {
  display: none;
  animation: stepIn 360ms var(--ease-out);
}
.step.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-head {
  margin-bottom: 24px;
}
.step-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.step-head p {
  color: var(--ink-3);
  font-size: 15px;
}

/* ─── Cards ────────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }

/* ─── Step 1: Tarif & Kalender ─────────────────────── */
.tariff-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.tariff-option {
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 18px 20px;
  text-align: left;
  transition: all 180ms var(--ease);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tariff-option:hover { border-color: var(--teal-300); }
.tariff-option.active {
  border-color: var(--teal);
  background: var(--teal-50);
  box-shadow: 0 0 0 4px var(--teal-tint);
}
.tariff-option .t-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.tariff-option .t-subline {
  font-size: 13px;
  color: var(--ink-3);
}
.tariff-option .t-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal);
  font-size: 13px;
  margin-top: 6px;
}

/* Kalender */
.calendar {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--teal-50);
  border-bottom: 1px solid var(--teal-border);
}
.calendar-head .month {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-transform: capitalize;
}
.cal-nav {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  color: var(--teal);
  transition: background 120ms var(--ease);
}
.cal-nav:hover { background: var(--teal-100); }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 10px 8px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 4px 8px 12px;
  gap: 2px;
}
.day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  transition: all 120ms var(--ease);
  cursor: pointer;
}
/* v15 — Hover-State nur auf echten Mouse-Devices: Touch-Devices (iOS Safari, Android Chrome)
   emulieren :hover sticky nach Tap → Specificity .day:hover:not(...):not(...) (0,4,0) schlägt
   .day.range-start (0,2,0), heißt der teal-50-Tint überschreibt den teal-Selected-State.
   Mit @media (hover:hover) greift die Regel nur wenn ein Pointer da ist, der echt hovern kann. */
@media (hover: hover) {
  .day:hover:not(.disabled):not(.other) {
    background: var(--teal-50);
  }
}
.day.other { color: var(--line); pointer-events: none; }
.day.disabled { color: var(--line); cursor: not-allowed; }
.day.disabled::after {
  content: '';
  position: absolute;
  top: 50%; left: 25%; right: 25%;
  height: 1px;
  background: var(--line);
}
.day.today {
  font-weight: 700;
  color: var(--teal);
}
.day.in-range {
  background: var(--teal-50);
  border-radius: 0;
}
.day.range-start, .day.range-end {
  background: var(--teal);
  color: white;
  font-weight: 600;
}
.day.range-start { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.day.range-end { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.day.range-start.range-end { border-radius: var(--r-sm); }
.day .stock-dot {
  position: absolute;
  bottom: 4px;
  left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--teal-300);
}
.day.range-start .stock-dot, .day.range-end .stock-dot { background: white; }

/* ─── Step 2: Bike-Cards ───────────────────────────── */
.bike-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .bike-grid { grid-template-columns: 1fr 1fr; }
}
.bike-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 220ms var(--ease);
  display: flex;
  flex-direction: column;
}
.bike-card:hover { border-color: var(--teal-300); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bike-card.selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-tint), var(--shadow-md);
}
.bike-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--teal-50) 0%, var(--teal-100) 100%);
  display: grid;
  place-items: center;
  color: var(--teal-300);
  position: relative;
}
.bike-photo svg { width: 80px; height: 80px; opacity: 0.7; }
.bike-photo::after {
  content: 'Foto';
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.55;
}
.bike-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.bike-type {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.bike-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 4px;
}
.bike-tagline {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.bike-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.bike-specs li {
  font-size: 13px;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}
.bike-specs li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1.5px;
  background: var(--teal);
}
.bike-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-bottom: 14px;
}
.bike-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}
.bike-price small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-3);
}
.bike-select-btn {
  width: 100%;
  padding: 14px 18px;
  background: var(--teal-50);
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: var(--r-md);
  transition: all 180ms var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bike-select-btn:hover { background: var(--teal-100); }
.bike-card.selected .bike-select-btn {
  background: var(--teal);
  color: white;
}
.bike-card.selected .bike-select-btn::before {
  content: '';
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain;
}

/* Expanded bike config */
.bike-config {
  padding: 22px;
  border-top: 1px solid var(--teal-border);
  background: var(--teal-50);
  display: none;
}
.bike-card.selected .bike-config { display: block; animation: stepIn 280ms var(--ease-out); }

/* v20 — Zubehör-Sektion: Karten-Reihe mit Checkbox links, Text mitte, Preis rechts. */
.addons-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--teal-border);
}
.addons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.addon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--teal-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out);
}
.addon-row:hover { border-color: var(--teal); }
.addon-row.checked { border-color: var(--teal); background: var(--teal-50); }
.addon-row .addon-check {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  cursor: pointer;
  flex-shrink: 0;
}
.addon-row .addon-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.addon-row .addon-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.addon-row .addon-desc {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.35;
}
.addon-row .addon-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--teal);
  flex-shrink: 0;
  white-space: nowrap;
}
.addon-row .addon-price small {
  font-family: inherit;
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-3);
  margin-left: 2px;
}

/* v20 — Zubehör-Zeile in der „Ausgewählte Räder"-Liste (Step 2 unten + Sticky-Summary) */
.selected-bike-addons {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.3;
}

.config-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
  display: block;
}
.height-advisor {
  margin-bottom: 18px;
}
.height-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.height-value {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal);
  font-size: 15px;
}
.height-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--teal-100);
  border-radius: 2px;
  outline: none;
}
.height-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: grab;
  transition: transform 120ms var(--ease);
}
.height-slider::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.height-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: grab;
}
.size-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.size-pill {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 14px;
  transition: all 160ms var(--ease);
  position: relative;
}
.size-pill:hover:not(.disabled) { border-color: var(--teal-300); }
.size-pill.recommended {
  border-color: var(--teal-300);
  background: white;
}
.size-pill.recommended::after {
  content: 'Empfohlen';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: white;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.size-pill.selected {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}
.size-pill.disabled { opacity: 0.4; cursor: not-allowed; }
.size-pill .stock {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-4);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.size-pill.selected .stock { color: rgba(255,255,255,0.8); }

.add-bike-btn {
  width: 100%;
  padding: 18px;
  border: 1.5px dashed var(--teal-300);
  border-radius: var(--r-lg);
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-top: 16px;
  background: transparent;
  transition: all 180ms var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.add-bike-btn:hover:not(:disabled) { background: var(--teal-50); }
.add-bike-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.selected-bikes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.selected-bike-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--teal-border);
  border-radius: var(--r-md);
  font-size: 14px;
}
.selected-bike-row .left { display: flex; align-items: center; gap: 10px; }
.selected-bike-row .badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--teal);
  background: var(--teal-50);
  padding: 4px 8px;
  border-radius: 4px;
}
.selected-bike-row .remove {
  color: var(--ink-4);
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
}
.selected-bike-row .remove:hover { color: var(--danger); background: var(--danger-bg); }

/* ─── Step 3: Daten ────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .form-grid.two-col { grid-template-columns: 1fr 1fr; }
}
.field {
  position: relative;
}
.field input, .field textarea {
  width: 100%;
  padding: 22px 16px 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 15px;
  transition: border-color 160ms var(--ease);
}
.field textarea { padding-top: 26px; min-height: 100px; resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: var(--teal);
  outline: none;
}
.field label {
  position: absolute;
  left: 16px;
  top: 17px;
  color: var(--ink-4);
  font-size: 15px;
  pointer-events: none;
  transition: all 160ms var(--ease);
  background: transparent;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 7px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--teal);
  text-transform: uppercase;
}
.field .hint {
  display: block;
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 6px;
  padding-left: 4px;
}
.field.error input, .field.error textarea { border-color: var(--danger); }
.field .err-msg { color: var(--danger); font-size: 12px; margin-top: 6px; padding-left: 4px; display: none; }
.field.error .err-msg { display: block; }

.opt-toggle {
  margin-top: 4px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.opt-toggle:hover { text-decoration: underline; }

/* ─── Step 4: Summary ──────────────────────────────── */
.summary {
  background: var(--teal-50);
  border: 1px solid var(--teal-border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--teal-border);
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row .label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 500;
}
.summary-row .value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 2px solid var(--teal);
}
.summary-total .label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.summary-total .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--teal);
}

.agb-check {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  margin-top: 16px;
  transition: border-color 160ms var(--ease);
}
.agb-check.checked { border-color: var(--teal); }
.agb-check input { position: absolute; opacity: 0; pointer-events: none; }
.agb-box {
  width: 22px; height: 22px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: all 160ms var(--ease);
}
.agb-check.checked .agb-box {
  background: var(--teal);
  border-color: var(--teal);
}
.agb-box svg {
  width: 14px; height: 14px;
  opacity: 0;
  stroke: white;
  transition: opacity 160ms var(--ease);
}
.agb-check.checked .agb-box svg { opacity: 1; }
.agb-text { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.agb-text a { color: var(--teal); text-decoration: underline; }

/* v22 — AGB-Error-State + Fehler-Banner für Step 4 */
.agb-check.is-error {
  border-color: var(--danger);
  background: var(--danger-bg);
  animation: agbShake 360ms var(--ease-out);
}
.agb-check.is-error .agb-box { border-color: var(--danger); }
@keyframes agbShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
.step4-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-top: 16px;
  margin-bottom: 0;
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  border-radius: 10px;
  color: var(--danger);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}
.step4-error[hidden] { display: none; }
.step4-error svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.step4-error strong { font-weight: 700; }
/* margin-top reduzieren auf agb-check wenn Banner direkt drüber sitzt */
.step4-error:not([hidden]) + .agb-check { margin-top: 10px; }

.included-strip {
  margin-top: 18px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 14px;
  font-size: 13px;
  color: var(--ink-3);
}
.included-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.included-strip svg { width: 14px; height: 14px; color: var(--teal); }

/* ─── Sticky Price Bar ─────────────────────────────── */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  padding: 14px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.05);
  z-index: 40;
  transform: translateY(100%);
  transition: transform 320ms var(--ease-out);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sticky-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sticky-info .top {
  font-size: 12px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-info .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.sticky-info .price small {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 400;
}
.btn-primary, .btn-secondary {
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: var(--r-md);
  transition: all 180ms var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: white;
}
.btn-primary:hover { background: var(--teal-dark); }
.btn-primary:disabled { background: var(--teal-100); color: var(--teal-300); cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  color: var(--ink-2);
}
.btn-secondary:hover { color: var(--teal); }
.btn-secondary svg { width: 16px; height: 16px; }
.btn-primary svg { width: 16px; height: 16px; }

@media (max-width: 600px) {
  /* Hero kompakter */
  .hero { padding: 36px 20px 20px; }
  .hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .hero p { font-size: 15px; }

  /* Progress: Labels weg, nur Dots — sauberer auf Mobile */
  .progress { margin: 24px auto 24px; gap: 4px; padding: 0 20px; }
  .progress-step span { display: none; }
  .progress-step .dot { width: 32px; height: 32px; font-size: 14px; }
  .progress-line { flex: 1 1 auto; min-width: 12px; }

  /* Wizard padding */
  .wizard { padding: 0 16px 140px; }
  .card { padding: 18px; border-radius: 14px; }
  .step-head h2 { font-size: 24px; }
  .step-head p { font-size: 14px; }

  /* Tarif-Cards kompakter */
  .tariff-option { padding: 14px 14px; }
  .tariff-option .t-title { font-size: 14px; }
  .tariff-option .t-subline { font-size: 12px; line-height: 1.35; }
  .tariff-option .t-price { font-size: 12px; }

  /* Kalender: Tap-Target min 40px, Schrift etwas kleiner */
  .calendar-head { padding: 12px 14px; }
  .weekdays { font-size: 10px; padding: 8px 6px 4px; }
  .days { padding: 4px 6px 10px; }
  .day { font-size: 13px; }

  /* Größen-Pills: Label etwas kompakter, kein Umbruch */
  .size-pill { padding: 12px 8px; font-size: 13px; min-height: 56px; }
  .size-pill[data-size="L"] { font-size: 12px; }
  .size-pill .stock { font-size: 10px; }

  /* Sticky-Bar: 2-spaltig statt 3-spaltig — Preis prominent */
  .sticky-bar { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .sticky-inner { gap: 10px; }
  .sticky-info { flex: 1; }
  .sticky-info .top { font-size: 11px; letter-spacing: 0.04em; }
  .sticky-info .price { font-size: 22px; }
  .sticky-info .price small { font-size: 11px; }
  .btn-primary { padding: 14px 16px; font-size: 13px; min-height: 48px; }
  .btn-secondary { padding: 10px 8px; font-size: 12px; }
  .btn-secondary span { display: none; }
  .btn-secondary svg { width: 20px; height: 20px; }

  /* Bike-Card etwas kompakter */
  .bike-body { padding: 18px; }
  .bike-name { font-size: 20px; }

  /* Bike-Select-Button — Tap-Target */
  .bike-select-btn { padding: 16px 18px; min-height: 52px; }

  /* Lang-Switch: größerer Tap-Target */
  .lang-switch button { padding: 8px 12px; font-size: 14px; min-width: 40px; }

  /* Form-Felder mobiler — keine Zoom-In iOS Trick (16px Min) */
  .field input, .field textarea { font-size: 16px; }

  /* Summary-Block kompakter */
  /* v16 — Maik: Summary auf Mobile zu eng → Label + Value kollidieren bei langen Werten
     („ANFRAGENDERMaik Uebel · Dr.-Friedrichs-Ring 20" ohne Gap, „17. Mai 2026 – 17. Mai 2026 · 1 Tag"
     abgeschnitten). Fix: Rows auf Mobile column-Layout, Value bekommt volle Container-Breite
     statt mit Label um den horizontalen Platz zu konkurrieren. Total-Row bleibt 2-spaltig
     (Label links / Preis rechts) — beides kurz, passt rein. */
  .summary { padding: 18px; }
  .summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 0;
  }
  .summary-row .value { font-size: 15px; word-break: break-word; }
  .summary-total .value { font-size: 28px; }

  /* Success — Maik: kompakter auf Mobile */
  .success-overlay { padding: 28px 18px 32px; }
  .success-check { width: 64px; height: 64px; margin-bottom: 20px; }
  .success-check svg { width: 32px; height: 32px; }
  .success-overlay h2 { font-size: 24px; margin-bottom: 8px; }
  .success-overlay > p { font-size: 14px; margin-bottom: 18px; }
  .req-number { font-size: 15px; padding: 6px 14px; margin-bottom: 22px; }
  .next-steps { gap: 10px; }
  .next-step { padding: 14px 16px; text-align: left; }
  .next-step .num { font-size: 11px; margin-bottom: 4px; }
  .next-step h3 { font-size: 14px; margin-bottom: 4px; }
  .next-step p { font-size: 12px; line-height: 1.4; }
}

/* ─── Success State ────────────────────────────────── */
/* v20 — Maik: Desktop wieder zentriert (mein v17-flex-start war Mobile-only nötig). Default
   `align-items: center` zurück, Mobile-Block überschreibt mit flex-start. Plus overflow-y:auto
   bleibt damit Inhalt scrollbar ist, falls Viewport zu klein. */
.success-overlay {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: fadeIn 360ms var(--ease-out);
}
.success-home-link {
  display: inline-flex;
  align-self: center;
  margin: 28px auto 16px;
  padding: 10px 24px;
  border-radius: 20px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s;
}
.success-home-link:hover { background: var(--teal-hover); color: #fff; }
.success-overlay.visible { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.success-check {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--teal-50);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  animation: popIn 420ms var(--ease-out);
}
@keyframes popIn {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.success-check svg {
  width: 52px; height: 52px;
  stroke: var(--teal);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: drawCheck 600ms 240ms var(--ease-out) forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.success-overlay h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  text-align: center;
}
.success-overlay > p {
  color: var(--ink-3);
  font-size: 16px;
  text-align: center;
  max-width: 480px;
  margin-bottom: 28px;
}
.req-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--teal);
  letter-spacing: 0.05em;
  background: var(--teal-50);
  padding: 8px 16px;
  border-radius: var(--r-md);
  margin-bottom: 36px;
}
.next-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 720px;
  width: 100%;
}
@media (min-width: 720px) {
  .next-steps { grid-template-columns: repeat(3, 1fr); }
}
.next-step {
  text-align: center;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.next-step .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.next-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}
.next-step p { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* ─── Footer hint about extensibility ──────────────── */
.demo-note {
  max-width: 920px;
  margin: 40px auto 0;
  padding: 18px 24px;
  font-size: 12px;
  color: var(--ink-4);
  line-height: 1.6;
  border-top: 1px solid var(--line);
}
.demo-note strong { color: var(--teal); font-weight: 600; }
.demo-note code {
  font-family: ui-monospace, 'Geist Mono', Menlo, monospace;
  font-size: 11px;
  background: var(--teal-50);
  color: var(--teal-dark);
  padding: 1px 6px;
  border-radius: 4px;
}

/* v18 — Maik: Success-Overlay Mobile-Overrides müssen NACH Default-Regeln stehen (Cascade-Order
   Bug — Default-Padding 40 24 + h2 32 + check 96 standen weiter unten in der CSS und überschrieben
   den Mobile-Block oben). Doppelter Mobile-Block am Ende = höchste Priorität bei gleicher Specificity. */
@media (max-width: 560px) {
  .success-overlay { padding: 28px 18px 32px; }
  .success-check { width: 64px; height: 64px; margin-bottom: 20px; }
  .success-check svg { width: 32px; height: 32px; }
  /* v19 — Maik: H2 + Subtext auf Mobile linksbündig (war zentriert). align-self:flex-start
     damit das Element selbst auch links sitzt (Overlay ist flex-column, align-items:flex-start). */
  .success-overlay h2 { font-size: 24px; margin-bottom: 8px; text-align: left; align-self: flex-start; }
  .success-overlay > p { font-size: 14px; margin-bottom: 18px; text-align: left; align-self: flex-start; }
  .req-number { font-size: 15px; padding: 6px 14px; margin-bottom: 22px; }
  .next-steps { gap: 10px; }
  .next-step { padding: 14px 16px; text-align: left; }
  .next-step .num { font-size: 11px; margin-bottom: 4px; }
  .next-step h3 { font-size: 14px; margin-bottom: 4px; }
  .next-step p { font-size: 12px; line-height: 1.4; }
  .success-home-link { margin-top: 22px; }
}
