/* Sanierungskosten-Rechner — Formularelemente.
   Frueher inline auf der Startseite. Seit 15.08.2026 eigene Datei, weil der
   Rechner auf zwei Seiten steht (Startseite + /sanierungskosten-hamburg/).
   Bewusst NICHT in style.css: 3,6 KB auf zwanzig Seiten auszuliefern waere
   Verschwendung, hier laedt es nur, wo der Rechner wirklich steht.
   Nutzt die Tokens aus style.css Abschnitt 1. */

/* Fuer Karte, Tabelle, Hinweis, Badge und Button gelten .card/.tablewrap/.note/.pill/.btn. */
.rechner fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.rechner legend { padding: 0; margin-bottom: 9px; color: var(--ink); font-size: 15px; font-weight: 700; }
.rechner-optionen { display: flex; flex-wrap: wrap; gap: 8px; }
.rechner-opt {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: 15px; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.rechner-opt:hover { border-color: var(--line-2); }
.rechner-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.rechner-opt input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.rechner-feld { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.rechner-feld input[type=number] {
  width: 120px; min-height: 44px; padding: 8px 12px; font-family: inherit; font-size: 17px;
  color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
}
.rechner input[type=range] {
  -webkit-appearance: none; appearance: none;
  flex: 1 1 240px; min-width: 180px; height: 44px; background: transparent; cursor: pointer;
}
.rechner input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--line); }
.rechner input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%;
  background: var(--brand); border: 2px solid #fff; box-shadow: 0 2px 6px -1px rgba(10, 21, 37, .45);
}
.rechner input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.rechner input[type=range]::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand); border: 2px solid #fff;
}
.rechner-mini { font-size: 14px; color: var(--mute); }
.rechner-ergebnis { display: none; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.rechner--aktiv .rechner-ergebnis { display: block; }
.rechner--aktiv .rechner-nojs { display: none; }
.rechner-spanne {
  margin: 10px 0 4px; font-family: var(--serif); font-style: italic; color: var(--ink);
  font-size: clamp(30px, 5.4vw, 42px); line-height: 1.05; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;   /* Spanne springt beim Neurechnen nicht */
}
.rechner-pos { margin: 16px 0 0; padding: 0; list-style: none; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.rechner-pos li {
  display: flex; justify-content: space-between; gap: 14px;
  margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line);
}
.rechner-pos li:last-child { border-bottom: none; }
.rechner-pos strong { color: var(--ink); white-space: nowrap; }
.rechner-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 640px) {
  .rechner-opt { font-size: 14.5px; padding: 8px 13px; }
  .rechner-feld input[type=number] { width: 100px; }
}
