/* Reha Domus – Patientenanmeldung. Farben aus dem Relaunch (--rl-*), mit Ersatzwerten. */
:is(#rd-patient, #rd-finder) {
  --p: var(--rl-petrol, #102C32); --c: var(--rl-coral-d, #F26D51); --ct: var(--rl-coral-text, #A63B24);
  --iv: var(--rl-ivory, #F6F5F1); --ln: var(--rl-line, #E3E1D9); --sl: var(--rl-slate, #52666A);
  --sg: var(--rl-sage, #D7E3DB); --rs: var(--rl-rose, #FFE6DF);
  font-family: var(--rl-body, system-ui, -apple-system, 'Segoe UI', sans-serif); color: var(--p); scroll-margin-top: 90px;
}
:is(#rd-patient, #rd-finder) * { box-sizing: border-box; }
:is(#rd-patient, #rd-finder) h3 { font-size: 1.4rem; line-height: 1.25; margin: 0 0 .6em; outline: none; }
:is(#rd-patient, #rd-finder) h4 { font-size: 1.05rem; margin: 1.8em 0 .7em; padding-top: 1em; border-top: 1px solid var(--ln); }
:is(#rd-patient, #rd-finder) p { margin: 0 0 .8em; }
.rdp-karte { background: #fff; border: 1px solid var(--ln); border-radius: var(--rl-r, 22px); padding: clamp(18px, 4vw, 34px); }
.rdp-klein { font-size: .9rem; color: var(--sl); }
.rdp-feld { display: block; margin: 0 0 14px; font-weight: 600; font-size: .95rem; border: 0; padding: 0; }
.rdp-feld legend { padding: 0; margin-bottom: 6px; }
.rdp-feld input:not([type=checkbox]):not([type=radio]), .rdp-feld select, :is(#rd-patient, #rd-finder) textarea {
  display: block; width: 100%; margin-top: 5px; padding: 12px 13px; border: 1px solid var(--ln); border-radius: 12px; font: inherit; font-weight: 400; background: #fff; color: inherit; min-height: 48px;
}
.rdp-feld input:focus-visible, .rdp-feld select:focus-visible, :is(#rd-patient, #rd-finder) input:focus-visible { outline: 3px solid var(--c); outline-offset: 1px; }
[aria-invalid=true] { border-color: var(--ct) !important; }
.rdp-plz { max-width: 260px; }
.rdp-kurz { max-width: 340px; }
.rdp-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.rdp-drei { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.rdp-eng { gap: 0 10px; grid-template-columns: 110px 1fr; }
@media (max-width: 640px) { .rdp-zwei, .rdp-drei { grid-template-columns: 1fr; } .rdp-eng { grid-template-columns: 110px 1fr; } }
.rdp-wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.rdp-wahl label { display: flex; align-items: center; gap: 8px; font-weight: 400; padding: 10px 14px; border: 1px solid var(--ln); border-radius: 12px; cursor: pointer; min-height: 46px; }
.rdp-wahl label:has(input:checked) { border-color: var(--p); background: var(--iv); font-weight: 600; }
.rdp-wahl input, .rdp-haken input { width: 20px; height: 20px; accent-color: var(--p); flex: none; }
.rdp-haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0 0 14px; line-height: 1.45; }
.rdp-haken input { margin-top: 2px; }
.rdp-knopf { display: inline-block; background: var(--p); color: #fff; border: 0; border-radius: 999px; padding: 13px 24px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 48px; }
.rdp-knopf:hover { background: #1d4750; }
.rdp-knopf[disabled] { opacity: .6; cursor: wait; }
.rdp-gross { width: 100%; padding: 16px; font-size: 1.05rem; margin-top: 10px; }
.rdp-link { background: none; border: 0; padding: 4px 0; color: var(--ct); text-decoration: underline; font: inherit; font-size: .9rem; cursor: pointer; }
.rdp-meldung { background: var(--rs); padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.rdp-fehler { color: var(--ct); font-size: .88rem; font-weight: 600; margin: 5px 0 0 !important; }
.rdp-erg { margin-top: 18px; padding: 16px 18px; border-radius: 16px; }
.rdp-erg p { font-size: 1.05rem; }
.rdp-erg.gruen { background: var(--sg); } .rdp-erg.gelb { background: #FFF1C9; } .rdp-erg.rot { background: var(--rs); }
.rdp-mehr { border: 1px solid var(--ln); border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; }
.rdp-mehr summary { cursor: pointer; font-weight: 600; }
.rdp-mehr[open] summary { margin-bottom: 10px; }
.rdp-wert { background: var(--iv); border-left: 4px solid var(--c); border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }
.rdp-leist { display: grid; gap: 8px; }
.rdp-leist label { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--ln); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.rdp-leist small { display: block; font-weight: 400; color: var(--sl); font-size: .85rem; }
.rdp-leist input { width: 84px !important; flex: none; text-align: center; margin: 0 !important; }
.rdp-tabelle { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; }
.rdp-tabelle th { text-align: left; font-size: .8rem; color: var(--sl); font-weight: 600; border-bottom: 1px solid var(--ln); padding: 6px 6px 6px 0; }
.rdp-tabelle td { padding: 8px 6px 8px 0; border-bottom: 1px solid var(--ln); }
.rdp-tabelle td:nth-child(n+2), .rdp-tabelle th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.rdp-tabelle tfoot td { font-weight: 700; border-bottom: 0; padding-top: 12px; }
.rdp-tabelle tfoot td:first-child { text-align: right; }
.rdp-angebot { background: #FFF8F5; border: 1px solid #F8CBBE; border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; }
.rdp-angebot input[type=file] { margin-top: 6px; }
:is(#rd-patient, #rd-finder) canvas { width: 100%; height: auto; aspect-ratio: 900 / 260; border: 1.5px dashed var(--sl); border-radius: 14px; background: #fff; touch-action: none; display: block; }

/* Mehrere Therapiebereiche */
.rdp-fachkopf { font-weight: 700; margin: 14px 0 6px; }
.rdp-tabelle .rdp-gruppe td { font-weight: 700; text-align: left !important; padding-top: 14px; border-bottom: 1px solid var(--ln); }
.rdp-tabelle th small { font-weight: 400; }
.rdp-erg + .rdp-erg { margin-top: 10px; }

/* Leistungen wie auf dem Rezept mit Kreuz „als Doppelbehandlung“ */
.rdp-zeile { display: grid; grid-template-columns: 1fr 84px 170px; align-items: center; gap: 12px; border: 1px solid var(--ln); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.rdp-zeile small { display: block; font-weight: 400; color: var(--sl); font-size: .85rem; }
.rdp-zeile input[type=number] { width: 84px !important; text-align: center; margin: 0 !important; }
.rdp-dop { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: .92rem; cursor: pointer; }
.rdp-dop input { width: 20px; height: 20px; margin: 0; flex: none; }
@media (max-width: 560px) { .rdp-zeile { grid-template-columns: 1fr 84px; } .rdp-zeile .rdp-dop { grid-column: 1 / -1; } .rdp-zeile .rdp-dop:empty { display: none; } }
.rdp-zeile label.rdp-dop { border: 0 !important; background: none !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; box-shadow: none !important; width: auto !important; }
.rdp-zeile label.rdp-dop { justify-content: flex-start !important; font-weight: 400 !important; white-space: nowrap; gap: 8px; }
.rdp-zeile { grid-template-columns: 1fr 84px 190px; }
@media (max-width: 560px) { .rdp-zeile { grid-template-columns: 1fr 84px; } }
.rdp-tabelle .rdp-hb td { color: var(--sl); }
.rdp-tabelle .rdp-hb td:first-child { color: inherit; }
.rdp-tabelle .rdp-hb small, .rdp-tabelle td small { display: block; font-size: .8rem; color: var(--sl); font-weight: 400; }
.rdp-zeile .rdp-umr { color: var(--ink, #10343a); font-weight: 600; margin-top: 3px; }
.rdp-zeile label.rdp-dop { white-space: normal !important; line-height: 1.25; }
.rdp-zeile { grid-template-columns: 1fr 84px 150px; }
.rdp-zeile small.rdp-umr { font-weight: 700 !important; color: #10343a !important; }
@media (max-width: 560px) { .rdp-zeile { grid-template-columns: 1fr 84px; } }
.rdp-zeile label.rdp-dop { font-size: .9rem; }
:is(#rd-patient, #rd-finder) { margin-top: 28px !important; }

/* Stadtseiten: Verfügbarkeit im Kopfbereich */
.rd-standort { margin: 4px 0 18px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-size: .95rem; line-height: 1.5; }
.rd-standort .rds-liste { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.rd-standort .rds-ja { font-weight: 700; }
.rd-standort .rds-pruefen, .rd-standort .rds-nein { opacity: .85; }
.rd-standort { margin-top: 16px !important; }

/* Stadtseiten: kompakte Verfügbarkeits-Zeile (spart Höhe im Kopfbereich) */
.rd-standort { display: inline-flex !important; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 12px 0 0 !important; padding: 7px 14px !important; border-radius: 999px !important; font-size: .9rem; line-height: 1.35; }
.rd-standort[hidden] { display: none !important; }
.rd-standort strong::before { content: "✓"; display: inline-block; margin-right: 6px; color: #7fd3a8; }
.rd-standort .rds-trenner { opacity: .6; }

/* TherapieFinder */
.rdf-pakete { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rdf-paket { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--ln); border-radius: 14px; padding: 12px 14px; cursor: pointer; font-weight: 400; }
.rdf-paket:has(input:checked) { border-color: var(--p); background: var(--iv); }
.rdf-paket input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.rdf-paket small { display: block; color: var(--sl); font-size: .85rem; margin-top: 3px; }
.rdf-widerruf { margin: 14px 4px 0; }
.rdf-widerruf a { display: inline-block; border: 1.5px solid var(--p); border-radius: 999px; padding: 7px 16px; font-weight: 700; color: var(--p); text-decoration: none; }
@media (max-width: 560px) { .rdf-pakete { grid-template-columns: 1fr; } }
