/* Grundlage für alle Seiten: Farben, Schrift, Glas, Kopfleiste, Startseite.
   Farben der Praxis: Navy und Teal. Schrift: Spectral, lokal eingebunden (css/fonts.css).
   Glas nur auf Flächen über einem Foto oder einer getönten Fläche. Ohne backdrop-filter
   und bei prefers-reduced-transparency wird daraus deckendes Weiß. */

:root {
  --navy: #0d1f3c;
  --navy-2: #1a3560;
  --teal: #00b09b;          /* nur Linien und Flächen, als Text zu hell (2,6:1) */
  --teal-tief: #00715f;     /* Text/Link-Akzent, 5,6:1 auf Weiß */
  --tinte: #14213a;         /* Fließtext, 15:1 */
  --grau: #4f5b70;          /* Nebentext, 7:1 */
  --linie: rgba(13, 31, 60, 0.14);
  --flaeche: #f2f5f9;
  --rot: #b3261e;           /* nur Notfall, 6,5:1 */
  --gelb: #8a5a00;          /* nur Ampel-Text, 5,9:1 */

  /* Glas: viel Durchsicht, kräftige Farben dahinter, helle Kante oben und feiner Innenrand */
  --glas-bg: rgba(255, 255, 255, 0.24);
  --glas-rand: rgba(255, 255, 255, 0.75);
  --glas-blur: blur(20px) saturate(190%);
  --glas-glanz: linear-gradient(155deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 38%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.12) 100%);
  --glas-schatten: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 0 0 1px rgba(255, 255, 255, 0.22) inset, 0 -1px 0 rgba(255, 255, 255, 0.18) inset, 0 12px 40px rgba(13, 31, 60, 0.14);

  --serif: 'Spectral', Georgia, serif;
  --sans: var(--serif);   /* Überall die Logo-Schrift Spectral */
  --text: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --abstand: clamp(4rem, 3rem + 5vw, 8rem);
  --breite: 74rem;
  --rund: 22px;
  --dauer: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--tinte); font: 400 var(--text)/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-tief); }
:focus-visible { outline: 3px solid var(--teal-tief); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--navy); margin: 0 0 0.6em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.innen { max-width: var(--breite); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.abschnitt { padding: var(--abstand) 0; }
.kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-tief); margin-bottom: 1rem; }
.lead { font-size: 1.15em; color: var(--grau); max-width: 38rem; }
.klein { font-size: 0.9rem; color: var(--grau); }
.offen { background: #fff3b0; color: #5c4400; font-size: 0.85em; padding: 0 0.3em; border-radius: 4px; }
.sprung { position: absolute; left: -999px; top: 0.5rem; z-index: 100; background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; }
.sprung:focus { left: 0.5rem; }

/* ---------- Glas ---------- */
.glas {
  background: var(--glas-glanz), var(--glas-bg);
  border: 1px solid var(--glas-rand);
  border-radius: var(--rund);
  box-shadow: var(--glas-schatten);
  -webkit-backdrop-filter: var(--glas-blur);
  backdrop-filter: var(--glas-blur);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glas, .kopf.ist-gescrollt { background: rgba(255, 255, 255, 0.96); }
}
@media (prefers-reduced-transparency: reduce) {
  .glas, .kopf.ist-gescrollt { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; font: 600 0.98rem var(--sans); text-decoration: none; transition: background var(--dauer), color var(--dauer), border-color var(--dauer); }
.knopf-voll { background: var(--navy); color: #fff; }
.knopf-voll:hover { background: var(--navy-2); color: #fff; }
.knopf-rand { border: 1.5px solid var(--navy); color: var(--navy); }
.knopf-rand:hover { background: var(--navy); color: #fff; }
.pfeil { font-weight: 600; text-decoration: none; display: inline-flex; gap: 0.4em; align-items: center; min-height: 44px; }

/* ---------- Kopfleiste ---------- */
.kopf { position: fixed; inset: 0 0 auto; z-index: 50; padding: 1rem 0; transition: background var(--dauer), box-shadow var(--dauer); }
/* Kopfleiste deckender als andere Glasflächen: Abschnittsname und Menü bleiben auch über dunklen Abschnitten lesbar */
.kopf.ist-gescrollt { background: var(--glas-glanz), rgba(255, 255, 255, 0.45); -webkit-backdrop-filter: var(--glas-blur); backdrop-filter: var(--glas-blur); box-shadow: 0 1px 0 var(--linie); }
/* Kopfleiste so breit wie der Bühnentext, damit Logo und Überschrift auf einer Linie stehen */
.kopf-innen { margin: 0; padding: 0 clamp(1rem, 5vw, 6rem); display: flex; align-items: center; gap: 1.5rem; }
/* Desktop: Dunkelmodus und Sprache nebeneinander, Online-Rezeption ganz rechts */
@media (min-width: 1081px) { .sprachwahl { order: 1; margin-left: -1.25rem; } .kopf-knopf { order: 2; } .menue-knopf { order: 3; } }
.kopf-knopf { white-space: nowrap; transition: opacity var(--dauer), visibility var(--dauer); }
.kopf:not(.zeige-knopf) .kopf-knopf { opacity: 0; visibility: hidden; }
.marke { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; text-decoration: none; color: var(--navy); margin-right: auto; }
.marke img { width: 62px; height: 62px; flex: none; }   /* Logo etwas größer */
.marke-text { display: flex; flex-direction: column; line-height: 1.2; }
.marke-text strong { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.marke-text span { font-size: 0.86rem; color: var(--grau); }
.kopf-nav { display: flex; gap: 1.4rem; align-items: center; }
.kopf-nav a { text-decoration: none; font-weight: 500; font-size: 1.02rem; padding: 0.6rem 0; white-space: nowrap; }
.nav-telefon { font-variant-numeric: tabular-nums; color: var(--teal-tief) !important; }
/* „Sie sind hier“ (js/rezeption.js): Menüpunkt mit Teal-Strich, Abschnittsname statt Untertitel unter dem Logo */
.kopf-nav a { border-bottom: 2px solid transparent; }
.kopf-nav a.ist-hier, .kopf-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--teal); }
.marke-text .marke-ort { max-width: 12.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--teal-tief); font-weight: 600; }
.marke-text.zeigt-ort > span:not(.marke-ort) { display: none; }
.marke-ort span { color: inherit; font-size: inherit; }
.menue-knopf { display: none; }
.marke { flex-shrink: 0; }
.marke-text { white-space: nowrap; }
/* Mittlere Breite: Kopfleiste mit Sprachwahl wird eng, die Nummer steht ohnehin in der Bühne */
@media (min-width: 1081px) and (max-width: 1279px) { .nav-telefon { display: none; } .kopf-innen { gap: 1rem; } .kopf-nav { gap: 1.1rem; } }
/* EN/FR-Texte sind länger: Nummer in der Kopfleiste auf allen Desktop-Breiten weglassen */
@media (min-width: 1081px) { html:not([lang="de"]) .nav-telefon { display: none; } }
/* Dunkelmodus-Umschalter (css/dunkel.css, js/rezeption.js): Desktop nur Symbol, im Handy-Menü mit Text */
.theme-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-width: 48px; min-height: 48px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--navy); font: 500 0.95rem var(--sans); cursor: pointer; }
.theme-knopf svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme-knopf .sonne, html[data-theme="dark"] .theme-knopf .mond { display: none; }
html[data-theme="dark"] .theme-knopf .sonne { display: block; }
.theme-knopf:hover { background: var(--navy); color: #fff; }
.theme-knopf:focus-visible { outline: 2px solid var(--teal-tief); outline-offset: 2px; }
.theme-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nur-deutsch { margin: 0; padding: calc(5.5rem + 0.5rem) clamp(1rem, 4vw, 2.5rem) 0.75rem; background: #fff3b0; color: #5c4400; font-size: 0.92rem; text-align: center; }
.nur-deutsch[hidden] { display: none; }

/* Sprachwahl: Weltkugel (wie bei arzt-direkt), darunter eine kleine Liste */
.sprachwahl { position: relative; flex: none; }
.sprach-knopf { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--navy); cursor: pointer; }
.sprach-knopf svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.sprach-knopf:hover, .sprach-knopf[aria-expanded="true"] { background: var(--navy); color: #fff; }
.sprach-liste { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 2; display: flex; flex-direction: column; min-width: 9.5rem; padding: 0.4rem 1rem; border-radius: 14px; background: #fff; box-shadow: var(--glas-schatten); }
.sprach-liste[hidden] { display: none; }
.sprach-liste button { min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--linie); background: none; color: var(--tinte); font: 500 0.95rem var(--sans); text-align: left; cursor: pointer; }
.sprach-liste button:last-child { border-bottom: 0; }
.sprach-liste button:hover { color: var(--navy); }
.sprach-liste button[aria-pressed="true"] { color: var(--teal-tief); font-weight: 700; }
.sprach-knopf:focus-visible, .sprach-liste button:focus-visible { outline: 2px solid var(--teal-tief); outline-offset: 2px; }

/* Formulare in Fenstern (Bewerbung, Terminanfrage): gleiche Hülle wie die Online-Rezeption */
.bewerbung-form, .termin-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feld { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.feld label { font-weight: 600; font-size: 0.92rem; }
.feld input, .feld select, .feld textarea { box-sizing: border-box; width: 100%; min-width: 0; font: inherit; padding: 0.7rem 0.85rem; min-height: 48px; border: 1px solid #b8c2cf; border-radius: 10px; background: #fff; color: var(--tinte); }
.feld textarea { min-height: 8rem; resize: vertical; }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--teal-tief); outline-offset: 1px; }
.feld small { color: var(--grau); }
.feld-fehler { color: var(--rot); font-size: 0.9rem; min-height: 1.2em; }
.versteckt { position: absolute; left: -9999px; }
.bewerbung-form .knopf, .termin-form .knopf { justify-content: center; width: 100%; }
.form-status { font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--teal-tief); }
.form-status.fehler { color: var(--rot); }
.wahl { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.stopp { margin: -0.25rem 0 0; padding: 0.75rem 0.9rem; border-radius: 10px; background: #fdf1f0; color: var(--rot); font-size: 0.92rem; }
.stopp[hidden] { display: none; }
.wahl legend { flex-basis: 100%; padding: 0; margin-bottom: 0.2rem; font-weight: 600; font-size: 0.92rem; }
.wahl label, .bestaetigen { display: flex; align-items: center; gap: 0.55rem; min-height: 44px; cursor: pointer; }
.bestaetigen { align-items: flex-start; padding-top: 0.6rem; min-height: 0; font-size: 0.95rem; }
.wahl input, .bestaetigen input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--navy); }
.bestaetigen input { margin-top: 0.2rem; }
@media (max-width: 640px) { .feld-paar { grid-template-columns: 1fr; } }

/* ---------- Bühne / Online-Rezeption ---------- */
.buehne { position: relative; padding: 7.5rem 0 4rem; background: var(--flaeche); overflow: hidden; }
.buehne-bild { position: absolute; inset: 0 0 0 40%; }
.buehne-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 46% center; }
.buehne-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--flaeche) 0%, rgba(242, 245, 249, 0) 8%); }
.buehne { min-height: min(52rem, 100vh); display: flex; align-items: center; }
/* Bühne: Text nutzt die linke Fläche bis zum Foto (ab 40 % der Breite) und wächst mit dem Bildschirm */
.buehne-innen { position: relative; width: 100%; margin: 0; padding: 0 clamp(1rem, 5vw, 6rem); display: grid; grid-template-columns: minmax(0, min(48rem, 34vw)); }
.buehne-knoepfe { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; margin-top: 1.75rem; }
.buehne-tel { margin: 0; font-size: 0.95rem; color: var(--grau); }
.buehne-tel a { font-weight: 600; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; min-height: 44px; }
.buehne-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0.75rem 0 0; }
.nur-handy { display: none; }
.buehne-karte p { margin-bottom: 0.9rem; }
.buehne-karte .klein { margin: 0.9rem 0 0; }
.buehne-text h1 { font-size: clamp(2.6rem, 1rem + 4.4vw, 6.25rem); letter-spacing: -0.02em; max-width: 14ch; text-wrap: balance; }
.buehne-lead { font-size: clamp(1.15em, 0.9em + 0.5vw, 1.45em); max-width: 40rem; }
.buehne-klein { font-size: 0.92rem; font-weight: 600; color: var(--navy); }

.rezeption { --glas-bg: rgba(255, 255, 255, 0.3); --glas-blur: blur(28px) saturate(200%); position: fixed; inset: 0.75rem 0.75rem 0.75rem auto; margin: 0; width: min(30rem, calc(100vw - 1.5rem)); max-height: calc(100vh - 1.5rem); height: auto; overflow-y: auto; padding: clamp(1.25rem, 3vw, 2rem); color: var(--tinte); }
.rezeption::backdrop { background: rgba(13, 31, 60, 0.16); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.rezeption[open] { animation: rein 220ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes rein { from { transform: translateX(1.5rem); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rezeption[open] { animation: none; } }
.schliessen { float: right; min-height: 44px; padding: 0 1rem; margin: -0.25rem -0.25rem 0.75rem 0.75rem; border: 1.5px solid var(--navy); border-radius: 999px; background: rgba(255, 255, 255, 0.7); color: var(--navy); font: 600 0.88rem var(--sans); cursor: pointer; }
.schliessen:hover { background: var(--navy); color: #fff; }
.zurueck { float: left; min-height: 44px; padding: 0 0.25rem; margin: -0.25rem 0 0.75rem -0.25rem; border: 0; background: none; color: var(--navy); font: 600 0.9rem var(--sans); cursor: pointer; }
.zurueck:hover { color: var(--teal-tief); }
.zurueck:focus-visible { outline: 2px solid var(--teal-tief); outline-offset: 2px; }
.zurueck + .kicker { clear: both; }
.zurueck:not([hidden]) + .kicker { display: none; }   /* sonst steht „Online-Rezeption“ doppelt */
.zurueck:not([hidden]) ~ h2 { clear: both; }
.rezeption h2 { font-size: 1.9rem; margin-bottom: 0.3em; }
.rezeption-lead { color: var(--grau); font-size: 0.98rem; }
.warnzeile { font-size: 0.88rem; line-height: 1.5; padding: 0.75rem 0.9rem; border-radius: 12px; background: rgba(179, 38, 30, 0.08); color: var(--tinte); margin-bottom: 1.25rem; }
.warnzeile strong, .warnzeile a { color: var(--rot); font-weight: 700; }
.anliegen { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--linie); }
.anliegen li { border-bottom: 1px solid var(--linie); }
.anliegen a { display: grid; grid-template-columns: 1fr; gap: 0.1rem 1rem; padding: 0.85rem 0.25rem; text-decoration: none; color: var(--tinte); border-radius: 10px; transition: background var(--dauer); }
.anliegen a:hover { background: rgba(255, 255, 255, 0.6); }
.anliegen-titel { font-weight: 600; color: var(--navy); }
.anliegen-text { font-size: 0.88rem; color: var(--grau); }
/* Ein Anliegen mit zwei Wegen (Rezept oder Überweisung): Titel und Text oben, zwei Links darunter */
.anliegen-paar { display: grid; gap: 0.15rem; padding: 0.85rem 0.25rem; }
.anliegen-wege { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 0.35rem; }
.anliegen-wege a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font-weight: 600; color: var(--navy); text-decoration: none; border-radius: 0; }
.anliegen-wege a:hover { background: none; color: var(--teal-tief); }
.anliegen-paar .modul { justify-self: start; margin-top: 0.35rem; font-size: 0.78rem; line-height: 1.45; }
/* Nur für Screenreader und die Abschnittsanzeige in der Kopfleiste */
.nur-vorlesen { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.notdienst { margin: 1.25rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.95rem; }
.anliegen .modul { grid-column: 1; justify-self: start; margin-top: 0.35rem; font-size: 0.78rem; line-height: 1.45; }
.rezeption-fuss { font-size: 0.92rem; margin: 0; }
.rezeption-fuss a { font-weight: 600; white-space: nowrap; }
.vorschau { font-size: 0.78rem; color: var(--grau); margin: 0.75rem 0 0; font-style: italic; }

/* ---------- Erster Termin ---------- */
.erster-knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 2.75rem; }
.erster-knoepfe + .liste-titel { margin-top: 0; }
.bilder-wege { padding-left: 0; list-style: none; counter-reset: weg; margin-top: 0; }
.bilder-wege li { padding: 0.9rem 0; line-height: 1.6; }
.bilder-wege li { counter-increment: weg; font-size: 1rem; }
.bilder-wege li::before { content: counter(weg) ". "; font-weight: 600; color: var(--navy); }
.erster-termin { border-top: 1px solid var(--linie); }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.liste-titel { font-family: var(--sans); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grau); margin: 0 0 0.6rem; }
.linienliste { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--linie); }
.linienliste li { padding: 0.7rem 0; border-bottom: 1px solid var(--linie); }
/* Checkliste „Bitte mitbringen“: eckige Kästchen in Navy, Haken weiß, erledigte Punkte treten zurück */
.checkliste li { padding: 0; }
.checkliste label { display: grid; grid-template-columns: 1.35rem 1fr; column-gap: 0.85rem; align-items: start; padding: 0.75rem 0; cursor: pointer; }
.checkliste input { appearance: none; -webkit-appearance: none; width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; border: 1.5px solid var(--navy); border-radius: 5px; background: #fff; display: grid; place-content: center; cursor: pointer; transition: background var(--dauer); }
.checkliste input::after { content: ""; width: 0.38rem; height: 0.7rem; margin-top: -0.12rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform var(--dauer); }
.checkliste input:checked { background: var(--navy); }
.checkliste input:checked::after { transform: rotate(45deg) scale(1); }
.checkliste input:focus-visible { outline: 3px solid var(--teal-tief); outline-offset: 2px; }
.checkliste input:checked ~ span { color: var(--grau); }
.checkliste small { grid-column: 2; margin-top: 0.3rem; font-size: 0.85rem; line-height: 1.45; color: var(--grau); }
.checkliste-hinweis { margin-top: -0.75rem; color: var(--grau); }
@media (prefers-reduced-motion: reduce) { .checkliste input, .checkliste input::after { transition: none; } }
.zuweiser { font-size: 0.95rem; color: var(--grau); }
.zuweiser strong { color: var(--navy); }

/* ---------- Leistungen: Inhalt + Kapitel ---------- */
.leistungen { background: var(--flaeche); }
.leistungen-raster { display: grid; grid-template-columns: 19rem 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.inhalt { position: sticky; top: 6rem; padding: 1.5rem; }
.inhalt h2 { font-size: 2rem; }
.inhalt ol { margin: 0; padding-left: 1.4rem; color: var(--grau); font-size: 0.95rem; }
.inhalt li { padding: 0; }
.inhalt a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; line-height: 1.3; padding: 0.35rem 0; }
.inhalt a:hover { text-decoration: underline; }
.kapitel-intro { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.4; color: var(--navy); margin-bottom: 2.5rem; }
.kapitel article { display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 1.25rem; padding: 1.6rem 0; border-top: 1px solid var(--linie); }
.kapitel .icon { grid-row: 1 / span 3; width: 4.5rem; height: 4.5rem; }
.kapitel .nr { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--teal-tief); font-variant-numeric: tabular-nums; }
.kapitel h3 { margin-bottom: 0.3rem; }
.kapitel p { margin: 0; color: var(--grau); max-width: 40rem; }

/* ---------- Warnzeichen (Ampel) ---------- */
.ampel { margin: 2rem 0; border-top: 1px solid var(--linie); }
.ampel-zeile { display: grid; grid-template-columns: 1fr 15rem; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--linie); }
.ampel-was { margin: 0; }
.ampel-tun { margin: 0; font-weight: 700; text-align: right; }
.ampel-tun a { display: inline-flex; align-items: center; min-height: 44px; }
.stufe-rot .ampel-tun, .stufe-rot .ampel-tun a { color: var(--rot); }
.stufe-gelb .ampel-tun, .stufe-gelb .ampel-tun a { color: var(--gelb); }
.nach-op { background: var(--flaeche); border-radius: var(--rund); padding: clamp(1.25rem, 3vw, 2rem); max-width: 48rem; }
.nach-op h3 { margin-bottom: 0.4rem; }
.nach-op p { margin: 0; }

/* ---------- Ärzteteam: Karussell ---------- */
.aerzte { background: var(--flaeche); }
.aerzte-kopf { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.aerzte-kopf h2 { margin: 0; }
.karussell-knoepfe { display: flex; gap: 0.5rem; }
.kein-umbruch { white-space: nowrap; }
.karussell-knopf { min-width: 48px; height: 44px; padding: 0 1rem; border-radius: 10px; border: 1.5px solid var(--navy); background: rgba(255, 255, 255, 0.7); color: var(--navy); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background var(--dauer), color var(--dauer); }
.karussell-knopf:hover { background: var(--navy); color: #fff; }
.karussell-knopf:disabled { opacity: 0.35; cursor: default; background: transparent; color: var(--navy); }
.karussell { list-style: none; margin: 0 0 2rem; padding: 0 0 1rem; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 3); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; }
@media (prefers-reduced-motion: reduce) { .karussell { scroll-behavior: auto; } }
/* Ärzte ohne Karte: nur Foto mit 8 px Ecken, darunter Name und Link */
.arzt-karte { scroll-snap-align: start; display: flex; flex-direction: column; }
.arzt-karte img, .foto-folgt { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 8px; }
.foto-folgt { display: grid; place-items: center; background: #e4e9f0; color: var(--grau); font-size: 0.9rem; }
.arzt-text { padding: 1rem 0 0; }
.arzt-text h3 { font-size: 1.45rem; margin-bottom: 0.2rem; }
.arzt-text p { color: var(--grau); margin-bottom: 0.5rem; font-size: 0.95rem; }

/* Leistungen: Bildfeld oben auf flacher Fläche, darunter Nummer, Titel, Text */
.leistung-karte { scroll-snap-align: start; scroll-margin-top: 7rem; background: #fff; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; padding-bottom: 1.4rem; }
.leistung-bild { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #e9f3f1; }
.leistung-bild img { height: 78%; width: auto; aspect-ratio: 1; object-fit: contain; }
.leistung-karte .nr { margin: 1.25rem 1.5rem 0.2rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--teal-tief); font-variant-numeric: tabular-nums; }
.leistung-karte h3 { margin: 0 1.5rem 0.4rem; font-size: 1.4rem; }
.leistung-karte p { margin: 0 1.5rem; color: var(--grau); font-size: 0.98rem; }
.leistung-karte .pfeil { margin-top: 0.5rem; }

/* ---------- Einleitung ---------- */
.einleitung-raster { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.einleitung h2 { margin: 0; }
.zertifikate-lose { display: flex; gap: 2rem; margin-top: 2.25rem; }
.zertifikate-lose figure { margin: 0; width: 9rem; text-align: center; }
.zertifikate-lose img { width: 9rem; height: 9rem; object-fit: contain; border-radius: 50%; }
.zertifikate-lose figcaption { margin-top: 0.6rem; font-size: 0.8rem; line-height: 1.4; color: var(--grau); }
.einleitung .lead { color: var(--tinte); }
.einleitung-fakten { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--linie); }
.einleitung-fakten li { padding: 0.7rem 0; border-bottom: 1px solid var(--linie); font-weight: 500; }
.einleitung-bewertung { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 1rem; }
.einleitung-bewertung strong { color: var(--navy); }
.bewertung-hinweis { flex-basis: 100%; font-size: 0.8rem; font-weight: 400; color: var(--grau); }
.nach-op p + p { margin-top: 0.6rem; }
.einwilligung h2:focus { outline: none; }
.linkedin-icon { width: 1.05em; height: 1.05em; margin-right: 0.45em; vertical-align: -0.15em; fill: currentColor; }
.google-g { width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin-right: 0.45em; display: inline-block; }

/* ---------- Ehrenamt: Foto quer ---------- */
.ehrenamt { position: relative; min-height: 34rem; display: flex; align-items: center; padding: var(--abstand) 0; overflow: hidden; }
.ehrenamt-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.ehrenamt .innen { position: relative; width: 100%; }
.ehrenamt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 31, 60, 0.92) 0%, rgba(13, 31, 60, 0.8) 38%, rgba(13, 31, 60, 0) 70%); z-index: 1; }
.ehrenamt .innen { z-index: 2; }
.ehrenamt-text { max-width: 30rem; color: #fff; }
.ehrenamt-text h2 { color: #fff; font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.5rem); }
.ehrenamt-text .kicker { color: #7fe3d4; }
.ehrenamt-text a { color: #fff; }
.vereine { list-style: none; padding: 0; margin: 1.5rem 0 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.vereine li { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.verein { display: grid; grid-template-columns: 2.75rem 1fr auto; /* Vereine vorerst ohne Link, bis die richtigen Adressen da sind */ gap: 1rem; align-items: center; padding: 0.9rem 0; text-decoration: none; }
a.verein:hover::after { transform: translateX(3px); }
.verein svg { width: 2.75rem; height: 2.75rem; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.verein-kisumu svg { stroke: #6cc0f0; }   /* Hellblau aus dem Kisumu-Logo */
.verein-kisumu svg circle { fill: #0d1f3c; }
.verein-doki svg { stroke: #7fe3d4; }      /* Türkis, bis die Farbe aus dem Logo da ist */
.verein span { display: flex; flex-direction: column; }
.verein strong { font-weight: 600; }
.verein small { font-size: 0.88rem; color: rgba(255, 255, 255, 0.78); }

/* ---------- Kontakt ---------- */
.kontakt { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
/* Foto der Rheintor Klinik hinter dem Kontakt, mit Navy-Schleier für lesbaren Text (links dichter) */
.kontakt::before { content: ""; position: absolute; inset: 0; background: url("../image/rheintor-klinik.webp") center 35% / cover no-repeat; }
.kontakt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 31, 60, 0.94) 0%, rgba(13, 31, 60, 0.86) 50%, rgba(13, 31, 60, 0.7) 100%); }
.kontakt > .innen { position: relative; z-index: 1; }
@media (max-width: 1080px) { .kontakt::after { background: rgba(13, 31, 60, 0.88); } }
.kontakt h2, .kontakt h3 { color: #fff; }
.kontakt a { color: #fff; }
.kontakt .kicker { color: #7fe3d4; }
.kontakt .klein { color: rgba(255, 255, 255, 0.78); }
.kontakt .liste-titel { color: rgba(255, 255, 255, 0.7); margin-top: 2rem; }
.kontakt .linienliste, .kontakt .linienliste li { border-color: rgba(255, 255, 255, 0.18); }
.kontakt .offen { color: #5c4400; }
.kontakt-raster { position: relative; display: grid; grid-template-columns: 1fr 26rem; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.adresse { font-size: 1.2rem; }
.telefon a { font-family: var(--serif); font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem); text-decoration: none; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; min-height: 48px; }
.zeiten { padding-top: 0.25rem; }
.kontakt .zeiten { padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: var(--rund); background: linear-gradient(155deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.06) 100%), rgba(13, 31, 60, 0.22); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 18px 50px rgba(0, 0, 0, 0.28); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
.zeiten h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.zeiten h3 + table { margin-bottom: 1.5rem; }
.zeiten table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.zeiten th, .zeiten td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); font-weight: 400; }
.zeiten th { font-weight: 600; width: 5.5rem; }

/* ---------- Karte quer (2-Klick) ---------- */
.karte { background: var(--navy); }
.karte-platz { position: relative; height: clamp(22rem, 40vw, 30rem); display: grid; place-items: center; background: var(--navy-2); }
.karte-platz iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.karte-hinweis { position: relative; max-width: 26rem; margin: 0 1rem; padding: 1.5rem; text-align: center; color: #fff; --glas-bg: rgba(255, 255, 255, 0.1); --glas-rand: rgba(255, 255, 255, 0.24); }
.karte-hinweis a { color: #fff; }
.karte-hinweis .knopf-voll { background: #fff; color: var(--navy); border: 0; cursor: pointer; margin: 0.25rem 0 0.9rem; }
.karte-hinweis .knopf-voll:hover { background: #7fe3d4; }
.karte-hinweis .klein { color: rgba(255, 255, 255, 0.8); margin: 0; }

/* ---------- Fuß: Glas über getönter Fläche ---------- */
.fuss { padding: 3rem 0 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.16); background: var(--navy); color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; }
.fuss a { color: #fff; }
.fuss-karte { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.fuss h2 { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #7fe3d4; margin: 0.5rem 0 0.75rem; }
.fuss nav { display: flex; flex-direction: column; }
.fuss nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: #fff; }
.fuss nav a:hover { color: #7fe3d4; text-decoration: underline; }
.fuss .marke, .fuss .marke-text strong { color: #fff; }
.fuss .marke-text span, .fuss .klein { color: rgba(255, 255, 255, 0.72); }
.fuss .marke img { background: #fff; border-radius: 50%; padding: 3px; }
.fuss-marke p { margin: 1rem 0 0; }
.fuss-marke .klein a { display: inline-flex; align-items: center; min-height: 44px; }
.fuss-marke .marke-text { display: flex; }
.fuss-leiste { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding: 1.25rem 0.5rem 0; font-size: 0.85rem; }
.fuss-leiste p { margin: 0; }
.fuss-leiste a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Einwilligung (Cookie-Banner) ---------- */
.einwilligung { position: fixed; z-index: 60; left: 1rem; bottom: 1rem; width: min(30rem, calc(100vw - 2rem)); padding: 1.4rem; font-size: 0.92rem; --glas-bg: rgba(255, 255, 255, 0.55); }
.einwilligung h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.einwilligung p { margin-bottom: 0.9rem; color: var(--tinte); }
.einwilligung-wahl { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.einwilligung-wahl[hidden], .einwilligung[hidden] { display: none; }
.einwilligung-wahl label { display: grid; grid-template-columns: auto 1fr; column-gap: 0.6rem; align-items: center; min-height: 44px; font-weight: 600; }
.einwilligung-wahl input { width: 1.2rem; height: 1.2rem; accent-color: var(--navy); }
.einwilligung-wahl small { grid-column: 2; font-weight: 400; color: var(--grau); }
.einwilligung-knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.einwilligung-knoepfe .knopf { min-height: 44px; padding: 0 1.1rem; font-size: 0.9rem; cursor: pointer; border: 0; }
.einwilligung-knoepfe .knopf-rand { border: 1.5px solid var(--navy); background: transparent; }
.fuss-link { min-height: 44px; padding: 0; border: 0; background: none; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.fuss-link:hover { color: #7fe3d4; text-decoration: underline; }

/* ---------- Responsiv ---------- */
@media (max-width: 1080px) {
  .kopf-nav { display: none; position: absolute; top: calc(100% + 0.5rem); left: 1rem; right: 1rem; flex-direction: column; align-items: stretch; gap: 0; padding: 0.75rem 1.25rem; border-radius: var(--rund); background: #fff; box-shadow: var(--glas-schatten); }
  .kopf-nav.ist-offen { display: flex; }
  .kopf-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--linie); }
  .kopf-nav a.ist-hier, .kopf-nav a[aria-current="page"] { border-bottom-color: var(--teal); font-weight: 600; }
  .kopf-nav .theme-knopf { justify-content: flex-start; border-radius: 0; padding: 0.85rem 0; }
  .kopf-nav .theme-knopf:hover { background: none; color: var(--teal-tief); }
  .kopf-nav .theme-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .menue-knopf { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--navy); border-radius: 999px; background: transparent; color: var(--navy); font: 600 0.92rem var(--sans); cursor: pointer; }
  .buehne-innen { grid-template-columns: 1fr; }
  .buehne { padding-top: 6.5rem; }
  .buehne-bild::after { background: linear-gradient(180deg, var(--flaeche) 0%, rgba(242, 245, 249, 0) 30%); }
  .leistungen-raster, .zwei-spalten, .kontakt-raster, .einleitung-raster { grid-template-columns: 1fr; }
  .fuss-karte { grid-template-columns: 1fr 1fr; }
  .fuss-marke { grid-column: 1 / -1; }
  .buehne { min-height: 0; flex-direction: column; align-items: stretch; padding-bottom: 0; }
  .buehne-innen { order: 1; }
  .buehne-bild { position: relative; order: 2; inset: auto; height: 20rem; margin-top: 2.5rem; }
  .buehne-bild::after { background: linear-gradient(180deg, var(--flaeche) 0%, rgba(242, 245, 249, 0) 18%); }
    .karussell { grid-auto-columns: calc((100% - 1.5rem) / 2); }
  .ehrenamt { min-height: 0; flex-direction: column; padding: 0 0 var(--abstand); }
  .ehrenamt-bild { position: relative; height: 18rem; }
  .ehrenamt { background: var(--navy); }
  .ehrenamt::before { display: none; }
  .ehrenamt-text { padding-top: 2rem; }
  .inhalt { position: static; }
  .inhalt ol { display: none; }
}
@media (max-width: 640px) {
  /* Handy: Fußbereich kompakter. Leistungen und Praxis nebeneinander, Rechtliches als eine Zeile */
  .fuss { padding-top: 2.25rem; }
  .fuss-karte { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; padding-bottom: 1.5rem; }
  .fuss-marke p { margin-top: 0.75rem; }
  .fuss h2 { margin: 0.25rem 0 0.25rem; }
  .fuss nav a, .fuss-link { min-height: 44px; font-size: 0.92rem; }
  .fuss nav[aria-labelledby="fuss-recht"] { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 1.25rem; }
  .fuss nav[aria-labelledby="fuss-recht"] h2 { flex-basis: 100%; }
  .fuss-leiste { padding-top: 1rem; }
  /* Name im Fuß zeigen: die Handy-Regel für die Kopfleiste blendet ihn sonst mit aus */
  .fuss .marke-text > strong, .fuss .marke-text > span:not(.marke-ort) { display: block; }
  .kopf-knopf { min-height: 44px; padding: 0 1rem; font-size: 0.88rem; }
  .kopf-innen { gap: 0.5rem; }
  .kopf:not(.zeige-knopf) .kopf-knopf { display: none; }
  /* Handy: neben dem Logo nur der aktuelle Abschnitt (Sprachen stehen im Menü) */
  .marke { flex-shrink: 1; min-width: 0; }
  .marke-text { display: flex; min-width: 0; }
  .marke-text > strong, .marke-text > span:not(.marke-ort) { display: none; }
  .marke-text .marke-ort { max-width: none; font-size: 0.9rem; }
  .marke-ort.mit-name .ort-seite { display: none; }
  .kopf-knopf { white-space: nowrap; padding: 0 0.85rem; font-size: 0.85rem; }
  /* Handy: Menü als runder Symbol-Knopf wie die Weltkugel. Das Wort „Menü“ bleibt als Name für Screenreader */
  .menue-knopf { position: relative; justify-content: center; width: 44px; padding: 0; font-size: 0; border: 0; border-radius: 50%; }
  .menue-knopf::before { content: ""; width: 18px; height: 2px; border-radius: 1px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
  .menue-knopf[aria-expanded="true"] { background: var(--navy); color: #fff; }
  .ampel-zeile { grid-template-columns: 1fr; gap: 0.4rem; }
  .ampel-tun { text-align: left; }
  .karussell { grid-auto-columns: 85%; }
  .aerzte-kopf { flex-direction: column; align-items: flex-start; }
  .kapitel article { grid-template-columns: 3rem 1fr; column-gap: 1rem; }
  .kapitel .icon { width: 3rem; height: 3rem; }
}
/* Sehr schmale Handys: etwas mehr Platz für den Abschnittsnamen, notfalls zwei Zeilen */
@media (max-width: 400px) {
  .kopf-innen { padding: 0 0.75rem; }
  .marke img { width: 38px; height: 38px; }
  .marke { gap: 0.45rem; }
  .kopf-knopf { padding: 0 0.7rem; font-size: 0.8rem; }
  .marke-text .marke-ort { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 0.82rem; line-height: 1.15; }
  /* Wenn der Knopf „Online-Rezeption“ in der Kopfleiste steht, ist kein Platz für den Abschnittsnamen: nur das Logo zeigen */
  .kopf.zeige-knopf .marke-ort { display: none; }
}

/* Weicher Übergang nur zwischen Ehrenamt und Kontakt */
.ehrenamt { background: var(--navy); }
.ehrenamt-bild { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 9rem), transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 9rem), transparent 100%); }
.kontakt::before { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8rem); mask-image: linear-gradient(180deg, transparent 0, #000 8rem); }
