/* ---------- Amortisationsrechner ---------- */
.wiz { max-width: 900px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden; }
.wiz__top { padding: 22px clamp(20px, 4vw, 40px) 0; }
.wiz__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.wiz__meta span b { color: var(--green-700); }
.wiz__bar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.wiz__bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--green-600), var(--sun)); transition: width .35s ease; }
.wiz__body { padding: clamp(24px, 4vw, 40px); min-height: 380px; }
.wiz__step { display: none; animation: wizIn .35s ease; }
.wiz__step.is-active { display: block; }
@keyframes wizIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.wiz__q { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: 6px; }
.wiz__help { color: var(--muted); margin-bottom: 24px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tiles--sm { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px;
  min-height: 130px; padding: 18px 14px; border-radius: var(--radius); cursor: pointer;
  background: var(--surface); border: 2px solid var(--line); font: inherit; color: var(--ink);
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.tile:hover { border-color: var(--green-500); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.tile.is-sel { border-color: var(--green-600); background: var(--green-50); box-shadow: 0 0 0 4px rgba(59,122,23,.12); }
.tile.is-sel::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-600); color: #fff; font-size: .8rem; font-weight: 900; display: grid; place-items: center; }
.tile svg { width: 34px; height: 34px; color: var(--green-600); }
.tile b { font-size: 1rem; line-height: 1.25; }
.tile small { font-size: .82rem; color: var(--muted); line-height: 1.3; }
.tile__big { font-size: 1.9rem; font-weight: 800; color: var(--navy-700); line-height: 1; }
.tiles--sm .tile { min-height: 96px; }
.wiz__custom { margin-top: 18px; display: none; gap: 12px; align-items: end; flex-wrap: wrap; }
.wiz__custom.is-open { display: flex; }
.wiz__custom .field { flex: 1 1 220px; }
.wiz__nav { display: flex; justify-content: space-between; gap: 12px; padding: 16px clamp(20px, 4vw, 40px) 24px; border-top: 1px solid var(--line); background: #fcfcfa; }
.wiz__nav .btn[hidden] { display: none; }
.compass { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 420px; margin: 0 auto; }
.compass .tile { min-height: 92px; }
.compass .c-mid { display: grid; place-items: center; border-radius: 50%; background: var(--sun-50); border: 2px dashed #ffd28a; color: var(--sun-ink); font-weight: 800; font-size: .8rem; text-align: center; line-height: 1.2; aspect-ratio: 1; align-self: center; justify-self: center; width: 84px; }
.compass .c-mid svg { width: 28px; height: 28px; margin: 0 auto 2px; display: block; }
.compass-extra { display: flex; justify-content: center; margin-top: 12px; }
.compass-extra .tile { min-height: 70px; flex-direction: row; max-width: 420px; width: 100%; }

/* Ergebnis */
.res { display: none; }
.res.is-on { display: block; }
.res__grid { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
.jump-cfg { display: none; }
@media (max-width: 1040px) { .jump-cfg { display: inline-flex; } }
.res__grid > *, .res-stack > *, .res-stack .grid > * { min-width: 0; }
@media (max-width: 1040px) { .res__grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-s); }
.panel__head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel__head h2, .panel__head h3 { margin: 0; font-size: 1.15rem; }
.panel__body { padding: 22px 24px; }
.cfg { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 1040px) { .cfg { position: static; order: 2; } }
.cfg .grp { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.cfg .grp:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.cfg .grp > h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.ctl { margin-bottom: 14px; }
.ctl:last-child { margin-bottom: 0; }
.ctl label { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.ctl label output { color: var(--green-700); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctl .select, .ctl .input { min-height: 44px; padding: 9px 12px; font-size: .95rem; }
.ctl .select { padding-right: 38px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.seg button { font: inherit; font-size: .9rem; font-weight: 700; padding: 9px 6px; border: 0; background: var(--surface); color: var(--ink-2); cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.is-sel { background: var(--green-600); color: #fff; }
.inv-row { display: flex; gap: 10px; align-items: center; }
.inv-row .input { flex: 1; }
.inv-row .btn { flex: none; min-height: 44px; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 720px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-s); }
.kpi small { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.kpi b { display: block; font-family: var(--font-head); font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi span { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.kpi--hero { grid-column: span 3; background: linear-gradient(120deg, var(--green-700), var(--green-600)); color: #fff; border: 0; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 24px 26px; }
.kpi--hero small { color: #d6ebc6; font-size: .9rem; }
.kpi--hero b { color: #fff; font-size: clamp(2.2rem, 5vw, 3.2rem); }
.kpi--hero span { color: #e3f0d8; font-size: .92rem; }
.kpi--hero .btn { white-space: nowrap; }
@media (max-width: 720px) { .kpi--hero { grid-column: span 2; grid-template-columns: 1fr; } }

.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); font-size: 12px; fill: var(--muted); }
.chart .ax { stroke: var(--line-2); stroke-width: 1; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .zero { stroke: var(--ink-2); stroke-width: 1.2; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.split-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--line); margin: 10px 0 8px; }
.split-bar i { display: block; height: 100%; }
.var-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.var-table th, .var-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.var-table th:first-child, .var-table td:first-child { text-align: left; white-space: normal; }
.var-table thead th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.var-table tr.is-cur td { background: var(--green-50); font-weight: 700; }
.var-table td small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.res-stack { display: grid; gap: 22px; }
.assume { font-size: .88rem; color: var(--muted); }
.assume ul { margin: .4em 0 0; padding-left: 1.1em; }
.assume li { margin-bottom: 4px; }
