/* Physio Rami · Design A «Aare» (Hallmark tokens, tuned for TYPO3)
 * Grid rule: everything (nav pill, headings, text, images, footer) lives in ONE container «.wrap».
 * Its padding box defines the only left/right edges of the page.
 * Fonts: Newsreader (display) + Instrument Sans (body, replaces Fontshare «Switzer»), both SIL OFL, self-hosted.
 */

/* ---------- fonts (self-hosted, no CDN) ---------- */
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../Fonts/newsreader-latin-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../Fonts/newsreader-latin-ext-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("../Fonts/newsreader-latin-standard-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../Fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../Fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../Fonts/instrument-sans-latin-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---------- tokens (Hallmark · direction A «Aare») ---------- */
:root {
  --color-paper:    oklch(97.5% 0.006 220);
  --color-paper-2:  oklch(94.5% 0.010 220);
  --color-paper-3:  oklch(91%   0.014 222);
  --color-rule:     oklch(84%   0.012 225);
  --color-neutral:  oklch(55%   0.012 230);
  --color-muted:    oklch(40%   0.014 235);
  --color-ink:      oklch(21%   0.020 240);
  --color-accent:   oklch(47%   0.095 228);
  --color-accent-2: oklch(38%   0.085 232);
  --color-monogram: oklch(78%   0.070 232);
  --color-focus:    oklch(52%   0.140 245);
  --color-error:    oklch(50%   0.150 28);
  --color-success:  oklch(46%   0.090 160);

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body:    "Instrument Sans", ui-sans-serif, system-ui, sans-serif;

  --text-xs:   0.8rem;
  --text-sm:   0.9rem;
  --text-base: 1.125rem;   /* 18px body: older readers, phones */
  --text-md:   1.3rem;
  --text-lg:   1.6rem;
  --text-xl:   2rem;
  --text-2xl:  clamp(1.9rem, 1.2vw + 1.45rem, 2.5rem);
  --text-display: clamp(2.25rem, 3.4vw + 1rem, 4rem);

  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 7rem;

  --page-max: 76rem;
  --measure:  62ch;
  --gutter:   max(var(--space-md), env(safe-area-inset-left), env(safe-area-inset-right));
  --nav-h:    56px;
  --nav-pad:  var(--space-xs);   /* space above/below the pill: header reserves nav-h + 2 × nav-pad */

  --radius-sm: 4px;
  --radius-pill: 999px;
  --rule-hair: 1px solid var(--color-rule);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
}
@media (min-width: 40rem) { :root { --gutter: var(--space-xl); } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  /* sticky header height + breathing room: anchor targets are never hidden under the header */
  scroll-padding-top: calc(var(--nav-h) + 2 * var(--nav-pad) + var(--space-md)); }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-accent-2); text-decoration-thickness: 2px; }
a:active { color: var(--color-ink); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-sm); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; overflow-wrap: break-word; hyphens: auto; letter-spacing: -0.01em; }
h3 { font-size: var(--text-lg); }
p { margin: 0; }
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -10rem; z-index: 50; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-sm); }
.skip:focus { top: var(--space-xs); color: var(--color-paper); }

/* THE grid: one container, one pair of edges */
.wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- header: floating pill on the grid ----------
 * In normal document flow and sticky: it reserves its own height at the top, so nothing is covered on load.
 * The pill's outer edges are the .wrap content edges (same as headings and images). */
.nav { position: sticky; top: 0; z-index: 20; padding-block: var(--nav-pad); }
.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: var(--space-lg);
  padding-inline: var(--space-md);
  border-radius: var(--radius-pill);
  background-color: color-mix(in oklch, var(--color-paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: inset 0 0 0 1px var(--color-rule);
  transition: box-shadow var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.nav.is-floating .nav__inner {
  background-color: color-mix(in oklch, var(--color-paper) 96%, transparent);
  box-shadow: 0 8px 24px -12px color-mix(in oklch, var(--color-ink) 30%, transparent), inset 0 0 0 1px var(--color-rule);
}
.wordmark { display: inline-flex; align-items: center; gap: var(--space-xs); text-decoration: none; color: var(--color-ink); font-family: var(--font-display); font-size: var(--text-md); font-weight: 600; white-space: nowrap; letter-spacing: -0.01em; }
.wordmark:hover { color: var(--color-ink); text-decoration: none; }
.wordmark img { width: auto; height: 36px; }
.nav__links { display: none; margin-inline-start: auto; }
.nav__links ul { display: flex; list-style: none; margin: 0; padding: 0; gap: var(--space-lg); }
.nav__links a { color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); font-weight: 500; white-space: nowrap; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--color-accent); text-decoration: underline; }
.nav .nav__cta { display: none; }
.menu { position: relative; margin-inline-start: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 44px; padding: 0 var(--space-lg);
  border-radius: var(--radius-pill); border: 1px solid var(--color-accent);
  background: var(--color-accent); color: var(--color-paper);
  font: 600 var(--text-sm)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-accent-2); color: var(--color-paper); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-busy="true"] { background: var(--color-neutral); border-color: var(--color-neutral); cursor: not-allowed; transform: none; }
.nav .btn { min-height: 40px; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--space-sm); font-weight: 600; font-size: var(--text-sm); color: var(--color-ink); white-space: nowrap; border-radius: var(--radius-pill); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 0.6em; height: 0.6em; margin-inline-start: 0.5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-0.15em) rotate(45deg); }
.menu[open] summary { color: var(--color-accent); }
.menu__panel { position: absolute; inset-inline-end: calc(var(--space-md) * -1); top: calc(100% + var(--nav-pad) + var(--space-xs)); min-width: 16rem; max-width: calc(100vw - 2 * var(--gutter)); background: var(--color-paper); border: var(--rule-hair); border-radius: var(--radius-sm); padding: var(--space-xs); box-shadow: 0 16px 32px -20px color-mix(in oklch, var(--color-ink) 40%, transparent); }
.menu__panel a { display: block; padding: var(--space-sm) var(--space-md); color: var(--color-ink); text-decoration: none; }
.menu__panel a:hover, .menu__panel a[aria-current="page"] { background: var(--color-paper-2); color: var(--color-accent-2); }
.lang { display: flex; gap: var(--space-xs); list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); }
.lang a, .lang span { display: inline-flex; min-height: 44px; align-items: center; padding-inline: var(--space-2xs); }
.lang [aria-current] { font-weight: 600; }
.lang--na { color: var(--color-neutral); }
@media (min-width: 40rem) {
  .nav .nav__cta { display: inline-flex; margin-inline-start: auto; }
  .menu { margin-inline-start: 0; }
}
@media (min-width: 72rem) {
  .nav__links { display: block; }
  .nav .nav__cta { margin-inline-start: 0; }
  .menu { display: none; }
}

/* ---------- hero: full-screen photo(s) behind the floating header ----------
 * Pulled up under the sticky header (its height: nav-h + 2 × nav-pad). Text sits bottom left on the grid,
 * on the photos as they are (no dark scrim, the client's wish), legible through a soft text shadow;
 * several photos crossfade (main.js). */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-block-start: calc(-1 * (var(--nav-h) + 2 * var(--nav-pad)));
  min-height: max(34rem, 100svh);
  display: flex; align-items: flex-end;
  background: var(--color-ink); color: var(--color-paper);
}
.hero__slides { position: absolute; inset: 0; z-index: -1; }
/* only a soft halo behind the text block (bottom left); the rest of the photo stays as shot */
.hero__slides::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 48% at 26% 74%, oklch(18% 0.03 240 / 0.6), oklch(18% 0.03 240 / 0.3) 55%, oklch(18% 0.03 240 / 0) 100%); }
.hero h1, .hero__name, .hero .lede, .hero .tel {
  text-shadow: 0 1px 2px oklch(18% 0.03 240 / 0.7), 0 2px 12px oklch(18% 0.03 240 / 0.55), 0 0 40px oklch(18% 0.03 240 / 0.35); }
.hero__title { display: grid; gap: var(--space-xs); }
.hero__name { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 1.5vw + 1rem, 2.25rem); line-height: 1.15; color: var(--color-paper); }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.06); transition: transform 9s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__text { display: grid; gap: var(--space-md); padding-block: calc(var(--nav-h) + var(--space-3xl)) var(--space-3xl); }
.hero h1 { font-size: clamp(2.6rem, 5vw + 1rem, 5.5rem); max-width: 14ch; color: var(--color-paper); text-wrap: balance; }
.hero .lede { font-size: var(--text-md); color: color-mix(in oklch, var(--color-paper) 88%, transparent); max-width: 40ch; text-wrap: balance; }
.hero .tel { color: var(--color-paper); }
.hero .tel:hover { color: var(--color-paper); }
.hero :focus-visible { outline-color: var(--color-paper); }
.hero__controls { position: absolute; right: var(--gutter); bottom: var(--space-md); display: flex; align-items: center; gap: var(--space-xs); }
.hero__dots { display: flex; }
.hero__dot { width: 36px; height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; }
.hero__dot::before { content: ""; display: block; height: 3px; border-radius: 2px; background: color-mix(in oklch, var(--color-paper) 40%, transparent); transition: background-color var(--dur-short) var(--ease-out); }
.hero__dot:hover::before { background: color-mix(in oklch, var(--color-paper) 75%, transparent); }
.hero__dot[aria-current]::before { background: var(--color-paper); }
.hero__pause { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid color-mix(in oklch, var(--color-paper) 45%, transparent); border-radius: 50%;
  background: oklch(18% 0.03 240 / 0.25); color: var(--color-paper); cursor: pointer; }
.hero__pause:hover { background: color-mix(in oklch, var(--color-paper) 18%, transparent); }
.hero__pause svg { width: 16px; height: 16px; fill: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); align-items: center; margin-top: var(--space-xs); }
.tel { font-weight: 600; color: var(--color-ink); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tel:hover { color: var(--color-accent); text-decoration: underline; }

/* ---------- bands (every content element) ---------- */
.band { padding-block: var(--space-3xl); }
.band + .band, .hero + .band { border-block-start: var(--rule-hair); }
.band h1 { font-size: var(--text-display); max-width: 18ch; }
.band h2 { font-size: var(--text-2xl); max-width: 24ch; }
.band__head { margin-block-end: var(--space-xl); display: grid; gap: var(--space-xs); }
.band__head .sub { font-size: var(--text-md); color: var(--color-muted); max-width: var(--measure); }
.split { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
.split > .band__head { margin-block-end: 0; }
@media (min-width: 60rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); } }
.narrow > * { max-width: 46rem; }

.prose { max-width: var(--measure); }
.prose > * + * { margin-block-start: var(--space-md); }
.prose h3 { font-size: var(--text-lg); margin-block-start: var(--space-xl); }
.prose h4 { font-size: var(--text-base); font-weight: 600; margin-block: var(--space-lg) 0; }
.prose ul, .prose ol { padding-inline-start: 1.2em; }
.prose li + li { margin-block-start: var(--space-2xs); }
.prose .lead, .prose p.intro { font-size: var(--text-md); color: var(--color-muted); }
.prose small, .prose .meta { color: var(--color-muted); font-size: var(--text-sm); }
.prose + .media { margin-block-start: var(--space-xl); }

.list { list-style: none; margin: 0; padding: 0; column-gap: var(--space-2xl); max-width: none; }
.list li { break-inside: avoid; padding-block: var(--space-sm); border-block-end: var(--rule-hair); }
.list li:first-child { border-block-start: var(--rule-hair); }
.list--edit { line-height: 2.4; border-block: var(--rule-hair); padding-block: var(--space-xs); }
.list--edit::before { content: attr(data-hint); display: block; margin-block-end: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); line-height: 1.5; }
/* Visual editor only (pr:editFields) */
.ve-add { display: inline-block; margin-block-start: var(--space-md); padding: var(--space-xs) var(--space-md); border: 1px dashed currentColor; border-radius: 999px; color: var(--color-link, #22627e); font-weight: 600; cursor: pointer; }
@media (min-width: 40rem) { .list--cols { columns: 2; } .list--cols li:first-child { border-block-start: 0; } .list--cols { border-block-start: var(--rule-hair); } }

/* media: images always fill the grid column, so their edges line up with the text */
.media { display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); margin: 0; }
@media (min-width: 40rem) { .media--c2, .media--c3, .media--c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .media--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .media--c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.media__item { margin: 0; }
.media__item img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius-sm); }
.media--c1 .media__item img { aspect-ratio: auto; max-height: 40rem; }
.media__item--fixed img { aspect-ratio: auto; object-fit: contain; border-radius: 0; }
.zoom { display: block; cursor: zoom-in; border-radius: var(--radius-sm); }
.zoom img { transition: filter .2s ease; }
.zoom:hover img, .zoom:focus-visible img { filter: brightness(.9); }

/* Lightbox (main.js): full screen, image as large as fits, caption and counter below */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: var(--space-lg) var(--space-md); border: 0; background: rgb(8 14 19 / .97); color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; gap: var(--space-sm); }
.lightbox::backdrop { background: rgb(8 14 19 / .9); }
.lightbox__figure { margin: 0; display: grid; place-items: center; align-content: center; gap: var(--space-sm); min-height: 0; height: 100%; }
.lightbox__figure img { max-width: min(100%, 1600px); max-height: calc(100dvh - 8rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__caption { font-size: var(--text-md, 1.0625rem); text-align: center; color: #e8eef2; }
.lightbox__count { margin: 0; font-size: var(--text-sm); color: #b9c6cf; }
.lightbox__btn { position: fixed; display: grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: rgb(255 255 255 / .24); }
.lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__close { top: var(--space-md); right: var(--space-md); }
.lightbox__prev { left: var(--space-md); top: 50%; translate: 0 -50%; }
.lightbox__next { right: var(--space-md); top: 50%; translate: 0 -50%; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { display: none; }
@media (max-width: 40rem) { .lightbox__prev, .lightbox__next { top: auto; bottom: var(--space-md); translate: none; } }
.prose h2 { font-size: var(--text-xl); margin-block-start: var(--space-xl); max-width: 30ch; }
.prose > h2:first-child { margin-block-start: 0; }
.caption { padding-block-start: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

/* facts: hours / contact from the site settings */
.facts-col { display: grid; gap: var(--space-xs); align-content: start; }
.facts__title { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); margin-block-start: var(--space-lg); }
.facts__title:first-child { margin-block-start: 0; }
.facts { display: grid; margin: 0; font-variant-numeric: tabular-nums; }
.facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--space-md); padding-block: var(--space-xs); border-block-end: var(--rule-hair); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--color-muted); }
.addr { max-width: 30rem; }

/* map: Google iframe, or the Maps JavaScript API (with key) */
.map { aspect-ratio: 16 / 9; max-height: 32rem; width: 100%; display: grid; place-items: center; background: var(--color-paper-2); border: var(--rule-hair); border-radius: var(--radius-sm); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 40rem) { .map { aspect-ratio: 4 / 5; } }

/* teasers */
.teasers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl) var(--space-2xl); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.teaser { display: grid; gap: var(--space-xs); align-content: start; padding-block-start: var(--space-md); border-block-start: 2px solid var(--color-ink); }
.teaser__img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius-sm); margin-block-end: var(--space-xs); }
.teaser__title { font-size: var(--text-lg); }
.teaser p { color: var(--color-muted); }
.teaser__link { font-weight: 600; justify-self: start; }

/* team */
.team { display: grid; gap: var(--space-2xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose + .team { margin-block-start: var(--space-xl); }
.person img { width: 100%; max-width: 300px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }
.person h3 { margin-block: var(--space-md) var(--space-2xs); }
.person p { color: var(--color-muted); }

/* downloads */
.docs { list-style: none; margin: 0; padding: 0; max-width: 40rem; }
.doc { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); align-items: baseline; padding-block: var(--space-md); border-block-end: var(--rule-hair); }
.doc:first-child { border-block-start: var(--rule-hair); }
.doc a { font-weight: 600; }
.doc span { color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- form (EXT:form markup) ---------- */
.form { display: grid; gap: var(--space-lg); max-width: 40rem; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend, .form-label { font-weight: 600; font-size: var(--text-sm); padding: 0; }
.form legend { margin-block-end: var(--space-xs); }
.req { color: var(--color-muted); font-weight: 400; }
.form-element { display: grid; gap: var(--space-2xs); margin: 0; }
.form .row { display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); margin: 0; }
@media (min-width: 40rem) { .form .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form .row > * { width: auto; max-width: none; padding: 0; margin: 0; }
.form-control {
  font: inherit; color: var(--color-ink); background: var(--color-paper); width: 100%;
  border: 1px solid var(--color-neutral); border-radius: var(--radius-sm);
  min-height: 48px; padding: var(--space-sm) var(--space-md);
  transition: border-color var(--dur-micro) var(--ease-out);
}
textarea.form-control { min-height: 9rem; resize: vertical; }
.form-control:hover { border-color: var(--color-muted); }
.form-control:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-accent); }
.form-control.is-invalid, .is-invalid .form-control { border-color: var(--color-error); border-width: 2px; }
.err { color: var(--color-error); font-size: var(--text-sm); font-weight: 600; }
.err br:last-child { display: none; }
.hint { color: var(--color-muted); font-size: var(--text-sm); }
.chips [role="radiogroup"], .chips [role="group"] { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chip { position: relative; margin: 0; }
.chip label { display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.chip .form-check-label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); white-space: nowrap; font-weight: 500; transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.chip input:hover + .form-check-label { border-color: var(--color-neutral); }
.chip input:checked + .form-check-label { background: var(--color-paper-3); border-color: var(--color-accent); color: var(--color-accent-2); box-shadow: inset 0 0 0 1px var(--color-accent); }
.chip input:focus-visible + .form-check-label { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.chips--mode legend { font-size: var(--text-base); }
.inquiry { display: grid; gap: var(--space-lg); padding: var(--space-lg) !important; background: var(--color-paper-2); border-radius: var(--radius-sm); }
.inquiry > legend { float: left; width: 100%; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; margin: 0; }
.inquiry > legend + * { clear: both; }
/* «Nachricht» selected: hide the appointment block (pure CSS, works without JavaScript) */
.form:has(.chips--mode input[value="nachricht"]:checked) .inquiry { display: none; }
.form-check-wrapping-label:has(> input[type="checkbox"]:only-of-type), .form-element-check .form-check-wrapping-label { display: flex; gap: var(--space-sm); align-items: flex-start; }
.form-element-check input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; flex: none; accent-color: var(--color-accent); }
.form-element-check label { font-size: var(--text-sm); }
.form-summary { border: 2px solid var(--color-error); border-radius: var(--radius-sm); padding: var(--space-md) var(--space-lg); background: color-mix(in oklch, var(--color-error) 6%, var(--color-paper)); }
.form-summary:focus { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.form-summary__title { font-weight: 600; color: var(--color-error); }
.form-summary ul { margin: var(--space-xs) 0 0; padding-inline-start: 1.2em; }
.form-summary a { color: var(--color-ink); }
.form-actions nav { display: flex; gap: var(--space-md); }
altcha-widget { display: block; max-width: 100%; }
.form .altcha { max-width: 100%; }
.form-confirmation, .band--form_formframework .band__body > p { font-size: var(--text-md); color: var(--color-success); max-width: var(--measure); }
.form-done { display: grid; justify-items: center; gap: var(--space-sm); max-width: 40rem; padding: var(--space-xl) var(--space-lg); text-align: center; background: var(--color-paper); border: var(--rule-hair); border-radius: var(--radius-sm); }
.form-done:focus { outline: none; }
.form-done__logo { width: 78px; height: auto; }
.form-done__title { font-size: var(--text-lg); margin: 0; }
.form-done__text { color: var(--color-muted); max-width: var(--measure); }
.form-done__text p { margin: 0; }

/* ---------- footer ---------- */
.foot { background: var(--color-paper-2); border-block-start: var(--rule-hair); padding-block: var(--space-2xl) max(var(--space-2xl), env(safe-area-inset-bottom)); }
.foot__mast { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-2xl); align-items: center; justify-content: space-between; padding-block-end: var(--space-lg); border-block-end: var(--rule-hair); }
.foot__mast .wordmark { font-size: var(--text-lg); }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); list-style: none; margin: 0; padding: 0; }
.foot__links a { color: var(--color-muted); white-space: nowrap; font-size: var(--text-sm); }
.foot__meta { padding-block-start: var(--space-lg); display: grid; gap: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.foot__meta .tel { color: var(--color-ink); }
@media (min-width: 60rem) { .foot__meta { grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; column-gap: var(--space-3xl); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .hero__slide img { transform: none; }
}
@media print {
  .nav, .foot__links, .skip, .hero__controls { display: none; }
  .band { padding-block: var(--space-lg); }
}

.prose { overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
