/* ==========================================================================
   theme.css — augenlidstraffungwien.at
   Portiert von der freigegebenen statischen Site. Theming über den festen
   Variablensatz aus base.css; site-eigene Zusatzvariablen mit --x-Präfix.
   Palette: warmes Sand/Creme + Petrol (#003B5D) + Gold (#D69B61)
   Typografie: Fraunces (Display) + Poppins (Text) — lokal gehostet (fonts.css)
   ========================================================================== */

:root {
  /* --- Vertrag (base.css) ------------------------------------------------ */
  --c-primaer:      #003B5D;
  --c-primaer-hell: #155E7D;
  --c-akzent:       #D69B61;
  --c-akzent-hell:  #E3BC93;
  --c-text:         #1A2B33;
  --c-text-leise:   #6E6355;
  --c-bg:           #FCFAF7;
  --c-bg-alt:       #F7F1E9;
  --c-linie:        #E6DACA;
  --c-invers:       #F3EFE9;

  --font-head:  "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:  "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fs-basis:   1.0625rem;
  --fs-klein:   0.875rem;
  --fs-h1:      clamp(2.25rem, 1.75rem + 2.65vw, 4.4rem);
  --fs-h2:      clamp(1.85rem, 1.4rem + 1.9vw, 3rem);
  --fs-h3:      clamp(1.28rem, 1.08rem + 0.8vw, 1.65rem);
  --lh-text:    1.75;
  --lh-head:    1.12;
  --gewicht-head: 400;

  --space:      1rem;
  --sec-abstand: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  --maxwidth:   1180px;
  --maxwidth-text: 68ch;
  --radius:     12px;
  --radius-gross: 20px;
  --schatten:   0 2px 6px rgba(52, 38, 22, .06), 0 10px 28px rgba(52, 38, 22, .07);
  --dauer:      .26s;
  --easing:     cubic-bezier(.4, 0, .2, 1);

  /* --- Site-eigene Erweiterungen (--x-) ---------------------------------- */
  --x-sand-200: #EFE5D8;
  --x-sand-300: #E2D3C0;
  --x-sand-100: #F7F1E9;
  --x-clay-400: #C9B49B;
  --x-petrol-900: #04202F;
  --x-petrol-800: #062E42;
  --x-petrol-100: #DCE7EE;
  --x-gold-600: #B87B3F;
  --x-gold-700: #8A5A24;
  --x-ink: #1A2B33;
  --x-ink-soft: #4A5A62;
  --x-text-soft: #4A5A62;
  --x-danger: #A3341F;
  --x-success: #2C6B4F;
  --x-surface: #FFFFFF;
  --x-surface-warm: #F7F1E9;
  --x-border-strong: #C9B49B;
  --x-accent-text: #8A5A24;
  --x-ring: #003B5D;

  --x-space-3xs: .25rem; --x-space-2xs: .5rem; --x-space-xs: .75rem;
  --x-space-sm: 1rem; --x-space-md: 1.5rem; --x-space-lg: 2.5rem;
  --x-space-xl: 4rem; --x-space-2xl: 6rem; --x-space-3xl: 8.5rem;

  --x-r-sm: 6px; --x-r-md: 12px; --x-r-lg: 20px; --x-r-xl: 32px; --x-r-pill: 999px;

  --x-e-1: 0 1px 2px rgba(52,38,22,.05), 0 2px 8px rgba(52,38,22,.04);
  --x-e-2: 0 2px 6px rgba(52,38,22,.06), 0 10px 28px rgba(52,38,22,.07);
  --x-e-3: 0 6px 14px rgba(52,38,22,.07), 0 24px 60px rgba(52,38,22,.10);

  --x-ease-out: cubic-bezier(.22, 1, .36, 1);
  --x-ease-in:  cubic-bezier(.55, 0, 1, .45);
  --x-ease-soft: cubic-bezier(.4, 0, .2, 1);
  --x-d-fast: 160ms; --x-d-base: 260ms; --x-d-slow: 620ms; --x-d-cine: 1100ms;

  --x-maxwidth-wide: 1360px;
  --x-header-h: 76px;

  --x-z-base: 0; --x-z-raise: 10; --x-z-sticky: 40;
  --x-z-header: 100; --x-z-overlay: 900; --x-z-modal: 1000;

  /* --- Automatisch extrahierte Festwerte (Theming-Regel) ------------- */
  --x-dunkel-lead: #C9D6DE;
  --x-dunkel-leise: #8FA3AE;
  --x-dunkel-link: #DCE7EE;
  --x-dunkel-quellen: #93A7B2;
  --x-dunkel-text: #B7C7D0;
  --x-dunkel-text-2: #C2D2DB;
  --x-hell: #FDFBF8;
  --x-hell-warm: #F3EFE9;
  --x-ton-1: rgba(255,255,255,.12);
  --x-ton-10: rgba(0,59,93,0);
  --x-ton-11: rgba(201,180,155,.14);
  --x-ton-12: rgba(201,180,155,0);
  --x-ton-13: rgba(214,155,97,.20);
  --x-ton-14: rgba(214,155,97,.28);
  --x-ton-15: rgba(220,231,238,.28);
  --x-ton-16: rgba(227,188,147,.4);
  --x-ton-17: rgba(255,255,255,.045);
  --x-ton-18: rgba(255,255,255,.07);
  --x-ton-19: rgba(255,255,255,.075);
  --x-ton-2: rgba(214,155,97,0);
  --x-ton-20: rgba(255,255,255,.13);
  --x-ton-21: rgba(255,255,255,.15);
  --x-ton-22: rgba(255,255,255,.18);
  --x-ton-23: rgba(255,255,255,.25);
  --x-ton-24: rgba(255,255,255,.32);
  --x-ton-25: rgba(4,32,47,.14);
  --x-ton-26: rgba(52,38,22,.06);
  --x-ton-3: rgba(255,255,255,.05);
  --x-ton-4: rgba(255,255,255,.14);
  --x-ton-5: rgba(255,255,255,.16);
  --x-ton-6: #003B5D;
  --x-ton-7: #555;
  --x-ton-8: #D69B61;
  --x-ton-9: rgba(0,59,93,.10);
  --x-weiss: #fff;
}


/* ==========================================================================
   Augenlidstraffung Wien — Dr. Leo Gmelch
   Design System & Stylesheet
   Palette: warmes Sand/Creme + Brand-Petrol (var(--x-ton-6)) + Brand-Gold (var(--x-ton-8))
   Type:    Fraunces (Display) + Poppins (Body/UI)
   ========================================================================== */

/* ---------- 2. Reset / Base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--x-header-h) + 16px);
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
iframe { border: 0; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: "Fraunces", "Iowan Old Style", Georgia, serif;
  font-weight: 400;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  color: var(--x-petrol-800);
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 var(--x-space-sm);
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.75rem + 2.65vw, 4.4rem); line-height: 1.06; }
h2 { font-size: clamp(1.85rem, 1.4rem + 1.9vw, 3rem); }
h3 { font-size: clamp(1.28rem, 1.08rem + 0.8vw, 1.65rem); line-height: 1.25; }
h4 { font-size: 1.08rem; line-height: 1.35; font-family: "Poppins", sans-serif; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 var(--x-space-sm); max-width: 68ch; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; color: var(--x-petrol-800); }

a {
  color: var(--c-primaer);
  text-decoration-color: color-mix(in srgb, var(--c-primaer) 32%, transparent);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
  transition: color var(--x-d-fast) var(--x-ease-soft),
              text-decoration-color var(--x-d-fast) var(--x-ease-soft);
}
a:hover { color: var(--x-gold-700); text-decoration-color: currentColor; }

:where(a, button, summary, input, select, [tabindex]):focus-visible {
  outline: 3px solid var(--x-ring);
  outline-offset: 3px;
  border-radius: var(--x-r-sm);
}

ul, ol { margin: 0 0 var(--x-space-sm); padding-left: 1.25em; }
li { margin-bottom: .4em; }
li::marker { color: var(--x-gold-600); }

hr { border: 0; border-top: 1px solid var(--c-linie); margin: var(--x-space-lg) 0; }

::selection { background: var(--c-akzent-hell); color: var(--x-petrol-900); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: var(--x-z-modal);
  background: var(--x-petrol-800); color: var(--x-weiss); padding: .85rem 1.25rem;
  border-radius: 0 0 var(--x-r-md) 0; font-weight: 500; text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--x-weiss); }

/* ---------- 3. Layout ---------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--maxwidth)); margin-inline: auto; }
.container--wide { width: min(100% - 2.5rem, var(--x-maxwidth-wide)); }
.container--narrow { width: min(100% - 2.5rem, 780px); }

@media (min-width: 768px) { .container, .container--wide, .container--narrow { width: min(100% - 5rem, var(--maxwidth)); } }
@media (min-width: 768px) { .container--wide { width: min(100% - 5rem, var(--x-maxwidth-wide)); } }
@media (min-width: 768px) { .container--narrow { width: min(100% - 5rem, 780px); } }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--alt { background: var(--c-bg-alt); }

.section--dark {
  background: var(--x-petrol-800);
  color: color-mix(in srgb, var(--x-weiss) 88%, var(--x-petrol-100));
  --c-text: var(--x-hell-warm);
  --x-text-soft: var(--x-dunkel-text-2);
  --c-linie: var(--x-ton-4);
  --x-surface: var(--x-ton-3);
  --x-accent-text: var(--c-akzent-hell);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--x-hell); }
.section--dark strong { color: var(--x-weiss); }
.section--dark a { color: var(--c-akzent-hell); text-decoration-color: var(--x-ton-16); }
.section--dark a:hover { color: var(--x-weiss); }

.grid { display: grid; gap: var(--x-space-md); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 999px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

.stack > * + * { margin-top: var(--x-space-sm); }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

/* ---------- 4. Typo-Hilfsklassen ---------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: "Poppins", sans-serif;
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--x-accent-text); margin-bottom: var(--x-space-sm);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; flex: none;
}
.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }

.lead {
  font-size: clamp(1.09rem, 1rem + .5vw, 1.32rem);
  line-height: 1.62; color: var(--x-text-soft); font-weight: 300;
}
.small { font-size: .875rem; line-height: 1.65; color: var(--x-text-soft); }
.tiny  { font-size: .78rem;  line-height: 1.6;  color: var(--x-text-soft); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head.center { margin-inline: auto; }

.tabular { font-variant-numeric: tabular-nums; }

/* Wissenschaftliche Quellen-Referenz im Fließtext */
.ref {
  font-size: .72em; vertical-align: super; line-height: 0;
  font-weight: 500; color: var(--x-gold-700); text-decoration: none;
  padding-inline: .12em;
}
.section--dark .ref { color: var(--c-akzent-hell); }
.ref:hover { text-decoration: underline; }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--c-primaer);
  --btn-fg: var(--x-weiss);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .9rem 1.7rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: var(--x-r-pill);
  font-family: "Poppins", sans-serif; font-size: .95rem; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform var(--x-d-base) var(--x-ease-out),
              box-shadow var(--x-d-base) var(--x-ease-out),
              background-color var(--x-d-base) var(--x-ease-soft),
              color var(--x-d-base) var(--x-ease-soft);
  box-shadow: var(--x-e-1);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c-primaer-hell);
  transform: translateY(101%);
  transition: transform var(--x-d-slow) var(--x-ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--x-e-2); color: var(--btn-fg); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(0) scale(.985); }

.btn--gold { --btn-bg: var(--c-akzent); --btn-fg: var(--x-petrol-900); }
.btn--gold::before { background: var(--c-akzent-hell); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--x-petrol-800);
  border-color: var(--x-border-strong); box-shadow: none;
}
.btn--ghost::before { background: var(--x-sand-200); }
/* Auch das CTA-Band ist eine dunkle Fläche – sonst stünde der sekundäre Button
   dunkelblau auf dunkelblau und wäre unsichtbar */
.section--dark .btn--ghost,
.cta-band .btn--ghost { --btn-fg: var(--x-weiss); border-color: var(--x-ton-24); }
.section--dark .btn--ghost::before,
.cta-band .btn--ghost::before { background: var(--x-ton-1); }

.btn--lg { min-height: 60px; padding: 1.05rem 2.1rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }

.btn .ico { width: 18px; height: 18px; flex: none; transition: transform var(--x-d-base) var(--x-ease-out); }
.btn:hover .ico--arrow { transform: translateX(4px); }

/* Textlink mit Pfeil */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 500; font-size: .95rem; text-decoration: none;
  color: var(--c-primaer);
}
.link-arrow::after {
  content: ""; width: 18px; height: 18px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--x-d-base) var(--x-ease-out);
}
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- 6. Header / Navigation -------------------------------------- */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: var(--x-z-header);
  height: var(--x-header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--c-bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--x-d-base) var(--x-ease-soft),
              border-color var(--x-d-base) var(--x-ease-soft),
              box-shadow var(--x-d-base) var(--x-ease-soft),
              transform var(--x-d-slow) var(--x-ease-out);
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--c-bg) 94%, transparent);
  border-bottom-color: var(--c-linie);
  box-shadow: 0 1px 24px var(--x-ton-26);
}
.header.is-hidden { transform: translateY(-102%); }

.header__inner {
  width: min(100% - 2rem, var(--x-maxwidth-wide));
  margin-inline: auto;
  display: flex; align-items: center; gap: var(--x-space-md);
}
@media (min-width: 768px) { .header__inner { width: min(100% - 3rem, var(--x-maxwidth-wide)); } }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: "Fraunces", serif; font-size: 1.06rem; font-weight: 500;
  color: var(--x-petrol-800); letter-spacing: -.01em;
}
.brand__sub { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-leise); }
@media (max-width: 767px) {
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: .95rem; line-height: 1.08; }
  .brand__sub  { font-size: .62rem; }
}

.nav { display: none; }
@media (min-width: 1080px) {
  .nav { display: flex; align-items: center; gap: .35rem; }
}
.nav__link {
  position: relative; padding: .5rem .8rem; border-radius: var(--x-r-sm);
  font-size: .93rem; font-weight: 400; color: var(--x-ink-soft); text-decoration: none;
  transition: color var(--x-d-fast) var(--x-ease-soft);
  white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .28rem; height: 1.5px;
  background: var(--c-akzent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--x-d-base) var(--x-ease-out);
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--x-petrol-800); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: .5rem; }
.header__phone {
  display: none; align-items: center; gap: .5rem; white-space: nowrap;
  font-size: .93rem; font-weight: 500; color: var(--x-petrol-800); text-decoration: none;
  padding: .5rem .75rem; border-radius: var(--x-r-pill);
  transition: background-color var(--x-d-fast) var(--x-ease-soft);
}
.header__phone:hover { background: var(--x-sand-200); color: var(--x-petrol-800); }
@media (min-width: 900px) { .header__phone { display: inline-flex; } }
.header .btn { min-height: 44px; padding: .6rem 1.25rem; font-size: .9rem; white-space: nowrap; }
/* Auf schmalen Displays weicht der Markenschriftzug – nie die Beschriftung des CTA */
@media (max-width: 559px) {
  .brand__text { display: none; }
  .header .btn { padding: .6rem 1rem; font-size: .85rem; }
  .header .btn .ico { display: none; }
}

/* Burger */
.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px;
  background: transparent; border: 1px solid var(--c-linie); border-radius: var(--x-r-pill);
  cursor: pointer;
}
@media (min-width: 1080px) { .burger { display: none; } }
.burger span {
  display: block; height: 1.5px; width: 100%; background: var(--x-petrol-800); border-radius: 2px;
  transition: transform var(--x-d-base) var(--x-ease-out), opacity var(--x-d-fast) linear;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Panel */
.mobile-nav {
  /* unter dem Header, damit der Schließen-Button sichtbar bleibt */
  position: fixed; inset: 0; z-index: calc(var(--x-z-header) - 1);
  background: var(--c-bg);
  padding: calc(var(--x-header-h) + 1.5rem) 0 2rem;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--x-d-base) var(--x-ease-soft),
              transform var(--x-d-base) var(--x-ease-out),
              visibility 0s linear var(--x-d-base);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.mobile-nav__list li { border-bottom: 1px solid var(--c-linie); margin: 0; }
.mobile-nav__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem .25rem; min-height: 56px;
  font-family: "Fraunces", serif; font-size: 1.3rem; color: var(--x-petrol-800); text-decoration: none;
  opacity: 0; transform: translateY(14px);
}
.mobile-nav.is-open .mobile-nav__link {
  opacity: 1; transform: none;
  transition: opacity var(--x-d-slow) var(--x-ease-out), transform var(--x-d-slow) var(--x-ease-out);
  transition-delay: calc(60ms + var(--i, 0) * 45ms);
}
.mobile-nav__foot { margin-top: var(--x-space-lg); display: grid; gap: .75rem; }

/* Scroll-Fortschritt */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; z-index: calc(var(--x-z-header) + 1);
  width: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--c-akzent), var(--c-primaer-hell));
  pointer-events: none;
}

/* ---------- 7. Hero ------------------------------------------------------ */
.hero {
  position: relative; overflow: clip;
  padding-top: calc(var(--x-header-h) + clamp(2.5rem, 1rem + 6vw, 5.5rem));
  padding-bottom: clamp(3rem, 1.5rem + 6vw, 6.5rem);
  background:
    radial-gradient(120% 90% at 78% 8%, var(--x-ton-13) 0%, var(--x-ton-2) 58%),
    radial-gradient(100% 80% at 10% 95%, var(--x-ton-9) 0%, var(--x-ton-10) 62%),
    linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 72%);
}
.hero__grid {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 1rem + 4vw, 4.5rem); }
}
.hero h1 { margin-bottom: var(--x-space-md); }
.hero__title-accent { color: var(--x-gold-600); font-style: italic; font-variation-settings: "WONK" 1; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--x-space-lg); }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  margin-top: var(--x-space-lg); padding-top: var(--x-space-md);
  border-top: 1px solid var(--c-linie);
  list-style: none; padding-left: 0;
}
.hero__trust li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .855rem; color: var(--x-text-soft); margin: 0;
}
.hero__trust svg { width: 17px; height: 17px; color: var(--x-gold-600); flex: none; }

.hero__media { position: relative; }
.hero__figure {
  position: relative; margin: 0; border-radius: var(--x-r-xl);
  overflow: hidden; box-shadow: var(--x-e-3);
  aspect-ratio: 4 / 5;
  background: var(--x-sand-200);
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.hero__figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--x-ton-5) 0%, var(--x-ton-25) 100%);
  pointer-events: none;
}
/* Ken-Burns */
.hero__figure img { animation: kenburns 22s var(--x-ease-soft) infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1) translate3d(0,0,0); }
  to   { transform: scale(1.07) translate3d(-1.5%, -1.5%, 0); }
}

.hero__badge {
  position: absolute; left: -1rem; bottom: 1.75rem;
  background: var(--x-surface); border: 1px solid var(--c-linie);
  border-radius: var(--x-r-lg); padding: 1rem 1.25rem;
  box-shadow: var(--x-e-2); max-width: 260px;
}
@media (max-width: 620px) { .hero__badge { left: .5rem; right: .5rem; max-width: none; bottom: .75rem; } }
.hero__badge-k {
  font-family: "Fraunces", serif; font-size: 1.9rem; line-height: 1; color: var(--x-petrol-800);
  font-variant-numeric: tabular-nums;
}
.hero__badge-l { font-size: .8rem; color: var(--x-text-soft); margin-top: .3rem; line-height: 1.4; }

/* dekorative Linie */
.hero__rule {
  position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--x-border-strong), transparent);
}

/* ---------- 8. Marquee / Kooperationen ---------------------------------- */
.trustbar { padding-block: clamp(1.75rem, 1rem + 2vw, 2.75rem); background: var(--c-bg); border-bottom: 1px solid var(--c-linie); }
.trustbar__label {
  text-align: center; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--c-text-leise); margin-bottom: 1.25rem;
}
.trustbar__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .75rem 2.5rem;
}
.trustbar__list li {
  margin: 0; display: flex; align-items: center; gap: .55rem;
  font-family: "Fraunces", serif; font-size: clamp(.95rem, .85rem + .35vw, 1.12rem);
  color: var(--x-petrol-800); opacity: .82;
  transition: opacity var(--x-d-base) var(--x-ease-soft);
}
.trustbar__list li:hover { opacity: 1; }
.trustbar__list svg { width: 20px; height: 20px; color: var(--x-gold-600); flex: none; }

/* ---------- 9. Karten ---------------------------------------------------- */
.card {
  position: relative;
  background: var(--x-surface); border: 1px solid var(--c-linie);
  border-radius: var(--x-r-lg); padding: clamp(1.5rem, 1.1rem + 1vw, 2.1rem);
  box-shadow: var(--x-e-1);
  transition: transform var(--x-d-slow) var(--x-ease-out),
              box-shadow var(--x-d-slow) var(--x-ease-out),
              border-color var(--x-d-base) var(--x-ease-soft);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--x-e-3); border-color: var(--x-clay-400); }
.section--dark .card { background: var(--x-ton-17); border-color: var(--x-ton-20); box-shadow: none; }
.section--dark .card:hover { background: var(--x-ton-19); border-color: var(--x-ton-23); }

.card__icon {
  width: 50px; height: 50px; border-radius: 14px; flex: none;
  display: grid; place-items: center; margin-bottom: var(--x-space-sm);
  background: var(--c-bg-alt); color: var(--c-primaer);
  border: 1px solid var(--c-linie);
  transition: background-color var(--x-d-base) var(--x-ease-soft), color var(--x-d-base) var(--x-ease-soft);
}
.card:hover .card__icon { background: var(--c-primaer); color: var(--c-akzent-hell); border-color: var(--c-primaer); }
.card__icon svg { width: 24px; height: 24px; }
.section--dark .card__icon { background: var(--x-ton-18); color: var(--c-akzent-hell); border-color: var(--x-ton-21); }

.card h3 { margin-bottom: .55rem; }
.card p { font-size: .95rem; color: var(--x-text-soft); }
.card .link-arrow { margin-top: auto; padding-top: var(--x-space-sm); }

/* ganze Karte klickbar, Link bleibt fokussierbar */
.card--link .card__cover { position: absolute; inset: 0; border-radius: inherit; }

/* Leistungs-Karte mit Preis */
.card__price {
  margin-top: var(--x-space-sm); padding-top: var(--x-space-sm);
  border-top: 1px dashed var(--c-linie);
  font-size: .85rem; color: var(--x-text-soft);
}
.card__price b { font-family: "Fraunces", serif; font-size: 1.22rem; font-weight: 500; color: var(--x-petrol-800); }

/* ---------- 10. Fakten / Counter ---------------------------------------- */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--c-linie); border-block: 1px solid var(--c-linie); }
@media (min-width: 560px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { margin: 0; background: var(--c-bg); padding: clamp(1.5rem, 1rem + 1.5vw, 2.4rem) 1.5rem; text-align: center; }
.section--alt .facts li { background: var(--c-bg-alt); }
.facts__k {
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: clamp(2.1rem, 1.5rem + 2vw, 3.1rem); line-height: 1;
  color: var(--x-petrol-800); font-variant-numeric: tabular-nums;
  display: block; margin-bottom: .5rem;
}
.facts__k .unit { font-size: .48em; color: var(--x-gold-700); margin-left: .12em; } /* 5.6:1 auf Sand */
.facts__l { font-size: .85rem; color: var(--x-text-soft); line-height: 1.5; }

/* ---------- 11. Split-Sektion (Text + Bild) ----------------------------- */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: -1; }
  .split--wide-text { grid-template-columns: 1.15fr .85fr; }
}
.split__media { position: relative; }
.split__media img, .figure-frame {
  border-radius: var(--x-r-lg); box-shadow: var(--x-e-2); width: 100%;
}
.figure-frame { margin: 0; overflow: hidden; background: var(--x-sand-200); }
.figure-frame figcaption {
  font-size: .78rem; color: var(--c-text-leise); padding: .7rem .9rem;
  background: var(--x-surface); border-top: 1px solid var(--c-linie);
}

/* ---------- 12. Differenzialdiagnose-Vergleich -------------------------- */
.compare { display: grid; gap: var(--x-space-sm); }
@media (min-width: 860px) { .compare { grid-template-columns: repeat(3, 1fr); } }
.compare__item {
  background: var(--x-surface); border: 1px solid var(--c-linie); border-radius: var(--x-r-lg);
  padding: var(--x-space-md); border-top: 3px solid var(--c-akzent);
}
.compare__item h3 { font-size: 1.16rem; }
.compare__item dl { margin: var(--x-space-sm) 0 0; font-size: .9rem; }
.compare__item dt { font-weight: 600; color: var(--c-primaer); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-top: .85rem; }
.compare__item dd { margin: .2rem 0 0; color: var(--x-text-soft); }
.section--dark .compare__item dt { color: var(--c-akzent-hell); }
.section--dark .card__price { border-top-color: var(--x-ton-22); }
.section--dark .card__price b { color: var(--x-hell); }

/* ---------- 13. Timeline / Ablauf --------------------------------------- */
.timeline { position: relative; }
.timeline__list { list-style: none; margin: 0; padding: 0; }

.timeline__track {
  position: absolute; left: 19px; top: 12px; bottom: 12px; width: 2px;
  background: var(--c-linie);
}
@media (min-width: 820px) { .timeline__track { left: 50%; transform: translateX(-1px); } }
.timeline__fill {
  position: absolute; inset-inline: 0; top: 0; height: 0;
  background: linear-gradient(180deg, var(--c-akzent), var(--c-primaer-hell));
  transition: height 120ms linear;
}

.timeline__item { position: relative; margin: 0 0 var(--x-space-lg); padding-left: 3.5rem; }
.timeline__item:last-child { margin-bottom: 0; }
@media (min-width: 820px) {
  .timeline__item { width: 50%; padding-left: 0; padding-right: 3.5rem; text-align: right; }
  .timeline__item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 3.5rem; text-align: left; }
}
.timeline__dot {
  position: absolute; left: 8px; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-bg); border: 2px solid var(--x-border-strong);
  display: grid; place-items: center; color: var(--c-primaer);
  font-size: .72rem; font-weight: 600; font-family: "Poppins", sans-serif;
  transition: background-color var(--x-d-base) var(--x-ease-soft),
              border-color var(--x-d-base) var(--x-ease-soft),
              color var(--x-d-base) var(--x-ease-soft),
              transform var(--x-d-base) var(--x-ease-out);
}
@media (min-width: 820px) {
  .timeline__dot { left: auto; right: -12px; }
  .timeline__item:nth-child(even) .timeline__dot { right: auto; left: -12px; }
}
.timeline__item.is-active .timeline__dot {
  background: var(--c-primaer); border-color: var(--c-primaer); color: var(--x-weiss); transform: scale(1.15);
}
.timeline__when {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--x-gold-700); font-weight: 500; display: block; margin-bottom: .35rem;
}
.timeline__item h3 { font-size: 1.22rem; margin-bottom: .4rem; }
.timeline__item p { font-size: .93rem; color: var(--x-text-soft); max-width: 46ch; }
@media (min-width: 820px) { .timeline__item p { margin-left: auto; } .timeline__item:nth-child(even) p { margin-left: 0; } }

/* ---------- 14. Arzt-Sektion -------------------------------------------- */
.doctor { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
@media (min-width: 900px) { .doctor { grid-template-columns: .82fr 1.18fr; } }
.doctor__portrait { position: relative; border-radius: var(--x-r-xl); overflow: hidden; box-shadow: var(--x-e-3); aspect-ratio: 3/4; background: var(--x-sand-200); }
.doctor__portrait img { width: 100%; height: 100%; object-fit: cover; }
.creds { list-style: none; margin: var(--x-space-md) 0 0; padding: 0; display: grid; gap: .8rem; }
.creds li { display: flex; gap: .8rem; margin: 0; font-size: .95rem; align-items: flex-start; }
.creds svg { width: 20px; height: 20px; color: var(--c-akzent); flex: none; margin-top: .22em; }

.quote {
  margin: var(--x-space-lg) 0 0; padding: var(--x-space-md) 0 var(--x-space-md) var(--x-space-md);
  border-left: 2px solid var(--c-akzent);
  font-family: "Fraunces", serif; font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem);
  line-height: 1.5; color: var(--x-petrol-800); font-style: italic;
}
.section--dark .quote { color: var(--x-hell); }

/* ---------- 15. Preise ---------------------------------------------------- */
.price-grid { display: grid; gap: var(--x-space-sm); }
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price {
  background: var(--x-surface); border: 1px solid var(--c-linie); border-radius: var(--x-r-lg);
  padding: var(--x-space-md); display: flex; flex-direction: column; gap: .5rem;
  transition: border-color var(--x-d-base) var(--x-ease-soft), transform var(--x-d-slow) var(--x-ease-out);
}
.price:hover { border-color: var(--x-clay-400); transform: translateY(-3px); }
.price--featured { border-color: var(--c-akzent); box-shadow: var(--x-e-2); position: relative; }
.price--featured::before {
  content: attr(data-badge); position: absolute; top: -.72rem; left: var(--x-space-md);
  background: var(--c-akzent); color: var(--x-petrol-900);
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .22rem .7rem; border-radius: var(--x-r-pill);
}
.price__name { font-family: "Fraunces", serif; font-size: 1.24rem; color: var(--x-petrol-800); }
.price__val { font-family: "Fraunces", serif; font-size: 2.1rem; line-height: 1; color: var(--x-petrol-800); font-variant-numeric: tabular-nums; }
.price__val small { font-size: .42em; font-family: "Poppins", sans-serif; color: var(--c-text-leise); font-weight: 400; display: block; margin-bottom: .3rem; letter-spacing: .08em; text-transform: uppercase; }
.price__note { font-size: .85rem; color: var(--x-text-soft); }
.price__incl { list-style: none; margin: .5rem 0 0; padding: 0; font-size: .855rem; }
.price__incl li { display: flex; gap: .55rem; align-items: flex-start; color: var(--x-text-soft); margin-bottom: .35rem; }
.price__incl svg { width: 16px; height: 16px; color: var(--x-success); flex: none; margin-top: .28em; }

.notice {
  border: 1px solid var(--c-linie); border-left: 3px solid var(--c-primaer-hell);
  background: var(--c-bg-alt); border-radius: var(--x-r-md);
  padding: var(--x-space-md); font-size: .92rem;
}
.notice h4 { margin-bottom: .4rem; color: var(--x-petrol-800); }
.notice--warn { border-left-color: var(--x-gold-600); }
.section--dark .notice { background: var(--x-ton-3); border-color: var(--x-ton-4); border-left-color: var(--c-akzent-hell); }
.section--dark .notice h4 { color: var(--x-hell); }

/* ---------- 16. Buchung / Consent-iframe -------------------------------- */
.booking { border-radius: var(--x-r-xl); overflow: hidden; border: 1px solid var(--c-linie); background: var(--x-surface); box-shadow: var(--x-e-2); }
.section--dark .booking { border-color: var(--x-ton-5); }
.booking__consent {
  padding: clamp(2rem, 1.2rem + 3vw, 3.5rem) var(--x-space-md);
  text-align: center; background: var(--c-bg-alt);
  display: grid; place-items: center; gap: var(--x-space-sm); min-height: 380px;
  align-content: center;
}
.booking__consent svg { width: 44px; height: 44px; color: var(--x-gold-600); }
.booking__consent p { max-width: 52ch; font-size: .92rem; color: var(--x-text-soft); }
.booking__frame { display: none; }
.booking.is-loaded .booking__consent { display: none; }
.booking.is-loaded .booking__frame { display: block; }
.booking__frame iframe { width: 100%; height: 900px; display: block; background: var(--x-weiss); }
@media (max-width: 640px) { .booking__frame iframe { height: 1100px; } }

/* Karten-Einbettung: gleiche Consent-Mechanik, kompaktere Darstellung.
   Grid mit einer 1fr-Zeile – das jeweils sichtbare Kind füllt die volle Höhe. */
.map-embed {
  border-radius: var(--x-r-lg);
  display: grid; grid-template-rows: 1fr;
  min-height: 420px; align-self: stretch;
}
.map-embed .booking__consent { min-height: 0; height: 100%; padding-inline: var(--x-space-md); }
.map-embed .booking__consent svg { width: 34px; height: 34px; }
.map-embed .booking__consent p { font-size: .86rem; max-width: 34ch; }
/* Sand statt Weiß hinter der Karte – falls der Kartendienst langsam oder nicht erreichbar ist,
   entsteht kein weißes Loch im Layout */
.map-embed .booking__frame { height: 100%; background: var(--x-sand-200); }
.map-embed .booking__frame iframe { height: 100%; min-height: 420px; background: transparent; }

/* ---------- 17. FAQ ------------------------------------------------------ */
.faq { max-width: 860px; margin-inline: auto; }
.faq__item {
  border-bottom: 1px solid var(--c-linie);
  transition: background-color var(--x-d-base) var(--x-ease-soft);
}
.faq__item:first-child { border-top: 1px solid var(--c-linie); }
.faq__q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--x-space-sm);
  width: 100%; min-height: 62px; padding: 1.25rem .25rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: "Fraunces", serif; font-size: clamp(1.02rem, .96rem + .4vw, 1.2rem);
  color: var(--x-petrol-800); line-height: 1.35;
  transition: color var(--x-d-fast) var(--x-ease-soft);
}
.faq__q:hover { color: var(--x-gold-700); }
.faq__q::-webkit-details-marker { display: none; }
.faq__ico {
  width: 26px; height: 26px; flex: none; margin-top: .1em; position: relative;
  border-radius: 50%; border: 1px solid var(--x-border-strong);
  transition: transform var(--x-d-base) var(--x-ease-out), background-color var(--x-d-base) var(--x-ease-soft), border-color var(--x-d-base) var(--x-ease-soft);
}
.faq__ico::before, .faq__ico::after {
  content: ""; position: absolute; inset: 50% 30%; height: 1.5px; margin-top: -.75px;
  background: var(--c-primaer); transition: transform var(--x-d-base) var(--x-ease-out), background-color var(--x-d-base) var(--x-ease-soft);
}
.faq__ico::after { transform: rotate(90deg); }
.faq__item.is-open .faq__ico { background: var(--c-primaer); border-color: var(--c-primaer); transform: rotate(180deg); }
.faq__item.is-open .faq__ico::before,
.faq__item.is-open .faq__ico::after { background: var(--x-weiss); }
.faq__item.is-open .faq__ico::after { transform: rotate(0deg); }

.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--x-d-slow) var(--x-ease-out);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
/* visibility statt nur Höhe 0: nimmt eingeklappte Antworten aus dem A11y-Baum */
.faq__a > div {
  overflow: hidden; visibility: hidden;
  transition: visibility 0s linear var(--x-d-slow);
}
.faq__item.is-open .faq__a > div { visibility: visible; transition-delay: 0s; }
.faq__a p { padding: 0 3rem .5rem .25rem; font-size: .95rem; color: var(--x-text-soft); }
.faq__a p:last-child { padding-bottom: 1.5rem; }
.faq__a ul { padding-left: 1.5rem; margin-right: 3rem; font-size: .95rem; color: var(--x-text-soft); }

/* ---------- 18. Standorte ------------------------------------------------ */
.locations { display: grid; gap: var(--x-space-md); }
@media (min-width: 860px) { .locations { grid-template-columns: 1.15fr .85fr; } }
.loc {
  background: var(--x-surface); border: 1px solid var(--c-linie); border-radius: var(--x-r-lg);
  padding: var(--x-space-md);
}
.loc--primary { border-color: var(--x-clay-400); box-shadow: var(--x-e-2); }
.loc__tag {
  display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--x-gold-700); font-weight: 600; margin-bottom: .5rem;
}
.loc address { font-style: normal; color: var(--x-text-soft); font-size: .95rem; line-height: 1.7; }
.loc__links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--x-space-sm); }
.map-frame { border-radius: var(--x-r-lg); overflow: hidden; border: 1px solid var(--c-linie); background: var(--x-sand-200); min-height: 260px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 260px; display: block; }

/* ---------- 19. CTA-Band -------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 130% at 85% 10%, var(--x-ton-14) 0%, var(--x-ton-2) 60%),
    linear-gradient(140deg, var(--x-petrol-800) 0%, var(--x-petrol-900) 100%);
  color: var(--x-weiss); border-radius: var(--x-r-xl);
  padding: clamp(2.25rem, 1.5rem + 4vw, 4.5rem);
  text-align: center;
}
.cta-band h2 { color: var(--x-hell); }
.cta-band p { color: var(--x-dunkel-lead); margin-inline: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: var(--x-space-md); }

/* ---------- 20. Footer ---------------------------------------------------- */
.footer { background: var(--x-petrol-900); color: var(--x-dunkel-text); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; font-size: .92rem; }
.footer h4 { color: var(--x-hell); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 500; }
/* strong erbt sonst Petrol und wäre auf dunklem Grund unlesbar */
.footer strong, .cta-band strong { color: var(--x-hell); }
.footer a { color: var(--x-dunkel-link); text-decoration-color: var(--x-ton-15); }
.footer a:hover { color: var(--c-akzent-hell); }
.footer__grid { display: grid; gap: var(--x-space-lg); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .55rem; }
.footer__brand { font-family: "Fraunces", serif; font-size: 1.3rem; color: var(--x-hell); margin-bottom: .5rem; }
.footer__bottom {
  margin-top: var(--x-space-lg); padding-top: var(--x-space-md);
  border-top: 1px solid var(--x-ton-1);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: var(--x-dunkel-leise);
}
.footer__bottom a { color: var(--x-dunkel-leise); }

.sources { margin-top: var(--x-space-lg); padding-top: var(--x-space-md); border-top: 1px solid var(--x-ton-1); }
.sources ol { font-size: .78rem; line-height: 1.65; color: var(--x-dunkel-quellen); padding-left: 1.2rem; columns: 1; }
@media (min-width: 860px) { .sources ol { columns: 2; column-gap: 2.5rem; } }
.sources li { margin-bottom: .5rem; break-inside: avoid; }

/* ---------- 21. Sticky Mobile CTA ---------------------------------------- */
.mobile-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: var(--x-z-sticky);
  display: flex; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--c-bg) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-linie);
  transform: translateY(110%);
  transition: transform var(--x-d-slow) var(--x-ease-out);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { flex: 1; min-height: 48px; font-size: .875rem; padding-inline: .75rem; }
@media (min-width: 900px) { .mobile-cta { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 68px; } }

/* ---------- 22. Breadcrumb ------------------------------------------------ */
.breadcrumb { font-size: .8rem; color: var(--c-text-leise); padding-top: calc(var(--x-header-h) + 1.5rem); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; color: var(--x-border-strong); }
.breadcrumb a { color: var(--c-text-leise); }

/* ---------- 23. Prose (Rechtstexte / Artikel) ---------------------------- */
.prose h2 { margin-top: var(--x-space-lg); }
.prose h3 { margin-top: var(--x-space-md); }
.prose ul, .prose ol { color: var(--x-text-soft); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: var(--x-space-md); }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--c-linie); vertical-align: top; }
.prose th { font-weight: 600; color: var(--x-petrol-800); background: var(--c-bg-alt); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: var(--x-space-md); }

/* ---------- 24. Scroll-Animationen (cinematisch) ------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity var(--x-d-cine) var(--x-ease-out),
    transform var(--x-d-cine) var(--x-ease-out),
    filter var(--x-d-cine) var(--x-ease-out);
  filter: blur(6px);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translate3d(-42px, 0, 0); }
[data-reveal="right"] { transform: translate3d(42px, 0, 0); }
[data-reveal="scale"] { transform: scale(.94); filter: blur(8px); }
[data-reveal="mask"]  { transform: translate3d(0, 60px, 0); clip-path: inset(0 0 100% 0); filter: none; }

[data-reveal].is-in {
  opacity: 1; transform: none; filter: blur(0);
}
[data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }

/* Zeilenweiser Text-Reveal (JS erzeugt .line > .line__inner) */
.line { display: block; overflow: hidden; }
.line__inner {
  display: block;
  transform: translate3d(0, 105%, 0) rotate(2.5deg);
  transition: transform 1150ms var(--x-ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
  transform-origin: left bottom;
}
.is-in .line__inner, .line.is-in .line__inner { transform: none; }

/* Wortweiser Reveal */
.word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word__inner {
  display: inline-block;
  transform: translate3d(0, 100%, 0);
  transition: transform 900ms var(--x-ease-out);
  transition-delay: calc(var(--i, 0) * 42ms);
}
.is-in .word__inner { transform: none; }

/* Parallax-Layer */
[data-parallax] { will-change: transform; }

/* SVG-Linienzeichnung */
.draw path, .draw circle, .draw ellipse, .draw line {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  transition: stroke-dashoffset 2200ms var(--x-ease-out);
  transition-delay: calc(var(--i, 0) * 220ms);
}
.draw.is-in path, .draw.is-in circle, .draw.is-in ellipse, .draw.is-in line { stroke-dashoffset: 0; }

/* Sticky-Stack-Karten */
.stack-cards { display: grid; gap: var(--x-space-md); }
@media (min-width: 900px) {
  .stack-cards { gap: 0; }
  .stack-cards > * {
    position: sticky; top: calc(var(--x-header-h) + 3vh);
    margin-bottom: var(--x-space-md);
  }
}

/* Bild-Platzhalter */
.ph {
  display: grid; place-items: center; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, var(--x-ton-11) 0 12px, var(--x-ton-12) 12px 24px),
    linear-gradient(150deg, var(--x-sand-200), var(--x-sand-300));
  color: var(--c-text-leise); text-align: center; padding: 1.5rem;
}
.ph__label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- 25. Reduced Motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .line__inner, .word__inner { transform: none !important; }
  .draw path, .draw circle, .draw ellipse, .draw line { stroke-dashoffset: 0 !important; }
  .hero__figure img { animation: none !important; }
  .stack-cards > * { position: static; }
}

/* ---------- 26. Print ----------------------------------------------------- */
@media print {
  .header, .mobile-cta, .mobile-nav, .progress-bar, .booking, .cta-band { display: none !important; }
  body { background: var(--x-weiss); font-size: 11pt; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: var(--x-ton-7); }
}


/* ==========================================================================
   Geteilte Bausteine (aus _shared/sections) an das Site-Design anpassen
   ========================================================================== */

/* --- FAQ (details/summary aus dem geteilten Baustein) -------------------- */
.faq-liste { max-width: 860px; margin-inline: auto; }
.sec-faq .sec-titel { text-align: center; }
.faq-eintrag { border-color: var(--c-linie); }
.faq-eintrag:first-child { border-top: 1px solid var(--c-linie); }
.faq-frage {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.02rem, .96rem + .4vw, 1.2rem);
  color: var(--x-petrol-800);
  padding-block: 1.25rem;
}
.faq-frage:hover { color: var(--x-gold-700); }
.faq-frage::after { color: var(--x-gold-600); }
.faq-antwort { color: var(--x-text-soft); font-size: .95rem; }
.faq-antwort p { max-width: 68ch; }

/* --- Footer (geteilter Baustein) ------------------------------------------ */
.footer { background: var(--x-petrol-900); color: var(--x-dunkel-text); font-size: .92rem; }
.footer-inner { max-width: var(--x-maxwidth-wide); }
.footer-name { font-family: var(--font-head); font-size: 1.3rem; color: var(--x-hell); }
.footer-arzt { font-weight: 600; color: var(--x-hell); }
.footer-fach { color: var(--x-dunkel-text-2); }
.footer-link { border-bottom: none; }
.footer-link:hover { color: var(--c-akzent-hell); }

/* --- Autorenbox ------------------------------------------------------------ */
.autorenbox { background: var(--c-bg); border-top: 1px solid var(--c-linie); }
.autor-name { font-family: var(--font-head); font-size: 1.05rem; }
.autor-link { color: var(--c-primaer); }

/* --- Rechtsseiten (Impressum/Datenschutz aus _shared) --------------------- */
.sec-recht { padding-top: calc(var(--x-header-h) + var(--sec-abstand)); }
.sec-recht .sec-inner { max-width: 780px; }
.sec-recht h1 { margin-bottom: .5em; }
.sec-recht h2 { margin-top: 2em; font-size: clamp(1.28rem, 1.08rem + .8vw, 1.65rem); }
.recht-einleitung { color: var(--x-text-soft); }

/* --- Preis-Hinweis (zentral, Werberichtlinie) ------------------------------ */
.preis-hinweis {
  font-size: .875rem; color: var(--c-text-leise);
  margin-top: 1.5rem; max-width: 68ch;
}

/* --- Termin-Fallback ------------------------------------------------------- */
.termin-fallback { text-align: center; }

/* --- Hilfsklassen für portierte Abstände ----------------------------------- */
.notice--abstand { margin-top: 2.5rem; }
.grid--abstand { margin-top: 2rem; }
.notice--buendig { align-self: start; }
.notice--kasten { background: var(--x-surface); }
.creds-link { margin-top: 1.75rem; }
.card__fussnote { margin-top: 1rem; }
.card--dezent { background: var(--c-bg-alt); border-style: dashed; }
.card__text p { font-size: .95rem; color: var(--x-text-soft); }
.locations__spalte { gap: 1.25rem; }
.loc__anfahrt { margin-top: 1rem; }
.verwandt { margin-top: 3rem; }
.sources__titel {
  color: var(--x-hell); font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; font-family: var(--font-body); font-weight: 500;
}
.zelle-erste { font-weight: 600; color: var(--x-petrol-800); }
.prose caption { text-align: left; padding-bottom: .6rem; color: var(--c-text-leise); caption-side: top; }

/* Quellen-Sektion als dunkler Block (stand vorher im Footer) */
.sources { background: var(--x-petrol-900); }
.sources ol { font-size: .78rem; line-height: 1.65; color: var(--x-dunkel-quellen); padding-left: 1.2rem; columns: 1; column-gap: 2.5rem; }
@media (min-width: 860px) { .sources ol { columns: 2; } }
.sources li { margin-bottom: .5rem; break-inside: avoid; }
.sources a { color: var(--x-dunkel-link); }
.sources a:hover { color: var(--c-akzent-hell); }
.sources__hinweis { color: var(--x-dunkel-leise); max-width: 80ch; }

/* Bild-Platzhalter in gestalteten Rahmen */
.hero__figure .bild-platzhalter,
.doctor__portrait .bild-platzhalter { height: 100%; min-height: 100%; border: 0; border-radius: 0; }
.figure-frame .bild-platzhalter { border: 0; border-radius: 0; min-height: 320px; }

/* Preiskarte: Badge über data-Attribut (vorher fester ::before-Text) */
.price--featured:not([data-badge])::before { display: none; }
