/* ==========================================================================
   Physiotherapie Eva Harder · Design 3 („Quiet Interior“)
   Webflow-Agentur-System: fluide Root, alle Maße in em, eine Sans,
   warme Neutraltöne, Haarlinien statt Kästen, Pill-Buttons.
   Breakpoints: 991px Tablet · 767px Mobil
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Farbe · 8 Rollen */
  --c-paper:        #faf7f2;               /* Seitenfläche                 */
  --c-paper-2:      #f1ece4;               /* zweite helle Fläche          */
  --c-ink:          #2a2622;               /* Text                         */
  --c-olive:        var(--c-accent);       /* dunkle Flächen, Primär-Button */
  --c-cream:        #f8eed8;               /* Text auf Dunkel              */
  --c-mute:         #6c665f;               /* Meta, Nebentext              */
  --c-line:         #dcd5cb;               /* Haarlinien auf Hell          */
  --c-line-inverse: rgb(248 238 216 / .2); /* Haarlinien auf Dunkel        */
  --c-accent:       #506558;               /* Salbeigrün: Akzent + dunkle Flächen */

  --c-cream-mute:   rgb(248 238 216 / .86);

  --font-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --space-xxs: 1.1em;
  --space-xs:  1.6em;
  --space-sm:  3em;
  --space-md:  5.5em;
  --space-xl:  8em;
  --gutter:    4em;

  --w-1: 110em;
  --w-2: 81em;
  --w-4: 66em;
  --w-3: 54em;

  --radius-pill: 999em;
  --hairline: 1px;

  --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
  --dur-fast: 200ms;
  --dur-base: 350ms;
  --dur-slow: 550ms;
}

@media (max-width: 991px) {
  :root { --gutter: 6vw; }
}
@media (max-width: 767px) {
  :root { --space-sm: 2.4em; --space-md: 4em; --space-xl: 5.5em; }
}

/* ---------- 2. Fluide Root: 12px @992 → 16px @1600 ---------------------- */
html { font-size: 1rem; scroll-behavior: smooth; }
@media (max-width: 1600px) { html { font-size: calc(0.3421rem + 0.6579vw); } }
@media (max-width: 991px)  { html { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- 3. Basis ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 991px) { body { font-size: .85rem; } }
@media (max-width: 767px) { body { font-size: .75rem; } }

h1, h2, h3, h4, p, figure, blockquote, ul, ol, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: .3em; border-radius: .2em; }
.is-dark :focus-visible { outline-color: var(--c-cream); }

.skip-link {
  position: absolute; left: var(--gutter); top: -10em; z-index: 100;
  padding: .9em 1.4em; border-radius: var(--radius-pill);
  background: var(--c-olive); color: var(--c-cream); font-weight: 500;
}
.skip-link:focus { top: 1em; }

/* ---------- 4. Typografie ------------------------------------------------ */
h1, h2, h3, h4, .title1, .title2, .title3, .title4 {
  font-weight: 500;
  text-wrap: balance;
}
.title-hero     { font-size: 5.75em;  line-height: .98; letter-spacing: -.035em; font-weight: 500; }
h1, .title1     { font-size: 4.5em;   line-height: 1;    letter-spacing: -.03em; }
h2, .title2     { font-size: 3.375em; line-height: 1.05; letter-spacing: -.025em; }
h3, .title3     { font-size: 2.4em;   line-height: 1.15; letter-spacing: -.015em; }
.title4         { font-size: 1.75em;  line-height: 1.25; letter-spacing: -.01em; }

.eyebrow {
  display: block;
  font-size: .95em; line-height: 1.2; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}

p, .copy { font-size: 1.15em; line-height: 1.5; text-wrap: pretty; }
.copy-small  { font-size: 1em;    line-height: 1.45; }
.copy-medium { font-size: 1.3em;  line-height: 1.5; }
.copy-large  { font-size: 1.45em; line-height: 1.45; }
.copy-lead   { font-size: 2.25em; line-height: 1.25; letter-spacing: -.015em; }

.text-mute   { color: var(--c-mute); }
.text-accent { color: var(--c-accent); }
.is-dark .text-mute { color: var(--c-cream-mute); }

@media (max-width: 991px) {
  .title-hero { font-size: 4.2em; }
  h1, .title1 { font-size: 3.4em; }
  h2, .title2 { font-size: 2.7em; }
  h3, .title3 { font-size: 2.1em; }
  .title4     { font-size: 1.5em; }
  p, .copy, .copy-small { font-size: 1.2em; }
  .copy-lead  { font-size: 1.9em; }
}
@media (max-width: 767px) {
  .title-hero { font-size: 3.6em; }
  h1, .title1 { font-size: 3.1em; }
  h2, .title2 { font-size: 2.5em; }
  h3, .title3 { font-size: 2em; }
  p, .copy, .copy-small { font-size: 1.3em; }
  .copy-medium, .copy-large { font-size: 1.4em; }
  .copy-lead  { font-size: 1.8em; }
  .eyebrow    { font-size: 1.05em; }
}

/* ---------- 5. Layout ---------------------------------------------------- */
.gutter { padding-inline: var(--gutter); }
.container-w1, .container-w2, .container-w4, .container-w3 { width: 100%; margin-inline: auto; }
.container-w1 { max-width: var(--w-1); }
.container-w2 { max-width: var(--w-2); }
.container-w4 { max-width: var(--w-4); }
.container-w3 { max-width: var(--w-3); }
.align-left   { margin-left: 0; }

.p-xxs-start { padding-top: var(--space-xxs); }  .p-xxs-end { padding-bottom: var(--space-xxs); }
.p-xs-start  { padding-top: var(--space-xs); }   .p-xs-end  { padding-bottom: var(--space-xs); }
.p-sm-start  { padding-top: var(--space-sm); }   .p-sm-end  { padding-bottom: var(--space-sm); }
.p-md-start  { padding-top: var(--space-md); }   .p-md-end  { padding-bottom: var(--space-md); }
.p-xl-start  { padding-top: var(--space-xl); }   .p-xl-end  { padding-bottom: var(--space-xl); }

.section            { position: relative; }
.section.is-paper-2 { background-color: var(--c-paper-2); }
.section.is-dark    { background-color: var(--c-olive); color: var(--c-cream); }

/* Signatur-Layout: Titel links 40 %, Text rechts 48 % */
.split        { display: flex; justify-content: space-between; align-items: flex-start; gap: 4em; }
.split__title { width: 42%; }
.split__body  { width: 48%; }
.split.is-end { align-items: flex-end; }

.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 3em; }
.head-row__note { max-width: 24em; }

.actions { display: flex; flex-wrap: wrap; gap: .8em; }

@media (max-width: 991px) {
  .split, .head-row { flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
  .split__title, .split__body { width: 100%; }
}

.line-top    { border-top: var(--hairline) solid var(--c-line); }
.line-bottom { border-bottom: var(--hairline) solid var(--c-line); }

/* ---------- 6. Buttons & Links ------------------------------------------ */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: 1.15em 1.75em 1.15em 1.85em;
  border: var(--hairline) solid var(--c-olive);
  border-radius: var(--radius-pill);
  background-color: var(--c-olive);
  color: var(--c-cream);
  font-size: .95em; font-weight: 600; line-height: 1;
  letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--dur-base) var(--ease-out-quart),
              color var(--dur-base) var(--ease-out-quart),
              border-color var(--dur-base) var(--ease-out-quart),
              transform var(--dur-base) var(--ease-out-quart);
}
.button:hover  { background-color: transparent; color: var(--c-olive); }
.button:active { transform: scale(.96); }

.button.is-secondary       { background-color: transparent; color: var(--c-olive); }
.button.is-secondary:hover { background-color: var(--c-olive); color: var(--c-cream); }

.button.is-bright          { background-color: var(--c-cream); border-color: var(--c-cream); color: var(--c-ink); }
.button.is-bright:hover    { background-color: transparent; color: var(--c-cream); }

.button.is-small { font-size: .8em; }

.button svg, .arrow-link svg { width: 1.15em; height: 1.15em; flex: none; }
.button svg { transition: transform var(--dur-slow) var(--ease-out-quart); }
.button:hover svg { transform: translateX(.2em); }

.arrow-link {
  display: inline-flex; align-items: center; gap: .5em;
  color: var(--c-accent);
  font-size: .95em; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
}
.arrow-link svg { transition: transform var(--dur-slow) var(--ease-out-quart); }
.arrow-link:hover svg { transform: translateX(.3em); }
.is-dark .arrow-link { color: var(--c-cream); }

.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: var(--c-line);
  transition: text-decoration-color var(--dur-fast);
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- 7. Bild ------------------------------------------------------ */
.media { position: relative; overflow: hidden; background-color: var(--c-paper-2); }
.media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out-quart);
}
.media picture { display: contents; }
.media.is-4-3 { aspect-ratio: 4 / 3; }
.media.is-4-5 { aspect-ratio: 4 / 5; }
.media.is-3-2 { aspect-ratio: 3 / 2; }
a:hover .media img { transform: scale(1.07); }

.caption { padding-top: .9em; color: var(--c-mute); }

/* ---------- 8. Header ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background-color: var(--c-paper);
  border-bottom: var(--hairline) solid var(--c-line);
}
.site-header__inner { display: flex; align-items: center; gap: 3em; height: 6.5em; }

.brand { display: inline-flex; align-items: center; gap: .9em; }
.brand img { width: 3.4em; height: 3.4em; }
.brand__text { display: flex; flex-direction: column; gap: .25em; }
.brand__name { font-size: 1.3em; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.brand__role { font-size: .75em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-mute); line-height: 1; }

.site-nav { order: 1; margin-left: auto; }
.header-phone { order: 2; }
.site-nav ul { display: flex; gap: 2.4em; }
.site-nav ul a {
  position: relative; display: inline-block; padding-block: .4em;
  font-size: .9em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background-color: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out-quart);
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__extra { display: none; }

.header-phone svg { display: none; }

/* Hamburger: Checkbox + Label, kein JavaScript (CSP) */
.sr-only, .menu-toggle, .services-toggle {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
/* fixed statt absolute: der Browser muss die fokussierte Checkbox nicht ins Bild scrollen */
.services-toggle { position: fixed; top: 50%; left: 0; }
.menu-button { display: none; }

@media (max-width: 767px) {
  :root { --header-h: 4.6rem; }
  .site-header__inner { height: var(--header-h); gap: .8em; }
  .brand img { width: 2.6rem; height: 2.6rem; }

  .header-phone { order: 0; margin-left: auto; width: 2.9rem; height: 2.9rem; padding: 0; }
  .header-phone span { display: none; }
  .header-phone svg { display: block; width: 1.15rem; height: 1.15rem; }
  .header-phone:hover svg { transform: none; }

  .menu-button {
    display: grid; place-items: center; flex: none;
    width: 2.9rem; height: 2.9rem; border-radius: var(--radius-pill);
    background-color: var(--c-olive); cursor: pointer;
    transition: transform var(--dur-base) var(--ease-out-quart);
  }
  .menu-button:active { transform: scale(.94); }
  .menu-button__lines, .menu-button__lines::before {
    display: block; width: 1.1rem; height: 1.5px; background-color: var(--c-cream);
    transition: transform var(--dur-base) var(--ease-out-quart);
  }
  .menu-button__lines { position: relative; transform: translateY(-3px); }
  .menu-button__lines::before { content: ""; position: absolute; left: 0; top: 6px; }
  .menu-toggle:checked + .menu-button .menu-button__lines { transform: translateY(0) rotate(45deg); }
  .menu-toggle:checked + .menu-button .menu-button__lines::before { transform: translateY(-6px) rotate(-90deg); }
  .menu-toggle:focus-visible + .menu-button { outline: 2px solid var(--c-accent); outline-offset: 3px; }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 19;
    display: flex; flex-direction: column; justify-content: space-between;
    margin: 0; padding: 1.5rem var(--gutter) 2.5rem;
    background-color: var(--c-paper);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-.75rem);
    transition: opacity var(--dur-base) var(--ease-out-quart),
                transform var(--dur-base) var(--ease-out-quart),
                visibility 0s linear var(--dur-base);
  }
  .menu-toggle:checked ~ .site-nav {
    opacity: 1; visibility: visible; transform: none;
    transition-delay: 0s;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li { border-bottom: var(--hairline) solid var(--c-line); }
  .site-nav ul a {
    display: flex; padding-block: 1.1rem;
    font-size: 2rem; font-weight: 500; letter-spacing: -.02em; text-transform: none;
  }
  .site-nav ul a::after { display: none; }
  .site-nav ul a[aria-current="page"] { color: var(--c-accent); }
  .site-nav__extra { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; padding-top: 2rem; }
  .site-nav__extra p { font-size: .95rem; }
  body:has(.menu-toggle:checked) { overflow: hidden; }
}

/* ---------- 9. Hero (Text + Bildmosaik) ---------------------------------- */
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 4em; align-items: end;
}
.hero__aside { padding-bottom: .6em; }

.mosaic {
  display: grid; grid-template-columns: 6fr 3fr 3fr; gap: .5em;
  height: 38em;
}
.mosaic.is-two { grid-template-columns: 4fr 8fr; }
.mosaic .media { height: 100%; }

@media (max-width: 991px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-xs); }
  .mosaic { height: 30em; }
}
@media (max-width: 767px) {
  .mosaic { grid-template-columns: 1fr 1fr; height: auto; }
  .mosaic > :first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .mosaic > :not(:first-child) { aspect-ratio: 4 / 5; }
  .mosaic.is-two > * { grid-column: auto; aspect-ratio: 4 / 5; }
  .mosaic.is-two { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .mosaic.is-two > .media:nth-child(2) { display: none; }
  .mosaic.is-two > .media:first-child { aspect-ratio: 3 / 4; }
}

/* Begleitfeld neben dem Porträt – nur, wenn das zweite Bild wegfällt */
.mosaic__note { display: none; }
@media (max-width: 767px) {
  .mosaic.is-two > .mosaic__note {
    display: flex; flex-direction: column; justify-content: space-between;
    aspect-ratio: auto; padding: 1.4em 1.2em;
    background-color: var(--c-paper-2);
  }
  .mosaic__mark { width: 100%; max-width: 8.5em; height: auto; align-self: center; }
  .mosaic__note p {
    display: flex; flex-direction: column; gap: .4em; min-width: 0;
    padding-top: 1em; border-top: var(--hairline) solid var(--c-line);
    font-size: 1em; hyphens: auto;
  }
  .mosaic__name { font-size: 1.35em; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
  .mosaic__role { font-size: 1.05em; line-height: 1.4; color: var(--c-mute); }
}

/* ---------- 10. Fakten-Leiste (Haarlinien-Raster) ------------------------ */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: var(--hairline) solid var(--c-line);
}
.facts > li {
  display: flex; flex-direction: column; gap: .7em;
  padding: 2.2em 2em 2.4em;
  border-left: var(--hairline) solid var(--c-line);
}
.facts > li:first-child { border-left: 0; padding-left: 0; }
.facts .eyebrow { font-size: .8em; color: var(--c-mute); }
.facts__value { font-size: 1.35em; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.facts a.facts__value { transition: color var(--dur-fast); }
.facts a.facts__value:hover { color: var(--c-accent); }
.facts__map svg {
  display: inline-block; width: .75em; height: .75em; margin-left: .2em; vertical-align: .02em;
  color: var(--c-accent); rotate: -45deg;
  transition: translate var(--dur-slow) var(--ease-out-quart);
}
.facts__map:hover svg { translate: .15em -.15em; }

@media (max-width: 991px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > li { padding: 1.8em 1.6em; }
  .facts > li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts > li:nth-child(n+3) { border-top: var(--hairline) solid var(--c-line); }
}
@media (max-width: 479px) {
  .facts { grid-template-columns: 1fr; }
  .facts > li { border-left: 0; padding-inline: 0; padding-block: 1.4em; }
  .facts > li + li { border-top: var(--hairline) solid var(--c-line); }
}

/* ---------- 11. Willkommen: Zitat, Porträt darunter --------------------- */
.statement { text-align: center; }
.statement blockquote { margin: 0; }
.statement__sign { display: inline-flex; align-items: center; gap: 1.6em; text-align: left; }
.statement__photo { display: block; width: 9em; height: 9em; flex: none; border-radius: 50%; }
.statement__photo img { object-position: 50% 18%; }
.statement__text { display: flex; flex-direction: column; gap: .35em; }
.statement__name { font-size: 1.25em; font-weight: 600; }
@media (max-width: 479px) { .statement__photo { width: 7em; height: 7em; } }

/* ---------- 12. Leistungen (Haarlinien-Liste) ---------------------------- */
.services { counter-reset: service; border-top: var(--hairline) solid var(--c-line); }
.services > li {
  display: grid; grid-template-columns: 7em minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2em; align-items: baseline;
  padding-block: 2em;
  border-bottom: var(--hairline) solid var(--c-line);
}
.services__no { font-size: .95em; font-weight: 600; letter-spacing: .1em; color: var(--c-accent); }
.services__title { font-size: 1.75em; font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.services__text { color: var(--c-mute); }

@media (max-width: 767px) {
  .services > li { grid-template-columns: 3.4em minmax(0, 1fr); gap: .6em 1em; padding-block: 1.6em; }
  .services__text { grid-column: 2; }
}

/* ---------- 13. Dunkles Band (Bild + Text) ------------------------------- */
.band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 7em; align-items: center; }
.band__body { max-width: 40em; }

.line-list > li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 2em;
  padding-block: 1.25em;
  border-bottom: var(--hairline) solid var(--c-line);
}
.line-list > li:first-child { border-top: var(--hairline) solid var(--c-line); }
.line-list strong { font-weight: 500; font-size: 1.2em; letter-spacing: -.005em; }
.line-list span { color: var(--c-mute); text-align: right; font-size: 1.05em; }
.is-dark .line-list > li { border-color: var(--c-line-inverse); }
.is-dark .line-list span { color: var(--c-cream-mute); }

@media (max-width: 991px) {
  .band { grid-template-columns: 1fr; gap: var(--space-md); }
}
@media (max-width: 479px) {
  .line-list > li { flex-direction: column; gap: .3em; }
  .line-list span { text-align: left; }
}

/* ---------- 14. Teaser-Grid ---------------------------------------------- */
.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3em 2em; }
.teaser { display: block; }
.teaser__title { display: block; padding-top: 1.1em; font-size: 1.5em; font-weight: 500; letter-spacing: -.01em; }
.teaser__meta { display: block; padding-top: .45em; color: var(--c-mute); }
.teaser:hover .teaser__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

@media (max-width: 767px) {
  .teasers { grid-template-columns: 1fr 1fr; gap: 2.4em 1em; }
  .teasers > :first-child { grid-column: 1 / -1; }
  .teasers > :first-child .media { aspect-ratio: 4 / 3; }
}

/* ---------- 15. Aktuelles ------------------------------------------------ */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 4em; }
.news article { display: flex; flex-direction: column; align-items: flex-start; padding-top: 2.2em; border-top: var(--hairline) solid var(--c-olive); }
.tag {
  display: inline-block; padding: .55em 1em .5em;
  border: var(--hairline) solid var(--c-line); border-radius: var(--radius-pill);
  font-size: .75em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
@media (max-width: 767px) { .news { grid-template-columns: 1fr; gap: var(--space-sm); } }

/* ---------- 16. Kontakt-CTA --------------------------------------------- */
.call { display: inline-flex; align-items: center; gap: .35em; font-size: 4em; font-weight: 500; letter-spacing: -.03em; line-height: 1; transition: color var(--dur-fast); }
.call svg { width: .6em; height: .6em; transition: transform var(--dur-slow) var(--ease-out-quart); }
.call:hover { color: var(--c-accent); }
.call:hover svg { transform: translateX(.12em); }
.is-dark .call:hover { color: var(--c-cream-mute); }
@media (max-width: 767px) { .call { font-size: 3em; } }

/* ---------- 17. Galerie (Praxis) ----------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .5em; }
.gallery figure { grid-column: span 4; }
.gallery .is-8  { grid-column: span 8; }
.gallery .is-12 { grid-column: 1 / -1; }
.gallery .media { height: 34em; }
.gallery .is-12 .media { height: 44em; }

@media (max-width: 767px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: .5em; }
  .gallery figure { grid-column: auto; }
  .gallery .is-8, .gallery .is-12 { grid-column: 1 / -1; }
  .gallery .media { height: auto; aspect-ratio: 4 / 5; }
  .gallery .is-8 .media, .gallery .is-12 .media { aspect-ratio: 4 / 3; height: auto; }
}

/* ---------- 18. Kontakt -------------------------------------------------- */
.steps { counter-reset: step; border-top: var(--hairline) solid var(--c-line); }
.steps > li {
  counter-increment: step;
  display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: 1em;
  padding-block: 1.6em; border-bottom: var(--hairline) solid var(--c-line);
}
.steps > li::before { content: "0" counter(step); font-weight: 600; letter-spacing: .1em; color: var(--c-accent); padding-top: .3em; }
.steps strong { display: block; font-size: 1.35em; font-weight: 500; letter-spacing: -.01em; }
.steps p { padding-top: .35em; color: var(--c-mute); }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.photo-pair .media { aspect-ratio: 3 / 4; }
.focus-left { object-position: 15% 50%; }

/* ---------- 19. Rechtstexte --------------------------------------------- */
.legal h2 { font-size: 1.75em; letter-spacing: -.015em; padding-top: 2.2em; padding-bottom: .6em; }
.legal h2:first-child { padding-top: 0; }
.legal p, .legal li, .legal address { font-size: 1.15em; line-height: 1.6; color: #4a4540; }
.legal p + p, .legal p + ul, .legal ul + p, .legal address + h2 { padding-top: .8em; }
.legal ul { list-style: disc; padding-left: 1.3em; padding-top: .6em; }
.legal a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--c-line); }
.legal a:hover { text-decoration-color: currentColor; }

/* ---------- 20. Footer --------------------------------------------------- */
.site-footer { background-color: var(--c-olive); color: var(--c-cream); }
.site-footer .brand__role { color: var(--c-cream-mute); }
.site-footer .brand img { padding: .3em; border-radius: 50%; background-color: var(--c-cream); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3em; }
.footer__grid .eyebrow { font-size: .8em; color: var(--c-cream-mute); padding-bottom: 1.2em; }
.footer__grid p, .footer__grid li, .footer__grid address { font-size: 1.1em; line-height: 1.7; }
.footer__grid a, .footer__bottom a { transition: opacity var(--dur-fast); }
.footer__grid a:hover, .footer__bottom a:hover { opacity: .55; }
.footer__claim { padding-top: 1.6em; max-width: 22em; color: var(--c-cream-mute); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 2em; flex-wrap: wrap;
  padding-block: 2em; border-top: var(--hairline) solid var(--c-line-inverse);
  color: var(--c-cream-mute);
}
.footer__bottom ul { display: flex; gap: 2em; }
.footer__bottom p { font-size: inherit; }

@media (max-width: 991px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
  .footer__grid { gap: 2.4em 1.6em; }
  .footer__intro { grid-column: 1 / -1; }
  .footer__pages { display: none; }
  .footer__grid address, .footer__grid p { overflow-wrap: anywhere; }
}

/* ---------- 21. Reveal (nur CSS, scroll-gekoppelt) ------------------------
   CSP erlaubt kein JavaScript. Wo Browser scroll-gesteuerte Animationen
   kennen, setzen sich Inhalte beim Hereinscrollen; sonst sofort sichtbar. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    [data-reveal="zoom"] img {
      animation: reveal-zoom linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
    [data-reveal="zoom"] { animation: none; }
  }
}
@keyframes reveal-up {
  from { opacity: 0; translate: 0 3em; }
  to   { opacity: 1; translate: none; }
}
@keyframes reveal-zoom {
  from { scale: 1.15; }
  to   { scale: 1; }
}

/* ---------- 25. Behandlungen: 5 sichtbar, dezent aufklappen ------------ */
.services-toggle:not(:checked) + .services > li:nth-child(n+6) { display: none; }
.services-more {
  display: flex; align-items: center; gap: .8em; width: 100%;
  padding-block: 1.6em; border-bottom: var(--hairline) solid var(--c-line);
  color: var(--c-mute); cursor: pointer;
  font-size: .95em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: color var(--dur-fast);
}
.services-more:hover { color: var(--c-ink); }
.services-more svg { width: 1.2em; height: 1.2em; transform: rotate(90deg); transition: transform var(--dur-base) var(--ease-out-quart); }
.services-more__close { display: none; }
.services-toggle:checked ~ .services-more .services-more__open { display: none; }
.services-toggle:checked ~ .services-more .services-more__close { display: inline; }
.services-toggle:checked ~ .services-more svg { transform: rotate(-90deg); }
.services-toggle:focus-visible ~ .services-more { outline: 2px solid var(--c-accent); outline-offset: 3px; }
@media (min-width: 768px) { .services-more { padding-left: calc(7em / .95 + 2em / .95); } }

/* ---------- 26. Galerie-Gruppen (Praxis) -------------------------------- */
.gallery .is-6 { grid-column: span 6; }
.gallery__head { display: flex; align-items: baseline; gap: 1.2em; }
.gallery__no { font-size: .95em; font-weight: 600; letter-spacing: .1em; color: var(--c-accent); }
@media (max-width: 767px) {
  .gallery .is-6 { grid-column: auto; }
  .gallery .is-6 .media { aspect-ratio: 4 / 3; }
}

/* ---------- 27. Kontakt: Fotos im Schritt, schematische Karte ----------- */
.step-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; padding-top: 1.2em; max-width: 30em; }
.step-photos .caption { padding-top: .5em; }

.map { position: relative; }
.map__frame { aspect-ratio: 1 / 1; background-color: var(--c-paper-2); overflow: hidden; }
.osm-map { display: block; width: 100%; height: 100%; }
.osm-map .m-bg       { fill: #efe9df; }
.osm-map .m-green    { fill: #dfe4d2; }
.osm-map .m-parking  { fill: #e8e1d5; }
.osm-map .m-building { fill: #ddd4c6; }
.osm-map .m-path     { fill: none; stroke: #d3cabb; stroke-width: 1.4; stroke-dasharray: 3 3; }
.osm-map .m-casing   { fill: none; stroke: #d6cdbf; stroke-linecap: round; stroke-linejoin: round; }
.osm-map .m-road     { fill: none; stroke: #fbf8f3; stroke-linecap: round; stroke-linejoin: round; }
.osm-map .m-none     { fill: none; stroke: none; }
.osm-map .m-street   { fill: #7b746b; font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.osm-map .m-poi      { fill: #9a9184; }
.osm-map .m-poi-label { fill: #6c665f; font-family: var(--font-sans); font-size: 17px; font-weight: 600; }
.osm-map .m-practice { fill: #c9d3c8; stroke: var(--c-accent); stroke-width: 2.5; }
.osm-map .m-pin      { fill: var(--c-olive); }
.osm-map .m-pin-dot  { fill: var(--c-cream); }
.osm-map .m-pulse    { fill: var(--c-olive); opacity: .16; }
.osm-map .m-tag      { fill: var(--c-olive); }
.osm-map .m-tag-text { fill: var(--c-cream); font-family: var(--font-sans); font-size: 19px; font-weight: 600; }
.osm-map .m-credit   { fill: #8b8478; font-family: var(--font-sans); font-size: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .osm-map .m-pulse { transform-box: fill-box; transform-origin: center; animation: map-pulse 2.8s var(--ease-out-quart) 3; }
}
@keyframes map-pulse {
  from { transform: scale(.4); opacity: .35; }
  to   { transform: scale(1.7); opacity: 0; }
}

/* ---------- 28. Kontakt: Schritte und Karte gleich hoch ----------------- */
.split.is-stretch { align-items: stretch; }
.split.is-stretch .map { display: flex; flex-direction: column; }
.split.is-stretch .map__frame { flex: 1 1 auto; min-height: 24em; aspect-ratio: auto; }
@media (max-width: 991px) {
  .split.is-stretch .map__frame { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 559px) {
  .split.is-stretch .map__frame { aspect-ratio: 1 / 1; }
}

/* ---------- 29. Bildgrößen Tablet/Mobil im Zaum halten ------------------ */
@media (max-width: 991px) {
  .band .media { aspect-ratio: 3 / 2; }
  .band .media img { object-position: 50% 60%; }
}
@media (max-width: 767px) {
  .band .media { aspect-ratio: 4 / 3; }
}
@media (min-width: 992px) {
  .split.is-stretch .map__frame { position: relative; flex-basis: 0; }
  .split.is-stretch .osm-map { position: absolute; inset: 0; }
}
