/* ===================== TOKENS ===================== */
:root {
  --navy: #16355b;
  --navy-dark: #102844;
  --ink: #2b3138;
  --muted: #7c8893;
  --bg: #ffffff;
  --card: #ffffff;
  --shadow: 0 18px 40px rgba(16, 40, 68, 0.14);
  /* Container skaliert mit und greift erst auf sehr breiten/4K-Displays */
  --container: clamp(1400px, 84vw, 2700px);
  /* Schrift: Inter (lokal self-gehostet) */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Karten-Überlapp übers Bild – skaliert proportional mit */
  --cards-pull: clamp(150px, 9.5vw, 280px);
  /* gemeinsame Breite von Kartenreihe + Infotext darunter */
  --cards-width: clamp(1040px, 70vw, 2700px);
}

/* ===================== INTER (lokal, Variable) =====================
   Selbst gehostet -> keine externen Requests (DSGVO), offline-fähig. */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

* { box-sizing: border-box; }

/* Lenis Smooth Scrolling */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

html {
  /* fluide Basisgröße: skaliert sanft mit – auf 4K größer, ohne Sprünge */
  font-size: clamp(18px, 0.55vw + 9px, 26px);
  overflow-x: clip;
  /* reserviert den Scrollbalken-Platz dauerhaft -> kein Springen beim Modal-Öffnen */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: clip;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===================== HERO ===================== */
.hero-pin { position: relative; }  /* Desktop: ohne Wirkung; Mobil: Pin-Spacer */
.hero {
  position: relative;
  width: 100%;
  min-height: 110vh;
  overflow: hidden;
  background: #e9eaea;
}

.hero__bg {
  position: absolute;
  /* Bild nach oben geschoben -> Koepfe sitzen hoeher (Hero clippt oben) */
  top: -10%;
  left: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center top;
  display: block;
  will-change: transform;
}

/* Freigestellte Ärztinnen */
.hero__people {
  position: absolute;
  left: 50%;
  bottom: 0;
  /* unten buendig -> Schnittkante liegt am Hero-Boden (Karten verdecken sie) */
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* Abstand zwischen den Frauen (negativ moeglich via margin unten) */
  gap: 0;
  z-index: 3;
  pointer-events: none;
}
.hero__person {
  width: auto;
  display: block;
  /* weicher Schatten nach hinten links, folgt der Personen-Silhouette */
  filter: drop-shadow(-34px 18px 48px rgba(16, 30, 50, 0.52));
}
/* gleicher Maßstab -> Höhen proportional zur Originalhöhe (1606 bzw. 1684) */
.hero__person--agnes   { height: 100vh; }
.hero__person--carolin { height: 104.9vh; }
/* negativer Versatz, da die freigestellten Bilder zur Mitte transparenten Rand haben */
.hero__person--carolin { margin-left: clamp(-40px, -2vw, -14px); }

/* Navigation */
.nav {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 34px 48px;
  color: var(--navy);
  font-weight: 500;
  font-size: 1.02rem;
}
.nav a { transition: opacity 0.2s ease; }
.nav a:hover { opacity: 0.65; }
.nav__phone { font-weight: 600; }

/* ===================== HINWEIS-BANNER ===================== */
.hinweis {
  width: 100%;
  background: var(--navy);
  color: #fff;
  position: relative;
  z-index: 60;
}
.hinweis[hidden] { display: none; }
.hinweis__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
}
.hinweis__label {
  flex: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 11px;
  border-radius: 999px;
}
.hinweis__content { margin: 0; font-size: 0.95rem; line-height: 1.45; }
.hinweis__titel { font-weight: 700; margin-right: 6px; }
.hinweis__text { font-weight: 400; opacity: 0.92; }
@media (max-width: 760px) {
  .hinweis__inner { padding: 10px 18px; gap: 8px; }
  .hinweis__content { font-size: 0.85rem; }
}

/* Logo */
.hero__logo {
  position: fixed;
  top: 4vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  /* +20% gegenüber vorher (clamp(180px,14vw,360px)) */
  width: clamp(216px, 16.8vw, 432px);
  max-width: 48vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  pointer-events: none;
  will-change: top;
}
.hero__brunnen {
  position: relative;
  width: 37%;
  z-index: 2;
  transform-origin: top center;
  will-change: transform;
}
.brunnen-outline { width: 100%; height: auto; display: block; }
.brunnen-solid {
  position: absolute; inset: 0;
  width: 100%; height: auto; display: block;
  opacity: 0;
}
.hero__wordmark {
  width: 100%; height: auto; display: block;
  position: relative;
  z-index: 1;
  transform-origin: top center;
  will-change: transform, opacity;
}

/* Ärztinnen-Labels */
.doc {
  position: absolute;
  z-index: 4;
  margin: 0;
  color: #ffffff;
  font-size: clamp(0.95rem, 1vw, 1.6rem);
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(16, 40, 68, 0.45);
}
.doc__name { font-weight: 700; }
.doc__role { font-weight: 400; }
.doc--left {
  left: 23%;
  top: 68%;
  text-align: left;
}
.doc--right {
  right: 21%;
  top: 68%;
  text-align: left;
}

/* vom Bildschirmrand einfliegen */
@media (prefers-reduced-motion: no-preference) {
  .doc--left  { animation: docInLeft 1.1s cubic-bezier(0.18, 0.7, 0.18, 1) 0.3s both; }
  .doc--right { animation: docInRight 1.1s cubic-bezier(0.18, 0.7, 0.18, 1) 0.55s both; }
}
@keyframes docInLeft {
  from { opacity: 0; transform: translateX(-60vw); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes docInRight {
  from { opacity: 0; transform: translateX(60vw); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- Info-Button (Liquid Glass, pulsierend) oben-links am Namen ---- */
.docinfo-toggle {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-135%, -85%);
  z-index: 6;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  cursor: pointer;
  display: grid;
  place-items: center;
  pointer-events: auto;
  animation: docPulse 2.4s ease-out infinite;
}
.docinfo-toggle::before,
.docinfo-toggle::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 2px;
}
.docinfo-toggle::before { width: 42%; height: 2px; }
.docinfo-toggle::after  { width: 2px; height: 42%; }
@keyframes docPulse {
  0%   { box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 0 0 0 rgba(255,255,255,0.5); }
  70%  { box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 0 0 15px rgba(255,255,255,0); }
  100% { box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 0 0 0 rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) { .docinfo-toggle { animation: none; } }

/* ---- Bio-Modal (zentrierte Karte je Ärztin) ---- */
.docinfo {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  pointer-events: none;
}
.docinfo.open { pointer-events: auto; }
.docinfo__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 40, 68, 0.42);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.docinfo.open .docinfo__backdrop { opacity: 1; }
.docinfo__panel {
  position: relative;
  /* skaliert proportional mit (wie der Rest der Seite) */
  width: min(94vw, clamp(560px, 44vw, 1200px));
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(16, 40, 68, 0.32);
  /* Query-Container -> Innenleben skaliert in cqw mit der Box-Breite */
  container-type: inline-size;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.docinfo.open .docinfo__panel { opacity: 1; transform: none; }
.docinfo__inner { padding: clamp(28px, 6.5cqw, 96px) clamp(26px, 7cqw, 100px); }
.docinfo__logo {
  display: block;
  width: clamp(44px, 10cqw, 112px);
  height: auto;
  margin: 0 auto clamp(13px, 2.8cqw, 42px);
}
.docinfo__close {
  position: absolute;
  top: clamp(12px, 1.4vw, 26px);
  right: clamp(14px, 1.6vw, 30px);
  width: 1.5em;
  height: 1.5em;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: clamp(1.5rem, 1.9vw, 2.8rem);
  line-height: 1;
  color: var(--navy);
  transition: opacity 0.2s ease;
  z-index: 2;
}
.docinfo__close:hover { opacity: 0.6; }
.docinfo h3 {
  margin: 0 0 0.25em;
  font-size: clamp(1.35rem, 4.6cqw, 3.4rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}
.docinfo__sub {
  margin: 0 0 clamp(18px, 3.4cqw, 54px);
  text-align: center;
  color: var(--muted);
  font-size: clamp(1rem, 2.6cqw, 2rem);
}
/* Einleitungssatz über dem Werdegang */
.docinfo__intro {
  margin: 0 0 clamp(14px, 2cqw, 30px);
  color: var(--ink);
  font-size: clamp(0.98rem, 2.5cqw, 1.95rem);
  line-height: 1.55;
}
.docinfo__intro strong { color: var(--navy); font-weight: 700; }

/* Werdegang: dünne Linien statt Aufzählungspunkten; Jahr fett links, Text in gleicher Zeile rechts */
.bio__item {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: clamp(8px, 1.2cqw, 22px);
  align-items: baseline;
  padding: clamp(10px, 1.5cqw, 22px) 0;
  font-size: clamp(0.98rem, 2.5cqw, 1.95rem);   /* steuert die em-Spaltenbreite */
}
.bio__item + .bio__item { border-top: 1px solid rgba(22, 53, 91, 0.14); }
.bio__year {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}
.bio__text {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.95rem, 2.35cqw, 1.85rem);
  line-height: 1.5;
}

/* ===================== SPRECHZEITEN ===================== */
.sprechzeiten {
  position: relative;
  background: var(--bg);
  padding-bottom: 60px;
  /* Anker-Sprung (nativ) stoppt hoeher, damit die hochgezogenen Karten sichtbar sind */
  scroll-margin-top: calc(var(--cards-pull) + 120px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  /* Abstand skaliert mit der Kartenbreite */
  gap: clamp(10px, 1cqw, 22px);
  /* ~70% der Fläche, fluide – nie zu schmal, auf 4K gedeckelt */
  width: var(--cards-width);
  margin-left: auto;
  margin-right: auto;
  /* macht .cards zum Query-Container: das Innenleben skaliert in cqw mit */
  container-type: inline-size;
  /* Tiefe fuer den 3D-Flatter-Effekt der einzelnen Blaetter */
  perspective: 1400px;
  /* per top nach oben schieben (kein margin-top -> kein Margin-Collapse,
     die weisse Sektionsflaeche bleibt unten, Bild scheint zwischen den Boxen durch) */
  position: relative;
  top: calc(var(--cards-pull) * -1);
  margin-bottom: calc(var(--cards-pull) * -1);
  z-index: 6;
}

.card {
  display: flex;
  /* Schatten folgt der gekerbten Form (drop-shadow statt box-shadow,
     da mask den box-shadow wegschneiden wuerde) */
  filter: drop-shadow(0 20px 24px rgba(16, 40, 68, 0.22));
  /* haengt oben an den "Loechern" -> wippt von der Oberkante */
  transform-origin: top center;
  will-change: transform;
}

/* Kalenderblatt wird "angestossen" und schwingt gedaempft aus.
   Wird per JS bei mouseenter ausgeloest und laeuft immer ganz durch. */
@media (prefers-reduced-motion: no-preference) {
  .card.sway {
    animation: sway 2.4s ease-in-out both;
  }
}

@keyframes sway {
  0%   { transform: rotate(0deg)     rotateY(0deg); }
  12%  { transform: rotate(1.5deg)   rotateY(7deg); }
  28%  { transform: rotate(-1deg)    rotateY(-4.6deg); }
  44%  { transform: rotate(0.65deg)  rotateY(3deg); }
  60%  { transform: rotate(-0.42deg) rotateY(-1.9deg); }
  76%  { transform: rotate(0.26deg)  rotateY(1.1deg); }
  88%  { transform: rotate(-0.13deg) rotateY(-0.55deg); }
  100% { transform: rotate(0deg)     rotateY(0deg); }
}

.card__inner {
  flex: 1;
  background: var(--card);
  /* Padding & Höhe in cqw -> Karte behält ihre Proportionen beim Skalieren */
  padding: clamp(20px, 2.5cqw, 52px) clamp(16px, 2cqw, 42px) clamp(24px, 3cqw, 60px);
  min-height: clamp(240px, 27cqw, 580px);
  display: flex;
  flex-direction: column;

  /* Kalender-Kerben: zwei ausgeschnittene Halbkreise oben an der Kante */
  --notch-r: clamp(9px, 1.05cqw, 21px);
  -webkit-mask:
    radial-gradient(circle var(--notch-r) at 18% top, #0000 98%, #000),
    radial-gradient(circle var(--notch-r) at 82% top, #0000 98%, #000);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle var(--notch-r) at 18% top, #0000 98%, #000),
    radial-gradient(circle var(--notch-r) at 82% top, #0000 98%, #000);
  mask-composite: intersect;
}

.card__eyebrow {
  font-size: clamp(11px, 1.15cqw, 22px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(22, 53, 91, 0.55);
}
.card__today {
  display: none;
  color: var(--navy);
}
/* heutige Karte: "Heute" ersetzt "Sprechzeiten" */
.card.is-today .card__label { display: none; }
.card.is-today .card__today { display: inline; }

/* heutige Karte sitzt einen Tick hoeher */
.card.is-today {
  position: relative;
  top: calc(-1 * clamp(18px, 2cqw, 40px));
}
.card__day {
  margin: clamp(36px, 4.8cqw, 96px) 0 0;
  font-size: clamp(20px, 2.15cqw, 42px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
}
.card__time {
  margin: clamp(28px, 4cqw, 80px) 0 0;
  font-size: clamp(17px, 1.9cqw, 36px);
  font-weight: 700;
  white-space: nowrap;
  color: var(--navy);
}

.sprechzeiten__info {
  width: var(--cards-width);
  margin: 35px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.sprechzeiten__text p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1.05rem;
}
.sprechzeiten__text strong { color: var(--ink); font-weight: 600; }
.sprechzeiten__kassen {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* ===================== HAUSARZTPRAXIS AM BRUNNECK ===================== */
.intro { padding: clamp(47px, 4.7vw, 147px) 0 clamp(35px, 3.5vw, 110px); }
.intro__grid {
  width: var(--cards-width);
  margin: 0 auto;
  container-type: inline-size;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6cqw, 180px);
  align-items: start;
}
.intro__title {
  margin: 0;
  font-size: clamp(2.4rem, 5.2cqw, 8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.intro__text {
  margin: 0;
  font-size: clamp(1.2rem, 1.9cqw, 3rem);
  line-height: 1.5;
  color: var(--navy);
}

/* ===================== LEISTUNGSSPEKTRUM ===================== */
.leistungen { padding: clamp(40px, 4vw, 130px) 0; }
.leistungen__grid {
  width: var(--cards-width);
  margin: 0 auto;
  container-type: inline-size;
}
.leistungen__title {
  margin: 0 0 clamp(16px, 2cqw, 44px);
  font-size: clamp(20px, 2.15cqw, 42px);   /* wie "IHR WEG ZU UNS." */
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
}

.accordion { border-top: 1px solid rgba(22, 53, 91, 0.18); }
.acc-item { border-bottom: 1px solid rgba(22, 53, 91, 0.18); }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2cqw, 48px);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--navy);
  font-family: inherit;
  font-size: clamp(1.2rem, 1.9cqw, 3rem);   /* wie Intro-Fließtext */
  font-weight: 600;
  line-height: 1.3;
  padding: clamp(16px, 1.9cqw, 44px) 0;
}
/* Plus-Icon rechts */
.acc-icon {
  position: relative;
  flex: none;
  width: 0.72em;
  height: 0.72em;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--navy);
}
.acc-icon::before { width: 100%; height: 2px; transform: translate(-50%, -50%); }
.acc-icon::after {
  width: 2px;
  height: 100%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.acc-item.open .acc-icon::after { transform: translate(-50%, -50%) scaleY(0); }

/* aufklappbarer Inhalt (sanfte Höhen-Animation) */
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}
.acc-panel-inner { overflow: hidden; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel ul {
  margin: 0;
  padding: 0 0 clamp(18px, 2cqw, 48px) 1.25em;
  color: var(--ink);
  font-size: clamp(1rem, 1.45cqw, 2.2rem);
  line-height: 1.6;
}
.acc-panel li { margin: 0 0 0.4em; }

/* ===================== IHR WEG ZU UNS ===================== */
.weg { padding: clamp(35px, 3vw, 100px) 0 clamp(22px, 2vw, 65px); }
.weg__grid {
  position: relative;
  /* gleiche zentrierte Breite wie die Karten oben -> Text fluchtet links */
  width: var(--cards-width);
  margin: 0 auto;
  /* ~ Hoehe der Illustration -> kaum Leerraum unter der Grafik */
  min-height: clamp(300px, 29.5cqw, 800px);
  /* Query-Container: Innenleben skaliert in cqw mit (wie der obere Abschnitt) */
  container-type: inline-size;
}
.weg__content h2 {
  margin: 0 0 clamp(18px, 2cqw, 52px);
  font-size: clamp(20px, 2.15cqw, 42px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
}
.lines { display: flex; gap: clamp(8px, 0.9cqw, 22px); flex-wrap: wrap; margin-bottom: clamp(20px, 2.2cqw, 56px); }
.line {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 0.7cqw, 16px);
  background: var(--navy);
  border-radius: 3px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.15rem, 1.7cqw, 2.7rem);
  padding: clamp(6px, 0.7cqw, 18px) clamp(12px, 1.3cqw, 34px);
}
.line svg { height: clamp(15px, 1.32cqw, 31px); width: auto; }
.weg__address {
  font-size: clamp(1.35rem, 1.95cqw, 3rem);
  line-height: 1.45;
  color: var(--navy);
  margin: 0 0 clamp(20px, 2.2cqw, 56px);
}
.weg__address strong { font-weight: 700; }

.btn {
  display: inline-block;
  border: 2px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-size: clamp(1.25rem, 1.7cqw, 2.7rem);
  font-weight: 500;
  padding: clamp(10px, 1cqw, 26px) clamp(22px, 2.2cqw, 56px);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--navy); color: #fff; }

.weg__content {
  position: relative;
  z-index: 2;
  max-width: clamp(440px, 34cqw, 980px);
  padding-top: clamp(85px, 8.5cqw, 210px);
}
.weg__illustration {
  position: absolute;
  /* nach rechts ueber die Grid-Kante geschoben -> weniger Ueberlapp mit Text */
  right: clamp(-220px, -7cqw, -50px);
  /* unten buendig statt mittig -> kein Leerraum unter der Grafik */
  bottom: 0;
  width: 80%;
  z-index: 1;
}
.weg__bg {
  width: 100%;
  height: auto;
  display: block;
}
.weg__bus {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
}

/* Bus faehrt vom linken Bildschirmrand rein, haelt kurz an der Haltestelle,
   faehrt bis zum rechten Bildschirmrand raus (Viewport klippt via body overflow-x) */
@media (prefers-reduced-motion: no-preference) {
  .weg__bus { animation: busDrive 11s ease-in-out infinite; }
}
@keyframes busDrive {
  0%   { transform: translateX(-125%); }  /* ausserhalb links */
  30%  { transform: translateX(0); }      /* an der Haltestelle angekommen */
  52%  { transform: translateX(0); }      /* kurzer Halt */
  100% { transform: translateX(125%); }   /* faehrt nach rechts raus, loopt sofort */
}

/* ===================== FOOTER ===================== */
.footer { padding: 10px 0 90px; }
.footer__inner {
  /* gleiche zentrierte Breite wie die Boxen */
  width: var(--cards-width);
  margin: 0 auto;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__address p { margin: 0 0 18px; color: var(--ink); font-size: 0.98rem; }
.footer__name { font-weight: 600; }
.footer__address a { color: var(--navy); }

.footer__docs {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: right;
}
.footer__doc-name {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}
.footer__doc-role {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}
.footer__legal {
  display: flex;
  justify-content: flex-start;
  gap: 22px;
  margin-top: 70px;
}
.footer__legal a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.82rem;
  transition: opacity 0.2s ease;
}
.footer__legal a:hover { opacity: 0.6; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1180px) {
  .sprechzeiten, .intro, .leistungen, .weg, .footer { --cards-width: min(92vw, 820px); }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    --cards-pull: clamp(80px, 9vw, 130px);
  }
  .doc { font-size: 0.92rem; }
}

@media (max-width: 760px) {
  /* Nav mittig (mobil) */
  .nav { left: 0; right: 0; justify-content: center; gap: 18px; padding: 20px; font-size: 0.85rem; }
  .hero__logo { top: 9vh; width: min(62vw, 270px); max-width: 90vw; }

  /* Hero wird beim Scrollen gepinnt (Bild bleibt stehen) */
  .hero-pin { height: 230vh; }
  .hero { position: sticky; top: 0; height: 100vh; min-height: 0; }

  /* Namen werden per Scroll eingeblendet (JS steuert) statt Load-Animation */
  .doc {
    display: block;
    animation: none;
    opacity: 0;
    font-size: 1rem;
  }
  .doc--left  { left: 7%;  right: auto; top: 52%; transform: translateX(-75vw); }
  .doc--right { right: 7%; left: auto;  top: 71%; transform: translateX(75vw); }
  /* Plus nicht über den linken Rand abschneiden -> mehr nach oben statt weit links */
  .docinfo-toggle { transform: translate(-18%, -115%); }

  /* Frauen enger zusammen + Mobil-Größe beibehalten */
  .hero__person--agnes   { height: 92vh; }
  .hero__person--carolin { height: 96.5vh; margin-left: clamp(-460px, -70vw, -200px); }
  /* Logo weiß (mobil) */
  .brunnen-outline,
  .hero__wordmark { filter: brightness(0) invert(1); }
  /* passt in den Container -> symmetrische Raender links/rechts */
  .sprechzeiten, .intro, .leistungen, .weg, .footer { --cards-width: min(100%, 420px); }
  .intro__grid { grid-template-columns: 1fr; gap: 22px; }
  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    --cards-pull: 70px;
  }
  .card__inner { min-height: auto; padding: 24px; }
  /* Heute-Box nicht anheben (sonst Ueberlapp mit Box darueber) */
  .card.is-today { top: 0; }
  .sprechzeiten__info { flex-direction: column; align-items: flex-start; gap: 18px; }
  .weg__grid { min-height: 0; }
  .weg__content { max-width: none; }
  .weg__illustration {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    margin-top: 40px;
  }
  .footer__docs { text-align: left; }
}

/* ===================== LEGAL (Impressum / Datenschutz) ===================== */
.legal-header {
  display: flex;
  justify-content: center;
  padding: 4vh 32px clamp(20px, 3vw, 40px);
}
/* gleiches gesplittetes Logo wie auf der Startseite (Brunnen 37% über Wortmarke) */
.legal-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  width: clamp(216px, 16.8vw, 432px);
  max-width: 48vw;
}
.legal-logo__icon { width: 37%; height: auto; display: block; }
.legal-logo__word { width: 100%; height: auto; display: block; }

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) 32px clamp(60px, 8vw, 120px);
  color: var(--ink);
  font-family: var(--font);   /* gleicher Font wie die ganze Seite (Inter/DIN) */
  line-height: 1.65;
}
.legal h1, .legal h3, .legal p, .legal span, .legal a, .legal li, .legal__kicker, .legal__label {
  font-family: var(--font);
}
.legal__kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 8px;
}
.legal h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 clamp(28px, 3vw, 48px);
  line-height: 1.1;
}
.legal__card {
  background: #f6f8f9;
  border: 1px solid #e4e8eb;
  border-radius: 12px;
  padding: clamp(20px, 2.5vw, 30px) clamp(22px, 2.8vw, 34px);
  margin: 0 0 clamp(34px, 4vw, 52px);
}
.legal__name { font-weight: 700; color: var(--navy); margin: 0 0 2px; }
.legal__sub { color: var(--muted); margin: 0 0 14px; }
.legal__card p { margin: 0; }
.legal__contact { margin-top: 14px; display: grid; gap: 3px; }

.legal section { margin: 0 0 clamp(26px, 3vw, 38px); }
.legal__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);           /* dunkel wie das "HEUTE"-Label auf der Startseite */
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e4e8eb;
}
.legal p { margin: 0 0 10px; }
.legal p:last-child { margin-bottom: 0; }
.legal__strong { font-weight: 600; }
.legal ul { margin: 4px 0 0; padding-left: 20px; }
.legal li { margin: 0 0 5px; }
.legal a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 53, 91, 0.35);
  transition: border-color 0.15s ease;
}
.legal a:hover { border-bottom-color: var(--navy); }

.legal-back {
  display: inline-block;
  margin-top: clamp(20px, 3vw, 40px);
  color: var(--navy);
  font-weight: 600;
  border: 0;
}
.legal-back:hover { opacity: 0.65; }

/* ===================== GESTENSTEUERUNG (opt-in) ===================== */
.gesture-toggle {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 40, 68, 0.3);
}
.gesture-toggle .gesture-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.gesture-toggle[aria-pressed="true"] .gesture-dot { background: #4ade80; }
.voice-toggle { left: auto; right: 18px; }

.gesture-preview {
  position: fixed;
  left: 18px;
  bottom: 66px;
  width: 170px;
  height: 128px;
  border-radius: 12px;
  overflow: hidden;
  z-index: 300;
  background: #0b1622;
  box-shadow: 0 8px 24px rgba(16, 40, 68, 0.3);
  display: none;
}
.gesture-preview.active { display: block; }
.gesture-preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }

.gesture-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  background: rgba(22, 53, 91, 0.18);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease, width 0.1s ease, height 0.1s ease, background 0.1s ease;
  will-change: transform;
}
.gesture-cursor.active { opacity: 1; }
.gesture-cursor.pinch {
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  background: var(--navy);
}
/* Zeige-/Klick-Modus (Faust außer Daumen+Zeigefinger): kein Scrollen */
.gesture-cursor.point { border-color: #4ade80; background: rgba(74, 222, 128, 0.18); }
.gesture-cursor.point.pinch { background: #4ade80; }
