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

@font-face {
  font-family: "Figtree";
  src: url('../fonts/figtree-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url('../fonts/figtree-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;

  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url('../fonts/figtree-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --petrol:      #0f2e4d;
  --navy:        #20336b;
  --select-ring: #0ea382;

  --select-tint: rgba(14,163,130,0.07);

  --brand:       #0ea382;
  --brand-600:   #0b8168;
  --brand-tint:  #e6f5f0;
  --cta:         #0ea382;
  --cta-hover:   #0b8168;
  --gold:        #f4b740;

  --gold-tint:   #fdf3dd;

  --font-display: "Figtree", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --bg:          #f5f8fc;
  --surface:     #ffffff;
  --ink:         #1a1a1a;
  --muted:       #6b7280;
  --faint:       #9ca3af;
  --border:      #e5e7eb;
  --border-soft: #f0f1f3;
  --radius:      16px;
  --radius-sm:   10px;
  --radius-ctl:  12px;
  --radius-opt:  14px;
  --feature-line: #c3ede0;
  --border-hover: #9fdcc9;
  --shadow-card: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.04);

  --text-strong: var(--petrol);
  --text-default: var(--ink);
  --text-muted: var(--muted);
  --text-subtle: var(--faint);
  --text-accent: var(--navy);
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255,255,255,.78);

  --fs-caption: 12px;
  --fs-sm: 14px;
  --fs-body: 16px;
  --fs-title: 18px;
  --fs-section: 24px;
  --fs-display: 32px;
  --fs-hero: clamp(28px, 4vw, 40px);

  --fw-regular: 400;
  --fw-ui: 600;
  --fw-strong: 700;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--fs-body);
  color: var(--text-default);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--fw-strong);
  font-size: 20px;
  color: var(--text-accent);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand:hover { color: var(--brand); }

.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.08);
  padding: 30px 30px 34px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  text-align: left;
}
@media (max-width: 640px) { .form-card { padding: 22px 18px 26px; } }

.card-loading {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; border-radius: inherit; z-index: 5;
  animation: cardLoadFade .25s ease;
}
.card-loading-fixed {
  position: fixed; z-index: 1000; border-radius: 0;
  background: rgba(255,255,255,.96);
}
.card-loading-spinner {
  width: 46px; height: 46px;
  border: 3px solid var(--brand-tint);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: cardLoadSpin .8s linear infinite;
}
.card-loading-text { font-size: var(--fs-sm); font-weight: var(--fw-ui); color: var(--text-strong); }
@keyframes cardLoadSpin { to { transform: rotate(360deg); } }
@keyframes cardLoadFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .card-loading-spinner { animation-duration: 1.6s; }
}

#cascade-container .field-group,
#fa-km-section,
#fa-details-section,
#fa-estimate,
#section-contact { scroll-margin-top: 130px; }

.stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;

  flex: 1 1 auto;
  min-width: 0;
}
.step:last-child { flex: 0 0 auto; }
.step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  transition: background .2s, color .2s, border-color .2s;
}
.step-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-ui);
  color: var(--text-subtle);
  transition: color .2s;
}
.step::after {
  content: "";
  flex: 1 1 auto;
  min-width: 22px;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
}
.step:last-child::after { display: none; }
.step.is-active .step-dot { background: var(--cta); color: #fff; border-color: var(--cta); }
.step.is-active .step-label { color: var(--text-default); }
.step.is-done .step-dot {
  background: var(--cta); color: #fff; border-color: var(--cta);
  font-size: 0;
}
.step.is-done .step-dot::before {
  content: "✓"; font-size: 14px;
}
.step.is-done .step-label { color: var(--text-default); }
@media (max-width: 560px) {

  .step-label { display: none; }
  .step.is-active .step-label { display: inline; }
  .step::after { width: 100%; flex: 1; margin: 0; }
  .step { flex: 1; }
  .step.is-active { flex: 0 0 auto; }
  .step:last-child { flex: 0 0 auto; }
  .stepper { gap: 0; }
}

.sum-chip {
  font-size: var(--fs-caption);
  font-weight: var(--fw-ui);
  color: var(--text-accent);
  display: inline-flex;
  align-items: center;
}
.sum-chip + .sum-chip::before {
  content: "·";
  margin: 0 8px 0 1px;
  color: var(--brand);
  font-weight: 700;
}

#fg-marke { display: flex; flex-direction: column; }
#fg-marke > label { align-self: flex-start; }

.brand-grid { display: flex; flex-direction: column; gap: 10px; }
.brand-rest { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

.brand-combo-group {
  font-size: var(--fs-title); font-weight: var(--fw-strong); color: var(--text-strong);
  letter-spacing: -0.015em; padding: 8px 2px 6px;
}

.brand-row {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 17px 20px;
  border: 2px solid #c3cbd6; border-radius: 14px;
  background: var(--surface); cursor: pointer; font: inherit; text-align: left;
  box-shadow: 0 1px 3px rgba(15,46,77,.09);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.brand-row:hover { border-color: var(--cta); }
.brand-radio {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 2px solid #cfd4dc; border-radius: 50%;
  background: var(--surface);
  transition: border-color .18s, background .18s;
  position: relative;
}
.brand-row:hover .brand-radio { border-color: var(--cta); }

.brand-row.is-selected {
  border-color: var(--select-ring);
  background: var(--select-tint);
}
.brand-row.is-selected .brand-combo-name { color: var(--navy); }
.brand-row.is-selected .brand-radio { border-color: var(--cta); background: var(--cta); }
.brand-row.is-selected .brand-radio::after {
  content: ""; position: absolute;
  left: 4px; top: 4px;
  width: 12px; height: 7px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}
.brand-row img { width: 34px; height: 34px; flex-shrink: 0; object-fit: contain; }
.brand-row .brand-combo-ph {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--border-soft); color: var(--muted);
  font-size: 14px; font-weight: 700;
}
.brand-row .brand-combo-name {
  flex: 1; font-size: 16px; font-weight: 700; color: var(--navy);
}

.brand-row--more { background: var(--bg); border-style: dashed; }
.brand-row--more .brand-more-logos { display: flex; align-items: center; flex-shrink: 0; }
.brand-row--more .brand-more-logos img {
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--border-soft);
  object-fit: contain; padding: 2px; box-sizing: border-box;
}
.brand-row--more .brand-more-logos img + img { margin-left: -8px; }
.brand-more-count {
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 3px 10px; flex-shrink: 0;
}
.brand-row-chev.brand-more-chev { color: var(--faint); flex-shrink: 0; transition: transform .18s; }
.brand-row--more.is-open .brand-more-chev { transform: rotate(180deg); }

.brand-page-empty { margin: 16px auto; text-align: center; color: var(--text-muted); font-size: var(--fs-sm); }
.brand-list-loading { padding: 22px 16px; text-align: center; color: var(--muted); font-size: 14px; }

.brand-combo-group {
  position: sticky; top: 0; z-index: 1;
  padding: 12px 16px 6px; font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--faint); background: var(--surface);
}
.brand-combo-item {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 11px 16px; border: 0; background: none; cursor: pointer; text-align: left;
  border-bottom: 1px solid var(--border-soft);
  transition: background .12s;
}
.brand-combo-item:last-child { border-bottom: none; }
.brand-combo-item:hover { background: var(--brand-tint); }

.brand-combo-item.brand-row { border: 2px solid #c3cbd6; }
.brand-combo-item.brand-row:hover:not(.is-selected) { border-color: var(--cta); background: var(--surface); }
.brand-combo-item.brand-row.is-selected { border-color: var(--select-ring); background: var(--select-tint); }
.brand-combo-item.brand-row::after { content: none; }
.brand-combo-item img { width: 30px; height: 30px; flex-shrink: 0; object-fit: contain; }
.brand-combo-ph {
  width: 30px; height: 30px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--border-soft); color: var(--muted);
  font-size: 13px; font-weight: 700;
}
.brand-combo-name { flex: 1; font-size: 15px; font-weight: 500; color: var(--navy); }

.brand-combo-item::after {
  content: ""; width: 8px; height: 8px; flex-shrink: 0;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg); opacity: 0; transition: opacity .12s;
}
.brand-combo-item:hover::after { opacity: .65; }

.brand-selected {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--cta); border-radius: var(--radius-ctl);
  background: var(--select-tint); cursor: pointer; font: inherit; text-align: left;
  transition: box-shadow .18s;
}
.brand-selected:hover { box-shadow: 0 4px 12px -4px rgba(14,163,130,.24); }
.brand-selected-logo { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.brand-selected-name { flex: 1; font-size: 16px; font-weight: 700; color: var(--navy); }
.brand-selected-change {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-sm); font-weight: var(--fw-ui); color: var(--navy);
}
.brand-selected-change::before {
  content: ""; width: 14px; height: 14px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 20h4L18 10l-4-4L4 16v4zM14 6l4 4' stroke='%2320336b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.fz-card { padding-top: 22px; }
.fz-card-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.fz-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; color: var(--cta);
}
.fz-card-icon svg { width: 100%; height: 100%; }
.fz-card-title {
  font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.015em;
}

.identity-chip {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; margin-bottom: 20px;
  border: 1.5px solid var(--cta); border-radius: 14px;
  background: var(--select-tint); cursor: pointer; font: inherit; text-align: left;
  transition: box-shadow .18s;
}
.identity-chip:hover { box-shadow: 0 4px 12px -4px rgba(14,163,130,.24); }
.identity-check {
  width: 24px; height: 24px; flex-shrink: 0; color: var(--cta);
  background: rgba(14,163,130,.15); border-radius: 50%; padding: 3px;
  box-sizing: border-box;
}
.identity-body { flex: 1; min-width: 0; }
.identity-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 2px;
}
.identity-title {
  font-size: var(--fs-title); font-weight: var(--fw-strong); color: var(--navy); line-height: 1.2;
  letter-spacing: -0.01em;
}
.identity-sub { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 2px; }
.identity-change {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  font-size: var(--fs-sm); font-weight: var(--fw-ui); color: var(--navy);
}
.identity-change svg { width: 14px; height: 14px; }

.field-group { margin-bottom: 20px; }
.field-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0;
}
.label-optional { font-weight: 400; color: var(--faint); }

.label-ico { width: 18px; height: 18px; color: var(--cta); flex-shrink: 0; }
.req-star { color: #d64545; font-weight: 700; margin-left: -3px; }

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  flex-shrink: 0;
  user-select: none;
  position: relative;
}
.help-icon .help-bubble {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  width: 280px;
  padding: 11px 13px;
  background: var(--petrol);
  color: #eaf1f2;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(13,59,69,.28);
  z-index: 100;
  cursor: default;
}
.help-icon:hover .help-bubble,
.help-icon:focus .help-bubble { display: block; }
.help-bubble .schein-doc { display: block; margin-bottom: 9px; }
.help-bubble .schein-doc svg { display: block; width: 100%; height: auto; }
@media (max-width: 640px) {

  .help-icon { position: static; }
  .field-group { position: relative; }
  .help-icon .help-bubble {
    position: absolute;
    left: 0;
    right: 0;
    transform: none;
    width: auto;
  }
}

select, input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  padding: 15px 44px 15px 18px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5L7 7l5.5-5.5' stroke='%2320336b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  box-shadow: 0 1px 2px rgba(15,46,77,.04);
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, background-color .18s, transform .12s;
}

.check-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-default);
  cursor: pointer;
}
.check-inline input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--cta);
  cursor: pointer;
  flex-shrink: 0;
}
.inline-row.is-disabled { opacity: .45; pointer-events: none; }

select:hover:not(:disabled) {
  border-color: #aebccf;
  box-shadow: 0 2px 6px rgba(15,46,77,.08);
}
select:focus, input:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(14,163,130,0.16), 0 2px 6px rgba(15,46,77,.06);
}
select:disabled {
  background-color: #f3f6f7;
  color: #aab6ba;
  cursor: not-allowed;
  border-color: var(--border-soft);
  box-shadow: none;
}
select option:disabled { color: #c2ccd0; }
input[type="text"], input[type="email"], input[type="tel"] {
  background-image: none;
  cursor: text;
}
input[type="text"]:hover:not(:focus), input[type="email"]:hover:not(:focus), input[type="tel"]:hover:not(:focus) {
  border-color: var(--border-hover);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  box-shadow: 0 0 0 1000px var(--surface) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 9999s ease-out 0s;
}

.inline-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inline-row > .field-group { margin-bottom: 0; }

.modell-row { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 10px; margin-bottom: 18px; }
.modell-row > .field-group { flex: 1 1 0; min-width: 0; margin-bottom: 0; }

.modell-oder {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding-top: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
}
.modell-oder::before, .modell-oder::after {
  content: ""; flex: 1; width: 1px; background: var(--border);
}
.modell-hinweis {
  flex: 0 0 100%;
  display: flex; align-items: flex-start; gap: 6px;
  margin: 0; font-size: 12px; line-height: 18px; color: var(--text-muted);
}
.modell-hinweis svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

.modell-row.is-einzeln .modell-oder,
.modell-row.is-einzeln .modell-hinweis { display: none; }
@media (max-width: 600px) {
  .modell-row { flex-direction: column; row-gap: 12px; }
  .modell-row > .field-group { flex: 0 0 auto; }
  .modell-oder { flex-direction: row; gap: 10px; padding-top: 0; }
  .modell-oder::before, .modell-oder::after { width: auto; height: 1px; }
  .modell-hinweis { flex-basis: auto; }
}

.field-group.loading select {
  color: #aab6ba;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%23ccc' stroke-width='2'/%3E%3Cpath d='M12 2a10 10 0 0 1 10 10' stroke='%230ea382' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 16px;
}

.alert {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  display: none;
}
.alert.warning {
  background: #fff6e0;
  border: 1px solid #f4d67a;
  color: #7a5900;
  display: block;
}
.alert.error {
  background: #fdeceb;
  border: 1px solid #f0b3ae;
  color: #9c2820;
  display: block;
}
input.field-error, select.field-error, textarea.field-error {
  border-color: #d63a31 !important;
  box-shadow: 0 0 0 2px rgba(214,58,49,.12);
}
.btn-group.field-error {
  outline: 2px solid rgba(214,58,49,.55);
  outline-offset: 3px;
  border-radius: 8px;
}

.field-sagt {
  margin: 8px 0 0;
  font-size: var(--fs-sm);
  color: #9c2820;
}
