/* ==========================================================================
   Praxis für Kieferorthopädie Dr. Friederike Pfautsch – Stylesheet
   Neugestaltung 11/2026 · Medienpilotin by WOWBRAVO GmbH
   Farben, Logo und Fotos der Praxis – Gestaltung und Technik auf Stand 2026.
   Barrierefreiheit: Kontraste ≥ 4,5:1 (Text) bzw. ≥ 3:1 (große Schrift/Bedienelemente).
   ========================================================================== */

/* ---------- Schriften (lokal, nur WOFF2) ---------- */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/open-sans-v34-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-v34-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/open-sans-v34-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ubuntu-v20-latin-regular.woff2") format("woff2"); }

/* ---------- Gestaltungswerte ---------- */
:root {
  --navy: #0c2643;
  --navy-dark: #061526;
  --sky: #69b8e2;
  --sky-light: #a7d2ec;
  --ice: #e6f0f8;
  --tint: #f3f7fb;
  --accent: #1d5f86;          /* Akzent für Text/Links auf Weiß (6,9:1) */
  --text: #2b3440;
  --muted: #5a6573;           /* 5,8:1 auf Weiß */
  --line: #e1e9f1;
  --header-h: 84px;
  --radius: 0;
  --radius-sm: 0;
  --shadow-sm: 0 1px 2px rgba(12,38,67,.06), 0 2px 8px rgba(12,38,67,.05);
  --shadow: 0 2px 4px rgba(12,38,67,.05), 0 12px 32px rgba(12,38,67,.08);
  --shadow-lg: 0 4px 8px rgba(12,38,67,.06), 0 22px 48px rgba(12,38,67,.14);
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --container: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); font-family: "Ubuntu", "Open Sans", sans-serif; font-weight: 400; line-height: 1.2; }
p { margin: 0 0 1em; }
.icon-phone { flex: 0 0 auto; width: 1.15em; height: 1.15em; }
a[href^="tel:"] { white-space: nowrap; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  padding: 10px 16px; background: var(--navy); color: #fff; text-decoration: none;
  border-radius: 0 0 8px 8px; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border: 1.5px solid transparent; border-radius: 999px;
  font: 500 1rem/1.2 "Open Sans", sans-serif; text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(12,38,67,.22); }
.btn--primary:hover { background: var(--accent); color: #fff; box-shadow: 0 12px 26px rgba(12,38,67,.28); }
.btn--ghost { background: rgba(255,255,255,.88); color: var(--navy); border-color: rgba(12,38,67,.25); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--ice); color: var(--navy); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: 100%; height: var(--header-h);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: height .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.site-header.is-scrolled { --header-h: 70px; box-shadow: 0 6px 24px rgba(12,38,67,.08); border-bottom-color: var(--line); }
.menu-open .site-header { background: #fff; box-shadow: none; }
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  max-width: calc(var(--container) + 2 * var(--gutter)); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
}
.site-logo { position: relative; z-index: 2; flex: 0 0 auto; display: block; margin-right: auto; }
.site-logo img { display: block; width: 240px; height: auto; transition: width .35s var(--ease-out); }
.is-scrolled .site-logo img { width: 210px; }

/* Navigation (Desktop) */
.site-nav__list { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.site-nav__list a {
  position: relative; display: block; padding: 8px 12px;
  color: var(--text); font-size: 1.02rem; font-weight: 400; text-decoration: none;
  border-radius: 8px; transition: color .2s, background-color .2s;
}
.site-nav__list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--sky); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.site-nav__list a:hover { color: var(--navy); background: var(--tint); }
.site-nav__list a:hover::after, .site-nav__list a:focus-visible::after { transform: scaleX(1); }
.site-nav__list a[aria-current="page"] { color: var(--navy); font-weight: 500; }
.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); background: var(--navy); }
.site-nav__contact { display: none; }

.header-call {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  min-height: 44px; padding: 8px 18px; border: 1.5px solid rgba(12,38,67,.22); border-radius: 999px;
  color: var(--navy); font-weight: 500; font-size: .98rem; text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s;
}
.header-call:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .site-logo img { width: 210px; }
  .site-nav__list a { padding: 8px 9px; }
  .header-call__label { display: none; }
  .header-call { padding: 8px 12px; }
}

@media (max-width: 982px) {
  :root { --header-h: 72px; }
  /* Kein Milchglas auf dem Handy: backdrop-filter würde das vollflächige Menü auf die Höhe der Kopfzeile begrenzen */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.97); }
  .site-header.is-scrolled { --header-h: 64px; }
  .site-logo img, .is-scrolled .site-logo img { width: 190px; }
  .header-call { display: none; }
  .nav-toggle {
    position: relative; z-index: 3; display: block; flex: 0 0 auto;
    width: 48px; height: 48px; margin-right: -6px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; cursor: pointer; transition: background-color .25s;
  }
  .nav-toggle:hover { background-color: rgba(12,38,67,.06); }
  .nav-toggle__bars { position: absolute; left: 9px; top: 16px; width: 30px; height: 16px; }
  .nav-toggle__bars span {
    position: absolute; left: 0; display: block; width: 100%; height: 2.5px;
    background: var(--navy); border-radius: 20px;
    transition: top .3s var(--ease-out), left .3s var(--ease-out), width .3s var(--ease-out), transform .35s var(--ease-out), opacity .2s;
  }
  .nav-toggle__bars span:nth-child(1) { top: 0; }
  .nav-toggle__bars span:nth-child(2), .nav-toggle__bars span:nth-child(3) { top: 7px; }
  .nav-toggle__bars span:nth-child(4) { top: 14px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1),
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(4) { top: 7px; left: 50%; width: 0; opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: rotate(-45deg); }

  /* Vollflächiges Menü */
  .site-nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    overflow-y: auto; overscroll-behavior: contain;
    padding: 24px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: radial-gradient(130% 90% at 100% 0%, #18406a 0%, var(--navy) 55%, #071a2f 100%);
    color: #fff;
  }
  .site-nav__list { display: block; }
  .site-nav__list li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav__list a {
    display: flex; align-items: center; gap: 14px;
    min-height: 58px; padding: 12px 4px; border-radius: 0;
    color: #fff; font-family: "Ubuntu", sans-serif; font-size: 1.6rem; font-weight: 400;
    transition: color .2s, padding-left .3s var(--ease-out);
  }
  .site-nav__list a:hover { background: none; }
  .site-nav__list a::after {
    content: "\2192"; position: static; height: auto; margin-left: auto; background: none;
    font-size: 1.2rem; opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .3s var(--ease-out);
  }
  .site-nav__list a:hover, .site-nav__list a:focus-visible { padding-left: 10px; color: var(--sky-light); }
  .site-nav__list a:hover::after, .site-nav__list a:focus-visible::after { opacity: 1; transform: none; }
  .site-nav__list a[aria-current="page"] { color: #fff; font-weight: 400; }
  .site-nav__list a[aria-current="page"]::before {
    content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-left: -18px; margin-right: 2px;
    border-radius: 50%; background: var(--sky);
  }
  .site-nav__list a[aria-current="page"]::after { opacity: .6; transform: none; background: none; }
  .site-nav a:focus-visible { outline-color: #fff; }
  .site-nav__contact { display: block; }
  .site-nav__call { width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
  .site-nav__address { margin: 14px 0 0; color: rgba(255,255,255,.85); font-size: .95rem; text-align: center; }

  /* Öffnen als Kreis-Animation vom Menü-Button aus */
  .js .site-nav {
    visibility: hidden;
    clip-path: circle(0 at calc(100% - 44px) -36px);
    transition: clip-path .55s cubic-bezier(.7,0,.25,1), visibility 0s linear .55s;
  }
  .js .site-nav.is-open {
    visibility: visible;
    clip-path: circle(160vmax at calc(100% - 44px) -36px);
    transition: clip-path .65s cubic-bezier(.7,0,.25,1), visibility 0s;
  }
  .js .site-nav__list li, .js .site-nav__contact { opacity: 0; transform: translateY(18px); transition: opacity .3s, transform .3s; }
  .js .site-nav.is-open .site-nav__list li, .js .site-nav.is-open .site-nav__contact {
    opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  }
  .js .site-nav.is-open .site-nav__list li:nth-child(1) { transition-delay: .18s; }
  .js .site-nav.is-open .site-nav__list li:nth-child(2) { transition-delay: .23s; }
  .js .site-nav.is-open .site-nav__list li:nth-child(3) { transition-delay: .28s; }
  .js .site-nav.is-open .site-nav__list li:nth-child(4) { transition-delay: .33s; }
  .js .site-nav.is-open .site-nav__list li:nth-child(5) { transition-delay: .38s; }
  .js .site-nav.is-open .site-nav__contact { transition-delay: .45s; }
  .menu-open { overflow: hidden; }

  /* Ohne JavaScript: Menü als Liste unter der Kopfzeile */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav { position: absolute; bottom: auto; }
}
/* Kleine Fensterhöhe / starker Zoom: Kopfzeile nicht fixieren, damit sie nichts verdeckt */
@media (max-height: 480px) and (min-width: 983px) { .site-header { position: absolute; } }

/* ---------- Kopfbild ---------- */
main { display: block; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(320px, 52vh, 480px);
  padding: calc(var(--header-h) + 40px) 0 clamp(36px, 6vw, 64px);
  background: var(--ice);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-img); background-position: var(--hero-pos, center); background-size: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 40%, rgba(255,255,255,.35) 62%, rgba(255,255,255,0) 80%);
}
.hero--start { --hero-img: url("../img/empfang_6.webp"); --hero-pos: 70% 50%; }
.hero--team { --hero-img: url("../img/6127.webp"); }
.hero--behandlung { --hero-img: url("../img/behandlung1-gespiegelt.webp"); --hero-pos: 70% 50%; }
.hero--kontakt { --hero-img: url("../img/eingang.webp"); }
.hero--anfahrt { --hero-img: url("../img/praxis/aussen_img.webp"); --hero-pos: center 40%; }

.hero__inner { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.hero__caption { max-width: 640px; }
.hero__kicker {
  display: inline-block; margin: 0 0 12px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.9); color: var(--accent);
  font-size: .82rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.hero__title, .hero__lead { text-shadow: 0 0 2px rgba(255,255,255,.95), 0 0 12px rgba(255,255,255,.9), 0 0 28px rgba(255,255,255,.75); }
.hero__title { margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.1; letter-spacing: -.01em; }
.hero__lead { max-width: 34em; margin: 18px 0 0; color: var(--text); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero--v-start { min-height: clamp(560px, 88vh, 860px); align-items: center; }
.hero--v-start .hero__title { font-size: clamp(2.4rem, 5.4vw, 4.3rem); }
/* Startseite: Text mittig, Empfang mit Blumen links und Kirschen rechts frei sichtbar */
.hero--start { --hero-pos: 50% 55%; }
.hero--v-start::after { background: radial-gradient(ellipse 46% 50% at 50% 50%, rgba(255,255,255,.82) 0%, rgba(255,255,255,.6) 45%, rgba(255,255,255,0) 100%); }
.hero--v-start .hero__caption { max-width: 920px; margin: 0 auto; text-align: center; }
.hero--v-start .hero__title { text-wrap: balance; }
.hero--v-start .hero__lead { margin-inline: auto; }
.hero--v-start .hero__actions { justify-content: center; }

/* Rechtstexte: schlichtes Band ohne Foto */
.hero--v-legal { min-height: 0; padding-bottom: 40px; background: linear-gradient(180deg, var(--ice), var(--tint)); }
.hero--v-legal::before, .hero--v-legal::after { display: none; }
.hero--v-legal .hero__title { font-size: clamp(2rem, 4vw, 3rem); }


@media (max-width: 820px) {
  .hero::after { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.95) 100%); }
  .hero--v-start { min-height: 0; align-items: flex-end; padding-top: calc(var(--header-h) + 180px); }
  .hero--start { --hero-pos: 50% 30%; }
  .hero--v-start::after { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.95) 100%); }
  .hero__actions .btn { flex: 1 1 220px; }
}

/* ---------- Tiefenwirkung (wird per JavaScript nur bei erlaubter Bewegung aktiviert) ---------- */
.has-depth main { position: relative; z-index: 1; }
.has-depth .hero { position: sticky; top: var(--hero-top, 0px); z-index: 0; }
.has-depth .hero__inner { opacity: calc(1 - var(--p, 0) * 1.4); transform: translateY(calc(var(--p, 0) * -70px)); will-change: opacity, transform; }
.has-depth .content {
  position: relative; z-index: 1; overflow: clip; background: #fff;
  border-radius: 0;
  box-shadow: 0 -16px 40px rgba(12,38,67,.14);
}

/* ---------- Abschnitte ---------- */
.content { display: block; }
.section { padding: clamp(56px, 8vw, 96px) var(--gutter); }
/* Einheitliche Satzkante: alles in einem Abschnitt beginnt und endet an derselben Linie wie Logo/Fußbereich */
.section > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.section--tint { background: var(--tint); }
.section--intro { padding-bottom: clamp(40px, 6vw, 72px); }
.section-head {
  display: flex; justify-content: flex-start; align-items: center; gap: 14px;
  max-width: var(--container); margin: 0 auto clamp(28px, 4vw, 44px); text-align: left;
}
.section-head .icon { flex: 0 0 auto; width: auto; height: 30px; }
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head--left { justify-content: flex-start; text-align: left; margin-left: 0; }

.prose > * { max-width: 75ch; }
.prose > :last-child { margin-bottom: 0; }

/* Startseite: Über unsere Praxis + Steckbrief */
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start;
}
.about__text { max-width: 62ch; }
.about__text .section-head { margin-bottom: 22px; }
.about__lead { color: var(--navy); font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.55; }
.about__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 32px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); list-style: none;
}
.about__stats li { display: flex; flex-direction: column; gap: 4px; }
.about__stats strong { color: var(--navy); font-family: "Ubuntu", sans-serif; font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 400; line-height: 1.2; }
.about__stats span { color: var(--muted); font-size: .92rem; line-height: 1.4; }

.about { align-items: center; }
/* Praxisfoto neben „Über unsere Praxis“ */
.about { align-items: center; }
.about__media { margin: 0; }
.about__media img { display: block; width: 100%; height: auto; box-shadow: var(--shadow-lg); }

/* Steckbrief-Band über dem Fußbereich */
.glance { background: var(--tint); }
.glance__head .section-head { margin: 0 0 28px; }
.glance__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; }
.glance__list > div { padding: 2px 24px; border-left: 1px solid #d3dfea; }
.glance__list > div:nth-child(2) { padding-left: 0; border-left: 0; }
.glance__list dt { color: var(--accent); font-size: .8rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.glance__list dd { margin: 6px 0 0; font-size: .98rem; line-height: 1.5; }
.glance__full { grid-column: 1 / -1; margin-bottom: 28px; padding: 0 0 26px !important; border-left: 0 !important; border-bottom: 1px solid #d3dfea; }
.glance__full dd { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 7px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  color: var(--navy); font-size: .92rem; line-height: 1.3;
  transition: border-color .25s, transform .25s var(--ease-out);
}
.chips li:hover { border-color: var(--sky); transform: translateY(-1px); }
@media (max-width: 1000px) {
  .glance__list { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .glance__list > div:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .glance__list { grid-template-columns: 1fr; }
  .glance__list > div:not(.glance__full), .glance__list > div:nth-child(2), .glance__list > div:nth-child(4) { padding: 0 0 0 16px; border-left: 1px solid #d3dfea; }
}

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__text { max-width: none; }
}
@media (max-width: 520px) {
  .about__stats { grid-template-columns: 1fr; gap: 14px; }
  .about__stats li { flex-direction: row; align-items: baseline; gap: 12px; }
  .about__stats strong { flex: 0 0 7.5em; }
}

/* Startseite: Galerie */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(45%, 200px), 1fr));
  max-width: var(--container); margin: 0 auto;
}
.gal-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 4 / 3; background: var(--ice); }
.gal-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.gal-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,38,67,0) 50%, rgba(12,38,67,.35));
  opacity: 0; transition: opacity .3s;
}
.gal-item:hover img, .gal-item:focus-visible img { transform: scale(1.06); }
.gal-item:hover::after, .gal-item:focus-visible::after { opacity: 1; }

.split { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(24px, 5vw, 64px); }
.split .prose { margin: 0; max-width: 75ch; }
.siegel { width: 128px; }
@media (max-width: 600px) {
  .archive:has(.entry--image) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .entry--image { padding: 12px; }
  .entry--image .behandlung-img { margin-bottom: 10px; }
  .entry--image .entry-title { font-size: 1rem; }
  .person__name { padding: 12px 12px 2px; font-size: 1.05rem; }
  .person__name:last-child { padding-bottom: 14px; }
  .person__role { padding: 0 12px 14px; }
}
@media (max-width: 680px) { .split { grid-template-columns: 1fr; justify-items: center; text-align: left; } }

/* ---------- Team ---------- */
.profile {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(20px, 3vw, 32px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.profile__img { display: block; width: 100%; border-radius: var(--radius); }
.profile__role { margin: 0 0 6px; color: var(--accent); font-size: .85rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.profile__text > * { max-width: 75ch; }
.profile__text h2 { margin: 0 0 16px; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.profile__text p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .profile { grid-template-columns: 1fr; text-align: left; }
  .profile__img { max-width: 300px; margin: 0 auto; }
}

.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(42%, 200px), 240px)); justify-content: center; gap: clamp(14px, 3vw, 24px);
  padding: 0; list-style: none;
}
.section-head:has(+ .team-grid) { justify-content: center; text-align: center; }
.person {
  overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.person img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.person__name { margin: 0; padding: 16px 18px 4px; color: var(--navy); font-family: "Ubuntu", sans-serif; font-size: 1.2rem; }
.person__name:last-child { padding-bottom: 18px; }
.person__role { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: .95rem; }

/* ---------- Behandlungen ---------- */
.archive {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; align-items: start;
}
.entry {
  display: flex; flex-direction: column;
  padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  hyphens: auto;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.entry:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.entry hr { display: none; }
.behandlung-img { display: block; width: 100%; height: auto; margin: 0 0 16px; border-radius: var(--radius-sm); aspect-ratio: 410 / 350; object-fit: cover; }
.entry-title { margin: 0 0 10px; font-size: 1.35rem; }
.entry--image .entry-title { margin: 0; font-size: 1.15rem; text-align: center; }
.entry-content p { margin: 0; font-size: 1rem; line-height: 1.6; }
.js .entry-content { position: relative; overflow: hidden; transition: height .6s var(--ease-out); }
.js .entry-content:not(.is-open) { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.more-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; margin-top: 14px; padding: 8px 8px 8px 18px; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--navy); cursor: pointer;
  font: 500 .98rem/1.2 "Open Sans", sans-serif;
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.more-link::after {
  content: ""; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ice) no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.2l4 4 4-4' fill='none' stroke='%230c2643' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform .4s var(--ease-out), background-color .25s;
}
.more-link:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.more-link:hover::after { background-color: var(--sky-light); }
.more-link[aria-expanded="true"]::after { transform: rotate(180deg); }

/* FAQ (Akkordeon; ohne JavaScript sind alle Antworten sichtbar) */
.faq .section-head { margin-bottom: 28px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease-out), border-color .3s;
}
.faq-item h3 { margin: 0 0 8px; font-size: 1.2rem; }
.faq-item p { margin: 0; line-height: 1.65; }
.js .faq-item { padding: 0; }
.js .faq-item h3 { margin: 0; font-size: 1.15rem; }
.faq-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; min-height: 64px; padding: 16px 20px 16px 24px; border: 0; border-radius: var(--radius);
  background: none; color: var(--navy); cursor: pointer; text-align: left;
  font: inherit; line-height: 1.35;
}
.faq-toggle:hover .faq-toggle__text { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.faq-toggle__icon {
  position: relative; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--ice);
  transition: background-color .3s, transform .45s var(--ease-out);
}
.faq-toggle__icon::before, .faq-toggle__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; margin: -1px 0 0 -6.5px;
  border-radius: 2px; background: var(--navy); transition: transform .45s var(--ease-out), background-color .3s;
}
.faq-toggle__icon::after { transform: rotate(90deg); }
.faq-item:hover { border-color: var(--sky-light); }
.faq-item.is-open { border-color: var(--sky-light); box-shadow: var(--shadow); }
.faq-item.is-open .faq-toggle__icon { background: var(--navy); transform: rotate(180deg); }
.faq-item.is-open .faq-toggle__icon::before, .faq-item.is-open .faq-toggle__icon::after { background: #fff; }
.faq-item.is-open .faq-toggle__icon::after { transform: rotate(0deg); }
.faq-panel {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows .45s var(--ease-out), visibility 0s linear .45s;
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .45s var(--ease-out), visibility 0s; }
.faq-panel__inner { overflow: hidden; }
.faq-panel__inner > p { padding: 0 24px 22px; max-width: 70ch; }
.faq-hinweis { margin-top: 24px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.info-card {
  padding: clamp(22px, 3vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.info-card .section-head { margin-bottom: 18px; }
.info-card .section-head h2 { font-size: 1.6rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hours th { width: 8.5em; padding-right: 16px; color: var(--navy); font-weight: 500; }
.info-card__note { margin: 16px 0 0; color: var(--muted); font-size: .95rem; }
.info-card .btn { margin-top: 20px; }
/* Telefon und E-Mail in der Tabelle: ohne Unterstreichung, farblich als Link erkennbar */
.hours td a, .legal__text a[href^="tel:"], .legal__text a[href^="mailto:"] { color: var(--accent); font-weight: 500; text-decoration: none; }
.hours td a:hover, .hours td a:focus-visible, .legal__text a[href^="tel:"]:hover, .legal__text a[href^="mailto:"]:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Anfahrt ---------- */
.park-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px;
  margin-top: clamp(28px, 4vw, 40px); padding: 0; list-style: none;
}
.park-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--sky); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.park-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.park-card__title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.25rem; }
.park-card__title img { flex: 0 0 auto; width: 27px; height: 30px; }
.park-card__body { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.park-card__count { align-self: flex-start; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--ice); color: var(--navy); font-size: .92rem; font-weight: 500; }
.park-card__body a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; text-decoration: none; }
.park-card__body a:hover { text-decoration: underline; }
.park-card__body a img { width: 22px; transition: transform .3s var(--ease-out); }
.park-card__body a:hover img { transform: translateX(3px) rotate(-6deg); }

/* ---------- Rechtstexte ---------- */
.legal__text { overflow-wrap: anywhere; }
.legal__text > * { max-width: 80ch; }
.legal__text h2 { margin: 2em 0 .6em; font-size: 1.55rem; }
.legal__text > h2:first-child { margin-top: 0; }
.legal__text h3 { margin: 1.6em 0 .5em; font-size: 1.25rem; }
.legal__text h4 { margin: 1.4em 0 .4em; color: var(--navy); font-size: 1.05rem; }
.legal__text address { margin: 0 0 1.5em; font-style: normal; }
.legal__text table { border-collapse: collapse; }
.legal__text th, .legal__text td { padding: 4px 16px 4px 0; text-align: left; font-weight: 400; vertical-align: top; }
.legal__seal { margin-top: 2.5em; }
.legal__seal img { display: block; width: 190px; height: auto; }

/* ---------- Fußbereich ---------- */
.site-footer { position: relative; background: var(--navy-dark); color: rgba(255,255,255,.88); font-size: 1rem; }
.site-footer__inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(28px, 5vw, 56px);
  max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 7vw, 80px) var(--gutter) 40px;
}
.footer-logo { display: block; width: 64px; height: auto; margin-bottom: 16px; }
.footer-title { margin: 0 0 12px; color: #fff; font-size: 1.3rem; line-height: 1.35; }
.footer-title span { color: var(--sky-light); font-size: 1rem; }
.site-footer address { font-style: normal; }
.footer-heading { margin: 0 0 14px; color: var(--sky-light); font-family: "Open Sans", sans-serif; font-size: .85rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.footer-hours, .footer-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.footer-hours dt, .footer-dl dt { color: #fff; font-weight: 500; }
.footer-hours dd, .footer-dl dd { margin: 0; }
.footer-note { margin: 12px 0 0; color: rgba(255,255,255,.75); font-size: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sky-light); text-decoration: underline; }
.site-footer a:focus-visible { outline-color: #fff; }
.footer-link { text-decoration: underline !important; text-decoration-color: rgba(255,255,255,.4) !important; }
.footer-cta { margin-top: 22px; }
.site-footer .btn--light { color: var(--navy); }
.site-footer .btn--light:hover { color: var(--navy); text-decoration: none; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.12);
}
.copyright { margin: 0; color: rgba(255,255,255,.75); font-size: .9rem; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.footer-legal a { display: inline-block; padding: 4px 0; }
.footer-credit { margin: 0; color: rgba(255,255,255,.75); font-size: .9rem; }
.footer-credit a { display: inline-block; padding: 4px 0; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
@media (max-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .footer-col--praxis { grid-column: 1 / -1; } }
@media (max-width: 600px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* Anrufen-Button (Handy) */
.call-fab { display: none; }
@media (max-width: 982px) {
  .call-fab {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90;
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 52px; padding: 12px 20px; border-radius: 999px;
    background: var(--navy); color: #fff !important; font-weight: 500; text-decoration: none !important;
    box-shadow: 0 10px 26px rgba(12,38,67,.35);
    transform: translateY(140%); opacity: 0; visibility: hidden;
    transition: transform .45s var(--ease-out), opacity .3s, visibility 0s linear .45s, background-color .25s;
  }
  html:not(.js) .call-fab, .call-fab.is-visible { transform: none; opacity: 1; visibility: visible; transition: transform .45s var(--ease-out), opacity .3s, visibility 0s, background-color .25s; }
  .call-fab:hover { background: var(--accent); }
  .menu-open .call-fab { opacity: 0; visibility: hidden; }
  .site-footer__bottom { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* ---------- Bildergalerie (Lightbox) ---------- */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden;
}
.lightbox::backdrop { background: rgba(6,21,38,.88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox[open] { animation: lbFade .3s var(--ease-out); }
.lightbox__figure { position: absolute; inset: 72px 84px 72px; display: flex; align-items: center; justify-content: center; margin: 0; }
.lightbox__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  transition: opacity .25s var(--ease-out), transform .35s var(--ease-out);
}
.lightbox__img.is-changing { opacity: 0; transform: scale(.97); }
.lightbox button {
  position: absolute; display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease-out);
}
.lightbox button:hover { background: rgba(255,255,255,.24); }
.lightbox button:focus-visible { outline-color: #fff; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { top: 50%; left: 16px; margin-top: -26px; }
.lightbox__next { top: 50%; right: 16px; margin-top: -26px; }
.lightbox__prev:hover { transform: translateX(-3px); }
.lightbox__next:hover { transform: translateX(3px); }
.lightbox__counter { position: absolute; top: 28px; left: 24px; margin: 0; color: #fff; font-size: .95rem; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 24px; margin: 0; color: #fff; text-align: center; }
@media (max-width: 680px) { .lightbox__figure { inset: 72px 10px 96px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; margin: 0; } .lightbox__caption { bottom: 84px; } }
@keyframes lbFade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Bewegung ---------- */
/* Kopfbild: langsamer Zoom des Bildes, Text fährt ein (wie in der ersten Fassung) */
.hero::before { transform-origin: 60% 40%; animation: heroZoom 9s cubic-bezier(.2,.6,.2,1) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__caption > * { animation: heroIn .9s var(--ease-out) both; }
.hero__caption > :nth-child(2) { animation-delay: .08s; }
.hero__caption > :nth-child(3) { animation-delay: .16s; }
.hero__caption > :nth-child(4) { animation-delay: .24s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Beim Scrollen: nur Elemente unterhalb des sichtbaren Bereichs, kurz und ohne lange Verzögerung.
   Was beim Laden schon sichtbar ist, steht sofort da. Klassen setzt nur das Skript. */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Druck ---------- */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .nav-toggle, .more-link, .lightbox, .call-fab, .hero::before, .hero::after { display: none !important; }
  .hero { min-height: 0; padding: 0 0 16px; background: none; position: static !important; }
  .site-footer { position: static !important; }
  .content { box-shadow: none !important; border-radius: 0 !important; }
  .js .entry-content { height: auto !important; -webkit-mask-image: none !important; mask-image: none !important; }
  .faq-panel { grid-template-rows: 1fr !important; visibility: visible !important; }
  .faq-toggle__icon { display: none; }
}
