/* ============================================================
   Palette derived from the practice logo: petrol #65A8BA and
   orange #F39200, plus the light oak and white of the rooms.
   ============================================================ */
:root {
  --ground:       #FCFAF7;
  --ground-alt:   #EAF3F5;
  --surface:      #FFFFFF;
  --ink:          #26383F;
  --ink-soft:     #5C7278;
  --ink-faint:    #8FA3A8;
  --line:         #DEE9EC;
  --line-warm:    #EFE3D4;

  --petrol:       #4A97AC;
  --petrol-deep:  #2F7488;
  --petrol-wash:  #E2F0F3;
  --orange:       #F39200;
  --orange-deep:  #C87500;
  --orange-wash:  #FDEDD5;

  --on-petrol:    #FFFFFF;
  --on-orange:    #3A2200;

  /* stays dark in both themes — the concept bar and the footer are
     deliberate anchors, not surfaces that flip with the palette */
  --band-dark:    #1D3239;
  --on-band-dark: #EAF3F5;

  --shadow-s: 0 1px 2px rgba(38,56,63,.05), 0 6px 18px -10px rgba(38,56,63,.20);
  --shadow-m: 0 2px 6px rgba(38,56,63,.05), 0 18px 44px -22px rgba(38,56,63,.32);

  /* rounded display face echoes the logo's geometric roundness */
  --display: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded", "Varela Round", "Trebuchet MS", system-ui, sans-serif;
  --body: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-lg: 30px;
  --r-md: 20px;
  --r-sm: 12px;
  --pad: clamp(1.1rem, 4.5vw, 3rem);
  --max: 1200px;
  --measure: 60ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #11242A;
    --ground-alt:  #162E35;
    --surface:     #1A343C;
    --ink:         #E9F2F4;
    --ink-soft:    #A6BDC3;
    --ink-faint:   #75939B;
    --line:        #27444C;
    --line-warm:   #38403A;
    --petrol:      #7CC3D6;
    --petrol-deep: #A0DAEA;
    --petrol-wash: #163740;
    --orange:      #FFA827;
    --orange-deep: #FFBE5E;
    --orange-wash: #38260E;
    --on-petrol:   #08222A;
    --on-orange:   #2C1900;
    --shadow-s: 0 1px 2px rgba(0,0,0,.35), 0 6px 18px -10px rgba(0,0,0,.6);
    --shadow-m: 0 2px 6px rgba(0,0,0,.35), 0 18px 44px -22px rgba(0,0,0,.75);
  }
}

:root[data-theme="dark"] {
  --ground:      #11242A;
  --ground-alt:  #162E35;
  --surface:     #1A343C;
  --ink:         #E9F2F4;
  --ink-soft:    #A6BDC3;
  --ink-faint:   #75939B;
  --line:        #27444C;
  --line-warm:   #38403A;
  --petrol:      #7CC3D6;
  --petrol-deep: #A0DAEA;
  --petrol-wash: #163740;
  --orange:      #FFA827;
  --orange-deep: #FFBE5E;
  --orange-wash: #38260E;
  --on-petrol:   #08222A;
  --on-orange:   #2C1900;
  --shadow-s: 0 1px 2px rgba(0,0,0,.35), 0 6px 18px -10px rgba(0,0,0,.6);
  --shadow-m: 0 2px 6px rgba(0,0,0,.35), 0 18px 44px -22px rgba(0,0,0,.75);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* anchors must clear the sticky header */
section[id], div[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .95rem + .22vw, 1.09rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.012em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--petrol-deep);
  margin: 0;
}
.lede {
  font-size: clamp(1.06rem, 1rem + .4vw, 1.24rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ------------------------------------------------------------
   Concept notice — this is a pitch, not the live practice site
   ------------------------------------------------------------ */
.concept {
  background: var(--band-dark);
  color: var(--on-band-dark);
  font-size: .78rem;
  letter-spacing: .01em;
}
.concept .wrap { display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding-block: .5rem; align-items: baseline; }
.concept b { color: var(--orange); font-family: var(--display); letter-spacing: .04em; }
.concept span { opacity: .75; }
.concept .c-short { display: none; }
@media (max-width: 700px) {
  .concept { font-size: .72rem; }
  .concept .c-long { display: none; }
  .concept .c-short { display: inline; }
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.head .wrap { display: flex; align-items: center; gap: 1.4rem; min-height: 78px; padding-block: .7rem; }
.logo { margin-right: auto; display: block; }
.logo img { width: clamp(150px, 17vw, 208px); height: auto; }

.nav { display: flex; gap: 1.5rem; font-family: var(--display); font-weight: 600; font-size: 1rem; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: .3rem 0; position: relative; transition: color .18s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  border-radius: 3px; background: var(--orange); transform: scaleX(0);
  transform-origin: left; transition: transform .22s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
/* active section, set by the scroll spy */
.nav a[aria-current="true"] { color: var(--petrol-deep); }
.nav a[aria-current="true"]::after { transform: scaleX(1); background: var(--petrol); }

/* ------------------------------------------------------------
   Mobile navigation + persistent call bar
   ------------------------------------------------------------ */
.burger {
  display: none;
  width: 46px; height: 46px; flex: none;
  align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; cursor: pointer; color: var(--ink);
}
.burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s ease, background .12s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .25s ease;
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.mnav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--ground);
}
.mnav ul { list-style: none; margin: 0; padding: .5rem var(--pad) 1.1rem; display: flex; flex-direction: column; }
.mnav a {
  display: flex; align-items: center; justify-content: space-between;
  text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.08rem;
  padding: .85rem .2rem; border-bottom: 1px solid var(--line); color: var(--ink);
}
.mnav a[aria-current="true"] { color: var(--petrol-deep); }
.mnav a::after { content: "→"; color: var(--petrol); opacity: .55; }
.mnav li:last-child a { border-bottom: none; }

.callbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: .6rem var(--pad) calc(.6rem + env(safe-area-inset-bottom));
  gap: .6rem;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.callbar a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1rem;
  border-radius: 999px; padding: .82rem 1rem;
}
.callbar .c-main { background: var(--orange); color: var(--on-orange); flex: 1.4; }
.callbar .c-sec { background: var(--surface); color: var(--petrol-deep); border: 1.5px solid var(--petrol); }

@media (max-width: 940px) {
  .burger { display: inline-flex; }
  .mnav { display: block; }
  .mnav[hidden] { display: none; }
  .callbar { display: flex; }
  body { padding-bottom: 82px; }
}

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: none; cursor: pointer;
  padding: .72rem 1.25rem; border-radius: 999px;
  background: var(--orange); color: var(--on-orange);
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--orange) 80%, transparent);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--orange) 85%, transparent); }
.btn--petrol { background: var(--petrol); color: var(--on-petrol); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--petrol) 80%, transparent); }
.btn--ghost {
  background: transparent; color: var(--petrol-deep);
  border: 2px solid var(--petrol); box-shadow: none;
  padding: .62rem 1.15rem;
}
.btn--ghost:hover { background: var(--petrol-wash); }

@media (max-width: 940px) { .nav { display: none; } }
@media (max-width: 560px) {
  .head .btn { padding: .7rem .85rem; }
  .head .btn span.long { display: none; }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero { padding-block: clamp(2.2rem, 5vw, 4rem) 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 62vw; height: 62vw; max-width: 720px; max-height: 720px;
  right: -18vw; top: -22vw;
  background: radial-gradient(circle at 50% 50%, var(--petrol-wash), transparent 68%);
  border-radius: 50%;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(2.35rem, 1.4rem + 4.3vw, 4.05rem); margin-block: .9rem 1.1rem; }
.hero h1 .hl {
  color: var(--petrol-deep);
  position: relative;
  white-space: nowrap;
}
.hero h1 .hl::after {
  content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .04em; height: .26em;
  background: var(--orange-wash); border-radius: 999px; z-index: -1;
}

.hero-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-m);
  aspect-ratio: 3 / 2;
  position: relative;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-credit {
  position: absolute; right: .7rem; bottom: .6rem;
  font-size: .66rem; letter-spacing: .05em;
  color: #fff; background: rgba(0,0,0,.42);
  padding: .18rem .5rem; border-radius: 999px;
  backdrop-filter: blur(4px);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; align-items: center; }

.open-now {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: .5rem 1rem .5rem .8rem;
  box-shadow: var(--shadow-s);
}
.open-now .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-faint); flex: none; }
.open-now[data-open="true"] .dot { background: #3FA96B; animation: beat 2.4s ease-out infinite; }
:root[data-theme="dark"] .open-now[data-open="true"] .dot { background: #6FD79B; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .open-now[data-open="true"] .dot { background: #6FD79B; }
}
@keyframes beat {
  0%   { box-shadow: 0 0 0 0 rgba(63,169,107,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(63,169,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,169,107,0); }
}

/* ------------------------------------------------------------
   Footprint trail — the logo's motif, used as wayfinding
   ------------------------------------------------------------ */
.foot-mark { width: 26px; height: 33px; flex: none; }

/* ------------------------------------------------------------
   Three ways — the core parent-guidance block
   ------------------------------------------------------------ */
.ways { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.ways-head { display: flex; flex-wrap: wrap; gap: .8rem 2rem; align-items: baseline; margin-bottom: 1.8rem; }
.ways-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.5rem); }

.way-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 1.1rem; }
.way {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  box-shadow: var(--shadow-s);
}
.way:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--petrol); }
.way .icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--petrol-wash); color: var(--petrol-deep);
  margin-bottom: .3rem;
}
.way:nth-child(2) .icon { background: var(--orange-wash); color: var(--orange-deep); }
.way h3 { font-size: 1.28rem; }
.way p { color: var(--ink-soft); font-size: .98rem; }
.way .go {
  margin-top: auto; padding-top: .6rem;
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  color: var(--petrol-deep);
  display: inline-flex; align-items: center; gap: .4rem;
}
.way:hover .go .arr { transform: translateX(4px); }
.way .go .arr { transition: transform .2s ease; }

@media (max-width: 700px) {
  .way { padding: 1.25rem 1.25rem 1.2rem; gap: .55rem; }
  .way .icon { width: 46px; height: 46px; }
  .way h3 { font-size: 1.18rem; }
  .way p { font-size: .95rem; }
}

/* ------------------------------------------------------------
   Notice band (patient intake)
   ------------------------------------------------------------ */
.notice {
  background: var(--orange-wash);
  border-radius: var(--r-md);
  padding: 1.3rem 1.5rem;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem;
  align-items: start;
  margin-top: 1.4rem;
}
.notice .bang {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--orange); color: var(--on-orange);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  flex: none;
}
.notice h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.notice p { font-size: .97rem; color: var(--ink-soft); max-width: 74ch; }
.notice p em { font-style: normal; color: var(--ink); font-weight: 600; }
.notice .stamp { font-size: .8rem; color: var(--ink-faint); margin-top: .5rem; }

/* ------------------------------------------------------------
   Generic band
   ------------------------------------------------------------ */
.band { padding-block: clamp(2.8rem, 6.5vw, 5rem); }
.band--alt { background: var(--ground-alt); }
.band--wash { background: var(--petrol-wash); }

.band-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.band-head h2 { font-size: clamp(1.8rem, 1.25rem + 2.2vw, 2.75rem); margin-block: .55rem .8rem; }

/* Hours + directions */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.hours { background: var(--surface); border-radius: var(--r-lg); padding: .6rem 1.5rem 1.2rem; box-shadow: var(--shadow-s); border: 1px solid var(--line); }
.hours table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th {
  text-align: left; font-family: var(--display); font-weight: 700;
  font-size: .74rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-faint); padding-block: 1rem .6rem;
  border-bottom: 2px solid var(--line);
}
.hours td { padding-block: .8rem; border-bottom: 1px solid var(--line); }
.hours tr:last-child td { border-bottom: none; }
.hours .day { font-family: var(--display); font-weight: 600; font-size: 1.04rem; }
.hours .slot { font-size: .97rem; }
.hours .closed { color: var(--ink-faint); }
.hours tr[data-today="true"] { background: var(--orange-wash); }
.hours tr[data-today="true"] td:first-child { border-top-left-radius: var(--r-sm); border-bottom-left-radius: var(--r-sm); }
.hours tr[data-today="true"] td:last-child { border-top-right-radius: var(--r-sm); border-bottom-right-radius: var(--r-sm); }
.hours tr[data-today="true"] .day::after {
  content: "heute"; font-family: var(--display); font-weight: 700;
  font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-orange); background: var(--orange);
  border-radius: 999px; padding: .16rem .5rem; margin-left: .55rem; vertical-align: 2px;
}

.where-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-s); aspect-ratio: 4 / 3; }
.where-photo img { width: 100%; height: 100%; object-fit: cover; }
.where-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 1.2rem; margin-top: 1.4rem; }
.where-facts h4 { font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .35rem; }
.where-facts p, .where-facts address { font-size: .99rem; font-style: normal; line-height: 1.55; }
.where-facts a { text-decoration-color: var(--petrol); text-underline-offset: 3px; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 1.2rem; }
.svc {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--line); padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-s);
}
.svc .tag {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--petrol-deep); background: var(--petrol-wash);
  border-radius: 999px; padding: .3rem .75rem; margin-bottom: .9rem;
}
.svc:nth-child(2) .tag { color: var(--orange-deep); background: var(--orange-wash); }
.svc h3 { font-size: 1.22rem; margin-bottom: .8rem; }
.svc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.svc li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; font-size: .98rem; line-height: 1.45; align-items: start; }
.svc li .chk { color: var(--petrol); margin-top: .32rem; }
.svc:nth-child(2) li .chk { color: var(--orange); }
.svc li small { display: block; color: var(--ink-faint); font-size: .85rem; }

/* Lungs */
.lung { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
@media (max-width: 880px) { .lung { grid-template-columns: 1fr; } }
.lung-body > * + * { margin-top: 1.1rem; }
.lung-body p { color: var(--ink-soft); max-width: var(--measure); }
.lung-body p.first { color: var(--ink); font-size: 1.14rem; }

.big-stat { display: flex; align-items: center; gap: 1rem; margin-block: 1.5rem; }
.big-stat b {
  font-family: var(--display); font-weight: 700; line-height: 1;
  font-size: clamp(2.6rem, 1.8rem + 3vw, 3.8rem);
  color: var(--orange-deep);
}
.big-stat span { font-size: .99rem; color: var(--ink-soft); max-width: 28ch; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-family: var(--display); font-weight: 600; font-size: .9rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: .38rem .9rem; color: var(--ink-soft);
}

.lung-media { display: flex; flex-direction: column; gap: 1rem; }
.lung-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-m); aspect-ratio: 3 / 2; }
.lung-photo img { width: 100%; height: 100%; object-fit: cover; }
.curve-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-s); }
.curve-card svg { width: 100%; height: auto; display: block; }
.curve-card .axis { stroke: var(--line); stroke-width: 1.4; }
.curve-card .trace { fill: none; stroke-width: 3.2; stroke-linecap: round; }
.curve-card .trace--ok { stroke: var(--petrol); }
.curve-card .trace--in { stroke: var(--petrol); opacity: .38; }
.curve-card .trace--ob { stroke: var(--orange); stroke-dasharray: 7 6; }
.curve-card figcaption { font-size: .89rem; color: var(--ink-soft); margin-top: .8rem; }
.curve-key { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-family: var(--display); font-weight: 600; font-size: .8rem; margin-top: .6rem; }
.curve-key span { display: inline-flex; align-items: center; gap: .4rem; }
.curve-key i { width: 16px; height: 3px; border-radius: 3px; display: block; background: currentColor; }
.curve-key .k1 { color: var(--petrol-deep); }
.curve-key .k2 { color: var(--orange-deep); }

/* Team — the lead spans a full row, the four colleagues share the next */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.member { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.member .pic { aspect-ratio: 3 / 4; overflow: hidden; background: var(--petrol-wash); }
.member .pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .5s ease; }
.member:hover .pic img { transform: scale(1.04); }
.member .txt { padding: 1rem 1.1rem 1.25rem; }
.member h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.member p { font-size: .87rem; color: var(--ink-soft); line-height: 1.4; }

.member--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, .38fr) minmax(0, 1fr);
  min-height: 300px;
}
.member--lead .pic { aspect-ratio: auto; height: 100%; }
.member--lead .txt { align-self: center; padding: 1.8rem 2rem; }
.member--lead h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin-bottom: .35rem; }
.member--lead p { font-size: 1rem; }
.member--lead .quote {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.02rem, .95rem + .5vw, 1.28rem);
  color: var(--ink); line-height: 1.35; max-width: 30ch;
}
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member--lead { grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
  .member--lead { grid-template-columns: 1fr; min-height: 0; }
  .member--lead .pic { aspect-ratio: 4 / 3; }
}

/* Footprint trail — the logo's two feet, walking the reader onward.
   Steps appear one after another once the trail scrolls into view. */
.trail { display: block; width: 100%; height: auto; margin-top: clamp(1.4rem, 4vw, 2.6rem); }
.trail .foot-a { color: var(--petrol); }
.trail .foot-b { color: var(--orange); }
.trail use { opacity: 0; transition: opacity .45s ease; }
.trail.walk use { opacity: .38; }
.trail .foot-b use { }
.trail.walk .foot-b use { opacity: .46; }

/* ------------------------------------------------------------
   Scroll reveal — small, one-directional, never re-triggers.
   Gated on .js so the page stays readable without scripting.
   The builder marks blocks with .rv; children of .rv-kids
   stagger by their --i index.
   ------------------------------------------------------------ */
.js .rv, .js .rv-kids > * {
  opacity: 0;
  transform: translateY(18px);
}
.js .rv.in, .js .rv-kids.in > * {
  opacity: 1;
  transform: none;
  transition: opacity .65s ease, transform .7s cubic-bezier(.22,.68,.36,1);
}
.js .rv-kids.in > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* the spirometry curve draws itself when it first becomes visible */
.curve-card .trace { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.curve-card.drawn .trace--ok { transition: stroke-dashoffset 1.5s cubic-bezier(.3,.7,.3,1); stroke-dashoffset: 0; }
.curve-card.drawn .trace--ob { transition: stroke-dashoffset 1.5s cubic-bezier(.3,.7,.3,1) .35s; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv-kids > * { opacity: 1; transform: none; }
  .trail use { opacity: .38; }
  .curve-card .trace { stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: .7rem; max-width: 900px; }
.faq {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq[open] { border-color: var(--petrol); box-shadow: var(--shadow-s); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.05rem 3.2rem 1.05rem 1.3rem;
  font-family: var(--display); font-weight: 700; font-size: 1.06rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  border-right: 2.5px solid var(--petrol); border-bottom: 2.5px solid var(--petrol);
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  transition: transform .22s ease;
}
.faq[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq summary:hover { color: var(--petrol-deep); }
.faq .ans { padding: 0 1.3rem 1.25rem; color: var(--ink-soft); max-width: 72ch; }
.faq .ans > * + * { margin-top: .7rem; }
.faq .ans strong { color: var(--ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.ccard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .5rem;
  box-shadow: var(--shadow-s);
}
.ccard h3 { font-size: 1.02rem; color: var(--petrol-deep); }
.ccard .big { font-family: var(--display); font-weight: 700; font-size: 1.28rem; letter-spacing: -.01em; }
.ccard .big a { text-decoration: none; }
.ccard .big a:hover { color: var(--petrol-deep); }
.ccard p, .ccard address { font-style: normal; color: var(--ink-soft); font-size: .97rem; line-height: 1.55; }

/* Footer */
.foot { background: var(--band-dark); color: var(--on-band-dark); padding-block: clamp(2.5rem, 5vw, 3.6rem) 1.8rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.8rem; padding-bottom: 1.8rem; border-bottom: 1px solid rgba(255,255,255,.16); }
.foot h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-bottom: .7rem; }
.foot p, .foot address { font-style: normal; font-size: .97rem; line-height: 1.6; opacity: .88; }
.foot a { text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.foot a:hover { color: var(--orange); }
.foot .small { margin-top: 1.4rem; font-size: .78rem; line-height: 1.65; opacity: .58; max-width: 88ch; }
.foot .small b { opacity: 1; color: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================
   Multi-page additions — everything below extends the concept
   design for the sub pages. Same tokens, same restraint.
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--orange); color: var(--on-orange);
  padding: .5rem 1rem; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: .6rem; }

/* Cross-document view transitions: the header stays put, the page
   underneath cross-fades with a small lift. Browsers without support
   simply navigate. */
@view-transition { navigation: auto; }
.head { view-transition-name: head; }
.callbar { view-transition-name: callbar; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.22,.68,.36,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(10px); } }

/* Header condenses once the reader scrolls */
.head .wrap { transition: min-height .25s ease, padding .25s ease; }
.logo img { transition: width .25s ease; }
.head.is-condensed .wrap { min-height: 62px; padding-block: .4rem; }
.head.is-condensed .logo img { width: clamp(130px, 13vw, 160px); }
.head.is-condensed { box-shadow: 0 8px 24px -18px rgba(38,56,63,.45); }

/* Reading progress on content pages */
.progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 70;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--petrol), var(--orange));
  pointer-events: none;
}

/* Active nav item on sub pages */
.nav a[aria-current="page"] { color: var(--petrol-deep); }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--petrol); }
.mnav a[aria-current="page"] { color: var(--petrol-deep); }
.mnav .mnav-emergency a { color: #B3261E; }

/* ------------------------------------------------------------
   Home hero — the breath motif: the wash behind the headline
   slowly inhales and exhales, small air bubbles rise.
   ------------------------------------------------------------ */
.hero::before { animation: breathe 7s ease-in-out infinite alternate; }
@keyframes breathe {
  from { transform: scale(.94); opacity: .85; }
  to   { transform: scale(1.06); opacity: 1; }
}
.air { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.air i {
  position: absolute; bottom: -40px; border-radius: 50%;
  background: color-mix(in srgb, var(--petrol) 22%, transparent);
  animation: rise linear infinite;
}
.air i:nth-child(1) { left: 54%; width: 14px; height: 14px; animation-duration: 13s; }
.air i:nth-child(2) { left: 62%; width: 8px;  height: 8px;  animation-duration: 10s; animation-delay: -4s; }
.air i:nth-child(3) { left: 71%; width: 18px; height: 18px; animation-duration: 16s; animation-delay: -9s; }
.air i:nth-child(4) { left: 83%; width: 10px; height: 10px; animation-duration: 12s; animation-delay: -2s; }
.air i:nth-child(5) { left: 92%; width: 12px; height: 12px; animation-duration: 15s; animation-delay: -7s; background: color-mix(in srgb, var(--orange) 22%, transparent); }
.air i:nth-child(6) { left: 47%; width: 6px;  height: 6px;  animation-duration: 11s; animation-delay: -6s; background: color-mix(in srgb, var(--orange) 22%, transparent); }
@keyframes rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  12%  { opacity: 1; }
  50%  { transform: translate(-14px, -52vh); }
  100% { transform: translate(8px, -104vh); opacity: 0; }
}

/* the highlighter under "zuhört" is drawn on load */
.hero h1 .hl::after { transform-origin: left; animation: mark 1s .45s cubic-bezier(.3,.7,.3,1) both; }
@keyframes mark { from { transform: scaleX(0); } }

.hero-photo img { transition: transform 1.2s cubic-bezier(.22,.68,.36,1); }
.hero-photo:hover img { transform: scale(1.03); }
@supports (animation-timeline: view()) {
  .hero-photo img { animation: drift linear both; animation-timeline: view(); animation-range: exit -10% exit 100%; }
  @keyframes drift { to { transform: translateY(8%) scale(1.06); } }
}

/* primary buttons: a light sheen passes on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn:hover::before { transform: translateX(120%); transition: transform .7s ease; }

/* footprints take a step when their card is hovered */
.way:hover .foot-mark { animation: step .5s ease; }
@keyframes step {
  30% { transform: translateY(-4px) rotate(-8deg); }
  60% { transform: translateY(1px) rotate(4deg); }
}

/* ------------------------------------------------------------
   Facts band with count-up numbers
   ------------------------------------------------------------ */
.stats { padding-block: clamp(1.4rem, 3vw, 2.2rem); }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-s); padding: 1.3rem clamp(1rem, 3vw, 2rem);
}
.stat b {
  display: block; font-family: var(--display); font-weight: 700; line-height: 1;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); color: var(--petrol-deep);
  font-variant-numeric: tabular-nums;
}
.stat:nth-child(even) b { color: var(--orange-deep); }
.stat span { display: block; margin-top: .4rem; font-size: .9rem; color: var(--ink-soft); line-height: 1.35; }

/* ------------------------------------------------------------
   Sub page hero
   ------------------------------------------------------------ */
.crumbs { font-size: .86rem; color: var(--ink-faint); padding-top: 1.2rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.crumbs li + li::before { content: "›"; margin-right: .3rem; color: var(--ink-faint); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--petrol-deep); text-decoration: underline; }

.phero { padding-block: clamp(1.4rem, 3.5vw, 2.6rem) clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden; }
.phero::before {
  content: ""; position: absolute; z-index: -1; right: -12vw; top: -18vw;
  width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; border-radius: 50%;
  background: radial-gradient(circle, var(--petrol-wash), transparent 68%);
  animation: breathe 8s ease-in-out infinite alternate;
}
.phero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: center; }
.phero--solo .wrap { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 880px) { .phero .wrap { grid-template-columns: 1fr; } }
.phero h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.3rem); margin-block: .7rem .9rem; view-transition-name: title; }
.phero .lede { max-width: 62ch; }
.phero-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-m); aspect-ratio: 4 / 3; margin: 0; position: relative; }
.phero-photo img { width: 100%; height: 100%; object-fit: cover; }
.phero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* "Kurz gesagt" — the answer first, quotable on its own */
.answer {
  margin-top: 1.4rem; max-width: 68ch;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 5px solid var(--petrol); border-radius: var(--r-md);
  padding: 1rem 1.25rem; box-shadow: var(--shadow-s);
}
.answer b { display: block; font-family: var(--display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--petrol-deep); margin-bottom: .3rem; }
.answer p { font-size: 1.04rem; color: var(--ink); line-height: 1.55; }

.reviewed {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem;
  margin-top: 1rem; font-size: .85rem; color: var(--ink-faint);
}
.reviewed img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.reviewed strong { color: var(--ink-soft); font-weight: 600; }

/* ------------------------------------------------------------
   Content blocks
   ------------------------------------------------------------ */
.block { padding-block: clamp(1.6rem, 4vw, 2.8rem); }
.block + .block { padding-top: 0; }
.block.band--alt, .block.band--wash { padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.block.band--alt + .block, .block.band--wash + .block { padding-top: clamp(2.2rem, 5vw, 3.6rem); }
.block-head { margin-bottom: 1.3rem; max-width: 70ch; }
.block-head h2, .prose h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); margin-bottom: .6rem; }
.block-head p { color: var(--ink-soft); }

.prose { max-width: 70ch; }
.prose > * + * { margin-top: .9rem; }
.prose h3 { font-size: 1.18rem; margin-top: 1.6rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .35rem; }
.prose a, .block a:not(.btn):not(.card):not(.way) { color: var(--petrol-deep); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--petrol) 55%, transparent); }

/* Facts — a definition list that reads as a spec sheet */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: .95rem 1.1rem; }
.fact dt { font-family: var(--display); font-weight: 700; font-size: .74rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .3rem; }
.fact dd { margin: 0; font-size: .99rem; line-height: 1.5; }

/* Steps — numbered, with a line that draws down as they appear */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; counter-reset: step; max-width: 780px; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px;
  background: var(--line); transform-origin: top; transform: scaleY(1);
}
.js .steps.rv::before { transform: scaleY(0); }
.js .steps.rv.in::before { transform: scaleY(1); transition: transform 1.2s cubic-bezier(.3,.7,.3,1) .1s; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; padding-block: .65rem; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--petrol); color: var(--on-petrol);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 0 0 5px var(--ground); z-index: 1;
}
.band--alt .step::before { box-shadow: 0 0 0 5px var(--ground-alt); }
.step h3 { font-size: 1.08rem; margin: .55rem 0 .25rem; }
.step p { color: var(--ink-soft); font-size: .98rem; }

/* Checklist — ticks draw in */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .6rem; }
.checklist li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .65rem; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .75rem .9rem;
}
.checklist svg { width: 24px; height: 24px; color: var(--petrol); margin-top: .05rem; }
.checklist svg path { stroke-dasharray: 24; stroke-dashoffset: 0; }
.js .checklist.rv-kids > * svg path { stroke-dashoffset: 24; }
.js .checklist.rv-kids.in > * svg path { stroke-dashoffset: 0; transition: stroke-dashoffset .5s ease calc(var(--i, 0) * 70ms + .25s); }

/* Symptoms with urgency — a traffic light for parents */
.urg-list { display: grid; gap: .7rem; max-width: 900px; }
.urg {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem 1rem; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1rem 1.2rem; border-left: 6px solid var(--u, var(--petrol));
}
.urg .lvl {
  font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--u, var(--petrol)); white-space: nowrap; padding-top: .2rem;
}
.urg h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.urg p { color: var(--ink-soft); font-size: .96rem; }
.urg > div { grid-column: 2; grid-row: 1 / span 2; }
.u-notruf { --u: #C0392B; }
.u-heute { --u: var(--orange-deep); }
.u-termin { --u: var(--petrol-deep); }
.u-beobachten { --u: #3E8E5E; }
@media (max-width: 560px) {
  .urg { grid-template-columns: 1fr; }
  .urg > div { grid-column: 1; grid-row: auto; }
}

/* Link cards — spokes of a hub */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.card {
  display: flex; flex-direction: column; gap: .45rem; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.25rem 1.3rem 1.2rem; box-shadow: var(--shadow-s);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--petrol); }
.card .kicker { font-family: var(--display); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }
.card h3 { font-size: 1.14rem; }
.card p { color: var(--ink-soft); font-size: .94rem; line-height: 1.5; }
.card .go { margin-top: auto; padding-top: .4rem; font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--petrol-deep); }
.card .go .arr { display: inline-block; transition: transform .2s ease; }
.card:hover .go .arr { transform: translateX(4px); }

/* Quote from the doctor */
.pull {
  max-width: 780px; margin: 0; padding: 1.4rem 1.6rem;
  background: var(--petrol-wash); border-radius: var(--r-lg); position: relative;
}
.pull p { font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); line-height: 1.4; color: var(--ink); }
.pull footer { margin-top: .7rem; font-size: .88rem; color: var(--ink-soft); }

/* Parents' questions — the way they are asked at the desk */
.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; }
.voice {
  margin: 0; padding: 1rem 1.1rem 1rem 2.6rem; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  font-family: var(--display); font-weight: 600; color: var(--ink); line-height: 1.4;
}
.voice::before {
  content: "“"; position: absolute; left: .8rem; top: .3rem;
  font-size: 2.4rem; line-height: 1; color: var(--orange);
}

/* Sources — visible citations */
.sources { font-size: .9rem; color: var(--ink-soft); max-width: 80ch; }
.sources h2 { font-size: 1rem; margin-bottom: .5rem; }
.sources ol { margin: 0; padding-left: 1.2rem; }
.sources li + li { margin-top: .25rem; }

/* CTA band */
.cta { padding-block: clamp(2rem, 5vw, 3.2rem); }
.cta-box {
  background: var(--band-dark); color: var(--on-band-dark); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.6rem); display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem 2rem; align-items: center; position: relative; overflow: hidden;
}
.cta-box::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--orange) 35%, transparent), transparent 70%);
  animation: breathe 6s ease-in-out infinite alternate;
}
.cta-box h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); color: #fff; }
.cta-box p { opacity: .82; margin-top: .4rem; max-width: 60ch; }
.cta-box .cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; position: relative; z-index: 1; }
.cta-box .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-box .btn--ghost:hover { background: rgba(255,255,255,.08); }
@media (max-width: 760px) { .cta-box { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   Opening hours as a week strip with a live "now" line
   ------------------------------------------------------------ */
.week { margin-top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.2rem 1.1rem; box-shadow: var(--shadow-s); }
.week-scale, .week-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .6rem; align-items: center; }
.week-scale span:last-child { display: flex; justify-content: space-between; font-size: .7rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.week-row { padding-block: .28rem; }
.week-row b { font-family: var(--display); font-size: .82rem; color: var(--ink-soft); }
.week-track { position: relative; height: 16px; background: var(--ground-alt); border-radius: 999px; }
.week-slot { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--petrol); transform-origin: left; }
.js .week.rv .week-slot { transform: scaleX(0); }
.js .week.rv.in .week-slot { transform: scaleX(1); transition: transform .8s cubic-bezier(.3,.7,.3,1) calc(var(--i, 0) * 90ms); }
.week-row[data-today="true"] b { color: var(--orange-deep); }
.week-row[data-today="true"] .week-track { box-shadow: 0 0 0 2px var(--orange-wash); }
.week-now { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 3px; background: var(--orange); display: none; }
.week-now::after { content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--orange); animation: beat 2.4s ease-out infinite; }
.week-row[data-today="true"] .week-now { display: block; }
.week-note { font-size: .82rem; color: var(--ink-faint); margin-top: .6rem; }

/* ------------------------------------------------------------
   Catchment map — schematic Oberland, the Inn draws itself
   ------------------------------------------------------------ */
.region { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.2rem, 4vw, 2.6rem); align-items: center; }
@media (max-width: 860px) { .region { grid-template-columns: 1fr; } }
.map-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .8rem; box-shadow: var(--shadow-s); margin: 0; }
.map-card svg { width: 100%; height: auto; display: block; }
.map-card figcaption { font-size: .8rem; color: var(--ink-faint); padding: .3rem .4rem 0; }
.map .valley { fill: var(--ground-alt); }
.map .river { fill: none; stroke: var(--petrol); stroke-width: 4; stroke-linecap: round; opacity: .55; }
.map .road { fill: none; stroke: var(--line-warm); stroke-width: 2; stroke-dasharray: 4 5; }
.map .town circle { fill: var(--surface); stroke: var(--petrol-deep); stroke-width: 2.5; }
.map .town text { font-family: var(--display); font-weight: 600; font-size: 13px; fill: var(--ink-soft); }
.map .town--home circle { fill: var(--orange); stroke: var(--orange-deep); }
.map .town--home text { fill: var(--ink); font-weight: 700; font-size: 15px; }
.map .halo { fill: none; stroke: var(--orange); stroke-width: 2; opacity: 0; }
.js .map-card.rv .river { stroke-dasharray: 900; stroke-dashoffset: 900; }
.js .map-card.rv.in .river { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(.3,.7,.3,1); }
.js .map-card.rv .town { opacity: 0; transform: translateY(6px); transform-box: fill-box; }
.js .map-card.rv.in .town { opacity: 1; transform: none; transition: opacity .4s ease calc(.6s + var(--i, 0) * 110ms), transform .4s ease calc(.6s + var(--i, 0) * 110ms); }
.map-card.in .halo { animation: halo 2.6s ease-out 1.6s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }
.towns { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.towns li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .4rem; font-size: .97rem; }
.towns li span:last-child { color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Absence notes are full sentences: let them wrap, and stack date over text on narrow screens. */
.towns--absences li span:last-child { white-space: normal; text-align: right; }
@media (max-width: 600px) {
  .towns--absences li { flex-direction: column; gap: .15rem; }
  .towns--absences li span:last-child { text-align: left; }
}

/* ------------------------------------------------------------
   Interactive spirometry explainer
   ------------------------------------------------------------ */
.spiro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(1.2rem, 4vw, 2.4rem); align-items: center; }
@media (max-width: 860px) { .spiro { grid-template-columns: 1fr; } }
.spiro-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.1rem 1.1rem; box-shadow: var(--shadow-m); }
.spiro-card svg { width: 100%; height: auto; display: block; }
.spiro-card .grid line { stroke: var(--line); stroke-width: 1; }
.spiro-card .axis { stroke: var(--ink-faint); stroke-width: 1.4; }
.spiro-card .lbl { font-family: var(--body); font-size: 11px; fill: var(--ink-faint); }
.spiro-card .ref { fill: none; stroke: var(--petrol); stroke-width: 2; stroke-dasharray: 5 6; opacity: .45; }
.spiro-card .live { fill: color-mix(in srgb, var(--petrol) 12%, transparent); stroke: var(--petrol-deep); stroke-width: 3.4; stroke-linejoin: round; }
.spiro[data-state="ob"] .live { stroke: var(--orange-deep); fill: color-mix(in srgb, var(--orange) 14%, transparent); }
.spiro-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; }
.spiro-tabs button {
  font: inherit; font-family: var(--display); font-weight: 700; font-size: .88rem; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft);
  border-radius: 999px; padding: .45rem .9rem; transition: all .2s ease;
}
.spiro-tabs button[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: var(--on-petrol); }
.spiro[data-state="ob"] .spiro-tabs button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.spiro-read { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .8rem; }
.spiro-read div { background: var(--ground-alt); border-radius: var(--r-sm); padding: .55rem .7rem; }
.spiro-read dt { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-family: var(--display); font-weight: 700; }
.spiro-read dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.spiro-text p { color: var(--ink-soft); }
.spiro-text p + p { margin-top: .7rem; }
.spiro-text [data-for] { display: none; }
.spiro[data-state="ok"] [data-for="ok"], .spiro[data-state="ob"] [data-for="ob"], .spiro[data-state="bd"] [data-for="bd"] { display: block; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
.no-js-hint { font-size: .85rem; color: var(--ink-faint); }
.js .no-js-hint { display: none; }

/* ------------------------------------------------------------
   Cough compass — orientation, not diagnosis
   ------------------------------------------------------------ */
.compass { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(1.2rem, 4vw, 2.4rem); align-items: start; }
@media (max-width: 860px) { .compass { grid-template-columns: 1fr; } }
.compass fieldset { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: .9rem 1.1rem 1rem; margin: 0 0 .8rem; }
.compass legend { font-family: var(--display); font-weight: 700; padding: 0 .3rem; }
.pills { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .4rem; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span {
  display: inline-block; font-size: .92rem; border: 1.5px solid var(--line); border-radius: 999px;
  padding: .4rem .85rem; background: var(--ground); transition: all .18s ease;
}
.pills input:checked + span { background: var(--petrol); border-color: var(--petrol); color: var(--on-petrol); }
.pills input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.compass-out { position: sticky; top: 96px; }
.verdict {
  border-radius: var(--r-lg); padding: 1.3rem 1.4rem; background: var(--surface);
  border: 1px solid var(--line); border-top: 8px solid var(--u, var(--line)); box-shadow: var(--shadow-m);
  transition: border-color .3s ease;
}
.verdict .lvl { font-family: var(--display); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--u, var(--ink-faint)); }
.verdict h3 { font-size: 1.3rem; margin: .35rem 0 .5rem; }
.verdict p { color: var(--ink-soft); }
.verdict .btn { margin-top: 1rem; }
.verdict.pop { animation: pop .4s cubic-bezier(.3,1.4,.5,1); }
@keyframes pop { from { transform: scale(.97); } }
.disclaimer { font-size: .82rem; color: var(--ink-faint); margin-top: .8rem; }

/* ------------------------------------------------------------
   Timelines — Eltern-Kind-Pass and the doctor's path
   ------------------------------------------------------------ */
.tl { list-style: none; margin: 0; padding: 0 0 0 1.6rem; position: relative; max-width: 820px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(var(--petrol), var(--orange)); transform-origin: top; }
.js .tl.rv::before { transform: scaleY(0); }
.js .tl.rv.in::before { transform: scaleY(1); transition: transform 1.6s cubic-bezier(.3,.7,.3,1); }
.tl li { position: relative; padding: .15rem 0 1.1rem 1rem; }
.tl li::before { content: ""; position: absolute; left: -1.6rem; top: .35rem; width: 17px; height: 17px; border-radius: 50%; background: var(--surface); border: 3px solid var(--petrol); }
.tl li:nth-child(even)::before { border-color: var(--orange); }
.tl .when { font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--petrol-deep); }
.tl h3 { font-size: 1.06rem; margin: .15rem 0 .2rem; }
.tl p { color: var(--ink-soft); font-size: .96rem; }

/* ------------------------------------------------------------
   Gallery with lightbox
   ------------------------------------------------------------ */
.gallery { columns: 3 240px; column-gap: .8rem; }
.gallery a { display: block; margin-bottom: .8rem; border-radius: var(--r-md); overflow: hidden; break-inside: avoid; box-shadow: var(--shadow-s); }
.gallery img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.22,.68,.36,1), filter .3s; }
.gallery a:hover img { transform: scale(1.045); }
.lightbox { border: none; padding: 0; background: transparent; max-width: min(92vw, 1200px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(8, 22, 26, .86); backdrop-filter: blur(4px); }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--r-md); display: block; margin: 0 auto; }
.lightbox[open] img { animation: zoomin .3s cubic-bezier(.22,.68,.36,1); }
@keyframes zoomin { from { opacity: 0; transform: scale(.96); } }
.lightbox-bar { display: flex; justify-content: center; gap: .6rem; margin-top: .7rem; }
.lightbox-bar button { font: inherit; font-weight: 700; cursor: pointer; border: none; border-radius: 999px; padding: .5rem 1rem; background: rgba(255,255,255,.14); color: #fff; }
.lightbox-bar button:hover { background: rgba(255,255,255,.26); }

/* Partner institutions */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.2rem; }
.partner h3 { font-size: 1.04rem; margin-bottom: .3rem; }
.partner p { color: var(--ink-soft); font-size: .95rem; }

/* Legal pages */
.legal { max-width: 76ch; }
.legal h2 { font-size: 1.25rem; margin: 1.8rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: .6rem; }
.legal dl { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: .45rem 1rem; margin: 0; }
.legal dt { font-weight: 700; color: var(--ink); }
.legal dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: .5rem; } }

/* FAQ groups on the questions page */
.faq-group + .faq-group { margin-top: 2.2rem; }
.faq-group h2 { font-size: 1.35rem; margin-bottom: .8rem; }
.faq-toc { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.6rem; }
.faq-toc a { text-decoration: none; font-family: var(--display); font-weight: 700; font-size: .88rem; border: 1.5px solid var(--line); border-radius: 999px; padding: .35rem .85rem; color: var(--petrol-deep); background: var(--surface); }
.faq-toc a:hover { border-color: var(--petrol); }
.faq .ans a { color: var(--petrol-deep); }
.faq summary::after { transition: transform .22s ease; }
.faq .ans { animation: fadein .3s ease; }

/* Footer link columns */
.foot nav ul { list-style: none; margin: 0; padding: 0; }
.foot nav li + li { margin-top: .25rem; }
.foot nav a { text-decoration: none; opacity: .88; font-size: .95rem; }
.foot nav a:hover { opacity: 1; text-decoration: underline; }
.foot .legal-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1.2rem; font-size: .88rem; opacity: .8; }
.foot .foot-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.foot .foot-btn:hover { color: var(--orange); }

/* cookie consent (vanilla-cookieconsent 3) in the site's colours, both themes */
#cc-main {
  --cc-font-family: var(--body); --cc-bg: var(--surface); --cc-primary-color: var(--ink); --cc-secondary-color: var(--ink-soft);
  --cc-btn-primary-bg: var(--orange); --cc-btn-primary-color: var(--on-orange); --cc-btn-primary-border-color: var(--orange);
  --cc-btn-primary-hover-bg: var(--orange-deep); --cc-btn-primary-hover-border-color: var(--orange-deep); --cc-btn-primary-hover-color: var(--on-orange);
  --cc-btn-secondary-bg: var(--surface); --cc-btn-secondary-color: var(--petrol-deep); --cc-btn-secondary-border-color: var(--petrol);
  --cc-btn-secondary-hover-bg: var(--petrol-wash); --cc-btn-secondary-hover-color: var(--petrol-deep); --cc-btn-secondary-hover-border-color: var(--petrol);
  --cc-link-color: var(--petrol-deep); --cc-btn-border-radius: 999px; --cc-modal-border-radius: 18px; --cc-pm-toggle-border-radius: 4em;
  --cc-toggle-on-bg: var(--petrol); --cc-separator-border-color: var(--line); --cc-footer-bg: var(--ground-alt);
  --cc-cookie-category-block-bg: var(--ground); --cc-cookie-category-block-border: var(--line);
  --cc-cookie-category-block-hover-bg: var(--petrol-wash); --cc-cookie-category-block-hover-border: var(--line);
}
#cc-main .cm__title, #cc-main .pm__title { font-family: var(--display); }

/* Review flags — claims the practice still has to confirm.
   Never rendered once PUBLISHED is True. */
mark.tbc {
  background: var(--orange-wash); color: var(--orange-deep);
  border: 1px dashed var(--orange); border-radius: 6px;
  font-size: .72em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 0 .35em; margin-left: .3em; cursor: help; vertical-align: .12em; white-space: nowrap;
}
.flagbar { background: var(--orange-wash); border-bottom: 1px solid var(--line-warm); font-size: .82rem; }
.flagbar .wrap { padding-block: .45rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.flagbar b { color: var(--orange-deep); }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .phero::before, .cta-box::after, .air i, .week-now::after { animation: none !important; }
  .air { display: none; }
  .js .steps.rv::before, .js .tl.rv::before { transform: none; }
  .js .week.rv .week-slot { transform: none; }
  .js .map-card.rv .river { stroke-dashoffset: 0; }
  .js .map-card.rv .town { opacity: 1; transform: none; }
  .js .checklist.rv-kids > * svg path { stroke-dashoffset: 0; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

@media print {
  .head, .callbar, .concept, .flagbar, .progress, .cta, .air { display: none !important; }
  .js .rv, .js .rv-kids > * { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
}
a.chip { text-decoration: none; transition: border-color .2s, color .2s, transform .2s; }
a.chip:hover { border-color: var(--petrol); color: var(--petrol-deep); transform: translateY(-2px); }
.svc li a { text-decoration: none; }
.svc li a:hover { color: var(--petrol-deep); text-decoration: underline; text-underline-offset: 3px; }
.ccard h3 { display: flex; align-items: center; gap: .4rem; }

/* Concept page (internal) */
.konzept .khead { padding-block: clamp(2rem, 5vw, 3.4rem) 1rem; }
.konzept .khead h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); margin-block: .6rem .9rem; }
.kbtns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.prose-wide > * { max-width: 1100px; }
.prose-wide h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-bottom: .8rem; }
.prose-wide h3 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
.prose-wide > p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 80ch; }
.kfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; }
.kfacts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.2rem; }
.kfacts b { display: block; font-family: var(--display); font-size: 2.2rem; color: var(--petrol-deep); line-height: 1; }
.kfacts span { color: var(--ink-soft); font-size: .92rem; }
.kdl { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .7rem 1.4rem; margin: 0; }
.kdl dt { font-family: var(--display); font-weight: 700; }
.kdl dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 700px) { .kdl { grid-template-columns: 1fr; } .kdl dd { margin-bottom: .6rem; } }
.ktable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.ktable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ktable th { text-align: left; font-family: var(--display); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); padding: .7rem .8rem; border-bottom: 2px solid var(--line); }
.ktable td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ktable tr:last-child td { border-bottom: none; }
.ktable a { color: var(--petrol-deep); }
.kflags { padding-left: 1.3rem; display: grid; gap: .4rem; }
.kflags span { color: var(--ink-faint); font-size: .88rem; }
.kgo { padding-left: 1.3rem; display: grid; gap: .5rem; color: var(--ink-soft); }
.verdict .btn { background: var(--u, var(--petrol)); color: #fff; box-shadow: none; }
