/* rechner.css – Finanzierungsrechner-Widget, nutzt die Tokens aus layout-navigation.css
   (--accent, --border, --text, --text-soft, --bg) und ergänzt nur eigene, mit "rechner-"
   präfigierte Klassen, damit nichts mit dem bestehenden Design-System kollidiert. */
.rechner-tool{ --warn:#c8632d; margin: 22px 0 8px; }
.rechner-tool *{ box-sizing:border-box; }
.rechner-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; }
@media (max-width:760px){ .rechner-grid{ grid-template-columns:1fr; } }

.rechner-card{ background:var(--bg); border:1px solid var(--border); border-radius:12px; padding:22px; }
.rechner-card h3{ font-size:0.9em; text-transform:uppercase; letter-spacing:.04em; color:var(--text-soft); margin:0 0 16px; }

.rechner-field{ margin-bottom:16px; }
.rechner-field label{ display:flex; justify-content:space-between; font-size:0.92em; font-weight:600; margin-bottom:6px; gap:8px; }
.rechner-field label .rechner-val{ color:var(--accent-dark); font-variant-numeric:tabular-nums; font-weight:700; white-space:nowrap; }
.rechner-field input[type=range]{ width:100%; accent-color:var(--accent); }
.rechner-numrow{ display:flex; align-items:center; gap:8px; margin-top:6px; }
.rechner-numrow input[type=number]{
  width:100%; padding:7px 10px; border:1px solid var(--border); border-radius:6px;
  background:var(--card-bg,#fff); color:var(--text); font-size:0.95em; font-variant-numeric:tabular-nums;
}
.rechner-numrow span{ color:var(--text-soft); font-size:0.85em; flex:none; }

.rechner-results{ display:flex; flex-direction:column; gap:14px; }
.rechner-tile{ background:#fff; border:1px solid var(--border); border-radius:12px; padding:18px 20px; }
.rechner-tile.rechner-hero{ background:linear-gradient(135deg, var(--accent), var(--accent-dark)); color:#fff; border:none; }
.rechner-tile .rechner-label{ font-size:0.82em; opacity:0.85; text-transform:uppercase; letter-spacing:.04em; margin-bottom:6px; }
.rechner-tile .rechner-num{ font-size:1.7em; font-weight:700; font-variant-numeric:tabular-nums; }
.rechner-tile .rechner-sub{ font-size:0.85em; opacity:0.75; margin-top:4px; }
.rechner-kv-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.rechner-kv{ background:#fff; border:1px solid var(--border); border-radius:10px; padding:14px 16px; }
.rechner-kv .rechner-label{ font-size:0.8em; color:var(--text-soft); margin-bottom:4px; }
.rechner-kv .rechner-num{ font-size:1.1em; font-weight:700; font-variant-numeric:tabular-nums; }

.rechner-chartcard{ margin-top:20px; background:#fff; border:1px solid var(--border); border-radius:12px; padding:22px; }
.rechner-tool svg text{ fill:var(--text-soft); font-size:11px; }
.rechner-line{ fill:none; stroke:var(--accent); stroke-width:2.5; }
.rechner-area{ fill:var(--accent); opacity:0.12; }
.rechner-marker{ stroke:var(--warn); stroke-width:1.5; stroke-dasharray:4 3; }
.rechner-axis{ stroke:var(--border); stroke-width:1; }
.rechner-legend{ display:flex; gap:18px; font-size:0.82em; color:var(--text-soft); margin-top:10px; flex-wrap:wrap; }
.rechner-legend span{ display:inline-flex; align-items:center; gap:6px; }
.rechner-swatch{ width:10px; height:10px; border-radius:2px; display:inline-block; }

.rechner-note{ font-size:0.82em; color:var(--text-soft); margin-top:18px; line-height:1.5; }
.rechner-note strong{ color:var(--text); }

.rechner-warn{ display:none; }
.rechner-warn.rechner-visible{ display:block; }
.rechner-warn .rechner-label{ color:var(--warn); }
