/* PhysioVital: Elementor-style motion, quiet luxury. Colors only from the original site. */
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #212121;
  --mute: #6d6e76;
  --soft: #f1f1f1;
  --white: #fff;
  --brown: #673a15; /* Header + Weiche Praxis half (Max 30.10.: logo brown, not gray) */
  --lime: #bfce00;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --gut: clamp(16px, 3.2vw, 56px);
  --max: 1520px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: clamp(16px, 0.35vw + 15px, 19px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .hx-frame :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.nb { white-space: nowrap; }

/* Type */
.h-xl, .h-lg, .h-md { font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.h-xl { font-size: clamp(42px, 6.2vw, 112px); }
.h-lg { font-size: clamp(34px, 4.4vw, 80px); }
.h-md { font-size: clamp(26px, 2.6vw, 44px); line-height: 1.1; letter-spacing: -0.025em; }
.lead { font-size: clamp(17px, 0.6vw + 14px, 23px); line-height: 1.5; color: var(--mute); max-width: 46ch; text-wrap: pretty; }
.dark .lead, .on-photo .lead { color: rgba(255, 255, 255, .78); }

/* Buttons: soft rectangle like Elementor, no pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 10px; border: 0;
  font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-brown { background: var(--brown); color: var(--white); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Floating nav bar */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(100% - 28px, 1680px);
  display: flex; align-items: center; gap: 24px;
  height: 66px; padding: 0 12px 0 24px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, .10);
}
.logo img { height: 24px; width: auto; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--brown); }
.nav-end { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.switch { font-size: 15px; font-weight: 500; text-decoration: none; padding: 0 12px; }
.menu-btn { display: none; height: 42px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--soft); font-weight: 500; cursor: pointer; }
.sheet {
  position: fixed; z-index: 49; top: 88px; left: 14px; right: 14px;
  background: var(--white); border-radius: 18px; padding: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
  display: grid; gap: 2px;
}
.sheet[hidden] { display: none; }
.sheet a { padding: 14px 12px; text-decoration: none; font-weight: 500; font-size: 18px; border-radius: 10px; }
.sheet a:not(.btn):hover { background: var(--soft); }
.sheet .btn { margin-top: 8px; }
@media (max-width: 1080px) {
  .nav-links, .switch { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav-end { margin-left: auto; }
}
@media (max-width: 560px) {
  .nav { height: 58px; padding-left: 16px; top: 10px; width: calc(100% - 20px); }
  .logo img { height: 19px; }
  .nav-tel { display: none; }
  .sheet { top: 76px; left: 10px; right: 10px; }
}

/* ========== HERO (static frame, no scroll scene) ========== */
.hx { position: relative; }
.hx-stage { position: relative; display: flex; flex-direction: column; }
.hx-frame {
  position: relative; margin: 10px; height: calc(100svh - 20px); min-height: 560px;
  border-radius: var(--r-xl); overflow: hidden; background: var(--ink); color: var(--white);
  display: grid; place-items: center; text-align: center;
}
.hx-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 0%; }
.hx-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.42) 60%, rgba(0,0,0,.55)); }
.hx-copy { position: relative; z-index: 1; padding: 120px var(--gut) 60px; display: grid; justify-items: center; gap: 26px; }
.hx-copy h1 { max-width: 19ch; font-size: clamp(40px, min(5.4vw, 9vh), 100px); }
.hx-copy .lead { color: rgba(255, 255, 255, .88); max-width: 62ch; font-size: clamp(16px, 0.5vw + 13px, 21px); }
.hx-copy .actions { justify-content: center; }
@media (max-width: 560px) { .hx-copy .btn { flex-direction: column; gap: 2px; padding: 12px 24px; text-align: center; } } /* label above number instead of a ragged wrap */

/* ========== SECTIONS ========== */
.sec { padding: clamp(90px, 11vw, 190px) 0; }
.sec-soft { background: var(--soft); }
.dark { background: var(--ink); color: var(--white); }
.head { display: grid; gap: 24px; margin-bottom: clamp(40px, 5vw, 80px); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.head-row .h-lg { max-width: 16ch; }

/* ========== PRIVAT: lime band, image left + accordion right directly on the band, no card (image follows the open item).
   Contrast (WCAG): ink #212121 on lime 9.2:1, ink on white 16.1:1, inactive ink 75 % on lime 5.2:1 (mute would be 2.9:1), white on ink button 16.1:1. ========== */
.pv-band { background: var(--lime); color: var(--ink); padding: clamp(90px, 10vw, 170px) 0; }
.pv-title { margin-bottom: clamp(36px, 4.5vw, 72px); }
.pv-acc { display: grid; gap: clamp(28px, 4vw, 72px); align-items: start; }
.pv-media { display: grid; border-radius: var(--r-lg); overflow: hidden; }
.pv-media img { grid-area: 1 / 1; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.pv-media img.on { opacity: 1; }
.pv-item { border-top: 1px solid rgba(33, 33, 33, .25); }
.pv-item:last-child { border-bottom: 1px solid rgba(33, 33, 33, .25); }
.pv-item h3 { font-size: clamp(22px, 1.9vw, 34px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.pv-item button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(18px, 1.6vw, 26px) 0; cursor: pointer; color: rgba(33, 33, 33, .75); transition: color .3s; }
.pv-item button:hover, .pv-item.on button { color: var(--ink); }
.pv-item button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.pv-plus { flex: none; position: relative; width: 18px; height: 18px; }
.pv-plus::before, .pv-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.pv-plus::after { transform: rotate(90deg); }
.pv-item.on .pv-plus::after { transform: rotate(0deg); }
.pv-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.pv-item.on .pv-body { grid-template-rows: 1fr; }
.pv-body > div { overflow: hidden; display: grid; gap: 18px; justify-items: start; }
.pv-body p { max-width: 42ch; color: var(--ink); }
.pv-body .btn { margin-bottom: clamp(22px, 2vw, 30px); }
@media (min-width: 1000px) { .pv-acc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pv-media { position: sticky; top: 110px; } }
@media (prefers-reduced-motion: reduce) { .pv-media img, .pv-body, .pv-plus::after { transition: none; } }

/* ========== PORTFOLIO LIST: label + scrolling list left, full-bleed image right ========== */
.pf { background: var(--soft); color: var(--ink); }
.pf-in { padding: clamp(90px, 10vw, 160px) 0 clamp(60px, 8vw, 120px); }
.pf-left { width: min(100% - 2 * var(--gut), var(--max)); margin: 0 auto clamp(30px, 5vw, 60px); }
.pf-label { display: grid; gap: 6px; }
.pf-label span { font-size: clamp(16px, 1vw, 19px); font-weight: 400; letter-spacing: 0; color: var(--mute); }
.pf-list { display: none; }
.pf-stage { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; display: grid; gap: 14px; }
.pf-item { display: grid; gap: 0; }
.pf-item > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); }
.pf-card { position: relative; background: transparent; padding: 18px 2px 8px; display: grid; gap: 8px; justify-items: start; }
.pf-card h3 { font-size: clamp(20px, 1.4vw, 26px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.pf-card p { color: var(--mute); font-size: clamp(15px, 0.3vw + 14px, 18px); line-height: 1.5; }
.pf-more { color: var(--ink); text-decoration: underline; font-weight: 500; text-underline-offset: 4px; }
@media (min-width: 640px) and (max-width: 999px) { .pf-stage { grid-template-columns: 1fr 1fr; } }

@media (min-width: 1000px) {
  .pf-in { position: relative; height: 100vh; min-height: 600px; padding: 0; display: grid; grid-template-columns: 1fr min(50vw, max(100vh, 600px)); overflow: hidden; }
  .pf-left { position: relative; width: auto; margin: 0; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: clamp(18px, 1.8vw, 34px); padding-left: var(--gut); }
  .pf-label { font-size: clamp(24px, 2vw, 42px); max-width: 8.5ch; }
  .pf-left::before { content: ""; grid-column: 2; grid-row: 1; width: clamp(28px, 3vw, 64px); height: 1px; background: rgba(33, 33, 33, .45); }
  .pf-label { grid-column: 1; grid-row: 1; }
  .pf-list { display: block; grid-column: 3; grid-row: 1; position: relative; height: 100vh; min-height: 600px; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
  .pf-track { position: absolute; left: 0; right: 0; top: 0; transition: transform .8s var(--ease); }
  .pf-list button {
    all: unset; cursor: pointer; display: block; padding: .14em 0;
    font-size: clamp(30px, min(3.2vw, 6.2vh), 68px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08;
    color: rgba(33, 33, 33, .22); transition: color .5s var(--ease);
  }
  .pf-list button:hover { color: rgba(33, 33, 33, .5); }
  .pf-list button[aria-selected="true"] { color: var(--ink); }
  .pf-list button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
  .pf-stage { position: relative; width: auto; margin: 0; display: block; }
  .pf-item { position: absolute; inset: 0; display: grid; align-content: end; padding: clamp(16px, 1.6vw, 32px); justify-items: end;
    opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
  .pf-item > img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; transform: scale(1.06); transition: transform 1.4s var(--ease); }
  .pf-item.on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; }
  .pf-item.on > img { transform: none; }
  .pf-card { max-width: min(520px, 100%); padding: 22px 26px; border-radius: var(--r-md); background: var(--white); box-shadow: 0 18px 40px rgba(0, 0, 0, .14); transform: translateY(16px); opacity: 0; transition: transform .7s var(--ease) .15s, opacity .7s var(--ease) .15s; }
  .pf-item.on .pf-card { transform: none; opacity: 1; }
}

/* ========== HORIZONTAL CARD ROW (Websites mit vollständiger kreativer Kontrolle) ========== */
.hr { overflow: hidden; }
.hr-track { display: flex; gap: clamp(14px, 1.6vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gut) 24px; scrollbar-width: none; }
.hr-track::-webkit-scrollbar { display: none; }
.hr-card { flex: none; width: min(78vw, 340px); scroll-snap-align: start; }
.hr-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--soft); }
.hr-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.hr-card:hover .hr-media img { transform: scale(1.04); }
.hr-card h3 { margin-top: 18px; font-size: clamp(19px, 1.3vw, 24px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.fx .hr-track { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
.fx .hr-card { width: clamp(260px, min(24vw, 36vh), 520px); }
.fx .hr-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 60px; }
.fx .hr-pin .head { margin-bottom: clamp(26px, 4vh, 54px); grid-template-columns: 1.15fr 1fr; align-items: end; gap: 6vw; }
.fx .hr-pin .h-lg { font-size: clamp(34px, min(3.6vw, 6.4vh), 72px); }
.fx .hr-pin .lead { font-size: clamp(16px, 1.1vw, 20px); }

/* ========== TEAM: photo cards with inset bar that expands (Cadence founders) ========== */
.tm { display: grid; gap: clamp(12px, 1.4vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tm-card { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 8 / 9; background: var(--soft); }
.tm-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 1.2s var(--ease); }
.tm-card:hover > img { transform: scale(1.03); }
.tm-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(56px, 6vw, 110px); font-weight: 500; letter-spacing: -0.03em; color: rgba(33, 33, 33, .18); }
.tm-panel { position: absolute; left: 12px; right: 12px; bottom: 12px; max-height: calc(100% - 24px); overflow: auto; background: var(--white); border-radius: var(--r-md); box-shadow: 0 18px 40px rgba(0, 0, 0, .14); }
.tm-panel h3 { margin: 0; font: inherit; }
.tm-panel h3 button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 16px 18px;
}
.tm-panel h3 button:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: var(--r-md); }
.tm-name { font-size: clamp(18px, 1.2vw, 22px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.tm-role { grid-column: 1; font-size: 15px; color: var(--mute); }
.tm-plus { grid-column: 2; grid-row: 1 / span 2; position: relative; width: 16px; height: 16px; }
.tm-plus::before, .tm-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.tm-plus::after { transform: rotate(90deg); }
[aria-expanded="true"] .tm-plus::after { transform: rotate(0); }
.tm-body { padding: 0 18px 20px; }
.tm-body p { font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.tm-body ul { display: grid; gap: 4px; font-size: 15px; line-height: 1.45; }
.tm-body li { padding-top: 6px; border-top: 1px solid rgba(33, 33, 33, .1); }

/* ========== AKTUELL: Praxis = flyer row, Verein = .news block ========== */
.flyers { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 380px)); }
.flyers a { text-decoration: none; display: grid; gap: 10px; }
.flyer-box { display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); box-shadow: 0 20px 50px rgba(0,0,0,.10); transition: transform .6s var(--ease); }
.flyers a:hover .flyer-box { transform: translateY(-6px); }
.flyers small { color: var(--mute); font-size: 14px; margin-top: 6px; }
.flyers h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.news { display: grid; gap: clamp(14px, 1.6vw, 24px); }
.news a { display: grid; gap: 22px; text-decoration: none; background: var(--soft); border-radius: var(--r-xl); padding: clamp(18px, 1.8vw, 28px); transition: transform .6s var(--ease); }
.news a:hover { transform: translateY(-4px); }
.news img { width: 100%; max-width: 480px; border-radius: var(--r-md); box-shadow: 0 16px 40px rgba(0, 0, 0, .12); } /* flyers are 900px wide, never shown larger */
.news-copy { display: grid; gap: 12px; align-content: center; justify-items: start; }
.news small { font-size: 14px; }
.news-side h3 { font-size: clamp(20px, 1.4vw, 26px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.news-more { font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 640px) {
  .news a { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; }
}
@media (min-width: 1000px) {
  .news { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .news-main { padding: clamp(24px, 2.4vw, 40px); gap: clamp(24px, 3vw, 56px); }
  .news-side { grid-template-columns: 1fr; align-content: start; }
  .news-side img { max-width: 260px; }
}

/* ========== EINBLICKE ========== */
.seg { display: inline-flex; gap: 4px; background: var(--white); padding: 4px; border-radius: 12px; }
.seg button { border: 0; background: transparent; padding: 10px 16px; border-radius: 9px; font-weight: 500; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.mosaic { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); width: min(100% - 2 * var(--gut), var(--max)); margin: 0 auto; }
.shot { border: 0; padding: 0; cursor: zoom-in; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 900 / 565; background: var(--soft); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lb-inner { width: 100%; height: 100%; display: grid; place-items: center; padding: 60px 70px; }
.lb-inner img { max-width: min(100%, 900px); max-height: 100%; border-radius: 12px; }
.lb-btn { position: fixed; width: 50px; height: 50px; border-radius: 12px; border: 0; background: rgba(255,255,255,.14); cursor: pointer; color: var(--white); font-size: 22px; }
.lb-btn:hover { background: rgba(255,255,255,.26); }
.lb-close { top: 16px; right: 16px; }
.lb-close::before { content: "\00d7"; font-size: 30px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-prev::before { content: "\2190"; }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-next::before { content: "\2192"; }

/* ========== KONTAKT ========== */
.contact-grid { display: grid; gap: clamp(40px, 5vw, 90px); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
.locs { display: grid; gap: 14px; align-content: start; }
.loc { background: var(--soft); border-radius: var(--r-lg); padding: 26px 28px; }
.loc h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; letter-spacing: -0.01em; }
.loc address { font-style: normal; display: grid; gap: 10px; color: var(--ink); }
.loc a { text-decoration-color: rgba(0,0,0,.25); text-underline-offset: 3px; }
.loc .map { font-weight: 500; color: var(--ink); }
.loc dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin-bottom: 8px; }
.loc dt { font-weight: 500; }
.form { display: grid; gap: 16px; align-content: start; }
.f-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .f-row { grid-template-columns: 1fr 1fr; } }
.f { display: grid; gap: 6px; font-weight: 500; font-size: 14px; }
.f input, .f select, .f textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--mute); border-radius: 10px; padding: 13px 14px; background: var(--white);
}
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); }
.f-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--mute); }
.f-check input { margin-top: 5px; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form-note { font-size: 15px; color: var(--mute); }

/* ========== BRIDGE / HALVES ========== */
.bridge { padding: 0 10px 10px; }
.bridge-card {
  position: relative; display: grid; align-content: end; min-height: min(86vh, 860px);
  border-radius: var(--r-xl); overflow: hidden; color: var(--white); text-decoration: none; padding: clamp(28px, 4vw, 70px);
}
.bridge-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.bridge-card:hover img.bg { transform: scale(1.03); }
.bridge-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.72)), linear-gradient(90deg, rgba(0,0,0,.45), transparent 60%); }
.bridge-copy { position: relative; z-index: 1; display: grid; gap: 20px; justify-items: start; max-width: 760px; }
.bridge-copy .logo-neg { height: clamp(20px, 2vw, 30px); width: auto; }

/* Weiche: two flat colour halves, no photos. Brown = Praxis (logo brown, Max 30.10.), Lime = Verein. */
.halves { display: grid; gap: 2px; background: var(--white); }
@media (min-width: 900px) { .halves { grid-template-columns: 1fr 1fr; } }
.half {
  display: grid; align-content: space-between; min-height: min(92vh, 980px);
  text-decoration: none; padding: clamp(96px, 7vw, 130px) clamp(22px, 3.4vw, 64px) clamp(30px, 3.4vw, 64px);
}
.half-ink { background: var(--brown); color: var(--white); }
.half-lime { background: var(--lime); color: var(--ink); }
.half .logo-neg { height: clamp(34px, 3.4vw, 60px); width: auto; }
.half .logo-mono { filter: brightness(0); opacity: .87; } /* both PHYSIOAKTIV logos carry lime lettering, invisible on lime */
.half-copy { display: grid; gap: 18px; justify-items: start; }
.half-copy .h-lg { font-size: clamp(32px, 3.4vw, 64px); max-width: 14ch; }
.half-copy p { max-width: 40ch; font-size: clamp(17px, 0.5vw + 14px, 21px); }
.half-ink p { color: rgba(255, 255, 255, .84); }
.half-ink:focus-visible { outline-color: var(--white); }
.half-lime:focus-visible { outline-color: var(--ink); }
@media (max-width: 899px) { .half { min-height: 78svh; } }
@media (max-width: 760px) { .hx-img { object-position: 78% 20%; } }

/* ========== FOOTER ========== */
.foot { padding: 10px; }
.foot-card { background: var(--ink); color: var(--white); border-radius: var(--r-xl); padding: clamp(40px, 5vw, 80px) clamp(24px, 4vw, 70px); display: grid; gap: 34px; }
.foot-card img { height: 24px; width: auto; }
.foot-card nav { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.foot-card nav a { text-decoration: none; color: rgba(255,255,255,.8); }
.foot-card nav a:hover { color: var(--white); }
.foot-card small { color: rgba(255,255,255,.55); font-size: 14px; }

.callbar { display: none; }
@media (max-width: 760px) {
  .has-callbar { padding-bottom: 76px; }
  .callbar {
    display: flex; position: fixed; z-index: 40; left: 10px; right: 10px; bottom: 10px; height: 56px;
    align-items: center; justify-content: center; border-radius: 14px; background: var(--ink); color: var(--white);
    font-weight: 500; text-decoration: none; box-shadow: 0 14px 40px rgba(0,0,0,.25);
  }
}

/* Reveal on scroll (simple, CSS only fallback via JS class) */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
.seg-dark { background: var(--soft); }

/* Intro + values (Hier sind Sie in guten Händen) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-weight: 500; color: var(--mute); font-size: clamp(16px, 0.4vw + 14px, 19px); }
.intro { display: grid; gap: clamp(36px, 5vw, 100px); align-items: center; }
.intro-copy { display: grid; gap: 22px; }
.intro-copy p:not(.eyebrow) { color: var(--mute); max-width: 56ch; font-size: clamp(17px, 0.4vw + 15px, 20px); }
.intro-media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 5 / 4; }
.intro-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
@media (min-width: 1000px) { .intro { grid-template-columns: 1fr 1.1fr; } }
.values { margin-top: clamp(70px, 8vw, 140px); display: grid; gap: clamp(26px, 3vw, 44px); }
.values-grid { display: grid; grid-auto-flow: column; grid-auto-columns: min(76vw, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) 6px; }
.values-grid::-webkit-scrollbar { display: none; }
.values-grid li { scroll-snap-align: start; display: grid; gap: 10px; align-content: start; }
.values-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 8px; }
.values-grid h4 { margin: 0; font-size: clamp(19px, 1.2vw, 23px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.values-grid p { color: var(--mute); }
.news small { color: var(--ink); opacity: .72; } /* mute on soft is only 4.49:1 */
@media (min-width: 1000px) {
  .values-grid { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: clamp(14px, 1.4vw, 24px); }
  .values-grid li:nth-child(even) { margin-top: clamp(30px, 4vw, 70px); }
}
.bridge-card { max-width: 1920px; margin-inline: auto; }
@media (min-width: 1000px) { .tm { grid-template-columns: repeat(3, 1fr); } }
.fx .pf-track { transition: none; }
.halves-top > .half { min-height: 100svh; }
.home-stack .halves-top > .half { min-height: 0; }
@media (max-width: 899px) {
  .home-stack .half { min-height: 0; }
}
@media (min-width: 1000px) {
  .ab-media { display: grid; }
  .ab-media img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; }
}

/* ========== PAKET B: Verein (lime accent instead of brown) ==========
   Lime #bfce00 on white is only 1.8:1, so lime is used for surfaces (buttons, band, dots), never for text on white. */
.verein .nav-links a:hover { color: var(--mute); }
.verein .loc .map, .verein .news-more { color: var(--ink); } /* eyebrow and .ql numbers: global mute rule applies */
.verein .f-check input { accent-color: var(--ink); }
.verein .callbar { background: var(--lime); color: var(--ink); }
.verein .hx-img { object-position: 50% 45%; }
@media (max-width: 760px) { .verein .hx-img { object-position: 70% 0%; } } /* phone: keep trainer and patient faces in frame */
.verein .nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* So läuft es ab: full-bleed dark section (no tile, Max 26.10.), lime numbers (lime on #212121 is 9.2:1), two real 900px photos never upscaled */
.ab { display: grid; gap: clamp(32px, 4vw, 72px); }
.ab-copy { display: grid; gap: 22px; align-content: center; justify-items: start; }
.ab-steps { width: 100%; margin-top: 8px; counter-reset: ab; }
.ab-steps li { counter-increment: ab; display: grid; grid-template-columns: 3ch 1fr; gap: 20px; align-items: baseline; padding: clamp(16px, 1.6vw, 24px) 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: clamp(19px, 1.5vw, 28px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; text-wrap: pretty; }
.ab-steps li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.ab-steps li::before { content: counter(ab, decimal-leading-zero); font-size: 14px; letter-spacing: .06em; color: var(--lime); font-variant-numeric: tabular-nums; }
.ab-media { display: grid; gap: 12px; align-content: center; }
.ab-media img { width: 100%; aspect-ratio: 900 / 565; object-fit: cover; border-radius: var(--r-lg); }
@media (min-width: 1000px) { .ab { grid-template-columns: 1.1fr 1fr; } }

/* Aktuell with four flyers: first large, three stacked beside it */
.news-stack { display: grid; gap: clamp(10px, 1.2vw, 16px); align-content: start; }
.news-stack .news-side { grid-template-columns: 96px 1fr; align-items: center; padding: 14px 18px 14px 14px; }
.news-stack .news-side img { max-width: 96px; }
.news-stack .news-side h3 { font-size: clamp(18px, 1.1vw, 22px); }
.news-stack .news-copy { gap: 6px; }

/* ========== PAKET B: Kursplan (data from data/kurse.json via tools/build-kurse.mjs) ==========
   Max 26.10.: like the live site (status colour bar with course number, grey every other day column),
   only cleaner. Status colours are the live ones, slightly deepened so white text stays readable.
   Desktop (>= 1000px): one column per day that has courses (Max 28.10.).
   Below 1000px: .kt is a scroll-snap track, one day per slide, swipe or prev/next buttons (lux.js). */
.plan { --st-frei: #3f7d1f; --st-wenig: #ffd200; --st-belegt: #c8101f; }
.page-head { padding: clamp(130px, 14vw, 230px) 0 clamp(44px, 5vw, 80px); }
.page-head .head { margin-bottom: 0; }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.plan .seg { flex-wrap: wrap; background: var(--soft); }
.kp-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; font-weight: 500; }
.kp-legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.sw-belegt, .kr-belegt .kc-bar { background: var(--st-belegt); color: var(--white); }
.sw-wenig, .kr-wenig .kc-bar { background: var(--st-wenig); color: var(--ink); }
.sw-frei, .kr-frei .kc-bar { background: var(--st-frei); color: var(--white); }
.kr-ausfall .kc-bar { background: var(--ink); color: var(--white); }

.kc { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid rgba(33, 33, 33, .1); border-radius: 12px; overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(33, 33, 33, .04); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
a.kc:hover { box-shadow: 0 8px 24px rgba(33, 33, 33, .1); transform: translateY(-2px); }
.kc-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 14px; font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.kc-nr { font-variant-numeric: tabular-nums; }
.kc-body { display: grid; gap: 2px; padding: 12px 14px 15px; }
.kr-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 2px; hyphens: auto; overflow-wrap: anywhere; }
a.kc .kr-title { text-decoration: underline; text-decoration-color: rgba(33, 33, 33, .25); text-underline-offset: 4px; }
.kr-art { font-size: 13px; font-weight: 500; color: var(--mute); margin: -2px 0 4px; }
.kr-time { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.kr-who { font-size: 15px; color: var(--mute); }
.kr-note { font-size: 14px; color: var(--mute); line-height: 1.4; margin-top: 6px; }
.kr-ausfall .kr-title, .kr-ausfall .kr-time { text-decoration: line-through; color: var(--mute); }
.kr-ausfall .kr-note { color: var(--ink); font-weight: 500; }
.plan-note { margin-top: clamp(28px, 3vw, 48px); color: var(--mute); font-size: 16px; }
.plan-note a { color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }

/* mobile / tablet: one day per slide */
.kt { position: relative; display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; transition: height .3s var(--ease); scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.kt::-webkit-scrollbar { display: none; }
.kd { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.kd-leer { display: none; }
.kd-head { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; margin-bottom: 14px; }
.kd-head h3 { text-align: center; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.kd-prev, .kd-next { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); cursor: pointer; }
.kd-prev:disabled, .kd-next:disabled { opacity: .3; cursor: default; }
.kd ul { display: grid; gap: 12px; }

/* desktop (>= 1000px): Max 28.10.: one column per day with courses, cards stacked by time, no hour grid, no empty days */
@media (min-width: 1000px) {
  .kt { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(12px, 1.2vw, 20px); align-items: start; overflow: visible; height: auto !important; }
  .kd-head { display: block; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(33, 33, 33, .14); }
  .kd-head h3 { text-align: left; font-size: 20px; }
  .kd-prev, .kd-next { display: none; }
  .kd ul { gap: 10px; }
  .kc-bar { padding: 6px 12px; font-size: 12.5px; }
  .kc-body { padding: 10px 12px 12px; }
  .kr-title { font-size: 16.5px; }
  .kr-time, .kr-who { font-size: 14px; }
  .kr-note { font-size: 13px; margin-top: 4px; }
}
.kc-bar > span { white-space: nowrap; }
@media (min-width: 1000px) and (max-width: 1199px) {
  .kc-bar { padding: 6px 10px; font-size: 12px; gap: 8px; }
  .kc-body { padding: 10px 10px 12px; }
}
}
/* Max 26.10.: plan wider than the text column. Tabs, legend and day columns grow into the side margin,
   up to 160px per side, always keeping 32px to the window edge (100vw includes a possible scrollbar). */
@media (min-width: 1000px) {
  .plan .wrap { --out: clamp(0px, (100vw - 100%) / 2 - 32px, 160px); }
  .plan-head, .kt { margin-inline: calc(-1 * var(--out)); }
}
