/* ==========================================================================
   RHEIN PHYSIO – Relaunch 2026 · Grundlage für alle Seiten
   Leitidee: „Wieder im Fluss.“ – die Wirbel der Bildmarke geben Halt (Struktur,
   Navigation, Chips), die Wellen geben Bewegung (Strömung, Übergänge, Motion).

   Aufbau:  main.css   Tokens, Basis, Bausteine, Kopf- und Fußzeile, Kontakt, Auftritte
            home.css   Abschnitte der Startseite
            pages.css  Bausteine der Unterseiten
   ========================================================================== */

/* ---------- 1 · Tokens ---------- */
:root {
  /* Markenfarben – unverändert aus dem bestehenden Auftritt */
  --blue: #67AACE;
  --blue-600: #58A1C9;
  --blue-700: #437F9F;
  --teal: #40BBAF;
  --teal-300: #4EC2B7;
  --teal-700: #4E9690;
  --deep: #1C4A63;

  /* Abgeleitete Töne (Abstufungen der Markenfarben) */
  --blue-800: #35708F;   /* Blau für kleine Schrift, AA auf Hell */
  --blue-200: #A5CDE3;   /* helle Welle der Bildmarke */
  --ink: #0E2A3A;        /* tiefes Rheinblau für Schrift und dunkle Flächen */
  --ink-2: #0A202D;
  --text: #33505F;
  --muted: #4E6C7C;       /* gedämpfter Text – AA auch auf der Fläche „Schaum“ */
  --mist: #F1F7FA;       /* Morgennebel – Grundfläche */
  --foam: #E3EFF5;
  --white: #FFFFFF;
  --line: rgba(14, 42, 58, .13);
  --line-strong: rgba(14, 42, 58, .28);
  --line-light: rgba(255, 255, 255, .16);

  /* Schrift */
  --sans: "Geologica", "Geologica Ersatz", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Newsreader", "Newsreader Ersatz", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --fs-hero: 19.5vw;
  --fs-page: clamp(2.7rem, 11.6vw, 4.4rem);
  --fs-display: clamp(2.6rem, 9.4vw, 4.2rem);
  --fs-statement: clamp(1.75rem, 6.6vw, 2.5rem);
  --fs-h3: clamp(1.3rem, 4.6vw, 1.6rem);
  --fs-lead: clamp(1.1rem, 4.2vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .75rem;

  /* Raum */
  --gutter: clamp(1.25rem, 5vw, 2rem);
  --max: 1560px;
  --space-section: clamp(5.5rem, 16vw, 8rem);
  --space-l: clamp(3rem, 9vw, 4.5rem);
  --space-m: clamp(1.75rem, 5vw, 2.5rem);
  --header-h: 4.5rem;

  /* Form */
  --r-s: .875rem;
  --r-m: 1.375rem;
  --r-l: 2rem;
  --r-xl: clamp(1.75rem, 3.4vw, 3rem);
  --pill: 999px;

  /* Bewegung: fließen statt springen */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-soft: cubic-bezier(.4, .1, .2, 1);
}

@media (min-width: 52em) {
  :root {
    --fs-hero: clamp(5.5rem, min(11.9vw, 19.2vh), 13.5rem);
    --fs-hero: clamp(5.5rem, min(11.9vw, 19.2svh), 13.5rem);
    --fs-page: clamp(3.6rem, min(6.5vw, 11.5vh), 7.75rem);
    --fs-page: clamp(3.6rem, min(6.5vw, 11.5svh), 7.75rem);
    --fs-display: clamp(3.4rem, 6.4vw, 7rem);
    --fs-statement: clamp(2.1rem, 3.7vw, 4rem);
    --fs-h3: clamp(1.4rem, 1.9vw, 1.9rem);
    --fs-lead: clamp(1.15rem, 1.45vw, 1.45rem);
    --fs-body: clamp(1.0625rem, 1.05vw, 1.1875rem);
    --gutter: clamp(2rem, 4.4vw, 5rem);
    --space-section: clamp(6rem, 9.5vw, 10.5rem);
    --space-l: clamp(3rem, 5vw, 5.5rem);
    --header-h: 5.75rem;
  }
}

/* Ersatzschriften mit angeglichenen Maßen: Solange die Webschrift lädt, steht der Text schon
   in gleicher Breite und Höhe – beim Wechsel springt nichts (CLS).
   Werte gemessen gegen Geologica 300/400 und Newsreader 300 kursiv (29.09.2026). */
@font-face {
  font-family: "Geologica Ersatz";
  font-weight: 100 349;
  src: local("Arial"), local("Helvetica");
  size-adjust: 104.6%;
  ascent-override: 93.7%;
  descent-override: 25.8%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Geologica Ersatz";
  font-weight: 350 900;
  src: local("Arial"), local("Helvetica");
  size-adjust: 106.2%;
  ascent-override: 92.3%;
  descent-override: 25.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Newsreader Ersatz";
  font-style: italic;
  font-weight: 100 900;
  src: local("Georgia Italic"), local("Georgia-Italic");
  size-adjust: 86%;
  ascent-override: 86%;
  descent-override: 30.2%;
  line-gap-override: 0%;
}

/* Weicher Übergang zwischen den Seiten (wo der Browser es kann) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: cubic-bezier(.4, .1, .2, 1); }

/* ---------- 2 · Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
.reduce-motion { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address, blockquote { margin: 0; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img, svg, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 500; }
em { font-style: italic; }
summary { cursor: pointer; }
[hidden] { display: none !important; }
main:focus { outline: none; }

::selection { background: var(--blue); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 4px;
  border-radius: 6px;
}
[data-tone="dark"] :focus-visible { outline-color: var(--blue); }

.sprite { position: absolute; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 200;
  padding: .85rem 1.25rem; border-radius: var(--pill);
  background: var(--ink); color: var(--white); font-weight: 400;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- 3 · Typografie ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .85em;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-800);
  line-height: 1.3;
}
/* Ein Wirbel als Aufzählungszeichen */
.eyebrow::before {
  content: "";
  flex: none;
  width: 1.5em; height: .62em;
  border-radius: var(--pill);
  background: var(--teal-300);
}
[data-tone="dark"] .eyebrow { color: var(--blue); }
[data-tone="teal"] .eyebrow { color: var(--ink); }
[data-tone="teal"] .eyebrow::before { background: var(--ink); }

.display {
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.04em;
  color: var(--ink);
  text-wrap: balance;
}
.display--sm { font-size: clamp(2.4rem, 5vw, 5rem); }
.display--xl { font-size: clamp(3rem, 9.6vw, 10.5rem); line-height: .92; letter-spacing: -.045em; }
.display em, .hero__title em, .page-hero__title em {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -.025em;
  color: var(--blue-700);
}
[data-tone="dark"] .display { color: var(--white); }
[data-tone="dark"] .display em { color: var(--blue); }
[data-tone="teal"] .display em { color: var(--deep); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text);
  max-width: 34em;
  text-wrap: pretty;
}
[data-tone="dark"] .lead { color: rgba(255, 255, 255, .8); }
[data-tone="teal"] .lead { color: var(--ink); }

/* Die große Aussage: Wörter leuchten beim Scrollen nacheinander auf */
.statement {
  font-size: var(--fs-statement);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -.032em;
  color: var(--ink);
  text-wrap: pretty;
}
.statement--sm { font-size: clamp(1.6rem, 5.6vw, 2.2rem); line-height: 1.18; letter-spacing: -.028em; }
@media (min-width: 60em) {
  .statement { font-size: clamp(2rem, 3.15vw, 3.6rem); }
  .statement--sm { font-size: clamp(1.75rem, 2.45vw, 2.9rem); }
}
.statement .word { transition: opacity .5s linear; }
.anim .statement .word { opacity: .16; }
.anim .statement .word.is-lit { opacity: 1; }

.section-head { display: grid; gap: var(--space-m); margin-bottom: var(--space-l); }
.section-head .eyebrow { margin-bottom: calc(var(--space-m) * -.35); }
.section-head__text { display: grid; gap: 1.25rem; justify-items: start; font-size: var(--fs-lead); line-height: 1.5; max-width: 30em; text-wrap: pretty; }
.section-head__text .link-arrow { font-size: var(--fs-body); }

@media (min-width: 60em) {
  .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: var(--gutter); align-items: end; }
  .section-head .eyebrow { grid-column: 1 / -1; }
}
.section-head--split > div { display: grid; gap: var(--space-m); }
.section-head--split .eyebrow { margin-bottom: 0; }

/* ---------- 4 · Bausteine ---------- */

/* Buttons: die Füllung steigt wie Wasser */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-fill: var(--blue);
  --btn-fill-fg: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .75em;
  min-height: 3.25rem;
  padding: .8em 1.6em;
  border-radius: var(--pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease), box-shadow .45s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: "";
  position: absolute; inset: -1px; z-index: -1;
  background: var(--btn-fill);
  border-radius: 50% 50% 0 0 / 90% 90% 0 0;
  transform: translateY(103%);
  transition: transform .65s var(--ease), border-radius .65s var(--ease);
}
.btn__icon { width: 1.25em; height: 1.25em; flex: none; transition: transform .5s var(--ease); }
.btn--sm { min-height: 2.75rem; padding: .65em 1.3em; font-size: .9375rem; }
.btn--lg { min-height: 3.75rem; padding: .9em 1.9em; font-size: 1.0625rem; }
.btn--xl { min-height: clamp(4.25rem, 7vw, 6rem); padding: 1em clamp(2rem, 4vw, 3.5rem); font-size: clamp(1.15rem, 1.7vw, 1.6rem); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  --btn-fill: var(--ink); --btn-fill-fg: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--blue {
  --btn-bg: var(--blue); --btn-fg: var(--ink);
  --btn-fill: var(--white); --btn-fill-fg: var(--ink);
}
/* Kontur auf dunklem Grund */
.btn--line {
  --btn-bg: transparent; --btn-fg: var(--white);
  --btn-fill: var(--white); --btn-fill-fg: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.btn.is-magnetic { transition: color .45s var(--ease), box-shadow .45s var(--ease), translate .7s var(--ease); }
@media (hover: hover) {
  .btn:hover { color: var(--btn-fill-fg); }
  .btn:hover::before { transform: none; border-radius: 0; }
  .btn:hover .btn__icon:not(.btn__icon--lead) { transform: translateX(.25em); }
}
.btn:active { scale: .98; }

/* Textlink mit Pfeil */
.link-arrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-weight: 400; color: var(--ink);
  padding-block: .35em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-arrow svg { width: 1.2em; height: 1.2em; flex: none; transition: transform .5s var(--ease); }
.link-arrow--light { color: var(--white); }
@media (hover: hover) {
  .link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
  .link-arrow:hover svg { transform: translateX(.3em); }
}

/* Links im Fließtext */
.text-link, .faq__a a, .note__body p a, .questions__more a, .booking__points a, .booking__provider a {
  color: var(--ink); font-weight: 400;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
  text-decoration-color: var(--blue-700);
  transition: text-decoration-color .3s;
}
@media (hover: hover) { .text-link:hover, .faq__a a:hover, .note__body p a:hover, .questions__more a:hover, .booking__points a:hover, .booking__provider a:hover { text-decoration-color: currentColor; } }

/* Chips: die Wirbel der Bildmarke */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  padding: .5em 1.05em;
  border-radius: var(--pill);
  background: var(--foam);
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 400;
  line-height: 1.2;
}

.round-btn {
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  transition: background .4s var(--ease), color .4s var(--ease), opacity .3s;
}
.round-btn svg { width: 1.3rem; height: 1.3rem; }
.round-btn[data-gallery-prev] svg { transform: scaleX(-1); }
.round-btn:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .round-btn:not(:disabled):hover { background: var(--ink); color: var(--white); } }

/* Häkchenliste */
.checks { display: grid; gap: .7rem; }
.checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; align-items: start; }
.checks svg { width: 1.4rem; height: 1.4rem; margin-top: .12em; color: var(--blue-700); }
.checks--lg { gap: 0; border-top: 1px solid var(--line); }
.checks--lg li { padding-block: clamp(1rem, 1.6vw, 1.35rem); border-bottom: 1px solid var(--line); color: var(--ink); }

/* Öffnungsstatus */
.open-status { display: inline-flex; align-items: center; gap: .65em; font-size: var(--fs-small); font-weight: 400; color: var(--ink); line-height: 1.25; }
.open-status__dot { position: relative; flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--muted); }
.open-status.is-open .open-status__dot { background: var(--teal); }
.open-status.is-open .open-status__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal);
  animation: pulse 2.4s var(--ease) infinite;
}
.open-status__sub { display: block; font-weight: 300; color: var(--muted); font-size: .8125rem; margin-top: .15em; }
.open-status--header { display: none; white-space: nowrap; }
.open-status--inline { margin-top: 1.1rem; color: var(--white); }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

/* Freie Termine (aus Orbit): in der Kopfzeile als Pille, im ersten Bildschirm als Zeile */
.slots { display: inline-flex; align-items: center; gap: .65em; font-size: var(--fs-small); font-weight: 400; color: var(--ink); line-height: 1.3; }
.slots__dot { position: relative; flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--teal); }
.slots__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); animation: pulse 2.4s var(--ease) infinite; }
.slots--header {
  display: none;
  min-height: 2.75rem; padding: .3em 1.1em .3em .95em;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
  transition: background-color .4s var(--ease), box-shadow .4s;
}
.slots__short, .slots__long { display: none; }
@media (hover: hover) { .slots--header:hover { background: var(--white); box-shadow: inset 0 0 0 1px var(--line-strong); } }
.is-menu-open .slots--header { visibility: hidden; }

.slots--hero { align-items: flex-start; max-width: 34em; padding: .85rem 1.15rem .9rem 1rem; border-radius: 1.4rem; background: rgba(255, 255, 255, .74); box-shadow: inset 0 0 0 1px var(--line); }
.slots--hero .slots__dot { margin-top: .42em; }
.slots--hero strong { font-weight: 500; }
.slots__stand { display: block; margin-top: .2em; font-size: .8125rem; font-weight: 300; color: var(--muted); }
.slots__stand a { color: var(--ink); font-weight: 400; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--blue-700); }
.slots--dark { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line-light); color: var(--white); }
.slots--dark .slots__stand { color: rgba(255, 255, 255, .7); }
.slots--dark .slots__stand a { color: var(--white); text-decoration-color: var(--blue); }

/* Wellenkanten zwischen Abschnitten */
.wave-edge { position: absolute; left: 0; width: 100%; height: clamp(3rem, 9vw, 9rem); pointer-events: none; }
.wave-edge--top { bottom: calc(100% - 1px); transform-origin: 50% 100%; animation: swell 9s var(--ease-io) infinite alternate; }
.wave-edge--bottom { top: calc(100% - 1px); transform-origin: 50% 0; animation: swell 11s var(--ease-io) infinite alternate-reverse; }
@keyframes swell { from { transform: scale(1.06, .72) translateX(-1.5%); } to { transform: scale(1.06, 1) translateX(1.5%); } }

/* Strömung (WebGL) – erscheint, sobald das erste Bild gezeichnet ist */
.flow { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--ease-soft); }
.flow.is-live { opacity: 1; }

/* Kurzfakten unter dem Seitenkopf */
.hero__facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem var(--gutter);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .875rem; line-height: 1.4;
}
.hero__facts strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: .15em; }
.hero__facts span { color: var(--muted); }
@media (min-width: 52em) { .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: var(--fs-small); } }

/* Fragen und Antworten */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; align-items: center;
  padding-block: clamp(1.05rem, 1.8vw, 1.5rem);
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q h3 { font-size: clamp(1.125rem, 1.45vw, 1.4rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.28; color: var(--ink); text-wrap: balance; }
.faq__icon {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s, rotate .5s var(--ease);
}
.faq__icon svg { width: 1.1rem; height: 1.1rem; }
.faq__item[open] .faq__icon { background: var(--ink); color: var(--white); box-shadow: none; rotate: 45deg; }
@media (hover: hover) { .faq__q:hover .faq__icon { background: var(--ink); color: var(--white); box-shadow: none; } }
.faq__a { padding: 0 clamp(0rem, 4vw, 3.75rem) clamp(1.3rem, 2vw, 1.8rem) 0; max-width: 46em; line-height: 1.65; }
@supports (interpolate-size: allow-keywords) {
  .faq__item { interpolate-size: allow-keywords; }
  .faq__item::details-content { block-size: 0; overflow-y: clip; transition: block-size .55s var(--ease), content-visibility .55s allow-discrete; }
  .faq__item[open]::details-content { block-size: auto; }
}

/* Preis des Erstgesprächs (auf dunklem Grund) */
.price {
  display: grid; grid-template-columns: repeat(3, auto); gap: 0;
  border-radius: var(--r-m);
  box-shadow: inset 0 0 0 1px var(--line-light);
  overflow: hidden;
}
.price > div { padding: 1rem clamp(1rem, 2vw, 1.6rem) 1.1rem; display: grid; gap: .2rem; }
.price > div + div { border-left: 1px solid var(--line-light); }
.price dt { font-size: .8125rem; color: rgba(255, 255, 255, .7); line-height: 1.3; }
.price dd { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 300; letter-spacing: -.03em; color: var(--white); line-height: 1.1; font-variant-numeric: tabular-nums; }
.price__sum { background: rgba(103, 170, 206, .16); }
.price__sum dd { color: var(--blue); }

/* Beiträge aus dem Ratgeber als Karten (Startseite, Ratgeber, Leistungsseiten) */
.posts { display: grid; gap: 1rem; }
.post a {
  position: relative; isolation: isolate;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.1rem;
  height: 100%;
  padding: clamp(1.5rem, 2.2vw, 2.4rem);
  border-radius: var(--r-l);
  background: var(--mist);
  color: var(--ink);
  overflow: hidden;
  transition: color .5s var(--ease);
}
.post a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--blue);
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  transform: translateY(102%);
  transition: transform .75s var(--ease), border-radius .75s var(--ease);
}
.post__topic { display: flex; flex-wrap: wrap; gap: .2em 1em; font-size: var(--fs-label); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-800); transition: color .5s; }
.post__title { font-size: clamp(1.4rem, 2.05vw, 2rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.14; text-wrap: balance; }
.post__teaser { font-size: var(--fs-small); line-height: 1.55; color: var(--text); max-width: 34em; transition: color .5s; }
.post__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; align-self: end; padding-top: .5rem; font-size: var(--fs-small); font-weight: 400; }
.post__arrow { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); justify-self: end; transition: background .5s var(--ease), color .5s, transform .6s var(--ease); }
.post__arrow svg { width: 1.2rem; height: 1.2rem; }
@media (hover: hover) {
  .post a:hover::before { transform: none; border-radius: 0; }
  .post a:hover .post__topic, .post a:hover .post__teaser { color: var(--ink); }
  .post a:hover .post__arrow { background: var(--ink); color: var(--white); transform: rotate(45deg); }
}
@media (min-width: 52em) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 1.6vw, 1.75rem); } }
@media (min-width: 52em) { .posts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.posts--light .post a { background: var(--white); }

/* Ablauf als Flusslauf */
.path { position: relative; }
.path__river { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.path__river path { fill: none; stroke-linecap: round; }
.path__river-bg { stroke: rgba(255, 255, 255, .13); stroke-width: 1.5; stroke-dasharray: 2 9; }
.path__river-fg { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 1)); }
/* Der Flusslauf wird vom Skript durch die Stationen gelegt – ohne Skript bleibt er weg */
.no-js .path__river { display: none; }

.steps { position: relative; display: grid; gap: clamp(2.25rem, 5vw, 4rem); }
.step { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.25rem; row-gap: .4rem; max-width: 27rem; }
.step__num {
  grid-row: 1 / span 2;
  display: grid; place-items: center;
  width: 3.5rem; height: 2.1rem;
  border-radius: .7rem;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .7);
  font-size: .9375rem; font-weight: 400; font-variant-numeric: tabular-nums;
  transform: rotate(-6deg);
  transition: background .6s var(--ease), color .6s var(--ease), box-shadow .6s, transform .8s var(--ease);
}
.step h3 { font-size: var(--fs-h3); font-weight: 400; letter-spacing: -.025em; line-height: 1.15; color: var(--white); align-self: center; }
.step p { grid-column: 2; font-size: var(--fs-small); line-height: 1.55; }
.anim .step h3, .anim .step p { opacity: .35; transition: opacity .7s var(--ease); }
.anim .step.is-on h3, .anim .step.is-on p { opacity: 1; }
.step.is-on .step__num, html:not(.anim) .step__num { background: var(--teal-300); color: var(--ink); box-shadow: none; transform: rotate(6deg); }
@media (min-width: 60em) {
  .step:nth-child(odd) { margin-left: 4%; }
  .step:nth-child(even) { margin-left: 28%; }
  .step:nth-child(3) { margin-left: 0; }
}

/* Dunkle Fläche mit Wellenkanten: „Ohne Rezept“ auf der Startseite, „Ablauf“ auf den Unterseiten */
.direct {
  position: relative; z-index: 2;
  padding-block: calc(var(--space-section) * .75);
  margin-top: clamp(3rem, 9vw, 9rem);
  margin-bottom: clamp(3rem, 9vw, 9rem);
  background: var(--ink);
  color: rgba(255, 255, 255, .8);
  /* Wellen dürfen nach oben und unten überstehen, aber nicht zur Seite */
  overflow-x: clip;
}
.direct .wave-edge { fill: var(--ink); }
.direct__grid { display: grid; gap: var(--space-l); }
.direct__copy { display: grid; gap: var(--space-m); align-content: start; justify-items: start; }
.direct__note { font-size: var(--fs-small); color: rgba(255, 255, 255, .7); max-width: 36em; margin-top: calc(var(--space-m) * -.4); }
.direct__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
@media (min-width: 60em) {
  .direct__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(3rem, 7vw, 9rem); align-items: center; }
}

/* ---------- 5 · Kopfzeile ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .6s var(--ease), background-color .4s, box-shadow .4s;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--header-h);
  padding-inline: var(--gutter);
}
.site-header.is-scrolled {
  background: rgba(241, 247, 250, .8);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden:not(.is-menu-open) { transform: translateY(-101%); }
.site-header.is-menu-open { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.logo { display: block; flex: none; }
.logo__img { height: clamp(1.75rem, 2.5vw, 2.125rem); width: auto; transition: filter .4s; }
.is-menu-open .logo__img { filter: brightness(0) invert(1); }

.main-nav { display: none; }
.main-nav__list { display: flex; align-items: center; gap: clamp(1.1rem, 2.1vw, 2.5rem); }
.main-nav__item { position: relative; display: flex; align-items: center; gap: .1rem; }
.main-nav__link {
  position: relative; display: block; padding-block: .5rem;
  font-size: .9375rem; font-weight: 400; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - .2rem) / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.main-nav__link:hover, .main-nav__link[aria-current], .main-nav__item.is-active > .main-nav__link { background-size: 100% 1px; }
.main-nav__toggle { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; color: var(--ink); }
.main-nav__toggle svg { width: 1rem; height: 1rem; transition: rotate .45s var(--ease); }

.subnav {
  position: absolute; top: 100%; left: -1.35rem; z-index: 5;
  min-width: 15.5rem;
  margin-top: .6rem; padding: .55rem;
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1.75rem 3.5rem -1.25rem rgba(14, 42, 58, .35), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(.5rem);
  transition: opacity .3s, transform .45s var(--ease), visibility 0s .3s;
}
/* Brücke, damit der Zeiger auf dem Weg ins Untermenü nichts verliert */
.subnav::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: .9rem; }
.subnav a {
  display: block; padding: .62rem .95rem;
  border-radius: .85rem;
  font-size: .9375rem; font-weight: 400; color: var(--ink); line-height: 1.3;
  transition: background-color .3s;
}
.subnav a:hover, .subnav a:focus-visible, .subnav a[aria-current="page"] { background: var(--foam); }
.has-sub:focus-within > .subnav, .has-sub.is-open > .subnav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.has-sub:focus-within .main-nav__toggle svg, .has-sub.is-open .main-nav__toggle svg { rotate: 180deg; }
@media (hover: hover) {
  .has-sub:hover > .subnav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .has-sub:hover .main-nav__toggle svg { rotate: 180deg; }
}
.has-sub.is-dismissed > .subnav { opacity: 0; visibility: hidden; transform: translateY(.5rem); }
.has-sub.is-dismissed .main-nav__toggle svg { rotate: 0deg; }

.site-header__actions { display: flex; align-items: center; gap: .75rem; }

.burger {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  transition: color .3s, box-shadow .3s;
}
.burger__lines { position: relative; width: 1.1rem; height: .5rem; }
.burger__lines span { position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger__lines span:first-child { top: 0; }
.burger__lines span:last-child { top: 100%; }
.burger[aria-expanded="true"] { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.burger[aria-expanded="true"] .burger__lines span { top: 50%; }
.burger[aria-expanded="true"] .burger__lines span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:last-child { transform: rotate(-45deg); }
/* Ohne JavaScript gibt es kein Menü zum Öffnen – alle Ziele stehen in der Fußzeile */
.no-js .burger { display: none; }

/* Auf dem Telefon übernehmen Seitenkopf und Aktionsleiste den Terminaufruf */
@media (max-width: 30em) {
  .site-header .btn--sm { display: none; }
}
/* Sind Termine frei, steht das in der Kopfzeile: auf dem Telefon anstelle des Terminknopfs,
   ab 36em daneben. Neben der Navigation (ab 66em) ist der Platz knapp: bis 75em braucht sie ihn
   allein, bis 82em steht der Hinweis in seiner kürzesten Form („Do. frei“), ab 92em ausgeschrieben.
   Gemessen mit sechs Navigationspunkten und allen vier Stufen des Hinweises. */
@media (min-width: 24em) { .slots--header { display: inline-flex; } }
@media (max-width: 35.99em) { .site-header--slots .btn--sm { display: none; } }
/* Bis 42em steht der Hinweis in seiner kürzesten Form („Do. frei“) und alles rückt enger zusammen –
   so passen Wortmarke, Hinweis, Terminknopf und Menü zwischen die Ränder */
@media (max-width: 41.99em) {
  .site-header--slots .site-header__inner { gap: .75rem; }
  .site-header--slots .site-header__actions { gap: .5rem; }
  .site-header--slots .logo__img { height: 1.625rem; }
  .slots--header { gap: .5em; padding: .3em .85em .3em .75em; font-size: .8125rem; }
}
@media (min-width: 42em) {
  .slots__mini { display: none; }
  .slots__short { display: inline; }
}
@media (min-width: 66em) and (max-width: 74.99em) { .slots--header { display: none; } }
@media (min-width: 66em) and (max-width: 81.99em) {
  .slots__mini { display: inline; }
  .slots__short { display: none; }
  .site-header--slots .main-nav__list { gap: clamp(.9rem, 1.45vw, 1.25rem); }
}
@media (min-width: 66em) {
  .main-nav { display: block; }
  .burger { display: none; }
}
@media (min-width: 88em) {
  .open-status--header { display: inline-flex; margin-right: .75rem; }
}
@media (min-width: 92em) {
  .slots__short { display: none; }
  .slots__long { display: inline; }
}

/* Menü für kleine Bildschirme */
.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1.25rem) var(--gutter) calc(1.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: var(--white);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: circle(0 at calc(100% - var(--gutter) - 1.375rem) calc(var(--header-h) / 2 + env(safe-area-inset-top, 0px)));
  transition: clip-path .8s var(--ease-io), visibility 0s .8s;
  visibility: hidden;
}
.menu.is-open { clip-path: circle(150vmax at calc(100% - var(--gutter) - 1.375rem) calc(var(--header-h) / 2)); visibility: visible; transition: clip-path .9s var(--ease-io); }
.menu__nav > ul { display: grid; gap: .1rem; }
.menu__nav > ul > li { opacity: 0; transform: translateY(1.5rem); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.menu.is-open .menu__nav > ul > li { opacity: 1; transform: none; }
.menu.is-open .menu__nav > ul > li:nth-child(1) { transition-delay: .18s; }
.menu.is-open .menu__nav > ul > li:nth-child(2) { transition-delay: .24s; }
.menu.is-open .menu__nav > ul > li:nth-child(3) { transition-delay: .30s; }
.menu.is-open .menu__nav > ul > li:nth-child(4) { transition-delay: .36s; }
.menu.is-open .menu__nav > ul > li:nth-child(5) { transition-delay: .42s; }
.menu.is-open .menu__nav > ul > li:nth-child(6) { transition-delay: .48s; }
.menu__link {
  display: block; padding-block: .14em;
  font-size: clamp(2.1rem, 9.6vw, 3.6rem); font-weight: 300; letter-spacing: -.04em; line-height: 1.1;
}
.menu__link[aria-current="page"] { color: var(--blue); }
.menu__sub { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem 0 .9rem; }
.menu__sub a {
  display: block; padding: .6em 1.05em;
  border-radius: var(--pill);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  font-size: var(--fs-small); font-weight: 400; line-height: 1.2;
}
.menu__sub a[aria-current="page"] { background: var(--blue); color: var(--ink); box-shadow: none; }
.menu__foot { display: grid; gap: 1.25rem; font-size: var(--fs-small); line-height: 1.6; color: rgba(255, 255, 255, .78); }
.menu__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.menu__foot p a { color: var(--white); }

/* ---------- 6 · Wirbelsäulen-Navigation ---------- */
.spine { display: none; }
@media (min-width: 66em) and (hover: hover) {
  .spine {
    display: block;
    position: fixed; z-index: 40;
    right: calc((var(--gutter) - 1.75rem) / 2); top: 50%;
    transform: translateY(-50%);
    color: var(--ink);
    transition: color .4s, opacity .5s;
  }
  .spine.is-dark { color: var(--white); }
  .spine ol { display: grid; gap: 0; }
  .spine a {
    position: relative; display: block;
    height: 1rem; width: 1.75rem;
  }
  .spine a::before {
    content: "";
    position: absolute; top: 50%; left: var(--x);
    width: var(--w); height: .46rem;
    margin-top: -.23rem;
    border-radius: .2rem;
    background: currentColor;
    opacity: .2;
    transform: rotate(var(--rot, 6deg));
    transition: opacity .4s, background-color .4s, scale .5s var(--ease);
  }
  /* Die Wirbel folgen der Krümmung der Bildmarke; erster und letzter sind rund */
  .spine li:nth-child(1) a { --w: .44rem; --x: .24rem; --rot: 0deg; }
  .spine li:nth-child(2) a { --w: .62rem; --x: 0rem; --rot: 12deg; }
  .spine li:nth-child(3) a { --w: .74rem; --x: .02rem; --rot: 8deg; }
  .spine li:nth-child(4) a { --w: .94rem; --x: .12rem; --rot: 5deg; }
  .spine li:nth-child(5) a { --w: .92rem; --x: .36rem; --rot: 5deg; }
  .spine li:nth-child(6) a { --w: .76rem; --x: .6rem; --rot: 8deg; }
  .spine li:nth-child(7) a { --w: .62rem; --x: .78rem; --rot: 12deg; }
  .spine li:nth-child(8) a { --w: .44rem; --x: .74rem; --rot: 0deg; }
  .spine li:first-child a::before, .spine li:last-child a::before { border-radius: 50%; height: .44rem; width: .44rem; }
  .spine a:hover::before { opacity: .55; scale: 1.15; }
  .spine a[aria-current="true"]::before { opacity: 1; background: var(--teal-300); scale: 1.2; }
  .spine.is-teal a[aria-current="true"]::before { background: var(--white); }
  .spine__label {
    position: absolute; right: calc(100% + .5rem); top: 50%;
    padding: .3em .8em; border-radius: var(--pill);
    background: var(--ink); color: var(--white);
    font-size: .75rem; font-weight: 400; white-space: nowrap; letter-spacing: .02em;
    opacity: 0; transform: translate(.4rem, -50%);
    transition: opacity .3s, transform .4s var(--ease);
    pointer-events: none;
  }
  .spine.is-dark .spine__label { background: var(--white); color: var(--ink); }
  .spine a:hover .spine__label, .spine a:focus-visible .spine__label { opacity: 1; transform: translate(0, -50%); }
}

/* ---------- 7 · Kontakt (Abschluss jeder Seite) ---------- */
.contact {
  position: relative; z-index: 2; isolation: isolate;
  margin-top: calc(var(--r-xl) * -1);
  padding-block: var(--space-section) var(--space-l);
  background: var(--ink);
  color: rgba(255, 255, 255, .8);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: clip;
}
.contact .flow {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 42%, transparent 66%);
  mask-image: linear-gradient(to bottom, #000 0, #000 42%, transparent 66%);
}
.contact__inner { display: grid; gap: var(--space-m); }
.contact__cta { display: grid; gap: 1.25rem; justify-items: start; margin-top: clamp(.5rem, 2vw, 2rem); }
.contact__cta p { font-size: var(--fs-small); color: rgba(255, 255, 255, .7); max-width: 27em; }
.contact__grid {
  display: grid; gap: var(--space-m) var(--gutter);
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line-light);
}
.contact__col { display: grid; gap: .9rem; align-content: start; justify-items: start; font-size: var(--fs-body); line-height: 1.55; }
.contact__col h3 { font-size: var(--fs-label); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.contact__col a:not(.link-arrow) { color: var(--white); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.contact__col a:not(.link-arrow):hover { background-size: 100% 1px; }
.contact__col address { color: var(--white); }
.contact__big { font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.5; }
.contact__hint { font-size: var(--fs-small); color: rgba(255, 255, 255, .7); }
/* Öffnungszeiten: Tage und Zeiten in zwei Spalten – die Zeiten stehen bündig, egal wie lang „Mo, Di, Do“ ist */
.hours { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .2rem 1rem; color: var(--white); font-variant-numeric: tabular-nums; }
.hours > div { display: contents; }
.hours dt { color: rgba(255, 255, 255, .7); }
/* Geänderte Zeiten (Sonderöffnungszeiten, Feiertage) unter der Liste der Regelzeiten */
.hours-notes { margin-top: .9rem; font-size: var(--fs-small); line-height: 1.5; font-variant-numeric: tabular-nums; }
.hours-notes__title { margin-bottom: .25rem; font-size: var(--fs-label); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-800); }
/* Datum und Zeit stehen in gemeinsamen Spalten, der Anlass darunter über die ganze Breite. */
.hours-notes ul { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .45rem .75rem; }
.hours-notes li { display: grid; grid-column: 1 / -1; grid-template-columns: max-content minmax(0, 1fr); grid-template-columns: subgrid; column-gap: .75rem; color: var(--ink); }
.hours-notes__date { font-weight: 500; }
.hours-notes__hint { grid-column: 1 / -1; color: var(--muted); }
.hours-notes--dark .hours-notes__title { color: var(--blue); }
.hours-notes--dark li { color: var(--white); }
.hours-notes--dark .hours-notes__hint { color: rgba(255, 255, 255, .7); }
.arrive { display: grid; gap: .8rem; }
.arrive li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: start; font-size: var(--fs-small); line-height: 1.5; }
.arrive svg { width: 1.5rem; height: 1.5rem; color: var(--blue); }
.arrive strong { color: var(--white); margin-right: .3em; }
@media (min-width: 46em) { .contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72em) { .contact__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 4.4fr); } }
/* Ohne „Ankommen“ (Seiten, die die Anfahrt selbst beschreiben) teilen sich drei Spalten die Breite */
@media (min-width: 46em) { .contact__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Bewertungen im Google-Profil – erscheinen erst, wenn die Praxis sie bestätigt hat (config/site.php) */
.rating { display: inline-flex; align-items: center; gap: .9rem; font-size: var(--fs-small); line-height: 1.4; color: var(--ink); }
.rating__value { padding: .3em .55em; border-radius: var(--pill); background: var(--teal-300); color: var(--ink); font-size: clamp(1.5rem, 2.2vw, 2.1rem); font-weight: 300; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rating__text { display: grid; }
.rating__date { font-size: .8125rem; color: var(--muted); }
.rating a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.rating--dark { color: var(--white); }
.rating--dark .rating__date { color: rgba(255, 255, 255, .7); }

/* Der Abschnitt vor dem Kontakt reicht unter dessen runde Ecken */
main > section:has(+ .contact) { padding-bottom: calc(var(--space-section) + var(--r-xl)); }

/* ---------- 8 · Fußzeile ---------- */
.site-footer { position: relative; z-index: 2; background: var(--ink); color: rgba(255, 255, 255, .74); padding-top: var(--space-m); padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); overflow: clip; }
.site-footer__top { display: grid; gap: var(--space-m); padding-top: var(--space-m); border-top: 1px solid var(--line-light); }
.site-footer__brand { display: grid; gap: 1.25rem; justify-items: start; max-width: 22em; font-size: var(--fs-small); }
.site-footer__brand img { width: 4rem; height: 4rem; }
.site-footer__nap { line-height: 1.7; }
.site-footer__nap strong { color: var(--white); font-weight: 400; }
.site-footer__profiles { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-m) var(--gutter); }
.site-footer__nav h2 { font-size: var(--fs-label); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; }
.site-footer__nav ul { display: grid; gap: .15rem; }
.site-footer__nav a, .site-footer__legal a, .site-footer__nap a, .site-footer__profiles a {
  display: inline-block; padding-block: .3rem;
  color: var(--white); font-size: var(--fs-small);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - .2rem) / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.site-footer__nap a { padding-block: .05rem; background-position: 0 100%; }
.site-footer__nav a:hover, .site-footer__legal a:hover, .site-footer__nap a:hover, .site-footer__profiles a:hover { background-size: 100% 1px; }
.site-footer__word {
  display: flex; justify-content: space-between; gap: .3em;
  margin: var(--space-l) 0 var(--space-m);
  padding-inline: var(--gutter);
  font-size: clamp(2.2rem, 11.1vw, 13.5rem);
  font-weight: 500; letter-spacing: .04em; line-height: .8; white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
  user-select: none;
}
.site-footer__word span {
  --fill: clamp(0%, calc(var(--p, 0) * 100%), 100%);
  padding-bottom: .06em;
  background: linear-gradient(to top, var(--blue-700), var(--blue) 55%, var(--teal-300)) 0 100% / 100% var(--fill) no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
.site-footer__word span:first-child { -webkit-text-stroke-color: rgba(103, 170, 206, .6); }
.site-footer__word span:last-child { --fill: clamp(0%, calc((var(--p, 0) - .18) * 122%), 100%); }
html:not(.anim) .site-footer__word { --p: 1; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; font-size: var(--fs-small); }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
@media (min-width: 60em) {
  .site-footer__top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gutter); }
  .site-footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Platz für die Aktionsleiste, damit sie das Ende der Seite nicht verdeckt */
@media (max-width: 47.99em) { .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); } }

/* ---------- 9 · Mobile Aktionsleiste ---------- */
.dock {
  position: fixed; z-index: 50;
  left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
  display: flex; gap: .5rem;
  transform: translateY(160%);
  transition: transform .7s var(--ease), visibility 0s .7s;
  visibility: hidden;
}
.dock.is-on { transform: none; visibility: visible; transition: transform .7s var(--ease); }
.dock a { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.5rem; border-radius: var(--pill); font-weight: 400; box-shadow: 0 1rem 2.4rem -.8rem rgba(10, 32, 45, .55); }
.dock svg { width: 1.3rem; height: 1.3rem; flex: none; }
.dock__main { flex: 1; min-width: 0; padding-inline: 1.1rem; background: var(--ink); color: var(--white); border: 1px solid rgba(255, 255, 255, .22); white-space: nowrap; }
.dock__main span { overflow: hidden; text-overflow: ellipsis; }
.dock__side { flex: none; width: 3.5rem; background: var(--blue); color: var(--ink); }
@media (max-width: 22.5em) { .dock--call .dock__main { font-size: .9375rem; } }
/* Ab Tablet-Breite steht der Terminknopf in der Kopfzeile */
@media (min-width: 48em) { .dock { display: none; } }

/* ---------- 10 · Auftritte ---------- */
/* Anfangszustände gelten nur mit „anim“ (setzt das Skript im <head> vor dem ersten Bild).
   So blitzt nichts auf – und ohne JavaScript steht alles sofort da. */
.anim [data-reveal] {
  opacity: 0; transform: translate3d(0, 1.75rem, 0);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.anim [data-reveal].is-in { opacity: 1; transform: none; }

/* Überschriften Wort für Wort. clip-path statt overflow: So bleibt jedes Wort auf der
   gemeinsamen Grundlinie, auch bei gemischten Schriften. */
.split-word { display: inline-block; vertical-align: baseline; clip-path: inset(-.14em -.14em -.22em -.06em); }
.split-inner { display: inline-block; will-change: transform; }
[data-i="0"] { --i: 0; } [data-i="1"] { --i: 1; } [data-i="2"] { --i: 2; } [data-i="3"] { --i: 3; }
[data-i="4"] { --i: 4; } [data-i="5"] { --i: 5; } [data-i="6"] { --i: 6; } [data-i="7"] { --i: 7; }
[data-i="8"] { --i: 8; } [data-i="9"] { --i: 9; } [data-i="10"] { --i: 10; } [data-i="11"] { --i: 11; }
.anim [data-split] .split-inner { transform: translate3d(0, 135%, 0) rotate(4deg); transform-origin: 0 100%; transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.anim [data-split].is-in .split-inner { transform: none; }

/* Seitenkopf: tritt ohne Umweg über das Skript auf – mit dem ersten Bild oder, auf der
   Startseite, sobald der Vorhang sich hebt */
.anim [data-split="now"] .split-inner { transition: none; animation: word-rise 1.2s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + .1s); }
.anim [data-rise] { animation: rise 1.1s var(--ease) both; animation-delay: .45s; }
/* Das größte Element im ersten Bildschirm bleibt sichtbar und rückt nur nach (LCP) */
.anim [data-rise="slide"] { animation-name: slide; animation-delay: .2s; }
@keyframes word-rise { from { transform: translate3d(0, 120%, 0) rotate(5deg); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 1.5rem, 0); } to { opacity: 1; transform: none; } }
@keyframes slide { from { transform: translate3d(0, 1.1rem, 0); } to { transform: none; } }

/* Bilder öffnen sich von unten nach oben */
.anim [data-unveil] { clip-path: inset(100% 0 0 0 round var(--r-xl)); transition: clip-path 1.5s var(--ease-io); }
.anim [data-unveil] img { scale: 1.22; transition: scale 2s var(--ease); }
.anim [data-unveil].is-in { clip-path: inset(0 0 0 0 round var(--r-xl)); }
.anim [data-unveil].is-in img { scale: 1; }

.anim [data-parallax] img { will-change: transform; transform: translate3d(0, calc(var(--py, 0) * 1px), 0) scale(1.14); }

/* ---------- 11 · Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

/* ---------- 12 · Erzwungene Farben ---------- */
@media (forced-colors: active) {
  .hero__title em, .page-hero__title em .split-inner { background: none; -webkit-text-fill-color: currentColor; }
  .site-footer__word { color: CanvasText; -webkit-text-stroke: 0; }
  .site-footer__word span { background: none; }
  .btn, .chips li, .step__num, .faq__icon, .round-btn, .burger { border: 1px solid currentColor; }
}

/* ---------- 13 · Druck ---------- */
@media print {
  .site-header, .menu, .spine, .dock, .loader, .cursor, .flow, .service-preview, .wave-edge, .skip-link, .gallery__nav, .site-footer__word { display: none !important; }
  html, body { background: #fff; color: #000; }
  body { font-size: 11pt; }
  .anim [data-reveal], .anim [data-rise], .anim [data-split] .split-inner, .anim .statement .word, .anim .step h3, .anim .step p { opacity: 1 !important; transform: none !important; animation: none !important; }
  .anim [data-unveil] { clip-path: none !important; }
  .contact, .direct, .site-footer { background: none !important; color: #000 !important; margin: 0 !important; border-radius: 0 !important; }
  .contact *, .direct *, .site-footer * { color: #000 !important; }
  .faq__item::details-content { block-size: auto !important; content-visibility: visible !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; word-break: break-all; }
  section { break-inside: avoid-page; padding-block: 1.5rem !important; }
}
