/* ════════════════════════════════════════════════════════════════════════
   Finberatung — Finanzierungsanfrage (Online-Assistent)
   Mehrstufiger Assistent. Nutzt die Tokens & Primitives aus site.css.
   ════════════════════════════════════════════════════════════════════════ */

.fwa {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Statusmeldung ───────────────────────────────────────────────────────── */
.fwa-status {
  display: none;
  border-radius: var(--radius);
  padding: 15px 18px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 22px;
}
.fwa-status.is-visible { display: block; }
.fwa-status--error {
  background: var(--koralle-wash);
  border: 1px solid rgba(219, 106, 74, 0.35);
  color: #9A3D22;
}

/* ── Fortschritt: Stepper ────────────────────────────────────────────────── */
.fwa-progress {
  position: sticky;
  top: calc(var(--header-h, 65px) + 16px);
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 22px 18px;
  margin-bottom: 28px;
  box-shadow: 0 12px 30px -22px rgba(31, 76, 59, 0.4);
}
.fwa-progress__track {
  height: 7px;
  border-radius: 999px;
  background: var(--waldgruen-wash);
  overflow: hidden;
  margin-bottom: 16px;
}
.fwa-progress__bar {
  height: 100%;
  width: 16.6%;
  border-radius: 999px;
  background: var(--koralle);
  transition: width .4s cubic-bezier(.22,.61,.21,1);
}
.fwa-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}
.fwa-steps li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  min-width: 0;
}
.fwa-steps__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--waldgruen-wash);
  color: var(--waldgruen-soft);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  transition: all .25s ease;
}
.fwa-steps__dot svg { width: 15px; height: 15px; display: none; }
.fwa-steps__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  line-height: 1.2;
}
.fwa-steps li.is-active .fwa-steps__dot {
  background: var(--koralle);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(219,106,74,0.8);
}
.fwa-steps li.is-active .fwa-steps__label { color: var(--waldgruen); }
.fwa-steps li.is-done .fwa-steps__dot {
  background: var(--waldgruen);
  color: #fff;
}
.fwa-steps li.is-done .fwa-steps__dot span { display: none; }
.fwa-steps li.is-done .fwa-steps__dot svg { display: block; }

/* ── Schritt-Karte ───────────────────────────────────────────────────────── */
.fwa-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 36px 36px;
  animation: fwa-step-in .35s cubic-bezier(.22,.61,.21,1);
}
.fwa-step[hidden] { display: none; }
@keyframes fwa-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.fwa-step__head { margin: 0 0 26px; }
.fwa-step__kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--koralle);
  margin: 0 0 8px;
}
.fwa-step__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 27px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--waldgruen);
  margin: 0;
}
.fwa-step__intro {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 56ch;
}

/* ── Auswahl-Kacheln (Vorhaben / Objektart) ──────────────────────────────── */
.fwa-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.fwa-tiles--2 { grid-template-columns: repeat(2, 1fr); }
.fwa-tile { position: relative; cursor: pointer; display: block; }
.fwa-tile input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.fwa-tile__box {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 20px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  transition: all .18s ease;
}
.fwa-tile__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--waldgruen-wash);
  color: var(--waldgruen);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  transition: all .18s ease;
}
.fwa-tile__icon svg { width: 22px; height: 22px; stroke-width: 1.9; }
.fwa-tile__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--waldgruen);
  line-height: 1.2;
}
.fwa-tile__desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.fwa-tile:hover .fwa-tile__box { border-color: var(--koralle-soft); transform: translateY(-2px); }
.fwa-tile input:checked + .fwa-tile__box {
  border-color: var(--koralle);
  background: var(--koralle-wash);
  box-shadow: 0 12px 26px -18px rgba(219,106,74,0.7);
}
.fwa-tile input:checked + .fwa-tile__box .fwa-tile__icon {
  background: var(--koralle);
  color: #fff;
}
.fwa-tile input:focus-visible + .fwa-tile__box {
  box-shadow: 0 0 0 4px var(--koralle-wash);
}

/* ── Felder-Layout ───────────────────────────────────────────────────────── */
.fwa-fields .field { margin-bottom: 20px; }
.fwa-fields .field:last-child { margin-bottom: 0; }
.fwa-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.fwa-field-hint {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.fwa-suffix-field { position: relative; }
.fwa-suffix-field input { padding-right: 52px; }
.fwa-suffix-field .fwa-suffix {
  position: absolute;
  right: 1px; bottom: 1px;
  height: calc(100% - 2px);
  display: flex; align-items: center;
  padding: 0 16px;
  background: var(--waldgruen-wash);
  border-radius: 0 11px 11px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--waldgruen);
  pointer-events: none;
}
.fwa-cond[hidden] { display: none; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.fwa-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.fwa-nav .btn { min-width: 150px; justify-content: center; }
.fwa-nav__spacer { flex: 1; }
.fwa-back[hidden] { display: none; }

/* ── Kontakt-Schritt ─────────────────────────────────────────────────────── */
.fwa-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 0;
  cursor: pointer;
}
.fwa-consent input {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--koralle);
  cursor: pointer;
}
.fwa-consent span {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.fwa-consent a { color: var(--koralle); font-weight: 600; }
.fwa-foot-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 16px 0 0;
  text-align: center;
}

/* ── Zusammenfassung im letzten Schritt ──────────────────────────────────── */
.fwa-summary {
  background: var(--waldgruen-wash);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 24px;
}
.fwa-summary__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--waldgruen);
  margin: 0 0 14px;
}
.fwa-summary__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}
.fwa-summary__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}
.fwa-summary__list dt,
.fwa-summary__k {
  font-size: 11.5px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.fwa-summary__v {
  font-weight: 700;
  color: var(--waldgruen);
}

/* ── Erfolgszustand ──────────────────────────────────────────────────────── */
.fwa-success {
  display: none;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 52px 32px;
  max-width: 900px;
  margin: 0 auto;
}
.fwa-success.is-visible { display: block; }
.fwa-success .check {
  width: 68px; height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--waldgruen);
  color: #fff;
  display: grid; place-items: center;
}
.fwa-success h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--waldgruen);
  margin: 0 0 12px;
}
.fwa-success p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 48ch;
  margin: 0 auto;
  line-height: 1.55;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .fwa-step { padding: 26px 20px 28px; }
  .fwa-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fwa-steps__label { display: none; }
  .fwa-steps { gap: 8px; }
  .fwa-steps li { flex-direction: row; justify-content: center; }
  .fwa-progress { top: calc(var(--header-h, 58px) + 12px); padding: 14px 16px; }
  .fwa-summary__list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .fwa-tiles { grid-template-columns: 1fr; }
  .fwa-grid-2 { grid-template-columns: 1fr; }
  .fwa-nav { flex-direction: column-reverse; }
  .fwa-nav .btn { width: 100%; }
}
