/* Univ.-Prof. Dr. med. Michael J. Raschke – Designstand 03
   Unterseiten im Stil der Startseite 01e (Stilreferenz B-well):
   warmes Hellgrau, weiße abgerundete Flächen, Kacheln, dunkler Footer mit nummerierter Navigation. */

/* Manrope lokal einbinden, sobald die Schriftdateien vorliegen:
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope-Variable.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
*/

:root {
  --ink: #111418;
  --ink-soft: #2E343B;
  --text: #3A3F45;
  --muted: #5A6068;
  --line: #E4E4E0;
  --line2: #D0D0CA;
  --ground: #F5F5F2;
  --surface: #FFFFFF;
  --teal: #008A8D;
  --teal-dark: #006F72;
  --teal-pale: #DCEFEE;
  --sand: #F3EBD3;
  --night: #0E1116;
  --sans: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1184px;
  --gutter: 48px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  display: flex; flex-direction: column; min-height: 100vh;
}
body > main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--teal); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; font-size: 14px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 10; }

/* ---------- Kopf ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.35; }
.brand-name { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.brand-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; font-size: 17px; font-weight: 500; }
.site-nav a { text-decoration: none; display: inline-block; line-height: 20px; }
.site-nav li { line-height: 20px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal-dark); }
.site-nav a[aria-current="page"]:not([href="kontakt.html"]):not([href="contact.html"]) { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 10px; }
.site-nav a:is([href="kontakt.html"],[href="contact.html"])[aria-current="page"] { background: var(--teal); color: #fff; }
.site-nav a:is([href="kontakt.html"],[href="contact.html"]) { background: var(--teal-pale); padding: 10px 22px; border-radius: 999px; }
.site-nav a:is([href="kontakt.html"],[href="contact.html"]):hover { background: var(--teal); color: #fff; }
.site-nav .lang { color: var(--muted); font-weight: 400; }

/* ---------- Seiteneinstieg ---------- */
body > main.wrap { padding-bottom: 120px; }
.page-intro {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 56px;
  padding: 72px 0 48px; align-items: start;
}
/* Lesefluss von oben nach unten: Überschrift, türkiser Strich, Einleitung groß direkt darunter */
.page-intro h1 { grid-column: 1; font-size: 60px; line-height: 1.08; font-weight: 400; letter-spacing: -0.03em; color: var(--ink-soft); max-width: 900px; }
.page-intro h1::after { content: ""; display: block; width: 48px; height: 3px; background: var(--teal); margin-top: 28px; }
.page-intro > p { grid-column: 1; font-size: 18px; line-height: 1.65; color: var(--text); max-width: 760px; }
.page-intro > p:first-of-type { font-size: 22px; line-height: 1.55; color: var(--ink-soft); }
.page-intro > .quote { grid-column: 1 / -1; }
.page-intro:has(.intro-figure) { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; gap: 20px 56px; }
.page-intro:has(.intro-figure) h1 { grid-column: 1 / -1; grid-row: 1; margin-bottom: 16px; }
.page-intro:has(.intro-figure) > p { grid-column: 2; font-size: 18px; line-height: 1.65; max-width: 640px; }
.page-intro:has(.intro-figure) > p:first-of-type { grid-row: 2; }
.page-intro:has(.intro-figure) > p:nth-of-type(2) { grid-row: 3; }
.page-intro:has(.intro-figure) > .quote { grid-row: 5; }
.page-intro .intro-figure { grid-column: 1; grid-row: 2 / 5; align-self: start; margin: 0; }
.page-intro .intro-figure img { width: 100%; height: 500px; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); }

/* ---------- Abschnitte als weiße Flächen ---------- */
.row {
  background: var(--surface); border-radius: var(--radius);
  padding: 48px; margin-top: 16px;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px;
}
.row > h2 { font-size: 30px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.row-body { display: grid; gap: 20px; align-content: start; min-width: 0; }
/* Abschnitte mit Kacheln oder zwei Spalten nutzen die volle Breite */
.row:has(.steps), .row:has(.split) { grid-template-columns: 1fr; }
.row-body.wide { max-width: none; }
.lead { font-size: 26px; line-height: 1.4; font-weight: 400; color: var(--ink-soft); }
.note { font-size: 15px; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }

/* Patientensituationen: Liste mit Trennlinien wie auf der Startseite */
.situation { scroll-margin-top: 24px; padding: 16px 0; border-bottom: 1px solid var(--line2); }
.situation:first-of-type { border-top: 1px solid var(--ink); }
.situation strong { display: block; font-size: 19px; font-weight: 600; margin-bottom: 4px; }

/* Listen */
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.plain-list li { background: var(--sand); border-radius: 10px; padding: 16px 18px; font-weight: 500; }
.ruled-list { list-style: none; margin: 0; padding: 0; }
.ruled-list li { padding: 16px 0; border-bottom: 1px solid var(--line2); font-weight: 600; }
.ruled-list li:first-child { border-top: 1px solid var(--ink); }
.ruled-list .meta { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 2px; }

/* Zeitleiste */
.timeline { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 0; margin: 0; }
.timeline dt, .timeline dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.timeline dt { font-weight: 600; color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.timeline dd { margin: 0; color: var(--text); }

/* Ablauf als Kacheln */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: 980px; }
.steps li { --c: var(--teal-pale); counter-increment: step; position: relative; display: grid; grid-template-columns: 76px minmax(0, 260px) minmax(0, 1fr); padding: 0 0 12px; }
.steps li:nth-child(1) { --c: #F7E0DC; --k: #C8695B; }
.steps li:nth-child(2) { --c: #F8E7D8; --k: #C9824A; }
.steps li:nth-child(3) { --c: #F5EED6; --k: #AD8E2E; }
.steps li:nth-child(4) { --c: #E7F0DB; --k: #6E9A45; }
.steps li:nth-child(5) { --c: #DAEEDF; --k: #3E8A57; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step); grid-row: 1; grid-column: 1; margin-top: 16px; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--k); color: var(--k); font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 24px; top: 66px; bottom: -16px; width: 2px; background: var(--k); opacity: .35; }
.steps li:last-child::after { display: none; }
.steps strong { grid-column: 2; background: var(--c); border-radius: 12px 0 0 12px; padding: 26px 24px 26px 28px; font-weight: 600; font-size: 20px; line-height: 1.3; }
.steps span { grid-column: 3; background: var(--c); border-radius: 0 12px 12px 0; padding: 26px 28px 26px 8px; font-size: 17px; line-height: 1.6; color: var(--text); }
.steps + .note { margin-top: 36px; }
@media (max-width: 760px) {
  .steps li { grid-template-columns: 52px minmax(0, 1fr); }
  .steps li::before { grid-row: 1 / span 2; align-self: start; width: 40px; height: 40px; font-size: 16px; margin-top: 18px; }
  .steps li::after { left: 20px; top: 60px; }
  .steps strong { grid-column: 2; border-radius: 12px 12px 0 0; padding: 20px 20px 4px; font-size: 18px; }
  .steps span { grid-column: 2; border-radius: 0 0 12px 12px; padding: 4px 20px 20px; font-size: 16px; }
}

/* Zwei Spalten */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.split > div { background: var(--sand); border-radius: 12px; padding: 28px; }
.split > div:nth-child(2) { background: var(--teal-pale); }
.split h3 { font-size: 26px; line-height: 1.25; font-weight: 600; margin-bottom: 10px; }
.split .ruled-list li, .split .ruled-list li:first-child { border: 0; padding: 10px 0; }

/* Standorte */
.locations { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.locations strong { font-weight: 600; font-size: 18px; }

/* Zitat */
.quote { margin: 8px 0 0; background: var(--teal-pale); border-radius: var(--radius); padding: 40px 48px; display: grid; gap: 14px; }
.quote blockquote { margin: 0; font-size: 30px; line-height: 1.35; font-weight: 400; letter-spacing: -0.01em; color: var(--ink-soft); max-width: 880px; }
.quote figcaption { font-size: 15px; font-weight: 600; }
.quote figcaption::before { content: ""; display: block; width: 32px; height: 2px; background: var(--teal); margin-bottom: 12px; }

/* Bild */
.figure { margin: 0; display: grid; gap: 10px; }
.figure img { width: 100%; height: auto; background: #111; border-radius: 12px; }
.figure figcaption { font-size: 14px; color: var(--muted); }

/* Formular */
.form { display: grid; gap: 18px; font-size: 15px; }
.form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); border: 1px solid var(--line2); border-radius: 10px; background: var(--ground); padding: 12px 14px; min-height: 48px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); background: #fff; }
.form textarea { min-height: 140px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { min-height: 0; margin-top: 4px; accent-color: var(--teal); }
.form button { justify-self: start; font: inherit; font-weight: 600; background: var(--teal-pale); color: var(--teal-dark); border: 0; border-radius: 999px; padding: 13px 28px; min-height: 48px; cursor: pointer; }
.form button:hover { background: var(--teal); color: #fff; }
.form .hint { color: var(--muted); font-size: 14px; }

/* Ihre Situation: Fragen links, ausgewählte Frage groß mit Antwort rechts */
.row.situations { grid-template-columns: 1fr; }
.sit-cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.sit-list { flex: 1 1 340px; display: flex; flex-direction: column; }
.sit-list button { all: unset; cursor: pointer; display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line2); font-size: 20px; line-height: 1.35; color: var(--text); }
.sit-list button .nr { font-size: 13px; font-weight: 600; color: var(--muted); min-width: 22px; }
.sit-list button:hover { color: var(--ink); }
.sit-list button[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--teal); }
.sit-list button[aria-selected="true"] .nr { color: var(--teal-dark); }
.sit-list button:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.sit-answer { flex: 999 1 480px; min-width: 0; background: var(--sand); border-radius: var(--radius); padding: 48px; min-height: 380px; display: flex; }
.sit-answer .panel { display: flex; flex-direction: column; gap: 22px; width: 100%; scroll-margin-top: 24px; }
.sit-answer .panel[hidden] { display: none; }
.sit-answer .q { font-size: 38px; line-height: 1.2; font-weight: 400; letter-spacing: -0.02em; color: var(--ink-soft); }
.sit-answer .q::after { content: ""; display: block; width: 40px; height: 2px; background: var(--teal); margin-top: 22px; }
.sit-answer .a { font-size: 22px; line-height: 1.55; color: var(--text); max-width: 600px; }
.sit-answer .arrow { margin-top: auto; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
@media (max-width: 900px) { .sit-answer { padding: 28px 24px; min-height: 0; } .sit-answer .q { font-size: 28px; } .sit-answer .a { font-size: 18px; } }

/* Seiteneinstieg mit Vollbild-Hintergrund: Person links, Text rechts auf der ruhigen Wandfläche */
.page-intro.intro-hero {
  margin: 0 calc(50% - 50vw); padding: 120px max(var(--gutter), calc(50vw - 544px)) 128px;
  min-height: 600px; align-content: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  background:
    linear-gradient(90deg, rgba(245,245,242,0) 35%, rgba(245,245,242,.55) 55%, rgba(245,245,242,.82) 75%, rgba(245,245,242,.88) 100%),
    url("../img/op-profil-hell.jpg") left center / auto 100% no-repeat,
    #C0C5B9;
}
.page-intro.intro-hero h1, .page-intro.intro-hero > p { grid-column: 2; }
.page-intro.intro-hero > p:first-of-type { color: var(--ink); }
@media (max-width: 900px) {
  .page-intro.intro-hero {
    min-height: 0; padding: 260px var(--gutter) 48px; grid-template-columns: 1fr;
    background:
      linear-gradient(180deg, rgba(245,245,242,0) 35%, rgba(245,245,242,.85) 75%, #F5F5F2 100%) top / 100% 440px no-repeat,
      url("../img/op-profil-hell.jpg") 20% top / auto 440px no-repeat,
      #F5F5F2;
  }
  .page-intro.intro-hero h1, .page-intro.intro-hero > p { grid-column: 1; }
}

/* Platzhalter */
.ph { background: #FFF4CC; padding: 0 3px; }

/* ---------- Fuß (wie Startseite 01e) ---------- */
.site-footer { background: #005F62; color: #fff; padding: 64px var(--gutter) 40px; }
.site-footer .in { max-width: 1088px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 48px; }
.site-footer .who { flex: 1 1 260px; font-size: 14px; color: #CFE8E8; }
.site-footer .who b { display: block; color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.site-footer nav { flex: 2 1 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.site-footer nav a { color: #fff; text-decoration: none; font-size: 22px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.site-footer nav a:hover { color: var(--teal-pale); }
.site-footer nav a small { font-size: 12px; color: #CFE8E8; margin-right: 12px; }
.site-footer .legal { max-width: 1088px; margin: 48px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: #CFE8E8; }
.site-footer .legal a { color: #CFE8E8; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .page-intro { grid-template-columns: 1fr; padding: 48px 0 32px; }
  .page-intro h1, .page-intro > p, .page-intro .intro-figure, .page-intro:has(.intro-figure) > p, .page-intro:has(.intro-figure) h1 { grid-column: 1; grid-row: auto; }
  .page-intro:has(.intro-figure) { grid-template-columns: 1fr; grid-template-rows: none; }
  .page-intro:has(.intro-figure) > p:first-of-type, .page-intro:has(.intro-figure) > p:nth-of-type(2), .page-intro:has(.intro-figure) > .quote { grid-row: auto; }
  .page-intro .intro-figure img { height: 420px; }
  .page-intro h1 { font-size: 44px; }
  .row { padding: 32px 24px; grid-template-columns: 1fr; }
  .row > h2 { font-size: 26px; }
  .split { grid-template-columns: 1fr; }
  .quote { padding: 28px 24px; }
  .quote blockquote { font-size: 24px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .site-nav ul { gap: 8px 20px; font-size: 16px; }
  .brand-name { font-size: 19px; }
  .page-intro h1 { font-size: 36px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline dt { border-bottom: 0; padding-bottom: 0; }
  .form .two { grid-template-columns: 1fr; }
  .site-footer nav { grid-template-columns: 1fr; }
}

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 13px 28px; border-radius: 999px; background: var(--teal-pale); color: var(--teal-dark); font-size: 16px; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--teal); color: #fff; }

/* Hamburger-Menü (mobil) */
.nav-toggle{display:none}
@media (max-width:1080px){
  .js .nav-toggle{display:inline-flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:44px;height:44px;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;flex:none;gap:7px;margin-right:-6px}
  .js .nav-toggle span{display:block;width:30px;height:2.5px;border-radius:2px;background:var(--ink);transition:transform .2s ease,opacity .2s ease}
  .js .nav-open .nav-toggle span:nth-child(1){transform:translateY(9.5px) rotate(45deg)}
  .js .nav-open .nav-toggle span:nth-child(2){opacity:0}
  .js .nav-open .nav-toggle span:nth-child(3){transform:translateY(-9.5px) rotate(-45deg)}
  .js .site-header .wrap,.js body>header .wrap{flex-wrap:nowrap;align-items:center}
  .js .brand{flex:1;min-width:0}
  .js .site-header .wrap,.js body>header .wrap{flex-wrap:wrap}
  .js .site-nav,.js nav.main{display:none;flex-basis:100%;order:3}
  .js .nav-open .site-nav,.js .nav-open nav.main{display:block;padding:8px 0 4px}
  .js .nav-open .site-nav ul{display:flex;flex-direction:column;align-items:stretch;gap:0;font-size:18px}
  .js .nav-open .site-nav li,.js .nav-open nav.main>a:not(.pill){display:block;border-bottom:1px solid var(--line)}
  .js .nav-open .site-nav li:not(.lang) a:not([href="kontakt.html"]):not([href="contact.html"]),.js .nav-open nav.main>a:not(.pill){display:block;padding:14px 0;font-size:18px;line-height:24px}
  .js .nav-open .site-nav li:has(a:is([href="kontakt.html"],[href="contact.html"])),.js .nav-open .site-nav li.lang{border-bottom:0}
  .js .nav-open .site-nav a:is([href="kontakt.html"],[href="contact.html"]),.js .nav-open nav.main .pill{display:inline-block;margin:18px 0 6px;padding:12px 24px;font-size:18px}
  .js .nav-open nav.main{font-size:18px}
  .js .nav-open .site-nav .lang,.js .nav-open nav.main .lang{display:block;padding:10px 0 4px;font-size:16px}
}

/* Kontaktformular: Spamschutz und Statusmeldung */
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 14px 18px; border-radius: 12px; font-size: 16px; line-height: 1.5; }
.form-status.is-ok { background: #DAEEDF; color: #1F5B34; }
.form-status.is-fehlt, .form-status.is-fehler { background: #F7E0DC; color: #7A2E22; }

.site-footer .who a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
