/* Online-Rechner – gemeinsames Aussehen, alle Klassen mit Präfix .rr-
   Schrift erbt (var(--font)), Akzent var(--brand). Ab 390 px Breite nutzbar, Text mind. 16 px. */
.rr {
  --rr-akzent: var(--brand, #1f4e79);
  --rr-text: inherit;
  --rr-rand: color-mix(in srgb, currentColor 22%, transparent);
  --rr-flaeche: color-mix(in srgb, currentColor 4%, transparent);
  --rr-fehler: #b3261e;
  font-family: var(--font, inherit);
  font-size: max(1rem, 16px);
  line-height: 1.55;
  max-width: 46rem;
  margin-block: 2rem;
  padding: clamp(1rem, 4vw, 1.75rem);
  border: 1px solid var(--rr-rand);
  border-radius: 0.75rem;
  background: var(--rr-flaeche);
  box-sizing: border-box;
}
.rr *, .rr *::before, .rr *::after { box-sizing: border-box; }
.rr [hidden] { display: none !important; }
.rr-titel { font-size: 1.375em; line-height: 1.25; margin: 0 0 0.5rem; }
.rr-intro { margin: 0 0 1.25rem; }
.rr-nojs {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--rr-akzent);
  background: color-mix(in srgb, var(--rr-akzent) 8%, transparent);
  margin: 0 0 1rem;
}
.rr-form { display: grid; gap: 1.25rem; }
.rr-feld { display: grid; gap: 0.35rem; }
.rr-feld label, .rr-gruppe legend { font-weight: 600; }
.rr input[type="text"], .rr select {
  font: inherit;
  font-size: max(1rem, 16px); /* verhindert Zoom auf iOS */
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rr-rand);
  border-radius: 0.5rem;
  background: Canvas;
  color: CanvasText;
}
.rr input[type="text"]:focus-visible, .rr select:focus-visible,
.rr input[type="checkbox"]:focus-visible, .rr input[type="radio"]:focus-visible,
.rr-knopf:focus-visible, .rr summary:focus-visible {
  outline: 3px solid var(--rr-akzent);
  outline-offset: 2px;
}
.rr input[aria-invalid="true"], .rr select[aria-invalid="true"] { border-color: var(--rr-fehler); }
.rr-hilfe { margin: 0; font-size: 1em; }
.rr-fehler { margin: 0; color: var(--rr-fehler); font-weight: 600; }
.rr-gruppe { border: 1px solid var(--rr-rand); border-radius: 0.5rem; padding: 0.75rem 1rem; margin: 0; display: grid; gap: 0.5rem; }
.rr-gruppe legend { padding: 0 0.25rem; }
.rr-wahl { display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; }
.rr-wahl input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--rr-akzent); }
.rr-knopf {
  font: inherit;
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--rr-akzent);
  border-radius: 0.5rem;
  background: var(--rr-akzent);
  color: #fff;
  cursor: pointer;
  justify-self: start;
}
.rr-knopf--zweit { background: transparent; color: inherit; }
.rr-knopf:hover { filter: brightness(1.08); }
.rr-ergebnis { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rr-rand); }
.rr-ergebnis-titel { font-size: 1.15em; margin: 0 0 0.75rem; }
.rr-hauptsatz { font-size: 1.2em; font-weight: 700; margin: 0 0 0.75rem; }
.rr-hauptsatz strong { color: var(--rr-akzent); }
.rr-tabelle { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.rr-tabelle th, .rr-tabelle td { text-align: left; padding: 0.45rem 0.25rem; border-bottom: 1px solid var(--rr-rand); vertical-align: top; }
.rr-tabelle thead th { font-weight: 600; }
.rr-tabelle tbody th { font-weight: 400; }
.rr-tabelle tfoot th, .rr-tabelle tfoot td { font-weight: 700; border-bottom: 0; }
.rr-zahl { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rr-norm { display: block; font-size: 1em; }
.rr-weg { margin: 0 0 1rem; }
.rr-weg summary { cursor: pointer; font-weight: 600; min-height: 2.75rem; display: flex; align-items: center; }
.rr-weg ol { margin: 0.25rem 0 0; padding-left: 1.4rem; display: grid; gap: 0.3rem; overflow-wrap: anywhere; }
.rr-aktionen { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.rr-rueckmeldung { font-weight: 600; }
.rr-hinweise { margin-top: 1.5rem; font-size: 1em; }
.rr-hinweise p { margin: 0 0 0.6rem; }
.rr-gewaehr { font-weight: 600; }
.rr-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 30rem) {
  .rr { border-radius: 0; border-inline: 0; }
  .rr-knopf { width: 100%; justify-self: stretch; }
}
@media (prefers-reduced-motion: no-preference) {
  .rr-knopf { transition: filter 0.15s ease; }
}
.rr-hauptsatz { margin-top: 1.25rem; }
.rr-hauptsatz:empty { display: none; }
.rr-status { margin: 0 0 0.75rem; font-weight: 600; }
.rr-liste { margin: 0 0 1rem; padding-left: 1.4rem; display: grid; gap: 0.4rem; }
