/* Autohaus Ausber — Konfigurator-Funnel. Optik am Original-Multistep orientiert.
   Markenfarbe Rot rgb(209,46,70) aus der Plattform-Konfiguration (--color-border). */
.ausber-funnel {
  --abf-accent: rgb(209,46,70);
  --abf-accent-dark: rgb(176,37,57);
  --abf-text: #222;
  --abf-card-bg: #f6f6f7;
  --abf-border: #e4e4e7;
  --abf-radius: 6px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  font-family: var(--font-kit-text-font, inherit);
  color: var(--abf-text);
  text-align: center;
  box-sizing: border-box;
}
.ausber-funnel *, .ausber-funnel *::before, .ausber-funnel *::after { box-sizing: border-box; }

.ausber-funnel .abf-step__title {
  font-family: var(--font-kit-header-font, inherit);
  font-weight: var(--font-kit-header-font-weight, 700);
  font-size: 26px;
  line-height: 1.3;
  margin: 18px 0 10px;
  color: var(--abf-text);
}
.ausber-funnel .abf-step__desc {
  font-size: 16px;
  color: #666;
  margin: 0 0 22px;
}

/* Auswahl-Karten */
.ausber-funnel .abf-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 22px 0 6px;
}
.ausber-funnel .abf-cards--hint { animation: abf-shake .5s; }
@keyframes abf-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.ausber-funnel .abf-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  max-width: 100%;
  min-height: 96px;
  padding: 20px 22px;
  background: var(--abf-card-bg);
  border: 1px solid var(--abf-border);
  border-radius: var(--abf-radius);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  font-family: inherit;
  color: var(--abf-text);
  text-align: center;
  line-height: 1.35;
}
.ausber-funnel .abf-card:hover {
  border-color: var(--abf-accent);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.ausber-funnel .abf-card--selected {
  border-color: var(--abf-accent);
  box-shadow: 0 0 0 2px var(--abf-accent);
  background: rgba(209,46,70,.05);
}
.ausber-funnel .abf-card__label { font-size: 15px; }

/* Mehrfachauswahl: Karten mit Checkbox-Kästchen, linksbündig */
.ausber-funnel .abf-step__hint {
  margin: 4px 0 0;
  font-size: 14px;
  color: #6b6b74;
}
.ausber-funnel .abf-cards--multi .abf-card {
  justify-content: flex-start;
  text-align: left;
  gap: 12px;
}
.ausber-funnel .abf-card__box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid #c4c4cc;
  border-radius: 4px;
  background: #fff;
  position: relative;
  transition: border-color .15s, background .15s;
}
.ausber-funnel .abf-card--selected .abf-card__box {
  border-color: var(--abf-accent);
  background: var(--abf-accent);
}
.ausber-funnel .abf-card--selected .abf-card__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Doppel-Slider „von – bis" */
.ausber-funnel .abf-range {
  max-width: 480px;
  margin: 26px auto 8px;
  padding: 0 12px;
}
.ausber-funnel .abf-range__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--abf-text);
  /* Platz für die Thumb-Tooltips, die über dem Track sitzen */
  margin-bottom: 62px;
}
.ausber-funnel .abf-range__track {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: rgba(0,0,0,.15);
  touch-action: none;
}
.ausber-funnel .abf-range__fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--abf-accent);
}
.ausber-funnel .abf-range__thumb {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--abf-accent);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  cursor: grab;
  touch-action: none;
  outline: none;
}
.ausber-funnel .abf-range__thumb:focus-visible { box-shadow: 0 0 0 3px rgba(209,46,70,.35); }
.ausber-funnel .abf-range__thumb--grab { cursor: grabbing; }
.ausber-funnel .abf-range__tip {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--abf-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.ausber-funnel .abf-range__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 13px;
  color: #6b6b74;
}

/* Zahlen-Eingabe mit Einheit */
.ausber-funnel .abf-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px auto 4px;
  max-width: 360px;
}
.ausber-funnel .abf-input--number { text-align: right; max-width: 220px; }
.ausber-funnel .abf-number__unit { font-size: 17px; font-weight: 600; color: #444; white-space: nowrap; }

/* Formularfelder */
.ausber-funnel .abf-field { margin-bottom: 14px; text-align: left; }
.ausber-funnel .abf-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.ausber-funnel .abf-req { color: var(--abf-accent); }
.ausber-funnel .abf-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--abf-text);
  background: #fff;
  border: 1px solid #d4d4d8;
  border-radius: var(--abf-radius);
  outline: none;
  transition: border-color .15s;
}
.ausber-funnel .abf-input:focus { border-color: var(--abf-accent); }
.ausber-funnel .abf-input--invalid { border-color: #e04141; }

/* Kontaktfelder mit Icon im Feld */
.ausber-funnel .abf-input-wrap { position: relative; }
.ausber-funnel .abf-input__icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: var(--abf-accent);
  pointer-events: none;
  display: flex;
}
.ausber-funnel .abf-input__icon svg { width: 100%; height: 100%; }
.ausber-funnel .abf-input--icon { padding-left: 42px; }

.ausber-funnel .abf-error { color: #e04141; font-size: 14px; min-height: 20px; margin: 4px 0 6px; }

/* Button */
.ausber-funnel .abf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-kit-header-font, inherit);
  color: #fff;
  background: var(--abf-accent);
  border: none;
  border-radius: var(--abf-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.ausber-funnel .abf-btn:hover { background: var(--abf-accent-dark); }
.ausber-funnel .abf-btn:active { transform: translateY(1px); }
.ausber-funnel .abf-btn--submit { width: 100%; }

/* Finish */
.ausber-funnel .abf-step--finish { text-align: center; }
.ausber-funnel .abf-check {
  width: 84px;
  height: 84px;
  margin: 10px auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(209,46,70,.12);
  color: var(--abf-accent);
}

@media (max-width: 680px) {
  .ausber-funnel .abf-step__title { font-size: 21px; }
  .ausber-funnel .abf-cards { flex-direction: column; align-items: center; }
  .ausber-funnel .abf-card { width: 100%; min-height: 72px; }
}
