/* P.u.R. Rehasport – Gestaltung. Große Schrift, hoher Kontrast, ruhige Flächen (Zielgruppe oft 60+). */
:root {
  --blau: #1d5f8c;
  --blau-dunkel: #123f5e;
  --gruen: #3f9a5c;
  --gruen-hell: #e8f4ec;
  --text: #1b2a35;
  --text-leise: #4a5b67;
  --flaeche: #f5f8f7;
  --linie: #d9e3e0;
  --weiss: #fff;
  --gelb: #fff3bf;
  --radius: 14px;
  --schatten: 0 6px 24px rgba(18, 63, 94, .08);
  --breite: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;            /* 18px */
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); text-underline-offset: 3px; }
a:hover { color: var(--blau-dunkel); }
h1, h2, h3 { line-height: 1.2; color: var(--blau-dunkel); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p, ul, ol { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; border-radius: 4px; }

.rahmen { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: -999px; top: 0; background: var(--blau); color: #fff; padding: .6em 1em; z-index: 100; }
.sprung:focus { left: 10px; }

.entwurf-leiste { background: var(--gelb); color: #5c4a00; text-align: center; font-size: .95rem; padding: .5em 1em; }
.offen { background: var(--gelb); border-radius: 4px; padding: 0 .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.offen-hinweis { background: var(--gelb); border-left: 5px solid #e0b400; padding: .8em 1em; border-radius: 8px; font-size: 1rem; }

/* Kopf + Menü */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 50; }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blau-dunkel); }
.marke-text { font-size: 1.15rem; line-height: 1.1; }
.marke-text span { display: block; font-size: .85rem; color: var(--text-leise); }
.menue ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.menue a { text-decoration: none; color: var(--text); padding: .5em .75em; border-radius: 10px; display: block; white-space: nowrap; }
.menue a:hover, .menue a[aria-current="page"] { background: var(--gruen-hell); color: var(--blau-dunkel); }
.menue { display: flex; align-items: center; gap: 12px; }
.menue-knopf { display: none; background: none; border: 0; width: 48px; height: 48px; cursor: pointer; }
.balken, .balken::before, .balken::after { display: block; width: 26px; height: 3px; background: var(--blau-dunkel); border-radius: 2px; position: relative; margin: auto; content: ""; }
.balken::before { position: absolute; top: -8px; } .balken::after { position: absolute; top: 8px; }

@media (max-width: 1100px) {
  .menue-knopf { display: block; }
  .menue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--weiss); border-bottom: 1px solid var(--linie);
           flex-direction: column; align-items: stretch; padding: 12px 20px 20px; box-shadow: var(--schatten); }
  .menue.offen-menue { display: flex; }
  .menue ul { flex-direction: column; }
  .menue a { padding: .8em 1em; font-size: 1.15rem; }
}

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .5em; background: var(--gruen); color: #fff; border: 0;
         font: inherit; font-weight: 600; padding: .85em 1.4em; border-radius: 999px; text-decoration: none; cursor: pointer; min-height: 52px; white-space: nowrap; }
.knopf:hover { background: #33814c; color: #fff; }
.knopf-hell { background: var(--weiss); color: var(--blau-dunkel); border: 2px solid var(--linie); }
.knopf-hell:hover { background: var(--flaeche); color: var(--blau-dunkel); }
.knopf-blau { background: var(--blau); } .knopf-blau:hover { background: var(--blau-dunkel); }
.knopf-klein { min-height: 44px; padding: .55em 1.1em; font-size: 1rem; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.link-knopf { background: none; border: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* Abschnitte */
.abschnitt { padding: clamp(48px, 8vw, 88px) 0; }
.abschnitt-hell { background: var(--flaeche); }
.einleitung { font-size: 1.25rem; color: var(--text-leise); max-width: 46em; }
.schmal { max-width: 46em; }

.held { background: linear-gradient(135deg, #eef5fa 0%, var(--gruen-hell) 100%); padding: clamp(40px, 7vw, 80px) 0; }
.held-raster { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.held-bild { border-radius: 24px; box-shadow: var(--schatten); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.held-vorteile { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: .45em; }
.held-vorteile li::before { content: "✓"; color: var(--gruen); font-weight: 700; margin-right: .55em; }
@media (max-width: 900px) { .held-raster { grid-template-columns: 1fr; } .held-bild { order: -1; } }

.raster-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.raster-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .raster-3, .raster-2 { grid-template-columns: 1fr; } }

.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; box-shadow: var(--schatten); }
.schritt-nr { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center;
              background: var(--blau); color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: .7em; }
.haken { list-style: none; padding: 0; } .haken li { padding-left: 1.8em; position: relative; margin-bottom: .45em; }
.haken li::before { content: "✓"; position: absolute; left: 0; color: var(--gruen); font-weight: 700; }

.zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.5em 0; }
.zahl { background: var(--weiss); border-radius: var(--radius); padding: 20px; text-align: center; border: 1px solid var(--linie); }
.zahl strong { display: block; font-size: 2.2rem; color: var(--blau); line-height: 1.1; }
@media (max-width: 600px) { .zahlen { grid-template-columns: 1fr; } }

/* Kursplan */
.kursplan { width: 100%; border-collapse: collapse; background: var(--weiss); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.kursplan th, .kursplan td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--linie); }
.kursplan th { background: var(--blau); color: #fff; font-weight: 600; }
.kursplan tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--blau-dunkel); list-style: none; display: flex; justify-content: space-between; gap: 1em; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--gruen); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; }

/* Formular */
.formular { display: grid; gap: 18px; }
.formular label { font-weight: 600; display: block; margin-bottom: 6px; }
.formular input, .formular select, .formular textarea { width: 100%; font: inherit; padding: 14px 16px; border: 2px solid var(--linie); border-radius: 10px; background: #fff; }
.formular input:focus, .formular select:focus, .formular textarea:focus { border-color: var(--blau); outline: none; }
.formular .zustimmung { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.formular .zustimmung input { width: 24px; height: 24px; margin-top: 4px; flex: none; }
.honig { position: absolute; left: -5000px; }

/* Fuß */
.fuss { background: var(--blau-dunkel); color: #dbe7ef; padding-top: 48px; margin-top: 0; }
.fuss a { color: #fff; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.fuss-titel { color: #fff; font-weight: 700; margin-bottom: .4em; }
.fuss-unten { display: flex; flex-wrap: wrap; gap: 20px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding: 20px; font-size: .95rem; }
@media (max-width: 900px) { .fuss-raster { grid-template-columns: 1fr; } }

/* Einwilligung */
.einwilligung { position: fixed; inset: auto 0 0 0; z-index: 90; padding: 16px; }
.einwilligung-box { max-width: 760px; margin: 0 auto; background: var(--weiss); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.25); padding: 24px; border: 1px solid var(--linie); }
.einwilligung-titel { font-weight: 700; font-size: 1.2rem; color: var(--blau-dunkel); }
.einwilligung-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.rechtstext h2 { font-size: 1.4rem; margin-top: 1.6em; }
.rechtstext h3 { font-size: 1.15rem; margin-top: 1.2em; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.platz { display: inline-block; font-size: .95rem; padding: .15em .7em; border-radius: 999px; white-space: nowrap; }
.platz-frei { background: var(--gruen-hell); color: #20603a; }
.platz-wenige { background: var(--gelb); color: #5c4a00; }
.platz-voll { background: #f1e3e3; color: #7a2424; }

.menue a.knopf, .menue a.knopf:hover { color: #fff; background: var(--gruen); }
.menue a.knopf:hover { background: #33814c; }

/* Kursplan auf dem Handy: Zeilen als Karten statt abgeschnittener Tabelle */
@media (max-width: 600px) {
  .kursplan thead { display: none; }
  .kursplan, .kursplan tbody, .kursplan tr, .kursplan td { display: block; width: 100%; }
  .kursplan tr { padding: 14px 18px; border-bottom: 1px solid var(--linie); }
  .kursplan tr:last-child { border-bottom: 0; }
  .kursplan td { border: 0; padding: 2px 0; }
  .kursplan td:first-child { font-weight: 700; color: var(--blau-dunkel); }
}
