/* =============================================================
   Fiestalimo · Anfrage-Konfigurator
   Baut auf styles.css + vehicles.css auf (gleiche Variablen).
   Clean, kompakt, Apple/Porsche-artig.
   ============================================================= */

.af-main {
  padding-top: var(--header-height);
  background: var(--paper);
}

/* ---------- Intro ---------- */
.af-intro {
  background: var(--paper);
}

.af-intro__inner {
  width: var(--container);
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(8px, 1.6vw, 20px) 0 clamp(22px, 3vw, 36px);
}

.af-intro h1 {
  margin: 8px 0 16px;
  color: var(--ink);
  font-size: clamp(2.15rem, 4.2vw, 3.4rem);
  font-weight: 590;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.af-intro__lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.15vw, 1.06rem);
  line-height: 1.65;
}

/* ---------- Layout (kompakter Wizard, ohne Scrollen auf Desktop) ---------- */
.af-config {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(14px, 3vh, 40px) 0;
  background: var(--paper);
}

.af-wizard {
  width: var(--container);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: clamp(20px, 2.4vw, 40px);
  margin-inline: auto;
}

.af-wizard__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.af-wizard__head {
  margin-bottom: clamp(12px, 2vh, 20px);
  scroll-margin-top: calc(var(--header-height) + 14px);
}

.af-wizard__head .veh-eyebrow {
  margin-bottom: 7px;
}

.af-wizard__head h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 590;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

/* Horizontale Fortschrittsanzeige */
.af-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 0 0 clamp(16px, 2.4vh, 26px);
  padding: 0;
  list-style: none;
}

.af-steps::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 9%;
  right: 9%;
  height: 2px;
  background: var(--line);
}

.af-steps__item {
  min-width: 0;
}

.af-steps__btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.af-steps__btn:disabled {
  cursor: default;
}

.af-steps__num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 720;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.af-steps__check {
  display: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.af-steps__label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 640;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 200ms ease;
}

.af-steps__item.is-active .af-steps__num {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.af-steps__item.is-active .af-steps__label {
  color: var(--ink);
  font-weight: 760;
}

.af-steps__item.is-done .af-steps__num {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.af-steps__item.is-done .af-steps__num b {
  display: none;
}

.af-steps__item.is-done .af-steps__check {
  display: block;
}

/* Panels: nur der aktive Schritt ist sichtbar */
.af-panels {
  position: relative;
  min-width: 0;
  min-height: clamp(232px, 33vh, 312px);
}

.af-panel {
  display: none;
}

.af-panel.is-active {
  display: block;
  animation: af-fade 320ms var(--ease-premium) both;
}

@keyframes af-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.af-panel__head {
  margin-bottom: 15px;
}

.af-panel__head h2 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.af-panel__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Kompaktere Felder im Wizard */
.af-panel .af-fields {
  gap: 11px;
}

.af-panel .af-grid {
  gap: 11px;
}

.af-panel .af-input {
  height: 46px;
}

.af-grid--3 {
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.15fr);
}

/* Navigationsleiste */
.af-wizard__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(14px, 2vh, 22px);
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.af-wizard__nav [hidden] {
  display: none;
}

.af-wizard__count {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 640;
  letter-spacing: 0.04em;
}

.af-next {
  min-height: 48px;
  padding-inline: 26px;
}

.af-panel .af-check {
  margin-top: 15px;
}

.af-layout {
  width: var(--container);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  align-items: start;
  gap: clamp(18px, 2vw, 34px);
  margin-inline: auto;
}

.af-form {
  min-width: 0;
  display: grid;
  gap: 14px;
}

/* ---------- Section-Card ---------- */
.af-card {
  min-width: 0;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.af-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.af-step {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 720;
  letter-spacing: 0.02em;
}

.af-card__title h2 {
  margin: 2px 0 3px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.af-card__title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.af-empty {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.82rem;
}

/* ---------- Wizard (schrittweises Öffnen) ---------- */
.af-card {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.af-card__title {
  flex: 1;
  min-width: 0;
}

.af-card__recap {
  display: none;
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.af-card__edit {
  flex: 0 0 auto;
  display: none;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 730;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}

.af-card__edit:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.af-step__num {
  font-size: 0.74rem;
  font-weight: 720;
}

.af-step__check {
  display: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.af-card__body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 440ms var(--ease-premium),
    opacity 260ms ease;
}

.af-card__bodyinner {
  min-height: 0;
  overflow: hidden;
  padding-top: 20px;
}

.af-card.is-active .af-card__body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.af-card.is-active .af-card__bodyinner {
  overflow: visible;
}

.af-card.is-done .af-card__head {
  cursor: pointer;
}

.af-card.is-done .af-card__desc {
  display: none;
}

.af-card.is-done .af-card__recap {
  display: block;
}

.af-card.is-done .af-card__edit {
  display: inline-flex;
}

.af-card.is-done .af-step {
  background: var(--gold);
}

.af-card.is-done .af-step__num {
  display: none;
}

.af-card.is-done .af-step__check {
  display: block;
}

.af-card.is-locked {
  opacity: 0.5;
}

.af-card.is-locked .af-step {
  background: var(--ivory-deep);
  color: var(--muted-light);
}

.af-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.af-step-nav--end {
  justify-content: flex-end;
}

.af-step-nav--start {
  justify-content: flex-start;
}

.af-next {
  min-height: 46px;
  padding-inline: 24px;
}

.af-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 660;
  cursor: pointer;
  transition: color 200ms ease;
}

.af-back:hover {
  color: var(--ink);
}

.af-card__bodyinner .af-check {
  margin-top: 20px;
}

.af-card__bodyinner .af-submit__btn {
  margin-top: 16px;
}

.af-card__bodyinner .af-required-note {
  margin-top: 10px;
}

/* ---------- Adress-Autovervollständigung (Demo) ---------- */
.af-ac {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 244px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  box-shadow: var(--shadow-card);
  display: none;
}

.af-ac.is-open {
  display: block;
}

.af-ac__item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 2px;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease;
}

.af-ac__item:hover,
.af-ac__item.is-active {
  background: var(--ivory);
}

.af-ac__pin {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(173, 122, 45, 0.1);
  color: var(--gold);
}

.af-ac__pin svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.af-ac__text {
  min-width: 0;
}

.af-ac__street {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.af-ac__meta {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}

.af-ac__foot {
  padding: 8px 10px 4px;
  color: var(--muted-light);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Fahrzeugauswahl ---------- */
.af-vehicles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.af-vehicles.is-invalid {
  outline: 2px solid #c0392b;
  outline-offset: 6px;
  border-radius: 12px;
}

.af-input[readonly] {
  cursor: default;
  background: #f3f0ea;
  color: #57524a;
}

.af-veh {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
  transition:
    border-color 220ms ease,
    box-shadow 300ms var(--ease-premium),
    transform 300ms var(--ease-premium);
}

.af-veh__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.af-veh__media {
  position: relative;
  width: 78px;
  height: 56px;
  overflow: hidden;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #f3efe9 100%);
}

.af-veh__media .media-ph {
  font-size: 0.54rem;
  letter-spacing: 0.06em;
}

.af-veh__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-veh__info {
  min-width: 0;
}

.af-veh__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.af-veh__meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.af-veh__price {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.af-veh__price strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 720;
}

.af-veh__check {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 200ms ease, transform 260ms var(--ease-premium);
}

.af-veh__check svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.af-veh.is-selected {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold), var(--shadow-soft);
}

.af-veh.is-selected .af-veh__check {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Steppers ---------- */
.af-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.af-stepper {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
}

.af-stepper__text strong {
  display: block;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 680;
  line-height: 1.2;
}

.af-stepper__text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.af-stepper__control {
  display: flex;
  align-items: center;
  gap: 5px;
}

.af-step-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}

.af-step-btn:disabled {
  color: var(--muted-light);
  cursor: not-allowed;
  opacity: 0.5;
}

.af-stepper__value {
  min-width: 66px;
  text-align: center;
  color: var(--ink);
  font-size: 0.9rem;
}

.af-stepper__value b {
  font-weight: 730;
}

.af-stepper__value em {
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
}

/* ---------- Formularfelder ---------- */
.af-fields {
  display: grid;
  gap: 12px;
}

.af-grid {
  display: grid;
  gap: 12px;
}

.af-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.af-grid--street {
  grid-template-columns: minmax(0, 1fr) 96px;
}

.af-grid--city {
  grid-template-columns: 120px minmax(0, 1fr);
}

.af-field {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.af-field__label {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 660;
  letter-spacing: 0.01em;
}

.af-field__label i {
  color: var(--gold-dark);
  font-style: normal;
}

.af-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.af-input::placeholder {
  color: var(--muted-light);
}

.af-phone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
}

.af-phone__country {
  min-width: 104px;
  height: 48px;
  padding: 0 28px 0 11px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 2px 0 0 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.af-phone__country:focus {
  position: relative;
  z-index: 1;
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(173, 122, 45, 0.13);
}

.af-phone .af-phone__number {
  min-width: 0;
  border-radius: 0 2px 2px 0;
}

.af-input:hover {
  border-color: rgba(11, 11, 10, 0.22);
}

.af-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(173, 122, 45, 0.13);
}

.af-textarea {
  height: auto;
  min-height: 88px;
  padding: 12px 14px;
  line-height: 1.55;
  resize: vertical;
}

.af-input.is-invalid {
  border-color: #c0563f;
  box-shadow: 0 0 0 3px rgba(192, 86, 63, 0.12);
}

/* Native Date/Time-Picker dezent anpassen */
.af-input[type="date"],
.af-input[type="time"] {
  appearance: none;
}

.af-input[type="date"]::-webkit-calendar-picker-indicator,
.af-input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 200ms ease;
}

.af-input[type="date"]:hover::-webkit-calendar-picker-indicator,
.af-input[type="time"]:hover::-webkit-calendar-picker-indicator {
  opacity: 0.8;
}

/* ---------- Extras ---------- */
.af-extras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.af-extra {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
  transition:
    border-color 220ms ease,
    box-shadow 300ms var(--ease-premium),
    background 220ms ease;
}

.af-extra__cb {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.af-extra__icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  color: var(--gold);
  transition: border-color 220ms ease, background 220ms ease;
}

.af-extra__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.af-extra__label {
  flex: 1;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.af-extra__price {
  flex: 0 0 auto;
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 720;
  white-space: nowrap;
}

.af-extra__check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 180ms ease, transform 260ms var(--ease-premium);
}

.af-extra__check svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.af-extra.is-selected {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
  background: linear-gradient(180deg, #fffdf9 0%, #fbf6ec 100%);
}

.af-extra.is-selected .af-extra__icon {
  border-color: transparent;
  background: rgba(173, 122, 45, 0.12);
}

.af-extra.is-selected .af-extra__check {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Consent + Submit ---------- */
.af-submit {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--paper);
}

.af-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  cursor: pointer;
}

.af-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.af-check__box {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  transition: background 180ms ease, border-color 180ms ease;
}

.af-check__box svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 160ms ease, transform 220ms var(--ease-premium);
}

.af-check input:checked + .af-check__box {
  background: var(--ink);
  border-color: var(--ink);
}

.af-check input:checked + .af-check__box svg {
  opacity: 1;
  transform: scale(1);
}

.af-check__text {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.af-check__text a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.af-check.is-invalid .af-check__box {
  border-color: #c0563f;
  box-shadow: 0 0 0 3px rgba(192, 86, 63, 0.12);
}

.af-submit__btn {
  width: 100%;
  min-height: 54px;
  justify-content: space-between;
}

.af-required-note {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.7rem;
}

.af-required-note i {
  color: var(--gold-dark);
  font-style: normal;
}

/* =============================================================
   Sticky Live-Zusammenfassung
   ============================================================= */
.af-summary {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  min-width: 0;
}

.af-summary__inner {
  padding: clamp(20px, 2vw, 26px);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.af-summary__eyebrow {
  margin: 0 0 16px;
  color: var(--gold-dark);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.af-summary__mobile-toggle {
  display: none;
}

.af-summary__mobile-details {
  display: contents;
}

.af-summary__vehicle {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.af-summary__thumb {
  position: relative;
  width: 86px;
  height: 62px;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff 0%, #f3efe9 100%);
}

.af-summary__thumb .media-ph {
  font-size: 0.54rem;
}

.af-summary__thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-summary__vehicle-info {
  min-width: 0;
}

.af-summary__cat {
  margin: 0 0 3px;
  color: var(--gold-dark);
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.af-summary__vehicle-info strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.af-summary__persons {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.af-summary__lines {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.af-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}

.af-line__label {
  min-width: 0;
  color: var(--ink-soft);
}

.af-line__value {
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 660;
}

.af-line--extra .af-line__label {
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}

.af-line--extra .af-line__label::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.af-line--extra .af-line__value {
  color: var(--gold-dark);
  font-weight: 640;
}

.af-summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.af-summary__total > span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.af-summary__total small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.af-summary__total strong {
  color: var(--gold-dark);
  font-size: 1.7rem;
  font-weight: 660;
  line-height: 1;
  letter-spacing: -0.03em;
}

.af-summary__note {
  margin: 12px 0 0;
  color: var(--muted-light);
  font-size: 0.68rem;
  line-height: 1.5;
}

.af-includes {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.af-includes summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.af-includes summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 260ms var(--ease-premium);
}

.af-includes[open] summary svg {
  transform: rotate(180deg);
}

.af-includes ul {
  margin: 12px 0 2px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.af-includes li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.af-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ad7a2d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 10px no-repeat,
    rgba(173, 122, 45, 0.12);
}

.af-summary__cta {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  justify-content: space-between;
}

.af-ssl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.af-ssl svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================================
   Erfolgs-Ansicht
   ============================================================= */
.af-success {
  width: min(760px, calc(100% - 40px));
  margin: 18px auto 40px;
}

body:has(.af-success:not([hidden])) footer {
  display: none;
}

.af-success__inner {
  position: relative;
  overflow: hidden;
  padding: 38px 70px 125px;
  border: 1px solid rgba(27, 24, 19, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 249, 0.96)),
    var(--white);
  box-shadow: 0 24px 65px rgba(54, 45, 31, 0.09);
  text-align: center;
}

.af-success__skyline {
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.78;
  pointer-events: none;
}

.af-success__inner > :not(.af-success__skyline) {
  position: relative;
  z-index: 1;
}

.af-success__mark {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
  border: 13px solid rgba(173, 122, 45, 0.055);
  border-radius: 50%;
  background: rgba(173, 122, 45, 0.1);
  color: var(--gold-dark);
  box-shadow: 0 0 0 10px rgba(173, 122, 45, 0.025);
  animation: af-pop 480ms var(--ease-premium) both;
}

.af-success__mark svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes af-pop {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.af-success .veh-eyebrow {
  margin: 0 0 18px;
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.af-success h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 4.6vw, 4.15rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

@media (min-width: 621px) {
  .af-success h2 {
    font-size: 2.7rem;
  }
}

.af-success__lead {
  max-width: 620px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.af-success__recap {
  display: grid;
  gap: 0;
  margin: 0 auto 34px;
  padding: 18px 24px;
  width: 100%;
  max-width: 660px;
  border: 1px solid rgba(35, 30, 23, 0.12);
  border-radius: 12px;
  background: rgba(252, 249, 244, 0.7);
  text-align: left;
}

.af-recap-line {
  display: grid;
  grid-template-columns: 42px 130px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 55px;
  font-size: 0.86rem;
}

.af-recap-label {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.af-recap-line strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 720;
  text-align: right;
}

.af-recap-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(173, 122, 45, 0.09);
  color: var(--gold-dark);
}

.af-recap-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.af-recap-line--total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.af-recap-line--total strong {
  color: var(--gold-dark);
  font-size: 1.75rem;
  font-weight: 760;
}

.af-success__actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.af-success__actions .button {
  min-height: 52px;
  justify-content: center;
  border-radius: 5px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.af-success__primary {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  border: 0;
  background: #090909;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.af-success__primary span {
  font-size: 1.3rem;
  font-weight: 400;
}

/* =============================================================
   Hover (nur fähige Geräte)
   ============================================================= */
@media (hover: hover) and (pointer: fine) {
  .af-veh:not(.is-selected):hover {
    border-color: rgba(11, 11, 10, 0.22);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
  }

  .af-extra:not(.is-selected):hover {
    border-color: rgba(11, 11, 10, 0.22);
    box-shadow: var(--shadow-soft);
  }

  .af-step-btn:not(:disabled):hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
  }
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 960px) {
  .af-layout,
  .af-wizard {
    grid-template-columns: 1fr;
  }

  .af-config {
    display: block;
    min-height: 0;
    padding: clamp(20px, 4vw, 40px) 0 clamp(48px, 8vw, 88px);
  }

  .af-panels {
    min-height: 0;
  }

  .af-summary {
    position: static;
    order: 2;
    margin-top: clamp(16px, 3vw, 26px);
  }

  .af-summary__inner {
    max-width: 560px;
    margin-inline: auto;
  }

  .af-success {
    width: min(94%, 720px);
    margin-top: 12px;
  }

  .af-success__inner {
    min-height: 0;
    padding-inline: clamp(34px, 8vw, 62px);
  }
}

@media (max-width: 620px) {
  .af-config {
    padding: 14px 0 30px;
  }

  .af-wizard {
    width: calc(100% - 28px);
    gap: 0;
  }

  .af-wizard__head {
    margin-bottom: 17px;
    text-align: center;
  }

  .af-wizard__head .veh-eyebrow {
    margin-bottom: 6px;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
  }

  .af-wizard__head h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .af-steps {
    margin-bottom: 17px;
  }

  .af-steps::before {
    top: 15px;
    left: 7%;
    right: 7%;
    height: 1px;
  }

  .af-steps__num {
    width: 31px;
    height: 31px;
    font-size: 0.7rem;
  }

  .af-wizard[data-active-step="1"] .af-summary {
    display: none;
  }

  .af-summary {
    width: 100%;
    order: initial;
    margin: 0 0 22px;
  }

  .af-summary__inner {
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(34, 27, 18, 0.09);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(37, 28, 17, 0.07);
  }

  .af-summary__eyebrow,
  .af-summary__vehicle {
    display: none;
  }

  .af-summary__mobile-toggle {
    width: 100%;
    min-height: 67px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 15px;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border: 0;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
  }

  .af-summary__mobile-vehicle {
    min-width: 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
  }

  .af-summary__mobile-thumb {
    width: 58px;
    height: 38px;
    display: grid;
    place-items: center;
    overflow: hidden;
  }

  .af-summary__mobile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .af-summary__mobile-copy {
    min-width: 0;
  }

  .af-summary__mobile-copy strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.65rem;
    font-weight: 760;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .af-summary__mobile-copy small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.58rem;
    line-height: 1.2;
  }

  .af-summary__mobile-price {
    text-align: right;
    white-space: nowrap;
  }

  .af-summary__mobile-price small {
    display: block;
    color: var(--muted);
    font-size: 0.54rem;
    line-height: 1.2;
  }

  .af-summary__mobile-price strong {
    display: block;
    margin-top: 2px;
    color: var(--gold-dark);
    font-size: 1.1rem;
    font-weight: 720;
    line-height: 1;
  }

  .af-summary__mobile-toggle > svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 220ms ease;
  }

  .af-summary.is-open .af-summary__mobile-toggle > svg {
    transform: rotate(180deg);
  }

  .af-summary__mobile-details {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0 11px;
    opacity: 0;
    border-top: 0 solid var(--line-soft);
    transition:
      max-height 320ms var(--ease-premium),
      opacity 180ms ease,
      padding 260ms ease,
      border-width 260ms ease;
  }

  .af-summary__mobile-details > * {
    min-height: 0;
  }

  .af-summary.is-open .af-summary__mobile-details {
    max-height: 720px;
    padding: 0 11px 11px;
    opacity: 1;
    border-top-width: 1px;
  }

  .af-summary__lines {
    margin: 0;
    gap: 0;
  }

  .af-line {
    min-height: 45px;
    padding: 0 3px;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.66rem;
  }

  .af-summary__total {
    min-height: 62px;
    margin: 0;
    padding: 11px 3px 8px;
    align-items: center;
  }

  .af-summary__total > span {
    font-size: 0.68rem;
  }

  .af-summary__total strong {
    font-size: 1.62rem;
  }

  .af-summary__total strong::after {
    content: "inkl. MwSt.";
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.48rem;
    font-weight: 500;
    text-align: right;
    letter-spacing: 0;
  }

  .af-includes {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: var(--paper);
  }

  .af-includes summary {
    min-height: 43px;
    padding: 0 10px;
    font-size: 0.64rem;
  }

  .af-includes summary span::before {
    content: "♙";
    margin-right: 8px;
    color: var(--gold-dark);
    font-size: 0.9rem;
  }

  .af-includes ul {
    padding: 0 10px 10px;
  }

  .af-ssl {
    margin: 13px 0 0;
    font-size: 0.57rem;
  }

  .af-panel__head {
    margin-bottom: 13px;
  }

  .af-panel__head h2 {
    font-size: 0.94rem;
  }

  .af-panel__head p {
    font-size: 0.68rem;
  }

  .af-vehicles,
  .af-extras {
    grid-template-columns: 1fr;
  }

  .af-duo {
    grid-template-columns: 1fr;
  }

  .af-grid--2,
  .af-grid--street,
  .af-grid--city,
  .af-grid--3 {
    grid-template-columns: 1fr;
  }

  .af-stepper {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    justify-content: initial;
    gap: 8px;
    min-height: 55px;
    padding: 8px 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(36, 27, 16, 0.035);
  }

  .af-stepper::before {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(173, 122, 45, 0.09);
    color: var(--gold-dark);
    font-size: 0.85rem;
  }

  .af-stepper[data-stepper="hours"]::before {
    content: "◷";
  }

  .af-stepper[data-stepper="persons"]::before {
    content: "♙";
  }

  .af-stepper__text strong {
    font-size: 0.67rem;
  }

  .af-stepper__text small {
    font-size: 0.55rem;
  }

  .af-step-btn {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 0.92rem;
  }

  .af-stepper__value {
    min-width: 55px;
    font-size: 0.7rem;
  }

  .af-stepper__value em {
    font-size: 0.55rem;
  }

  .af-wizard__nav {
    margin-top: 17px;
    padding-top: 13px;
  }

  .af-back,
  .af-wizard__count {
    font-size: 0.6rem;
  }

  .af-next {
    min-height: 42px;
    padding-inline: 20px;
    font-size: 0.64rem;
  }

  .af-input,
  .af-phone__country,
  .af-panel input,
  .af-panel select,
  .af-panel textarea {
    font-size: 16px;
  }

  .af-steps__label {
    display: none;
  }

  .af-main:has(.af-success:not([hidden])) .af-config {
    padding-top: 16px;
  }

  .af-success {
    width: calc(100% - 28px);
    margin: 16px auto 20px;
  }

  .af-success__inner {
    min-height: 0;
    padding: 30px 18px 145px;
    border-radius: 15px;
  }

  .af-success__skyline {
    width: 100%;
    height: auto;
    left: 0;
    bottom: 0;
    transform: none;
  }

  .af-success__mark {
    width: 76px;
    height: 76px;
    margin-bottom: 27px;
    border-width: 11px;
  }

  .af-success .veh-eyebrow {
    margin-bottom: 22px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .af-success h2 {
    margin-bottom: 22px;
    font-size: clamp(2.75rem, 13vw, 3.55rem);
  }

  .af-success__lead {
    max-width: 330px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .af-success__recap {
    margin-bottom: 25px;
    padding: 12px 13px;
    border-radius: 8px;
  }

  .af-recap-line {
    grid-template-columns: 42px 82px minmax(0, 1fr);
    gap: 8px;
    min-height: 55px;
  }

  .af-recap-label {
    font-size: 0.69rem;
  }

  .af-recap-line strong {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .af-recap-line--total strong {
    font-size: 1.55rem;
    line-height: 1;
  }

  .af-success__actions {
    grid-template-columns: 1fr;
    gap: 9px;
    padding-inline: 25px;
  }

  .af-success__actions .button {
    width: 100%;
    min-height: 56px;
  }
}

/* =============================================================
   Reduced Motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .af-veh,
  .af-extra,
  .af-veh__check,
  .af-extra__check,
  .af-success__mark {
    transition: none;
    animation: none;
  }
}
