/* PhysioVital premium layer (27.10.2026). Refines lux.css, no new markup.
   Palette stays #fff, #f1f1f1, #212121, #6d6e76 and lime #bfce00 as the only accent; brown only in the header.
   One radius scale: 8px for images and surfaces, 6px for buttons, inputs and inner panels. */
:root {
  --r-xl: 8px;
  --r-lg: 8px;
  --r-md: 6px;
  --r-btn: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --line: rgba(33, 33, 33, .12);
  --shadow: 0 1px 2px rgba(33, 33, 33, .06), 0 28px 56px -28px rgba(33, 33, 33, .3);
}

/* ===== Browser surfaces ===== */
html { scroll-behavior: auto; scrollbar-color: rgba(33, 33, 33, .3) transparent; }
::selection { background: var(--lime); color: var(--ink); }
body { font-size: clamp(17px, .25vw + 16px, 19.5px); line-height: 1.62; caret-color: var(--ink); }
a { text-underline-offset: .22em; text-decoration-thickness: 1px; }
p { text-wrap: pretty; }
:focus-visible { outline-offset: 4px; }

/* ===== Type: lighter display weight, size-specific tracking ===== */
.h-xl, .h-lg { font-weight: 340; }
.h-md { font-weight: 400; }
.h-xl, .h-lg { letter-spacing: -.032em; line-height: 1.06; text-wrap: balance; }
.h-xl { font-size: clamp(40px, 5.6vw, 88px); }
.h-lg { font-size: clamp(34px, 4.6vw, 80px); }
.h-md { font-size: clamp(26px, 2.4vw, 42px); letter-spacing: -.022em; line-height: 1.12; }
.hx-copy h1 { font-size: clamp(40px, min(5vw, 8.4vh), 84px); max-width: 22ch; }
.lead { font-size: clamp(18px, .45vw + 15.5px, 22px); line-height: 1.55; max-width: 52ch; }
.intro-copy p:not(.eyebrow) { max-width: 60ch; font-size: inherit; }
.pf-list button { font-weight: 400; letter-spacing: -.03em; }
.pv-item h3 { font-weight: 400; letter-spacing: -.02em; }

/* ===== Space: one statement per screen ===== */
.sec { padding: clamp(96px, 12.5vw, 210px) 0; }
.pv-band { padding: clamp(96px, 12vw, 200px) 0; }
.head { gap: clamp(20px, 1.8vw, 30px); margin-bottom: clamp(48px, 6vw, 104px); }
.values { margin-top: clamp(96px, 10vw, 180px); }
.page-head { padding: clamp(140px, 14vw, 240px) 0 clamp(56px, 6vw, 104px); }

/* ===== Buttons: soft rectangle, press feedback ===== */
.btn {
  border-radius: var(--r-btn); min-height: 52px; padding: 0 26px; letter-spacing: -.005em;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -16px rgba(33, 33, 33, .5); }
.btn:active { transform: scale(.98); transition-duration: .12s; }
.btn-sm { min-height: 42px; padding: 0 18px; }
.menu-btn { border-radius: var(--r-btn); }

/* ===== Header: full-width bar on the page column. Over a hero photo it is transparent with light type
   until the page scrolls (html.scrolled from premium.js); without JS it stays solid. ===== */
.nav {
  top: 0; left: 0; transform: none; width: 100%; height: 80px; border-radius: 0;
  padding: 0 max(var(--gut), (100% - var(--max)) / 2); color: var(--ink);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
  transition: background-color .7s var(--ease), box-shadow .7s var(--ease), color .7s var(--ease), height .7s var(--ease);
}
.scrolled .nav { height: 68px; }
.logo { display: block; }
.logo img { display: block; transition: opacity .5s var(--ease); }
.logo .logo-light { display: none; }
.sheet { top: 76px; }
@media (max-width: 560px) {
  .nav { top: 0; width: 100%; height: 64px; padding: 0 12px 0 18px; }
  .scrolled .nav { height: 64px; }
  .sheet { top: 72px; }
}
.js:not(.scrolled) body:has(.hx, .pc-hero) .nav,
.js:not(.scrolled) body:has(.halves-top) .nav { background: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, .16); backdrop-filter: none; -webkit-backdrop-filter: none; }
.js:not(.scrolled) body:has(.hx, .pc-hero) .nav { color: var(--white); }
.js:not(.scrolled) body:has(.hx, .pc-hero) .nav-links a:hover { color: var(--white); }
.js:not(.scrolled) body:has(.hx, .pc-hero) .menu-btn { background: rgba(255, 255, 255, .14); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.js:not(.scrolled) body:has(.hx, .pc-hero, .halves-top) .logo img:first-child { display: none; }
.js:not(.scrolled) body:has(.hx, .pc-hero, .halves-top) .logo .logo-light { display: block; }
.js:not(.scrolled) body:has(.halves-top) .nav { box-shadow: none; } /* links sit on lime / pelvic */
.js:not(.scrolled) body:has(.halves-top) .logo { visibility: hidden; } /* the full logo already stands in the ink half */
@media (max-width: 899px) {
  .js:not(.scrolled) body:has(.halves-top) .menu-btn { background: rgba(33, 33, 33, .08); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(33, 33, 33, .18); }
}
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav-links a:hover, .verein .nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.verein .nav-links a[aria-current="page"] { text-decoration: none; }
.sheet { border-radius: 10px; box-shadow: var(--shadow), 0 0 0 1px rgba(33, 33, 33, .05); }
.sheet a { border-radius: var(--r-btn); }
@media (prefers-reduced-motion: no-preference) {
  .sheet:not([hidden]) > * { animation: pm-rise .7s var(--ease) backwards; }
  .sheet > :nth-child(2) { animation-delay: .05s; }
  .sheet > :nth-child(3) { animation-delay: .1s; }
  .sheet > :nth-child(4) { animation-delay: .15s; }
  .sheet > :nth-child(5) { animation-delay: .2s; }
}

/* ===== Hero: the one authored moment, photo settles while the copy rises ===== */
@media (prefers-reduced-motion: no-preference) {
  .hx-img { animation: pm-settle 2s var(--ease) backwards; }
  .hx-copy > * { animation: pm-rise 1.1s var(--ease) backwards; }
  .hx-copy > :nth-child(1) { animation-delay: .2s; }
  .hx-copy > :nth-child(2) { animation-delay: .32s; }
  .hx-copy > :nth-child(3) { animation-delay: .44s; }
}
@keyframes pm-settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes pm-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Hero: full bleed (Max 27.10.), copy bottom left; the overlay only darkens where type sits (header strip, copy corner) */
.hx-frame { margin: 0; height: 100svh; min-height: 620px; border-radius: 0; place-items: end start; text-align: left; }
.hx-frame::after { background: linear-gradient(180deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0) 160px), linear-gradient(0deg, rgba(0, 0, 0, .66) 0%, rgba(0, 0, 0, .3) 42%, rgba(0, 0, 0, .06) 72%), linear-gradient(90deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0) 62%); }
.hx-copy { justify-items: start; gap: clamp(20px, 1.8vw, 30px); width: 100%; padding: 140px clamp(24px, 5vw, 104px) clamp(36px, 5.6vw, 104px); padding-left: max(clamp(24px, 5vw, 104px), (100% - var(--max)) / 2); } /* left edge follows the page column on wide screens */
.hx-copy h1 { max-width: 18ch; }
.hx-copy .lead { max-width: 50ch; color: rgba(255, 255, 255, .9); }
.hx-copy .actions { justify-content: flex-start; }

/* ===== Weiche ===== */
.halves { transition: grid-template-columns 1.1s var(--ease); }
@media (min-width: 900px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .halves:has(.half-ink:hover) { grid-template-columns: 1.14fr 1fr; }
  .halves:has(.half-lime:hover) { grid-template-columns: 1fr 1.14fr; }
}
.half { padding-bottom: clamp(40px, 4.4vw, 88px); align-content: end; gap: clamp(28px, 2.6vw, 44px); } /* Max 27.10.: logo sits directly above the headline */
@media (min-width: 900px) {
  .halves-top > .half { min-height: max(100svh, 640px); }
  .home-stack .halves-top > .half { min-height: 0; }
}
.half .logo-neg { height: auto; width: clamp(240px, 24vw, 460px); } /* full logo with claim line */
.half-copy { gap: clamp(18px, 1.6vw, 28px); align-content: start; }
.half-copy .h-lg { font-size: clamp(36px, 4.2vw, 80px); max-width: 13ch; }
.half-copy .btn { margin-top: 6px; align-self: start; width: fit-content; }
.half:hover .btn { transform: translateY(-1px); box-shadow: 0 16px 30px -16px rgba(33, 33, 33, .5); }
@media (prefers-reduced-motion: no-preference) {
  .half > *, .half-copy > * { animation: pm-rise 1.1s var(--ease) backwards; }
  .half > .logo-neg, .half > .logo-lockup { animation-delay: .1s; }
  .half-copy > :nth-child(1) { animation-delay: .22s; }
  .half-copy > :nth-child(2) { animation-delay: .32s; }
  .half-copy > :nth-child(3) { animation-delay: .42s; }
  .half-lime > .logo-neg, .half-lime > .logo-lockup { animation-delay: .22s; }
  .half-lime .half-copy > :nth-child(1) { animation-delay: .34s; }
  .half-lime .half-copy > :nth-child(2) { animation-delay: .44s; }
  .half-lime .half-copy > :nth-child(3) { animation-delay: .54s; }
  .half-copy { animation: none; }
}

/* ===== Image system: fixed ratios (3:2, 4:5), one radius, one gentle grade for the old photos ===== */
:is(.hx-img, .intro-media img, .values-grid img, .pf-item > img, .hr-media img, .tm-card > img, .shot img, .pv-media img, .ab-media img, .bridge-card img.bg) { filter: saturate(.9) contrast(1.04); }
.ab-media img, .shot { aspect-ratio: 3 / 2; }
@media (min-width: 1000px) {
  .ab-media { align-self: center; gap: 0; }
  .ab-media img { max-height: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
}
.tm-card { aspect-ratio: 4 / 5; }
.hr-card h3, .values-grid h4 { margin-top: 4px; }
/* Photos settle from 1.06 to 1 when they enter (premium.js adds .in) */
@media (prefers-reduced-motion: no-preference) {
  .js :is(.intro-media, .hr-media, .tm-card, .pv-media, .shot, .bridge-card) img { transform: scale(1.06); }
  .js :is(.intro-media, .hr-media, .tm-card, .pv-media, .shot, .bridge-card).in img { transform: none; transition: transform 1.8s var(--ease), opacity .6s var(--ease); }
  .js .hr-card:hover .hr-media.in img, .js .tm-card.in:hover > img, .js .shot.in:hover img, .js .bridge-card.in:hover img.bg { transform: scale(1.03); transition-duration: 1.2s; }
  /* Frame opens from a slightly smaller window while the photo settles */
  .js :is(.intro-media, .tm-card, .pv-media, .bridge-card) { clip-path: inset(7% 5% round var(--r-xl)); transition: clip-path 1.6s var(--ease); }
  .js :is(.intro-media, .tm-card, .pv-media, .bridge-card).in { clip-path: inset(0 round var(--r-xl)); }
}
.hr-card:hover .hr-media img, .shot:hover img { transform: scale(1.03); }

/* ===== Staggered reveal of grids (premium.js sets --i and .in) ===== */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
  .js :is(.values-grid, .tm, .mosaic, .ab-steps, .hr-track, .nw-cards, .pc-caution-tiles, .pc-shots) > * {
    opacity: 0; transform: translateY(28px);
    transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js :is(.values-grid, .tm, .mosaic, .ab-steps, .hr-track, .nw-cards, .pc-caution-tiles, .pc-shots).in > * { opacity: 1; transform: none; }
  .js .values-grid.in > li { transition: opacity 1s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .values-grid.in > li:hover { transform: translateY(-6px); }
  .js #fuer .values-grid.in > li { transition-delay: calc(var(--i, 0) * 160ms); }
  .js .pc-caution-tiles.in > li { transition: opacity 1s var(--ease), transform .55s var(--ease), box-shadow .55s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
  .js .pc-caution-tiles.in > li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .js .pc-shots.in > * { transition-delay: calc(var(--i, 0) * 140ms); }
}

/* ===== Surfaces: soft offset shadows instead of heavy drop shadows ===== */
.pf-card, .tm-panel { box-shadow: var(--shadow); }
.pf-card { padding: 24px 28px; }
.tm-panel { left: 10px; right: 10px; bottom: 10px; }
.news img { box-shadow: var(--shadow); }
.news a { transition: transform .8s var(--ease); }
.seg { border-radius: 8px; }
.seg button { border-radius: var(--r-btn); transition: background-color .4s var(--ease), color .4s var(--ease); }
.lb-btn { border-radius: var(--r-btn); }
.lb-inner img { border-radius: var(--r-lg); }

/* ===== Kontakt: rules instead of grey boxes ===== */
.locs { gap: 0; }
.loc { background: none; border-radius: 0; padding: clamp(24px, 2.2vw, 34px) 0; border-top: 1px solid var(--line); }
.loc:last-child { border-bottom: 1px solid var(--line); }
.loc h3 { font-size: clamp(20px, 1.4vw, 24px); }
.f { font-size: 15px; }
.f input, .f select, .f textarea { border: 1px solid var(--mute); border-radius: var(--r-btn); padding: 14px 15px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(33, 33, 33, .12); }

/* ===== Footer: full bleed instead of a rounded card ===== */
.foot { padding: 2px 0 0; } /* same 2px white seam as between the Weiche halves */
.foot-card {
  border-radius: 0; gap: clamp(40px, 5vw, 72px);
  padding: clamp(80px, 9vw, 160px) max(var(--gut), (100% - var(--max)) / 2) clamp(36px, 3vw, 56px);
}
.foot-card img.foot-logo { height: auto; width: min(100%, clamp(280px, 40vw, 720px)); margin-bottom: clamp(24px, 4vw, 72px); }
@media (min-width: 760px) {
  .foot-card { grid-template-columns: 1fr auto; align-items: end; column-gap: 0; }
  .foot-card small { padding-left: 32px; }
  .foot-card nav, .foot-card small { align-self: stretch; } /* both rules start on the same line */
  .foot-card .foot-logo { grid-column: 1 / -1; }
  .foot-card nav, .foot-card small { padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .16); }
}
.foot-card nav { gap: 14px 36px; }
.foot-card nav a { transition: color .3s var(--ease); }
.foot-card small { color: rgba(255, 255, 255, .62); }
.callbar { border-radius: var(--r-lg); transition: transform .7s var(--ease); }
@media (max-width: 760px) {
  .has-callbar .hx-copy { padding-bottom: 92px; } /* keep the hero button clear of the call bar */
  .js:not(.scrolled) body:has(.hx) .callbar { transform: translateY(calc(100% + 16px)); } /* bar slides in once the hero button starts to leave */
}

/* ===== Kursplan: light header, fine lines, status as dot plus word (CSS only, markup from build-kurse.mjs) ===== */
.plan .seg { background: var(--soft); }
@media (max-width: 599px) { .plan .seg { display: flex; flex-direction: column; width: 100%; } .plan .seg button { text-align: left; } }
.sw { width: 9px; height: 9px; border-radius: 50%; }
.sw-wenig, .kr-wenig .kc-st::before { box-shadow: inset 0 0 0 1px rgba(33, 33, 33, .28); } /* yellow needs an edge on white */
.kc { border: 1px solid var(--line); border-radius: var(--r-btn); box-shadow: none; transition: box-shadow .5s var(--ease), transform .5s var(--ease), border-color .5s var(--ease); }
a.kc:hover { box-shadow: var(--shadow); border-color: rgba(33, 33, 33, .2); }
.kc .kc-bar { background: none; color: var(--mute); padding: 11px 14px 0; font-weight: 500; letter-spacing: 0; }
.kc-st { display: inline-flex; align-items: center; gap: 7px; }
.kc-st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--st, var(--mute)); }
.kr-frei { --st: var(--st-frei); }
.kr-wenig { --st: var(--st-wenig); }
.kr-belegt { --st: var(--st-belegt); }
.kr-ausfall { --st: var(--ink); }
.kc-body { padding-top: 6px; }
.kr-title { font-weight: 500; }
a.kc .kr-title { text-decoration: none; }
.kd-prev, .kd-next { border-radius: var(--r-btn); }
@media (min-width: 1000px) {
  .kc .kc-bar { padding: 10px 12px 0; }
  .kc-body { padding-top: 5px; }
}

/* ===== Bridge: readable copy on the photo, light button on the dark side ===== */
.bridge-card::after { background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .7)), linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .12) 68%); }
.bridge-copy .lead { color: rgba(255, 255, 255, .9); }
.bridge-card .btn-ink { background: var(--white); color: var(--ink); }
.bridge-copy .logo-neg { height: auto; width: clamp(200px, 20vw, 340px); }

/* ===== Portfolio list: names scale with their column, so long words like Kinderphysiotherapie never clip ===== */
@media (min-width: 1000px) {
  .pf-list { container-type: inline-size; }
  .pf-list button { font-size: clamp(24px, min(3.2vw, 6.2vh, 9cqi), 68px); }
}

/* ===== Leistungen: H2 sits in the pinned block, its top flush with the photo; the list fades out below it ===== */
.pf-title { max-width: 22ch; margin-bottom: clamp(28px, 4vw, 48px); }
.pf-eyebrow { margin-bottom: 16px; }
@media (min-width: 1000px) {
  .pf-in { padding-top: calc(68px + clamp(28px, 3vw, 52px)); }
  .pf-left { grid-template-rows: auto auto minmax(0, 1fr); align-items: stretch; }
  .pf-eyebrow { grid-column: 1 / -1; grid-row: 1; justify-self: start; margin-bottom: clamp(16px, 1.4vw, 24px); }
  .pf-title { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: clamp(26px, 2.2vw, 40px); padding-right: var(--gut); }
  .pf-label, .pf-left::before { grid-row: 3; align-self: center; }
  .pf-list { grid-row: 3; height: auto; min-height: 0; }
}

/* ===== Impressum and Datenschutz: one reading column, sections on fine rules ===== */
.lg-head .wrap { display: grid; gap: clamp(18px, 1.8vw, 30px); justify-items: start; }
.nw-crumb { font-size: 15px; color: var(--mute); display: flex; gap: 10px; }
.nw-crumb a { text-decoration: none; }
.nw-crumb a:hover { color: var(--ink); }
.lg-body { padding-bottom: clamp(96px, 11vw, 190px); }
.lg-body .prose { max-width: 68ch; display: grid; gap: 1em; }
.lg-body .prose h2 { font-size: clamp(22px, 1.5vw, 28px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; margin-top: clamp(28px, 3vw, 48px); padding-top: clamp(24px, 2.4vw, 36px); border-top: 1px solid var(--line); text-wrap: balance; }
.lg-body .prose h2:first-child { margin-top: 0; }
.lg-body .prose h3 { font-size: 19px; font-weight: 500; margin-top: .6em; }
.lg-body .prose ul { padding-left: 1.2em; list-style: disc; display: grid; gap: .4em; }
.lg-body .prose a { overflow-wrap: anywhere; }
.lg-body .prose .fine { font-size: 14px; color: var(--mute); }

/* ===== Signature layer (28.10.2026): editorial details for a calm, high-end finish.
   No new colours; lime stays the only accent and appears only as short rules. ===== */

/* Eyebrows: small, tracked capitals behind a short lime rule */
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--lime); flex: none; }

/* Hero: location note bottom right, aligned to the copy baseline */
.hx-meta { position: absolute; z-index: 1; right: max(clamp(24px, 5vw, 104px), (100% - var(--max)) / 2); bottom: clamp(36px, 5.6vw, 104px); display: grid; gap: 6px; justify-items: end; text-align: right; font-size: 14px; line-height: 1.4; letter-spacing: .01em; color: rgba(255, 255, 255, .85); }
.hx-meta span:first-child { color: var(--white); font-weight: 500; }
.hx-meta::before { content: ""; width: 28px; height: 2px; background: var(--lime); margin-bottom: 10px; }
@media (max-width: 1099px) { .hx-meta { display: none; } }
@media (prefers-reduced-motion: no-preference) { .hx-meta { animation: pm-rise 1.1s var(--ease) .56s backwards; } }

/* Values: quiet index numbers above each title */
.values-grid { counter-reset: val; }
.values-grid h4::before { counter-increment: val; content: counter(val, decimal-leading-zero); display: block; margin-bottom: 12px; font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--mute); font-variant-numeric: tabular-nums; }

/* Einblicke: even rows (3 across, 2 across for four), photos stay below their native 900 px */
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.1vw, 20px); }
  .mosaic:has(> :nth-child(4):last-child), .mosaic:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: min(100% - 2 * var(--gut), 1520px); }
}
.shot { border-radius: var(--r-lg); }

/* Bridge: sits on the page column like every other block, with air before the footer */
.bridge { width: min(100% - 2 * var(--gut), var(--max)); margin: 0 auto clamp(64px, 7vw, 128px); padding: 0; }

/* Team placeholder: light initials */
.tm-ph { font-weight: 300; color: rgba(33, 33, 33, .2); }

/* Footer: locations, contact and office hours in one quiet row */
.foot-info { display: grid; gap: 32px clamp(24px, 3vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin-bottom: clamp(16px, 2vw, 32px); font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .68); }
.foot-info > div { display: grid; gap: 10px; align-content: start; justify-items: start; }
.foot-info .foot-h { color: var(--white); font-weight: 500; }
.foot-info a { color: inherit; text-decoration-color: rgba(255, 255, 255, .3); transition: color .3s var(--ease); }
.foot-info a:hover { color: var(--white); }
@media (min-width: 760px) { .foot-card .foot-info { grid-column: 1 / -1; } }

/* Form: filled fields on the soft grey instead of drawn boxes; the line appears on focus */
.f input, .f select, .f textarea { background: var(--soft); border-color: transparent; }
.f input:hover, .f select:hover, .f textarea:hover { border-color: rgba(33, 33, 33, .18); }
.f input:focus, .f select:focus, .f textarea:focus { background: var(--white); border-color: var(--ink); }
.f > span { font-weight: 500; color: var(--ink); }

/* News detail: the page label reads like the eyebrows on the landing pages */
p.nw-meta { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
p.nw-meta::before { content: ""; width: 28px; height: 2px; background: var(--lime); flex: none; }

/* ===== Motion layer (Max 28.10.2026): grain, slow lime shimmer, image depth, autoplaying Privatleistungen, sliding tabs, today in the plan.
   No text animation. Everything moving sits behind prefers-reduced-motion: no-preference. ===== */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:is(.pv-band, .foot-card, .page-head, .sec-soft) { position: relative; isolation: isolate; overflow: clip; }
:is(.pv-band, .foot-card, .page-head, .sec-soft)::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grain); opacity: .16; mix-blend-mode: overlay; }
.foot-card::after { opacity: .1; mix-blend-mode: screen; }
/* Shimmer: one soft light that drifts slowly through the surface */
:is(.pv-band, .foot-card, .page-head)::before { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 70vmax; height: 70vmax; right: -20vmax; top: -30vmax; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); }
.pv-band { --glow: rgba(255, 255, 255, .32); }
.foot-card { --glow: rgba(191, 206, 0, .13); }
.page-head { --glow: rgba(191, 206, 0, .2); }
@media (prefers-reduced-motion: no-preference) {
  :is(.pv-band, .foot-card, .page-head)::before { animation: pv-drift 26s ease-in-out infinite alternate; }
  .foot-card::before { animation-duration: 34s; animation-delay: -12s; }
}
@keyframes pv-drift { 0% { transform: translate(0, 0); } 50% { transform: translate(-28vw, 18vh); } 100% { transform: translate(-48vw, 4vh); } }

/* Image depth: parallax drift inside the frame (desktop, premium.js sets --py), slow settle zoom, hover */
.fx :is(.intro-media, .pv-media, .bridge-card) img { scale: 1.12; translate: 0 var(--py, 0); }
@media (prefers-reduced-motion: no-preference) {
  .js .pv-media.in img.on { animation: pv-settle 11s var(--ease) both; }
  .js .intro-media.in:hover img, .js .ab-media:hover img { transform: scale(1.03); transition: transform 1.2s var(--ease); }
}
@keyframes pv-settle { from { transform: scale(1.1); } to { transform: none; } }

/* Privatleistungen: autoplay on desktop, a thin line fills along the open item (premium.js) */
.pv-item { position: relative; }
.pv-item::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.pv-acc.auto .pv-item.on::before { animation: pv-progress 7s linear forwards; animation-play-state: paused; }
.pv-acc.auto.playing .pv-item.on::before { animation-play-state: running; }
@keyframes pv-progress { to { transform: scaleX(1); } }
.pv-item .pv-plus { transition: transform .5s var(--ease); }
.pv-item button:hover .pv-plus { transform: rotate(90deg); }
.pv-item.on button:hover .pv-plus { transform: none; }

/* Tabs: the dark pill glides to the chosen tab (premium.js sets the geometry) */
.seg.glide { position: relative; isolation: isolate; }
.seg.glide::before { content: ""; position: absolute; z-index: -1; left: 0; top: 0; width: var(--w, 0); height: var(--h, 0); transform: translate(var(--x, 0), var(--y, 0)); border-radius: var(--r-btn); background: var(--ink); transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease); }
.seg.glide button[aria-selected="true"] { background: transparent; }
@media (prefers-reduced-motion: reduce) { .seg.glide::before { transition: none; } }

/* Course plan: today's column, live dot on free places, day columns rise one after another */
.kd.today .kd-head h3::after { content: " · Heute"; color: var(--mute); }
@media (min-width: 1000px) { .kd.today .kd-head { border-bottom: 2px solid var(--lime); } }
@media (prefers-reduced-motion: no-preference) {
  .kr-frei .kc-st::before { animation: pv-live 2.6s ease-out infinite; }
  .js .kt > .kd { opacity: 0; transform: translateY(18px); }
  .js .kt.in > .kd { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  a.kc { transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease); }
  a.kc:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(33, 33, 33, .35); }
}
@keyframes pv-live { 0% { box-shadow: 0 0 0 0 rgba(63, 125, 31, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(63, 125, 31, 0); } }
.page-head { background: var(--white); } /* blend needs an opaque backdrop inside the isolated head */
.page-head + .plan { padding-top: clamp(28px, 3vw, 56px); }
.page-head { overflow: visible; overflow-x: clip; } /* the light fades out into the section below instead of ending on a hard edge */

/* Round 2 (Max 28.10.2026): no visible progress line; the invisible animation still times the autoplay */
.pv-item::before { background: none; }
/* Stronger, more present background light: on every section, alternating sides, faster drift, more grain */
.sec { position: relative; isolation: isolate; overflow-x: clip; }
.sec::before { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 75vmax; height: 75vmax; right: -25vmax; top: -15vmax; border-radius: 50%; background: radial-gradient(closest-side, var(--glow, rgba(191, 206, 0, .26)), transparent); }
.sec:nth-of-type(even)::before, .page-head + .sec::before { right: auto; left: -30vmax; top: 20%; }
.sec.dark { --glow: rgba(191, 206, 0, .2); }
.sec-soft { --glow: rgba(191, 206, 0, .3); }
.pv-band { --glow: rgba(255, 255, 255, .6); }
.page-head { --glow: rgba(191, 206, 0, .38); }
.foot-card { --glow: rgba(191, 206, 0, .26); }
:is(.pv-band, .page-head, .sec-soft)::after { opacity: .3; }
.foot-card::after { opacity: .16; }
@media (prefers-reduced-motion: no-preference) {
  .sec::before, :is(.pv-band, .foot-card, .page-head)::before { animation: pv-drift2 18s ease-in-out infinite alternate; }
  .sec:nth-of-type(even)::before { animation-direction: alternate-reverse; animation-duration: 22s; }
}
@keyframes pv-drift2 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30vw, 22vh) scale(1.15); } 100% { transform: translate(-55vw, -6vh) scale(.95); } }

/* Round 3 (Max 28.10.2026): light and grain only on dark surfaces (footer, dark sections); light surfaces stay plain */
.sec:not(.dark)::before, .pv-band::before, .page-head::before, :is(.pv-band, .page-head, .sec-soft)::after { content: none; }
.sec.dark::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grain); opacity: .16; mix-blend-mode: screen; }

/* ===== Round 4 (Max 28.10.2026): design audit. Real photos untouched (files, grade, crop); only frames and layout change. ===== */
:root { --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.11' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Rhythm: one calmer section spacing instead of 360px gaps */
.sec { padding: clamp(80px, 9vw, 150px) 0; }

/* "Was uns ausmacht": full-bleed dark band, the praxis page's dark anchor (light and grain allowed on dark) */
#ueber-uns { padding-bottom: 0; }
.values { position: relative; isolation: isolate; overflow-x: visible; overflow-y: clip; color: var(--white); margin-top: clamp(80px, 9vw, 150px); padding-block: clamp(80px, 9vw, 150px); }
.values::before { content: ""; position: absolute; z-index: -2; inset: 0 calc(50% - 50vw); background: var(--grain-dark), var(--ink); }
.values::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 70vmax; height: 70vmax; right: -30vmax; top: -35vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(191, 206, 0, .2), transparent); }
.values .h-md, .values .h-lg { color: var(--white); }
.values .eyebrow { color: rgba(255, 255, 255, .7); }
.values .lead { color: rgba(255, 255, 255, .82); max-width: 52ch; margin-bottom: clamp(28px, 3vw, 48px); }
.values-grid h4 { color: var(--white); }
.values-grid h4::before { color: var(--lime); }
.values-grid p { color: rgba(255, 255, 255, .66); }
@media (prefers-reduced-motion: no-preference) { .values::after { animation: pv-drift2 22s ease-in-out infinite alternate; } }
#fuer { padding-bottom: 0; }
#fuer .values { margin-top: 0; }
#fuer .values-grid { margin-top: clamp(28px, 3vw, 48px); }
@media (max-width: 999px) {
  #fuer .values-grid li { grid-template-columns: 1fr; }
}

/* Team: missing photo becomes a dark monogram card instead of a grey placeholder */
.tm-card:has(.tm-ph) { background: radial-gradient(120% 90% at 85% 0%, rgba(191, 206, 0, .2), transparent 60%), var(--grain-dark), var(--ink); }
.tm-ph { color: var(--lime); font-weight: 300; padding-bottom: 18%; }

/* Aktuell: arrow on the link */
.news-more::after { content: "\2192"; display: inline-block; margin-left: .35em; transition: transform .4s var(--ease); }

/* Kontakt: both practices side by side, office hours below, the form as a soft card */
@media (min-width: 640px) {
  .locs { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 3vw, 48px); }
  .locs .loc:last-child { grid-column: 1 / -1; }
  .loc:last-child { border-bottom: 0; }
}
.contact-grid > .form, .contact-grid > form { background: var(--soft); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 44px); }
.contact-grid :is(input, select, textarea) { background: var(--white); }

/* Lime arcs on dark surfaces (premium.js injects the SVG) */
.arcs { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.values > .arcs { inset: 0 calc(50% - 50vw); width: auto; }
.arcs circle { fill: none; stroke: var(--lime); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .45; stroke-dasharray: calc(var(--len) * 1px) 100px; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .arcs circle { stroke-dasharray: 0 100px; transition: stroke-dasharray 2.4s var(--ease) var(--d); animation: pv-turn 90s linear infinite; animation-direction: normal; }
  .arcs circle[style*="--dir:-1"] { animation-direction: reverse; animation-duration: 70s; }
  .arcs.in circle { stroke-dasharray: calc(var(--len) * 1px) 100px; }
}
@keyframes pv-turn { to { transform: rotate(360deg); } }

/* ===== Round 7: "So läuft es ab" steps appear one after another, divider draws in ===== */
@media (prefers-reduced-motion: no-preference) {
  .js .ab-steps > li {
    transform: translateX(-36px); border-top-color: transparent;
    background: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, .16)) 0 0 / 0 1px no-repeat;
    transition: opacity .9s var(--ease), transform 1.1s var(--ease), background-size 1.2s var(--ease);
    transition-delay: calc(.3s + var(--i, 0) * 320ms);
  }
  .js .ab-steps.in > li { background-size: 100% 1px; }
  .js .ab-steps > li::before { opacity: 0; transition: opacity .6s var(--ease) calc(.6s + var(--i, 0) * 320ms); }
  .js .ab-steps.in > li::before { opacity: 1; }
}

/* ===== Course plan week paging: soft crossfade while the next week loads (kurse-wochen.js) ===== */
.kplan { transition: opacity .22s var(--ease); }
.kplan.kload { opacity: .3; }

/* ===== Round 10: image stage. A smaller detail photo overlaps the corner of the main photo (no colour plates, Max) ===== */
.stage { position: relative; isolation: isolate; margin: 0 0 clamp(28px, 4vw, 56px) clamp(10px, 2vw, 28px); }
.stage .intro-media, .stage .pv-media { border-radius: var(--r-xl); box-shadow: 0 30px 60px -28px rgba(33, 33, 33, .45); }
.stage-detail { position: absolute; left: calc(-1 * clamp(10px, 2vw, 28px)); bottom: calc(-1 * clamp(28px, 4vw, 56px)); width: 34%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); border: 6px solid var(--white); box-shadow: 0 24px 48px -18px rgba(33, 33, 33, .5); translate: 0 var(--dy, 0); filter: saturate(.9) contrast(1.04); }
@media (min-width: 1000px) { .pv-acc > .stage { position: sticky; top: 110px; align-self: start; } .pv-acc .pv-media { position: static; } }
@media (prefers-reduced-motion: no-preference) {
  .js .stage-detail { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease) .5s, transform 1.3s var(--ease) .5s; }
  .js .stage.in .stage-detail { opacity: 1; transform: none; }
}
/* Leistungsspektrum: the photo gets the same rounded frame as the others */
@media (min-width: 1000px) { .pf-stage { margin: 0 var(--gut) var(--gut) 0; border-radius: var(--r-xl); overflow: hidden; } }

/* ===== Course teaser on /verein/ (Max 28.10.2026): the full plan lives on /kursprogramme/ ===== */
.kp-teaser { display: grid; gap: clamp(28px, 3vw, 48px); align-items: end; padding: clamp(28px, 4vw, 64px); border-radius: var(--r-xl); background: var(--soft); }
.kp-teaser-copy { display: grid; gap: 18px; }
.kp-teaser-groups { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.kp-teaser-groups li { padding: 8px 14px; border-radius: var(--r-btn); background: var(--white); font-size: 15px; font-weight: 500; }
.kp-teaser-cta { display: grid; gap: 16px; justify-items: start; }
.kp-teaser-cta .plan-note { margin: 0; }
@media (min-width: 1000px) { .kp-teaser { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

/* Captions (Bildunterschrift) from the backend, Max 28.10.: only galleries and intro photos (lib/content.php CAPTION_SLOTS).
   Small white text on a soft shade at the lower edge of the photo, no plate or bar beside it. */
.shot, .intro-media { position: relative; }
.bild-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 12px; background: linear-gradient(to top, rgba(20, 20, 20, .62), rgba(20, 20, 20, 0)); color: #fff; font-size: 14px; line-height: 1.4; text-align: left; pointer-events: none; }
.bild-cap:empty { display: none; }
.lb-inner { grid-template-rows: auto auto; align-content: center; gap: 12px; }
.lb-cap { margin: 0; max-width: min(100%, 900px); color: rgba(255, 255, 255, .85); font-size: 15px; text-align: center; }
.lb-cap:empty { display: none; }

/* ===== Mobile layer (Max 28.10.2026): everything stacks at a sensible size, no sideways scrolling except the carousels ===== */
.car-nav { display: none; }
@media (max-width: 759px) {
  /* Weiche: three equal bands (Praxis, Verein, Pelvic) in one screen */
  .home-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    height: 100svh; min-height: 100svh; max-height: 100svh;
    gap: 2px; overflow: hidden;
  }
  .home-stack .halves-top { display: contents; }
  .home-stack .halves-top > .sr-only { position: absolute; }
  .home-stack .half,
  .home-stack .home-pelvic {
    height: auto; min-height: 0; max-height: 100%;
    padding: 14px var(--gut) 14px; gap: 6px;
    align-content: end; overflow: hidden;
  }
  .home-stack .half-ink { padding-top: 58px; }
  .home-stack .half .logo-neg { width: min(44vw, 180px); height: auto; max-height: 28px; object-fit: contain; object-position: left center; }
  .home-stack .half-lime .logo-neg { width: min(68vw, 260px); max-height: 28px; margin-top: 0; }
  .home-stack .half-copy { gap: 4px; min-height: 0; }
  .home-stack .half-copy .h-lg { font-size: clamp(18px, 5vw, 24px); max-width: 16ch; }
  .home-stack .half-copy p { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .home-stack .half-copy .btn { margin-top: 2px; min-height: 36px; padding-inline: 14px; font-size: 13px; }
  .home-stack .home-pelvic {
    background: #eee9df; color: var(--ink);
    display: grid; justify-items: start; text-align: left;
    max-width: none; margin: 0;
  }
  .home-stack .home-pelvic .eyebrow { font-size: 11px; color: var(--brown); }
  .home-stack .home-pelvic .h-lg { font-size: clamp(18px, 5vw, 24px); max-width: 16ch; }
  .home-stack .home-pelvic p:not(.eyebrow) { font-size: 13px; line-height: 1.35; color: rgba(33, 33, 33, .72); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: none; }
  .home-stack .home-pelvic .btn { margin-top: 2px; min-height: 36px; padding-inline: 14px; font-size: 13px; }

  /* Intro sections: photo above copy (also bare .intro-media, not only .stage) */
  .intro { gap: 24px; }
  .intro > .stage,
  .intro > .intro-media { order: -1; margin: 0; }
  .intro .stage-detail { display: none; }
  .intro-media { aspect-ratio: 4 / 3; }

  /* "Was uns ausmacht": rows with a small square photo instead of a sideways strip */
  .values-grid { grid-auto-flow: row; grid-template-columns: 1fr; overflow: visible; margin: 0; padding: 0; gap: 0; }
  .values-grid li { grid-template-columns: 88px 1fr; column-gap: 16px; row-gap: 4px; align-items: start; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .values-grid li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .values-grid img { grid-row: 1 / span 2; aspect-ratio: 1; margin: 0; border-radius: var(--r-md); }
  .values-grid h4 { font-size: 18px; }
  .values-grid h4::before { margin-bottom: 4px; }
  .values-grid p { font-size: 15px; line-height: 1.45; }

  /* Carousels: the current card sits centred, the neighbours peek in on both sides */
  .pf-stage, .hr-track {
    --cw: 76vw;
    display: grid; grid-auto-flow: column; grid-auto-columns: var(--cw); grid-template-columns: none; gap: 12px;
    width: auto; margin-inline: 0; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 4px calc((100vw - var(--cw)) / 2) 8px; scroll-padding-inline: calc((100vw - var(--cw)) / 2);
  }
  :is(.pf-stage, .hr-track)::-webkit-scrollbar { display: none; }
  :is(.pf-stage, .hr-track) > * { scroll-snap-align: center; width: auto; min-width: 0; }
  .pf-item > img { aspect-ratio: 4 / 3; }
  .hr-media { aspect-ratio: 4 / 3; }
  .hr-card h3 { margin-top: 12px; font-size: 18px; }
  .car-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; }
  .car-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(33, 33, 33, .2); background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
  .car-nav button:disabled { opacity: .35; cursor: default; }
  .car-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .car-nav output { min-width: 52px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--mute); }

  /* Privatleistungen: smaller photo */
  .pv-band { padding: 72px 0; }
  .pv-media img { aspect-ratio: 16 / 9; }
  .pv-acc > .stage { margin: 0; }
  .pv-item h3 { font-size: 19px; }

  /* Team: two portraits per row, name below on a slim panel */
  .tm { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tm-card { aspect-ratio: 3 / 4; border-radius: var(--r-md); }
  .tm-panel { left: 6px; right: 6px; bottom: 6px; max-height: calc(100% - 12px); border-radius: 10px; }
  .tm-panel h3 button { padding: 10px 10px 10px 12px; column-gap: 8px; }
  .tm-name { font-size: 14px; }
  .tm-role { font-size: 12px; line-height: 1.3; }
  .tm-plus { width: 12px; height: 12px; }
  .tm-ph { font-size: 44px; }
  .tm-body { padding: 0 12px 12px; }
  .tm-body ul { font-size: 13px; }

  /* Einblicke: two small photos per row instead of one big photo after another */
  .mosaic { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mosaic .shot, .mosaic .shot img { aspect-ratio: 1; height: auto; }
  .mosaic .shot img { width: 100%; object-fit: cover; }

}
}

/* Course plan: a day that only has courses in the other tab (Max 28.10.2026, kurse-wochen.js) */
.kd-none { display: grid; gap: 14px; justify-items: start; padding: 18px; border: 1px dashed rgba(33, 33, 33, .2); border-radius: var(--r-btn); color: var(--mute); font-size: 15px; }
.kd-none .btn { min-height: 40px; font-size: 14px; }

/* ===== Mobile menu: plain burger icon, turns into a cross while open (Max 28.10.2026) ===== */
.menu-btn, .js:not(.scrolled) body:has(.hx, .pc-hero) .menu-btn, .js:not(.scrolled) body:has(.halves-top) .menu-btn { width: 44px; height: 44px; padding: 0; justify-content: center; background: transparent; box-shadow: none; color: inherit; }
.js:not(.scrolled) body:has(.hx, .pc-hero) .menu-btn { color: var(--white); }
.js:not(.scrolled) body:has(.halves-top) .menu-btn { color: var(--ink); }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), background-color .2s; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.menu-btn[aria-expanded="true"] .burger { background: transparent; }
.menu-btn[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }

/* ===== "So läuft es ab" on phones (Max 28.10.2026): one 16:9 photo on top, tighter steps ===== */
@media (max-width: 759px) {
  .ab { gap: 28px; }
  .ab-media { order: -1; }
  .ab-media img { aspect-ratio: 16 / 9; }
  .ab-steps li { grid-template-columns: 2.4ch 1fr; gap: 14px; padding: 14px 0; font-size: 17px; }
  .ab-copy .btn { width: 100%; justify-content: center; }
  .sec:has(.ab) > .arcs { display: none; } /* only a stray fragment remains at phone width */
}

/* Max 29.10.2026: team smaller and alphabetical, coloured course cards, brown News band, direct contact instead of the form */
@media (min-width: 1000px) { .tm { grid-template-columns: repeat(4, 1fr); } .verein .tm { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tm-card { aspect-ratio: 4 / 5; }
@media (max-width: 999px) { .tm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); } .verein .tm { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .verein .tm { grid-template-columns: 1fr 1fr; } }

/* Course cards: a light tint in the colour of the capacity, the bar and dot keep the strong colour */
.kc { background: color-mix(in srgb, var(--st, #fff) 9%, #fff); border-color: color-mix(in srgb, var(--st, #212121) 26%, #fff); }
.kc.kr-wenig { background: color-mix(in srgb, var(--st) 17%, #fff); }
.kc.kr-ausfall { background: var(--soft); border-color: rgba(33, 33, 33, .2); }
a.kc:hover { border-color: color-mix(in srgb, var(--st, #212121) 45%, #fff); }

/* Contact: phone and mail as copyable text with buttons that call and open the mail programme */
.reach { background: var(--soft); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 44px); display: grid; gap: 4px; align-content: start; }
.reach h3 { font-size: clamp(22px, 1.8vw, 28px); font-weight: 500; letter-spacing: -0.015em; }
.reach-lead { color: var(--mute); margin: 8px 0 14px; }
.reach-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.reach-h { display: block; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.reach-num { display: block; font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; letter-spacing: -0.01em; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
@media (max-width: 599px) { .reach-row .btn { width: 100%; justify-content: center; } }

/* Team: keep each face in the middle of the portrait crop (face position measured per photo) */
.tm-card > img[src*="alexa-jeandree"] { object-position: 22% 30%; }
.tm-card > img[src*="angelika-himmelberg"] { object-position: 56% 30%; }
.tm-card > img[src*="doris-karthaus"] { object-position: 26% 30%; }
.tm-card > img[src*="nadine-palermo"] { object-position: 64% 30%; }
.tm-card > img[src*="tanja-lucassen"] { object-position: 77% 30%; }

/* Weiche desktop: Praxis + Verein fill the top, Pelvic Chair Duo visible at the bottom of the first screen */
@media (min-width: 900px) {
  .home-stack {
    display: flex; flex-direction: column;
    min-height: max(100svh, 640px); /* grows on short screens instead of clipping the buttons under the pelvic band */
    overflow-x: clip;
  }
  .home-stack .halves-top {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto;
    align-items: stretch;
    column-gap: 2px; row-gap: 0;
  }
  .home-stack .home-pelvic {
    flex: 0 0 auto;
    padding: clamp(22px, 2.4vw, 36px) var(--gut);
    gap: 8px;
  }
  .home-stack .home-pelvic .h-lg { font-size: clamp(28px, 2.8vw, 40px); }
  .home-stack .home-pelvic p:not(.eyebrow) { font-size: clamp(15px, .25vw + 14px, 18px); }
  .home-stack .halves-top > .sr-only { position: absolute; }
  .home-stack .halves-top > .half {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / -1;
    align-content: stretch;
    gap: 0;
    min-height: 0;
    height: auto;
    padding-bottom: 32px;
  }
  .home-stack .halves-top .logo-neg {
    grid-row: 1;
    align-self: end;
    justify-self: start;
    width: auto; max-width: 100%;
    height: clamp(56px, 5.2vw, 72px);
    object-fit: contain; object-position: left center;
    margin: 0;
  }
  .home-stack .halves-top .half-lime .logo-neg {
    width: auto; max-width: min(100%, 480px);
    height: clamp(56px, 5.2vw, 72px);
    margin-top: 0;
  }
  .home-stack .halves-top .half-copy {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 2 / -1;
    margin: 0;
    gap: 0;
    align-content: stretch;
  }
  .home-stack .halves-top .half-copy .h-lg {
    grid-row: 2;
    align-self: end;
    margin: 0;
    padding-top: clamp(28px, 2.6vw, 44px);
  }
  .home-stack .halves-top .half-copy p {
    grid-row: 3;
    align-self: start;
    margin: 0;
    padding-top: clamp(14px, 1.2vw, 22px);
  }
  .home-stack .halves-top .half-copy .btn {
    grid-row: 4;
    align-self: start;
    margin-top: clamp(14px, 1.2vw, 22px);
  }
}
.home-pelvic {
  background: #eee9df; color: var(--ink);
  display: grid; justify-items: center; text-align: center; gap: 10px;
  padding: clamp(28px, 3.6vw, 48px) var(--gut);
  text-decoration: none; max-width: none;
}
.home-pelvic .eyebrow { margin-bottom: 0; color: var(--brown); }
.home-pelvic .h-lg {
  font-size: clamp(34px, 3.6vw, 52px); font-weight: 340;
  letter-spacing: -0.03em; line-height: 1.05;
}
.home-pelvic p:not(.eyebrow) {
  color: rgba(33, 33, 33, .72); max-width: 38ch;
  font-size: clamp(16px, .3vw + 15px, 19px); line-height: 1.45;
}
.home-pelvic .btn { margin-top: 6px; }
.home-pelvic:focus-visible { outline-color: var(--ink); }
@media (min-width: 760px) and (max-width: 899px) {
  .home-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    height: 100svh; min-height: 100svh; max-height: 100svh;
    gap: 2px; overflow: hidden;
  }
  .home-stack .halves-top { display: contents; }
  .home-stack .half,
  .home-stack .home-pelvic {
    min-height: 0; height: auto; max-height: 100%;
    padding: 28px var(--gut) 24px; align-content: end; overflow: hidden;
  }
  .home-stack .home-pelvic {
    justify-items: start; text-align: left; max-width: none; margin: 0;
  }
}

/* Verein wordmark: PHYSIO brown, AKTIV lime — same Figtree family, lighter + italic */
.brand-physio { color: var(--brown); }
.brand-aktiv {
  color: var(--lime);
  font-family: inherit;
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* Pelvic Chair: full-bleed chair as the hero centrepiece */
.pc-top {
  position: relative;
  height: 100svh; min-height: 640px; box-sizing: border-box;
  background: #eee9df; overflow: hidden;
}
.pc-film {
  margin: 0; position: absolute;
  inset: 72px 0 clamp(150px, 22vh, 200px) 0;
  display: grid; place-items: center;
}
.pc-film video {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  display: block;
}
.pc-top-head {
  position: absolute; z-index: 1;
  left: max(var(--gut), (100% - var(--max)) / 2);
  bottom: clamp(28px, 4.2vw, 56px);
  display: grid; justify-items: start; gap: 10px;
  max-width: min(42ch, calc(100% - 2 * var(--gut)));
}
.pc-top-head .eyebrow { margin-bottom: 0; }
.pc-top-head h1 {
  font-size: clamp(32px, 3.4vw, 52px); font-weight: 340;
  letter-spacing: -0.03em; line-height: 1.05;
}
.pc-top-head .btn { margin-top: 4px; }
@media (max-width: 760px) {
  /* Same as Praxis/Verein hero: full screen, media above, copy bottom-left */
  .pc-top {
    height: 100svh; min-height: 0; max-height: 100svh;
    display: block;
  }
  body.has-callbar .pc-top {
    height: calc(100svh - 76px);
    max-height: calc(100svh - 76px);
  }
  .pc-film {
    position: absolute;
    inset: 56px 0 clamp(150px, 22vh, 176px) 0;
    margin: 0;
    place-items: end center;
  }
  .pc-film video {
    width: 100%; height: auto; max-height: 100%;
    object-fit: contain; object-position: center bottom;
  }
  .pc-top-head {
    position: absolute;
    left: var(--gut); right: var(--gut); bottom: 18px;
    max-width: none; gap: 8px;
    padding: 0;
  }
  .pc-top-head h1 { font-size: clamp(28px, 8vw, 36px); }
  .pc-top-head .btn { min-height: 44px; }
}

.intro-copy .btn { justify-self: start; margin-top: 10px; }

/* Pelvic page: chair photos readable, media above copy on small screens */
.pelvic-page .intro-media img { object-position: 50% 45%; }
.pelvic-page #wissen .intro-media img { object-position: 55% 40%; }
.pelvic-page .intro:has(#h-ablauf) .intro-media img { object-position: 50% 42%; object-fit: contain; background: #eee9df; }
.pelvic-page .pc-caution .intro-media img { object-position: 50% 35%; }
@media (max-width: 999px) {
  .pelvic-page .intro { gap: 28px; }
  .pelvic-page .intro > .intro-media { order: -1; }
  .pelvic-page .intro-media { aspect-ratio: 4 / 3; }
  .pelvic-page .pc-caution {
    display: grid; gap: 24px;
  }
  .pelvic-page .pc-caution > .intro-media {
    order: -1;
    aspect-ratio: 5 / 4;
    max-height: min(58svh, 420px);
  }
  .pelvic-page .pc-caution-tiles { margin-top: 4px; }
}
@media (min-width: 1000px) {
  .pelvic-page .intro-media { aspect-ratio: 4 / 5; max-height: min(72vh, 720px); justify-self: stretch; }
  .pelvic-page .pc-caution .intro-media { max-height: min(78vh, 780px); }
}

.pc-caution .intro-copy { gap: 14px; }
.pc-caution-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 8px 0 0; padding: 0; list-style: none;
}
.pc-caution-tiles li {
  background: var(--soft); border-radius: var(--r-xl);
  padding: clamp(18px, 1.8vw, 24px);
  display: grid; gap: 8px; align-content: start;
  /* text style on li itself, so tiles edited in the admin without a <span> look the same */
  color: var(--mute); font-size: 15px; line-height: 1.45;
}
.pc-caution-tiles strong {
  color: var(--ink); font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(17px, 1.2vw, 20px); line-height: 1.25;
}
.pc-caution-tiles span { color: var(--mute); font-size: 15px; line-height: 1.45; }
@media (max-width: 560px) { .pc-caution-tiles { grid-template-columns: 1fr; } }
.pc-shots {
  display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr);
  width: min(100% - 2 * var(--gut), var(--max));
  margin-inline: auto;
}
.pc-shots .shot { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-xl); }
.pc-shots .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 800px) {
  .pc-shots { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pc-shots .shot { aspect-ratio: 3 / 4; }
}
@media (max-width: 480px) {
  .pc-shots { grid-template-columns: 1fr 1fr; }
}
