/* ═══════════════════════════════════════
   BAUFINANZIERUNGSKALKULATOR — Styles
   Navy & Holz — baut auf style.css auf
   ═══════════════════════════════════════ */

/* ── Hero ── */
.kalk-hero {
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 0;
  background: var(--white);
}
.kalk-hero .wrap { max-width: 780px; }
.kalk-hero .h-1 { margin-bottom: 16px; }
.kalk-hero .lead { max-width: 600px; }

/* ── Kalkulator-Layout ── */
.kalk-section {
  background: var(--bg);
  padding-top: 32px;
}

.kalk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 960px) {
  .kalk-grid {
    grid-template-columns: 1fr 400px;
    gap: 64px;
  }
}

/* ── Eingabe-Karte ── */
.kalk-inputs-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 40px 28px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
  .kalk-inputs-card { padding: 48px 40px; }
}

.kalk-group {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}
.kalk-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.kalk-group-title {
  font-family: 'Archivo', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
}

/* ── Felder ── */
.kalk-field {
  margin-bottom: 24px;
  position: relative;
}
.kalk-field:last-child { margin-bottom: 0; }

.kalk-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.kalk-assumed {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  vertical-align: middle;
  transition: opacity 400ms var(--ease-out);
}
.kalk-assumed.hidden {
  opacity: 0;
  pointer-events: none;
}

.kalk-field-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
  line-height: 1.5;
}

/* Text/Number Inputs */
.kalk-field input[type="text"],
.kalk-field input[type="number"],
.kalk-field select {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 2px solid var(--rule);
  border-radius: 0;
  font-size: 17px;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  transition: border-color 300ms var(--ease-out);
  -moz-appearance: textfield;
}
.kalk-field input[type="number"]::-webkit-inner-spin-button,
.kalk-field input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.kalk-field select {
  padding: 12px 4px;
  cursor: pointer;
}
.kalk-field input:focus,
.kalk-field select:focus {
  outline: none;
  border-bottom-color: var(--amber);
}

/* Input mit Einheit */
.kalk-input-unit { position: relative; }
.kalk-input-unit input { padding-right: 48px; }
.kalk-input-unit .unit {
  position: absolute;
  right: 0;
  bottom: 13px;
  font-size: 15px;
  color: var(--ink-3);
  pointer-events: none;
}

/* ── Range-Slider ── */
.kalk-slider-wrap { margin-top: 4px; }
.kalk-slider-value {
  font-family: 'Archivo', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

input[type="range"].kalk-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type="range"].kalk-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
input[type="range"].kalk-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-md);
}
input[type="range"].kalk-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
input[type="range"].kalk-slider:focus-visible::-webkit-slider-thumb {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.kalk-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 4px;
}

/* ── Button-Gruppe (Ausbaustufe, Zinsbindung, Tilgung) ── */
.kalk-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.kalk-btn-group button {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 300ms var(--ease-out);
  text-align: center;
}
@media (max-width: 374px) {
  .kalk-btn-group button {
    font-size: 13px;
    padding: 10px 8px;
  }
}
.kalk-btn-group button:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.kalk-btn-group button.active {
  background: var(--navy);
  color: var(--on-navy);
  border-color: var(--navy);
  font-weight: 600;
}
.kalk-btn-group button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* ── Toggle (Grundstück vorhanden) ── */
.kalk-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.kalk-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.kalk-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.kalk-toggle-track {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--rule);
  border-radius: 13px;
  cursor: pointer;
  transition: background 300ms var(--ease-out);
}
.kalk-toggle-track::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 300ms var(--ease-out);
}
.kalk-toggle input:checked + .kalk-toggle-track {
  background: var(--navy);
}
.kalk-toggle input:checked + .kalk-toggle-track::after {
  transform: translateX(22px);
}
.kalk-toggle input:focus-visible + .kalk-toggle-track {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.kalk-toggle-label {
  font-size: 15px;
  color: var(--ink-2);
}

/* ── Ergebnis-Karte (sticky) ── */
.kalk-results-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 960px) {
  .kalk-results-card {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
  }
}

.kalk-rate-display {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}
.kalk-rate-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.kalk-rate-value {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 800;
  color: var(--amber);
  line-height: 1.1;
}
.kalk-rate-suffix {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-3);
  margin-top: 2px;
}

/* Ampeln */
.kalk-ampeln {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.kalk-ampel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--bg);
  transition: background 300ms var(--ease-out);
}
.kalk-ampel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 300ms var(--ease-out);
}
.kalk-ampel-dot.gruen  { background: var(--ampel-gruen); }
.kalk-ampel-dot.gelb   { background: var(--ampel-gelb); }
.kalk-ampel-dot.rot    { background: var(--ampel-rot); }

.kalk-ampel-text {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}
.kalk-ampel-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* Kostenaufschlüsselung */
.kalk-breakdown { margin-bottom: 24px; }
.kalk-breakdown-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.kalk-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.kalk-line-label { padding-right: 8px; }
.kalk-line-value {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.kalk-line.kalk-line-total {
  border-top: 1px solid var(--rule);
  margin-top: 4px;
  padding-top: 10px;
  font-weight: 600;
}
.kalk-line-hint {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 2px 0 8px;
  padding: 0 14px;
}
.kalk-line-total .kalk-line-label { color: var(--ink); }
.kalk-line-total .kalk-line-value {
  font-size: 16px;
  color: var(--navy);
}

.kalk-line.kalk-line-darlehen {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--r-md);
}
.kalk-line-darlehen .kalk-line-label {
  font-weight: 600;
  color: var(--ink);
}
.kalk-line-darlehen .kalk-line-value {
  font-family: 'Archivo', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

/* Restschuld */
.kalk-restschuld {
  padding: 14px;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  margin-bottom: 24px;
}
.kalk-restschuld-label {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.kalk-restschuld-value {
  font-family: 'Archivo', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

/* Zinsdetails */
.kalk-zins-details {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Warnungen */
.kalk-warning {
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
  display: none;
}
.kalk-warning.visible { display: block; }
.kalk-warning-red {
  background: #fdf0f0;
  color: #8b2020;
  border: 1px solid #e8c4c4;
}
.kalk-warning-amber {
  background: var(--bg-alt);
  color: var(--ink-2);
  border: 1px solid var(--rule);
}

/* ── Hinweise ── */
.kalk-hinweise {
  background: var(--bg-alt);
  padding: 48px 0;
}
.kalk-hinweise .wrap { max-width: 780px; }
.kalk-hinweis {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--rule);
}
.kalk-hinweis:last-child { margin-bottom: 0; }

/* ── Einkommen optional ── */
.kalk-einkommen-hint {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  font-style: italic;
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--r-md);
}

/* ── Fundament-Sektion ── */
.fundament-section { background: var(--bg-alt); }

.fundament-tipps {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fundament-tipp {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.fundament-tipp:last-child {
  border-bottom: 1px solid var(--rule);
}

.fundament-tipp-number {
  font-family: 'Archivo', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: rgba(30, 42, 68, 0.1);
  line-height: 1;
  text-align: center;
}

.fundament-tipp-content h3 { margin-bottom: 10px; }
.fundament-tipp-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 560px;
}

@media (max-width: 767px) {
  .fundament-tipp {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .fundament-tipp-number {
    font-size: 36px;
    text-align: left;
  }
}

/* Überleitung */
.fundament-weiter {
  margin-top: 80px;
  max-width: 560px;
  padding: 48px 40px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.fundament-weiter h3 { margin-bottom: 12px; }
.fundament-weiter p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 28px;
  max-width: 480px;
}
@media (max-width: 767px) {
  .fundament-weiter {
    padding: 32px 24px;
    margin-top: 56px;
  }
}

/* ── Preisband-Marker ── */
.kalk-preisband {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.kalk-preisband-tag {
  font-size: 10px;
  color: var(--ink-3);
  background: var(--bg);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}


/* ═══════════════════════════════════════
   WIZARD — Geführter Finanzierungs-Check
   ═══════════════════════════════════════ */

/* ── Sektion: Übergang vom Hero ── */
.wiz-section {
  background: var(--bg-alt);
  padding-top: 0;
  padding-bottom: 80px;
}
@media (max-width: 767px) {
  .wiz-section { padding-top: 0; padding-bottom: 56px; }
}
.wiz-section .wrap {
  max-width: 680px;
}

/* ── Wizard-Karte ── */
.wiz-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 520px) {
  .wiz-card { padding: 28px 20px 24px; }
}

/* ── Fortschritt (in Karte integriert) ── */
.wiz-progress-wrap {
  margin-bottom: 32px;
}
.wiz-progress-labels {
  display: flex;
  gap: 24px;
  margin-bottom: 10px;
}
.wiz-progress-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 300ms var(--ease-out);
}
.wiz-progress-label.active {
  color: var(--navy);
}
.wiz-progress-track {
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.wiz-progress-fill {
  height: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: width 300ms var(--ease-out);
}
.wiz-progress-text {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 6px;
  text-align: right;
}

/* ── Schritte ── */
.wiz-steps-viewport {
  position: relative;
  overflow: hidden;
}

.wiz-step {
  display: none;
  text-align: center;
}
.wiz-step.active {
  display: block;
}

/* Directional transitions (JS adds classes) */
.wiz-step.wiz-enter-right {
  animation: wizSlideInRight 300ms var(--ease-out) both;
}
.wiz-step.wiz-enter-left {
  animation: wizSlideInLeft 300ms var(--ease-out) both;
}

@keyframes wizSlideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes wizSlideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Illustration ── */
.wiz-illo {
  margin: 0 auto 20px;
  width: 96px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: wizIlloIn 400ms 80ms var(--ease-out) both;
}
@keyframes wizIlloIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
.wiz-illo svg {
  display: block;
}
.wiz-illo-result {
  width: 64px;
  height: 60px;
  margin-bottom: 16px;
}

/* ── Frage + Hint ── */
.wiz-question {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.wiz-hint {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Wizard Slider (aufgewertet) ── */
.wiz-control {
  text-align: left;
}
.wiz-control .wiz-slider-value,
.wiz-followup .wiz-slider-value {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
  transition: transform 120ms var(--ease-out);
}
.wiz-slider-value.wiz-pulse {
  transform: scale(1.04);
}

input[type="range"].wiz-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right, var(--amber) 0%, var(--amber) var(--fill, 50%), var(--rule) var(--fill, 50%), var(--rule) 100%);
  transition: background 60ms;
}
input[type="range"].wiz-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  border: 4px solid var(--white);
  box-shadow: 0 2px 8px rgba(30,42,68,0.18);
  cursor: pointer;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background 200ms;
}
input[type="range"].wiz-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 3px 12px rgba(30,42,68,0.25);
}
input[type="range"].wiz-slider:active::-webkit-slider-thumb {
  background: var(--amber);
  transform: scale(1.15);
}
input[type="range"].wiz-slider::-moz-range-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  border: 4px solid var(--white);
  box-shadow: 0 2px 8px rgba(30,42,68,0.18);
  cursor: pointer;
}
input[type="range"].wiz-slider:active::-moz-range-thumb {
  background: var(--amber);
}
input[type="range"].wiz-slider:focus-visible::-webkit-slider-thumb {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.wiz-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 4px;
  padding: 0 2px;
}

/* ── Rate-Band ── */
.wiz-rate-band {
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 300ms var(--ease-out);
}
.wiz-band-gruen { background: #e8f5e9; color: #2e7d32; }
.wiz-band-gelb  { background: #fff8e1; color: #f57f17; }
.wiz-band-rot   { background: #fce4ec; color: #c62828; }

/* ── Bundesland-Grid ── */
.wiz-bundesland-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 440px) {
  .wiz-bundesland-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 600px) {
  .wiz-bundesland-grid { grid-template-columns: repeat(4, 1fr); }
}

.wiz-bundesland-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  text-align: center;
}
.wiz-bundesland-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.wiz-bundesland-btn.active {
  background: var(--navy);
  color: var(--on-navy);
  border-color: var(--navy);
  font-weight: 600;
}
.wiz-bundesland-btn.active .wiz-bl-rate { color: var(--on-navy-dim); }
.wiz-bl-rate {
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 400;
}

.wiz-bundesland-grid.wiz-shake { animation: wizShake 400ms; }
@keyframes wizShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ── Tiles ── */
.wiz-tiles-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.wiz-tiles-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) {
  .wiz-tiles-3 { grid-template-columns: 1fr; }
}

.wiz-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 14px;
  border: 2px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--bg);
  font-family: inherit;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  text-align: center;
}
.wiz-tile:hover { border-color: var(--navy); }
.wiz-tile.active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--on-navy);
}

.wiz-tile-icon { line-height: 1; }
.wiz-tile.active .wiz-tile-icon svg path,
.wiz-tile.active .wiz-tile-icon svg circle,
.wiz-tile.active .wiz-tile-icon svg rect {
  stroke: var(--on-navy);
}
.wiz-tile.active .wiz-tile-icon svg text { fill: var(--on-navy); }
.wiz-tile-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.wiz-tile.active .wiz-tile-label { color: var(--on-navy); }
.wiz-tile-sub { font-size: 12px; color: var(--amber); font-weight: 600; }
.wiz-tile.active .wiz-tile-sub { color: var(--on-navy-dim); }
.wiz-tile-desc { font-size: 11px; color: var(--ink-3); }
.wiz-tile.active .wiz-tile-desc { color: var(--on-navy-dim); }

/* Follow-up */
.wiz-followup {
  margin-top: 20px;
  animation: wizSlideInRight 300ms var(--ease-out) both;
}
.wiz-followup-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  display: block;
  text-align: center;
}

/* ── Keller-Toggle ── */
.wiz-keller-wrap {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.wiz-keller-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.wiz-keller-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
}

/* ── Navigation (in Karte) ── */
.wiz-nav {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wiz-btn-next {
  width: 100%;
  padding: 16px 28px;
  border-radius: var(--r-md);
  border: none;
  background: var(--amber);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  letter-spacing: 0.01em;
}
.wiz-btn-next:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217,142,50,0.3);
}
.wiz-btn-next:active {
  transform: translateY(0);
}

.wiz-nav-secondary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wiz-btn-prev,
.wiz-btn-skip {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 4px;
  transition: color 200ms;
}
.wiz-btn-prev {
  color: var(--ink-3);
  font-weight: 500;
}
.wiz-btn-prev:hover { color: var(--navy); }
.wiz-btn-skip {
  color: var(--ink-3);
  font-weight: 400;
}
.wiz-btn-skip:hover { color: var(--ink-2); }

/* ── Ergebnis ── */
.wiz-result {
  text-align: center;
}
.wiz-result-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 28px;
}

/* ═══ EBENE 1 — Die Ergebnis-Karte ═══ */
.wiz-result-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  text-align: center;
}
@media (min-width: 520px) {
  .wiz-result-card { padding: 36px 32px; }
}

/* Zeile 1: Projekt */
.wiz-rc-projekt {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}
.wiz-rc-haus {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.wiz-rc-haus-value {
  font-weight: 800;
  color: var(--navy);
}
.wiz-rc-sub {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* Zeile 2: Rate */
.wiz-rc-rate {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 16px;
}
.wiz-rc-rate-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.wiz-rc-rate-value {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(36px, 6vw, 50px);
  font-weight: 800;
  color: var(--amber);
  line-height: 1.1;
}
.wiz-rc-rate-suffix {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* KfW inline im Rate-Block */
.wiz-rc-kfw-inline {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wiz-rc-kfw-ohne {
  font-size: 13px;
  color: var(--ink-3);
}
.wiz-rc-kfw-saving {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Zeile 3: Ampel-Pills */
.wiz-rc-ampeln {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.wiz-ampel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.wiz-ampel-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wiz-ampel-pill-dot.gruen  { background: var(--ampel-gruen); }
.wiz-ampel-pill-dot.gelb   { background: var(--ampel-gelb); }
.wiz-ampel-pill-dot.rot    { background: var(--ampel-rot); }

/* Wunschrate (Fuß der Karte) */
.wiz-rc-wunschrate {
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: left;
}
.wiz-rc-wunschrate.wiz-wunschrate-ok {
  background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9;
}
.wiz-rc-wunschrate.wiz-wunschrate-hint {
  background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--rule);
}
.wiz-rc-wunschrate.wiz-wunschrate-hint strong { color: var(--ink); }
.wiz-rc-wunschrate a.wiz-to-expert {
  color: inherit; text-decoration: underline;
}
.wiz-rc-wunschrate a.wiz-to-expert:hover { color: var(--navy); }

/* Sekundär-CTA-Link */
.wiz-rc-cta-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
  transition: color 200ms;
}
.wiz-rc-cta-link:hover { color: var(--ink); }

/* ═══ EBENE 2 — Accordions ═══ */
.wiz-accordions {
  margin-bottom: 28px;
}
.wiz-accordion {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--white);
  margin-bottom: 8px;
  overflow: hidden;
}
.wiz-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: color 200ms;
}
.wiz-accordion-trigger:hover { color: var(--navy); }
.wiz-accordion-trigger:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: -3px;
}
.wiz-accordion-icon {
  flex-shrink: 0;
  color: var(--ink-3);
  transition: color 200ms;
}
.wiz-accordion-trigger:hover .wiz-accordion-icon { color: var(--navy); }
.wiz-accordion-v {
  transition: transform 300ms var(--ease-out);
  transform-origin: center;
}
.wiz-accordion-trigger[aria-expanded="true"] .wiz-accordion-v {
  transform: scaleY(0);
}

.wiz-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease-out);
}
.wiz-accordion-content {
  padding: 0 20px 20px;
  text-align: left;
}

/* Breakdown inside accordion — no border/shadow needed */
.wiz-accordion-content .kalk-breakdown {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-bottom: 16px;
}

/* Details grid inside accordion */
.wiz-res-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 420px) {
  .wiz-res-details { grid-template-columns: 1fr; }
}

/* Energie inside accordion */
.wiz-accordion-content .wiz-energie-compare {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 14px;
}
.wiz-energie-col {
  flex: 1;
  max-width: 180px;
  text-align: center;
  padding: 14px 10px;
  border-radius: var(--r-md);
}
.wiz-energie-neubau { background: #e8f5e9; }
.wiz-energie-bestand { background: var(--bg-alt); }
.wiz-energie-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.wiz-energie-value {
  font-family: 'Archivo', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.wiz-energie-neubau .wiz-energie-value { color: #2e7d32; }
.wiz-energie-detail {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
.wiz-energie-vs {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  flex-shrink: 0;
}
.wiz-energie-summe {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--r-md);
}
.wiz-energie-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.wiz-energie-disclaimer {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-3);
  font-style: italic;
}
@media (max-width: 400px) {
  .wiz-accordion-content .wiz-energie-compare { flex-direction: column; }
  .wiz-accordion-content .wiz-energie-vs { display: none; }
  .wiz-energie-col { max-width: none; }
}

/* KfW detail inside accordion */
.wiz-kfw-detail-compare {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 14px;
}
.wiz-kfw-col {
  flex: 1;
  max-width: 180px;
  text-align: center;
  padding: 14px 10px;
  border-radius: var(--r-md);
}
.wiz-kfw-mit { background: #e8f5e9; }
.wiz-kfw-ohne { background: var(--bg-alt); }
.wiz-kfw-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.wiz-kfw-value {
  font-family: 'Archivo', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.wiz-kfw-mit .wiz-kfw-value { color: #2e7d32; }
.wiz-kfw-detail {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
.wiz-kfw-vs {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  flex-shrink: 0;
}
.wiz-kfw-ersparnis {
  font-size: 15px;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #e8f5e9;
  border-radius: var(--r-md);
  text-align: center;
}
.wiz-kfw-bedingungen {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 12px;
}
.wiz-kfw-wahrheiten {
  padding: 14px;
  background: var(--bg);
  border-radius: var(--r-md);
  margin-bottom: 12px;
}
.wiz-kfw-wahrheiten-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 8px;
}
.wiz-kfw-wahrheiten ul {
  list-style: disc;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.wiz-kfw-wahrheiten strong { color: var(--ink); }
.wiz-kfw-qng-hint {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 10px;
  font-style: italic;
}
.wiz-kfw-disclaimer {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-3);
  font-style: italic;
}
@media (max-width: 400px) {
  .wiz-kfw-detail-compare { flex-direction: column; }
  .wiz-kfw-detail-compare .wiz-kfw-vs { display: none; }
  .wiz-kfw-col { max-width: none; }
}

/* Honest block inside accordion */
.wiz-honest-intro {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 8px;
}
.wiz-honest-list {
  list-style: disc;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}
.wiz-honest-note {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* Staggered reveal */
.wiz-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.wiz-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* KfW Fallback */
.wiz-kfw-fallback {
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 24px;
  text-align: left;
}
.wiz-kfw-fallback strong { color: var(--ink); }

/* CTA-Block */
.wiz-cta-block {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 24px;
}
.wiz-cta-block .h-3 { color: var(--on-navy); margin-bottom: 8px; }
.wiz-cta-block p { color: var(--on-navy-dim); font-size: 15px; margin-bottom: 20px; }
.wiz-cta-block .btn-primary { background: var(--amber); color: var(--ink); }
.wiz-cta-block .btn-primary:hover { filter: brightness(1.08); }

/* Ergebnis-Aktionen */
.wiz-result-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  margin-bottom: 8px;
}

/* Neu-starten-Button (Outline) */
.wiz-restart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  border: 2px solid var(--navy);
  border-radius: var(--r-md);
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all 200ms var(--ease-out);
}
.wiz-restart-btn:hover {
  background: var(--navy);
  color: var(--on-navy);
}
.wiz-restart-btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.wiz-restart-btn svg {
  flex-shrink: 0;
}

/* ── Modus-Umschalter (Segment-Toggle) ── */
.wiz-mode-toggle {
  display: flex;
  justify-content: center;
  background: var(--bg-alt);
  padding-top: 72px;
  padding-bottom: 28px;
}
@media (max-width: 767px) {
  .wiz-mode-toggle { padding-top: 40px; padding-bottom: 20px; }
}
.wiz-mode-btn {
  padding: 8px 20px;
  border: 2px solid var(--navy);
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  min-height: 40px;
}
.wiz-mode-btn:first-child {
  border-radius: var(--r-md) 0 0 var(--r-md);
  border-right: none;
}
.wiz-mode-btn:last-child {
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.wiz-mode-btn.active {
  background: var(--navy);
  color: var(--on-navy);
}
.wiz-mode-btn:not(.active):hover {
  background: rgba(30, 42, 68, 0.06);
}
.wiz-mode-btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  z-index: 1;
  position: relative;
}
@media (max-width: 374px) {
  .wiz-mode-btn {
    font-size: 12px;
    padding: 8px 14px;
  }
}

/* ── KfW Förder-Check (Schritt 3) ── */
.wiz-kfw-kinder-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 12px 0 20px;
}
.wiz-kfw-kind-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--rule);
  background: var(--bg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 200ms var(--ease-out);
}
.wiz-kfw-kind-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.wiz-kfw-kind-btn.active {
  background: var(--navy);
  color: var(--on-navy);
  border-color: var(--navy);
}

.wiz-kfw-einkommen {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.wiz-kfw-einkommen-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 12px;
  font-style: italic;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .wiz-step.wiz-enter-right,
  .wiz-step.wiz-enter-left { animation: none; }
  .wiz-illo { animation: none; opacity: 1; }
  .wiz-reveal { transition: none; opacity: 1; transform: none; }
  .wiz-progress-fill { transition: none; }
  .wiz-slider-value.wiz-pulse { transform: none; }
  input[type="range"].wiz-slider::-webkit-slider-thumb { transition: none; }
  .wiz-accordion-panel { transition: none; }
  .wiz-accordion-v { transition: none; }
}

/* ── No-JS Fallback ── */
html:not(.js) .wiz-section { display: none; }
html:not(.js) .kalk-section { display: block !important; }
