/* =====================================================================================
   v53 · A2 „Kinder- und Jugendmedizin am Stadtgarten“ (fiktiv) – Leitidee „Mitwachsen“
   Sand, Aprikose (Infekt), Blattgrün (Vorsorge), Himmelblau; Bricolage Grotesque und Figtree;
   runde Formen, Maßband, Stundenplan, Modell-Rendering des Praxishauses.
   ===================================================================================== */
@font-face { font-family: "KI Bricolage"; src: url(../fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "KI Figtree"; src: url(../fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "KI Figtree"; src: url(../fonts/figtree-italic.woff2) format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

.ki {
  --s-bg: #F7EEE2; --s-paper: #FFFAF3; --s-ink: #2B2420; --s-muted: #6A5D53; --s-line: #EADBC7; --s-line-2: #D7C4AA;
  --s-apricot: #F2A66B; --s-apricot-soft: #FBE3CE; --s-apricot-deep: #9C4C19;
  --s-leaf: #3E7B4F; --s-leaf-text: #33683F; --s-leaf-2: #6FA36A; --s-leaf-soft: #DFECD9;
  --s-sky: #BFDDEB; --s-sky-soft: #E4F0F6; --s-sky-deep: #2C6683;
  --s-plum: #8A4F7D; --s-plum-soft: #F1DFEB; --s-sun: #F4C95D; --s-red: #B3341F;
  --s-fd: "KI Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --s-f: "KI Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --s-ease: cubic-bezier(.3, 1.3, .5, 1);
  --w-ink: var(--s-ink); --w-muted: var(--s-muted); --w-line: var(--s-line-2); --w-paper: var(--s-paper); --w-bg: #FFFFFF; --w-accent: var(--s-leaf); --w-accent-text: var(--s-leaf-text); --w-accent-ink: #fff; --w-accent-soft: var(--s-leaf-soft); --w-radius: 24px; --w-fd: var(--s-fd); --w-error: var(--s-red);
  position: relative; font-family: var(--s-f); font-size: 17.5px; line-height: 1.6; color: var(--s-ink); background: var(--s-bg); -webkit-font-smoothing: antialiased; font-optical-sizing: auto;
}
.ki *, .ki *::before, .ki *::after { box-sizing: border-box; }
.ki :focus-visible { outline: 3px solid var(--s-sky-deep); outline-offset: 3px; border-radius: 6px; }
.ki p, .ki ul, .ki ol, .ki dl, .ki dd, .ki figure, .ki h1, .ki h2, .ki h3 { margin: 0; }
.ki ul, .ki ol { padding: 0; list-style: none; }
.ki-wrap { width: 100%; max-width: calc(1240px + 2 * var(--g)); margin-inline: auto; padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: max(var(--g), env(safe-area-inset-right, 0px)); --g: 20px; }
@media (min-width: 700px) { .ki-wrap { --g: 32px; } }
@media (min-width: 1100px) { .ki-wrap { --g: 48px; } }
.ki-num { font-variant-numeric: tabular-nums; }

/* Typografie */
.ki-h1, .ki-h2, .ki-h3, .ki-h4 { font-family: var(--s-fd); text-wrap: balance; color: var(--s-ink); }
.ki-h1 { font-weight: 760; font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.6rem); line-height: .98; letter-spacing: -0.025em; }
.ki-h2 { font-weight: 740; font-size: clamp(1.9rem, 1.3rem + 1.9vw, 3rem); line-height: 1.02; letter-spacing: -0.018em; }
.ki-h3 { font-weight: 720; font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.01em; }
.ki-h4 { font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.ki-kicker { font-family: var(--s-fd); font-weight: 650; font-size: .95rem; color: var(--s-apricot-deep); }
.ki-mini { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--s-muted); margin-bottom: 6px; }
.ki-lead { font-size: 1.12rem; line-height: 1.55; color: var(--s-muted); max-width: 34em; text-wrap: pretty; }
.ki-hint, .ki-fine { font-size: .9rem; color: var(--s-muted); }
.ki-ticks { display: grid; gap: 6px; }
.ki-ticks li { position: relative; padding-left: 22px; line-height: 1.4; }
.ki-ticks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 11px; height: 11px; border-radius: 50% 50% 50% 0; background: var(--s-leaf-2); transform: rotate(-45deg); }

/* Schaltflächen */
.ki-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--s-leaf); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s var(--s-ease), background-color .2s; }
.ki-btn:hover { background: #336A43; transform: translateY(-1px); }
.ki-btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.ki-btn--ghost { background: transparent; color: var(--s-ink); border: 2px solid var(--s-line-2); }
.ki-btn--ghost:hover { background: var(--s-paper); border-color: var(--s-ink); }
.ki-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--s-leaf-text); text-decoration: none; }
.ki-more .ico { width: 18px; height: 18px; transition: transform .25s var(--s-ease); }
.ki-more:hover { text-decoration: underline; text-underline-offset: .2em; }
.ki-more:hover .ico { transform: translateX(4px); }

/* ---------- Kopf ---------- */
.ki-head { background: var(--s-paper); border-bottom: 1px solid var(--s-line); }
.ki-head-in { display: flex; align-items: center; gap: 20px; min-height: 80px; }
.ki-brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: var(--s-ink); text-decoration: none; min-height: 44px; }
.ki-mark { width: 46px; height: 46px; flex: none; }
.ki-brand b { display: block; font-family: var(--s-fd); font-weight: 760; font-size: 1.4rem; line-height: 1; letter-spacing: -0.01em; }
.ki-brand small { display: block; margin-top: 3px; font-size: .8rem; color: var(--s-muted); }
.ki-menu { display: flex; gap: clamp(12px, 1.5vw, 24px); }
.ki-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--s-ink); font-weight: 600; font-size: .98rem; text-decoration: none; border-radius: 999px; }
.ki-menu a:hover { color: var(--s-apricot-deep); }
.ki-menu a[aria-current="page"] { color: var(--s-apricot-deep); box-shadow: inset 0 -3px 0 var(--s-apricot); border-radius: 0; }
.ki-status { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--s-bg); font-size: .875rem; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ki-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--s-line-2); flex: none; }
[data-open="true"] > .ki-dot { background: var(--s-leaf); box-shadow: 0 0 0 4px rgba(62, 123, 79, .18); }
.ki-burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--s-line-2); background: transparent; color: var(--s-ink); place-items: center; cursor: pointer; }
.ki-burger > span { display: grid; gap: 5px; width: 18px; }
.ki-burger i { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s; }
.ki-burger[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.ki-burger[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (max-width: 1199px) { .ki-status { display: none; } }
@media (max-width: 1023px) {
  .js .ki-burger { display: grid; }
  .ki-head { position: relative; }
  .js .ki-menu { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; display: none; flex-direction: column; gap: 0; padding: 8px max(20px, env(safe-area-inset-left, 0px)) 18px; background: var(--s-paper); border-bottom: 1px solid var(--s-line); box-shadow: 0 20px 30px -20px rgba(43, 36, 32, .4); }
  .js .ki-nav.is-open .ki-menu { display: flex; }
  .js .ki-menu a { min-height: 54px; width: 100%; font-size: 1.15rem; border-bottom: 1px solid var(--s-line); border-radius: 0; box-shadow: none; }
  .no-js .ki-menu { flex-wrap: wrap; }
  .no-js .ki-head-in { flex-wrap: wrap; padding-block: 10px; }
}
@media (max-width: 519px) { .ki-brand small { display: none; } .ki-head-cta { display: none; } .ki-head-in { min-height: 66px; gap: 12px; } .ki-mark { width: 40px; height: 40px; } }

/* ---------- Abschnitte ---------- */
.ki-sec { padding-block: clamp(56px, 6.5vw, 104px); }
.ki-sec + .ki-sec { border-top: 2px dashed var(--s-line); }
.ki-sec-head { display: grid; gap: 14px; align-content: start; margin-bottom: clamp(26px, 3vw, 42px); max-width: 46em; }
.ki-sec-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; max-width: none; }
.ki-sec-head--row > div:not([role]) { display: grid; gap: 14px; }
.ki-lead--side { max-width: 26em; font-size: 1rem; }
.ki-two { display: grid; gap: 24px clamp(28px, 4vw, 72px); align-items: start; }
@media (min-width: 1000px) { .ki-two { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .ki-two > .ki-sec-head { margin-bottom: 0; } }
.ki-prose { display: grid; gap: 14px; font-size: 1.05rem; max-width: 40em; }

/* ---------- Einstieg ---------- */
.ki-hero { position: relative; padding-block: clamp(30px, 4vw, 56px) clamp(40px, 5vw, 72px); overflow: hidden; }
.ki-hero::before { content: ""; position: absolute; right: -12vw; top: -18vw; width: 62vw; height: 62vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, var(--s-sky-soft) 0 58%, transparent 59%); z-index: 0; }
.ki-hero > * { position: relative; z-index: 1; }
.ki-hero-grid { display: grid; gap: 28px clamp(24px, 3vw, 48px); align-items: center; }
@media (min-width: 1000px) { .ki-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .ki-tiles { grid-column: 1 / -1; } }
.ki-hero-copy { display: grid; gap: 22px; align-content: start; }
.ki-hero-copy .ki-h1 { max-width: 10.5em; }
.ki-today { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 10px 16px; border-radius: 999px; background: var(--s-paper); border: 1px solid var(--s-line); font-weight: 650; font-size: .95rem; font-variant-numeric: tabular-nums; }
.ki-today[data-open="true"] .ki-dot { background: var(--s-apricot); box-shadow: 0 0 0 4px rgba(242, 166, 107, .3); }
.ki-hero-fig { margin: 0 -2vw 0 0; }
.ki-hero-fig img { display: block; width: 100%; height: auto; }
.ki-tiles { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 1000px) { .ki-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ki-tile { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) 22px; grid-template-areas: "i t a" "i d a"; align-items: center; gap: 2px 16px; min-height: 104px; padding: 18px 20px; border-radius: 28px; color: var(--s-ink); text-decoration: none; transition: transform .25s var(--s-ease), box-shadow .25s; }
.ki-tile--apricot { background: var(--s-apricot-soft); }
.ki-tile--leaf { background: var(--s-leaf-soft); }
.ki-tile--sky { background: var(--s-sky-soft); }
.ki-tile-i { grid-area: i; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--s-paper); }
.ki-tile-i svg { width: 32px; height: 32px; }
.ki-tile--apricot .ki-tile-i { color: var(--s-apricot-deep); }
.ki-tile--leaf .ki-tile-i { color: var(--s-leaf-text); }
.ki-tile--sky .ki-tile-i { color: var(--s-sky-deep); }
.ki-tile b { grid-area: t; font-family: var(--s-fd); font-weight: 740; font-size: 1.28rem; line-height: 1.1; }
.ki-tile small { grid-area: d; font-size: .9rem; color: var(--s-muted); line-height: 1.35; }
.ki-tile .ico { grid-area: a; width: 22px; height: 22px; transition: transform .25s var(--s-ease); }
.ki-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(43, 36, 32, .45); }
.ki-tile:hover .ico { transform: translateX(4px); }
.ki-hero--sub { padding-block: clamp(30px, 4vw, 56px) clamp(36px, 4vw, 60px); }
.ki-sub-head { display: grid; gap: 18px; }
.ki-sub-head .ki-h1 { max-width: 12em; }

/* ---------- Maßband der Vorsorge ---------- */
.ki-ms-sec { background: var(--s-paper); }
.ki-ms-grid { display: grid; gap: 28px clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 1100px) { .ki-ms-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .ki-ms-grid > .ki-sec-head { margin-bottom: 0; } }
.ms { display: grid; gap: 22px; padding: clamp(18px, 2.4vw, 30px); border-radius: 32px; background: var(--s-bg); border: 1px solid var(--s-line); }
.ms-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.ms-l { font-family: var(--s-fd); font-weight: 700; font-size: 1.2rem; }
.ms-age { font-family: var(--s-fd); font-weight: 780; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1; color: var(--s-apricot-deep); font-variant-numeric: tabular-nums; }
.ms-tape { position: relative; height: 128px; container-type: inline-size; }
.ms-lane { position: absolute; left: 0; right: 0; top: 0; height: 56px; }
.ms-seg { position: absolute; top: 30px; height: 14px; border-radius: 7px; background: var(--s-leaf-2); }
.ms-seg--alt { background: var(--s-leaf); }
.ms-seg i { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-style: normal; font-family: var(--s-fd); font-weight: 760; font-size: .82rem; color: var(--s-leaf-text); white-space: nowrap; }
.ms-seg--alt i { bottom: auto; top: -2px; transform: translate(-50%, -100%) translateY(-14px); }
.ms-seg.is-on { background: var(--s-apricot); box-shadow: 0 0 0 3px var(--s-paper), 0 0 0 5px var(--s-apricot); }
.ms-seg.is-on i { color: var(--s-apricot-deep); }
.ms-seg { top: 36px; }
.ms-seg--alt i { top: auto; bottom: 18px; transform: translateX(-50%); }
.ms-seg:not(.ms-seg--alt) i { bottom: auto; top: 18px; }
/* Randabschnitte: Beschriftung bündig statt mittig, damit sie nicht über das Band hinausragt */
.ms-seg[data-seg="U2"] i { left: 0; transform: none; }
.ms-seg[data-seg="J1"] i { left: auto; right: 0; transform: none; }
.ms-ruler { position: absolute; left: 0; right: 0; top: 70px; height: 44px; border-radius: 8px; background: repeating-linear-gradient(90deg, transparent 0 calc(1cqw - 1px), rgba(43, 36, 32, .22) calc(1cqw - 1px) 1cqw) 0 0 / 100% 10px no-repeat, var(--s-sun); }
.ms-tick { position: absolute; top: 0; height: 100%; display: flex; align-items: flex-end; padding: 0 0 6px 5px; font-size: .72rem; font-weight: 700; color: #4A3B12; white-space: nowrap; }
.ms-tick i { position: absolute; left: 0; top: 0; width: 1.5px; height: 22px; background: rgba(43, 36, 32, .6); }
.ms-tick b { font-weight: inherit; }
.ms-tick--end { transform: translateX(-100%); padding: 0 5px 6px 0; }
.ms-tick--end i { left: auto; right: 0; }
/* Beschriftungen nur, wo Platz ist – die Skala ist zum Jugendalter hin gestaucht */
.ms-tick--t0 b { display: none; }
@container (max-width: 639px) { .ms-tick--t3 b { display: none; } }
@container (max-width: 399px) { .ms-tick--t2 b { display: none; } }
@container (max-width: 279px) { .ms-tick--t1s b { display: none; } }
.ms-range { position: absolute; left: -12px; right: -12px; width: calc(100% + 24px); top: 58px; height: 68px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ms-range::-webkit-slider-runnable-track { height: 68px; background: transparent; }
.ms-range::-moz-range-track { height: 68px; background: transparent; }
.ms-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 68px; border-radius: 12px; background: var(--s-ink); border: 4px solid var(--s-paper); box-shadow: 0 6px 16px rgba(43, 36, 32, .35); }
.ms-range::-moz-range-thumb { width: 18px; height: 60px; border-radius: 12px; background: var(--s-ink); border: 4px solid var(--s-paper); }
.ms-range:focus { outline: none; }
.ms-range:focus-visible { outline: 2px solid var(--s-sky-deep); outline-offset: 2px; border-radius: 14px; }
.ms-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--s-sky-deep); }
.ms-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--s-sky-deep); }
.ms-card { display: grid; gap: 16px; padding: 22px; border-radius: 24px; background: var(--s-paper); border: 1px solid var(--s-line); min-height: 240px; align-content: start; }
.ms-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; }
.ms-u { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--s-leaf); color: #fff; font-family: var(--s-fd); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; }
.ms-u--late { background: var(--s-apricot); color: var(--s-ink); }
.ms-u--next { background: var(--s-sky); color: var(--s-ink); }
.ms-state { font-family: var(--s-fd); font-weight: 740; font-size: 1.4rem; line-height: 1.15; }
.ms-range-t { color: var(--s-muted); font-size: .98rem; }
.ms-cols { display: grid; gap: 16px; }
@media (min-width: 640px) { .ms-cols { grid-template-columns: 1fr 1fr; } }
.ms-next, .ms-gap, .ms-hint { font-size: .95rem; color: var(--s-muted); }
.ms-next b { color: var(--s-ink); }

/* ---------- Praxishaus ---------- */
.ki-haus-sec { background: linear-gradient(var(--s-bg), var(--s-leaf-soft)); }
.ki-route-pick { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: var(--s-paper); border: 1px solid var(--s-line); }
.ki-rp { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; color: var(--s-ink); font: inherit; font-weight: 700; cursor: pointer; }
.ki-rp::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.ki-rp--infekt { --c: var(--s-apricot); }
.ki-rp--vorsorge { --c: var(--s-leaf); }
.ki-rp[aria-checked="true"] { background: var(--s-ink); color: #fff; }
.ki-haus-grid { display: grid; gap: 24px clamp(24px, 3vw, 44px); align-items: center; }
@media (min-width: 1000px) { .ki-haus-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.ki-haus { position: relative; }
.ki-haus img { display: block; width: 100%; height: auto; }
.ki-routes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ki-route { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1 2.2; opacity: 0; transition: opacity .3s; }
.ki-route--infekt { stroke: #D96A22; }
.ki-route--vorsorge { stroke: var(--s-leaf); }
[data-route="infekt"] .ki-route--infekt, [data-route="vorsorge"] .ki-route--vorsorge { opacity: 1; }
.no-js .ki-route { opacity: .9; }
[data-haus].is-drawing .ki-route { animation: ki-draw 1.4s var(--s-ease) both; }
@keyframes ki-draw { from { stroke-dashoffset: 40; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
.ki-spots { position: absolute; inset: 0; pointer-events: none; }
.ki-spot { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid var(--s-paper); background: var(--s-sky-deep); color: #fff; font: 800 .9rem/1 var(--s-fd); box-shadow: 0 4px 12px rgba(43, 36, 32, .3); pointer-events: auto; cursor: pointer; transition: transform .25s var(--s-ease); }
.ki-spot--infekt { background: var(--s-apricot); color: var(--s-ink); }
.ki-spot--vorsorge { background: var(--s-leaf); }
.ki-spot:hover, .ki-spot.is-on, .ki-spot[aria-expanded="true"] { transform: scale(1.2); }
.ki-spot.is-on, .ki-spot[aria-expanded="true"] { box-shadow: 0 0 0 4px var(--s-ink), 0 6px 16px rgba(43, 36, 32, .35); }
[data-route="infekt"] .ki-spot--vorsorge, [data-route="vorsorge"] .ki-spot--infekt { opacity: .45; }
@media (max-width: 640px) {
  .ki-spot { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: .76rem; border-width: 2px; }
  /* Auf schmalen Bildschirmen liegen einige Punkte zu dicht: leicht auseinanderrücken (höchstens 10 px), damit sich keine Bedienflächen überdecken */
  .ki-spot[data-spot="infekt-eingang"] { translate: -8px -10px; }
  .ki-spot[data-spot="infekt-warten"] { translate: 6px 10px; }
  .ki-spot[data-spot="infekt-raum"] { translate: 10px -8px; }
  .ki-spot[data-spot="anmeldung"] { translate: -9px -9px; }
  .ki-spot[data-spot="spielecke"] { translate: -10px 3px; }
  .ki-spot[data-spot="aufzug"] { translate: 4px 9px; }
  .ki-spot[data-spot="hoertest"] { translate: 3px -5px; }
  .ki-spot[data-spot="u1"] { translate: 1px -9px; }
}
.ki-haus-side { display: grid; gap: 16px; align-content: start; }
.ki-route-t { display: grid; gap: 8px; padding: 20px 22px; border-radius: 24px; background: var(--s-paper); border-left: 6px solid var(--c, var(--s-leaf)); }
.ki-route-t--infekt { --c: var(--s-apricot); }
.ki-route-t--vorsorge { --c: var(--s-leaf); }
.js .ki-route-t:not(.is-on) { display: none; }
.ki-route-t ol { display: grid; gap: 6px; counter-reset: s; }
.ki-route-t li { position: relative; padding-left: 32px; counter-increment: s; }
.ki-route-t li::before { content: counter(s); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: var(--s-ink); font: 800 .78rem/1 var(--s-fd); }
.ki-route-t--vorsorge li::before { color: #fff; }
.ki-spot-out { display: grid; gap: 10px; }
.ki-spot-info { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: 20px; background: var(--s-paper); border: 1px solid var(--s-line); }
.js .ki-spot-out .ki-spot-info:not(.is-on), .js .ki-tour-info .ki-spot-info:not(.is-on) { display: none; }
.js .ki-spot-out:has(.ki-spot-info.is-on) .ki-hint { display: none; }
.ki-spot-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--s-sky-deep); color: #fff; font: 800 .85rem/1 var(--s-fd); }
.ki-spot-info--infekt .ki-spot-n { background: var(--s-apricot); color: var(--s-ink); }
.ki-spot-info--vorsorge .ki-spot-n { background: var(--s-leaf); }
.ki-spot-info p { color: var(--s-muted); font-size: .95rem; }

/* ---------- Stundenplan ---------- */
.sp { position: relative; display: grid; grid-template-columns: 58px repeat(5, minmax(0, 1fr)); gap: 0 8px; padding: 14px; border-radius: 28px; background: var(--s-paper); border: 1px solid var(--s-line); }
.sp-axis { display: grid; grid-template-rows: 52px repeat(var(--rows), 20px); }
.sp-h { font-size: .74rem; font-weight: 700; color: var(--s-muted); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.sp-day { position: relative; display: grid; grid-template-rows: 52px repeat(var(--rows), 20px); border-radius: 18px; background-image: repeating-linear-gradient(transparent 0 39px, var(--s-line) 39px 40px); background-position: 0 52px; background-repeat: no-repeat; background-size: 100% calc(100% - 52px); }
.sp-day.is-today { background-color: var(--s-sky-soft); }
.sp-dt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: var(--s-fd); font-weight: 740; font-size: 1.02rem; }
.sp-ds { display: none; }
.sp-today { padding: 1px 8px; border-radius: 999px; background: var(--s-sky-deep); color: #fff; font: 700 .7rem/1.4 var(--s-f); letter-spacing: .04em; text-transform: uppercase; }
.sp-list { display: contents; }
.sp-b { grid-column: 1; display: grid; align-content: start; gap: 1px; margin: 2px 3px; padding: 7px 10px; border-radius: 12px; overflow: hidden; font-size: .78rem; line-height: 1.25; }
.sp-b b { font-size: .8rem; font-variant-numeric: tabular-nums; }
.sp-bs { display: none; }
/* Tablet: Spalten zu schmal für die langen Namen – kurze Namen sichtbar, lange bleiben für Screenreader */
@media (min-width: 760px) and (max-width: 1099px) {
  .sp-bl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sp-bs { display: inline; }
}
.sp-b--infekt { background: var(--s-apricot); }
.sp-b--termin { background: var(--s-leaf-soft); border: 1.5px solid var(--s-leaf-2); }
.sp-b--impf { background: var(--s-sky); }
.sp-b--jugend { background: var(--s-plum-soft); border: 1.5px solid var(--s-plum); }
.sp-now { position: absolute; height: 0; border-top: 2.5px solid var(--s-red); z-index: 2; pointer-events: none; }
.sp-now span { position: absolute; right: 4px; top: -11px; padding: 2px 7px; border-radius: 999px; background: var(--s-red); color: #fff; font-size: .7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-key { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 18px; font-size: .9rem; }
.sp-key li { display: flex; align-items: center; gap: 8px; }
.sp-key span { color: var(--s-muted); }
.sp-k { width: 18px; height: 18px; border-radius: 6px; flex: none; }
.sp-k--infekt { background: var(--s-apricot); }
.sp-k--termin { background: var(--s-leaf-soft); border: 1.5px solid var(--s-leaf-2); }
.sp-k--impf { background: var(--s-sky); }
.sp-k--jugend { background: var(--s-plum-soft); border: 1.5px solid var(--s-plum); }
@media (max-width: 759px) {
  .sp { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px; }
  .sp-axis, .sp-now { display: none; }
  .sp-day { display: grid; grid-template-columns: 58px minmax(0, 1fr); grid-template-rows: none; align-items: start; gap: 8px; padding: 8px; background-image: none; }
  .sp-dt { align-items: flex-start; justify-content: flex-start; padding-top: 6px; }
  .sp-dl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .sp-ds { display: inline; }
  .sp-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .sp-b { grid-row: auto !important; margin: 0; padding: 6px 10px; }
}

/* ---------- Team ---------- */
.ki-team-grid { display: grid; gap: 24px clamp(28px, 4vw, 64px); }
@media (min-width: 1000px) { .ki-team-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; } }
.ki-docs { display: grid; gap: 18px; }
@media (min-width: 900px) { .ki-docs { grid-template-columns: 1fr 1fr; } }
.ki-doc { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; padding: 20px; border-radius: 28px; background: var(--s-paper); border: 1px solid var(--s-line); }
.ki-doc p { color: var(--s-muted); font-size: .95rem; }
.ki-doc-f { margin-top: 6px; color: var(--s-ink) !important; }
.ki-ava { position: relative; display: grid; place-items: center; width: 96px; height: 96px; font-family: var(--s-fd); font-weight: 800; font-size: 1.7rem; color: var(--s-ink); }
.ki-ava--leaf { border-radius: 60% 6% 60% 6%; background: var(--s-leaf-soft); }
.ki-ava--sun { border-radius: 50%; background: var(--s-apricot-soft); box-shadow: 0 0 0 6px var(--s-paper), 0 0 0 8px var(--s-apricot); }
.ki-ava small { position: absolute; bottom: -8px; padding: 1px 8px; border-radius: 999px; background: var(--s-paper); border: 1px solid var(--s-line); font: 700 .65rem/1.5 var(--s-f); color: var(--s-muted); }
.ki-doc-dl { display: grid; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--s-line-2); font-size: .9rem; }
.ki-doc-dl div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; }
.ki-doc-dl dt { color: var(--s-muted); }
.ki-roles { display: grid; gap: 8px; margin-top: 22px; }
@media (min-width: 760px) { .ki-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ki-roles li { display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px; background: var(--s-paper); }
.ki-roles span { color: var(--s-muted); font-size: .92rem; }
.ki-docs--full .ki-doc { grid-template-columns: 110px minmax(0, 1fr); }
.ki-docs--full .ki-ava { width: 110px; height: 110px; }
.ki-team-sec .ki-fine { margin-top: 18px; }

/* ---------- Vorsorge-Seite ---------- */
.ki-calc-sec { background: var(--s-paper); }
.ki-calc-grid { display: grid; gap: 24px clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 1000px) { .ki-calc-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .ki-calc-grid > .ki-sec-head { margin-bottom: 0; } }
.ki-calc { display: grid; gap: 18px; padding: clamp(18px, 2.4vw, 28px); border-radius: 32px; background: var(--s-bg); border: 1px solid var(--s-line); }
.ki-calc-in { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; }
.ki-calc-in label { flex-basis: 100%; font-family: var(--s-fd); font-weight: 700; font-size: 1.15rem; }
.ki-calc-in input { min-height: 52px; padding: 0 16px; border-radius: 16px; border: 2px solid var(--s-line-2); background: #fff; color: var(--s-ink); font: inherit; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ki-calc-in input:focus-visible { border-color: var(--s-sky-deep); }
.ki-ctab { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ki-ctab th, .ki-ctab td { padding: 10px 8px; border-bottom: 1px solid var(--s-line); text-align: left; vertical-align: top; }
.ki-ctab thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--s-muted); }
.ki-ctab td:nth-child(2) { font-variant-numeric: tabular-nums; }
.ki-ctab th[scope="row"] { font-family: var(--s-fd); font-weight: 760; font-size: 1.1rem; white-space: nowrap; }
.ki-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.ki-chip--jetzt { background: var(--s-leaf); color: #fff; }
.ki-chip--nach { background: var(--s-apricot); color: var(--s-ink); }
.ki-chip--bald { background: var(--s-sky); color: var(--s-ink); }
.ki-chip--spaeter { background: transparent; border: 1.5px solid var(--s-line-2); color: var(--s-muted); }
.ki-chip--vorbei { background: transparent; color: var(--s-muted); text-decoration: line-through; }
.ki-ctab tr.is-now th, .ki-ctab tr.is-now td { background: var(--s-leaf-soft); }
.ki-ulist { display: grid; gap: 14px; }
@media (min-width: 900px) { .ki-ulist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ki-u { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; padding: 20px; border-radius: 26px; background: var(--s-paper); border: 1px solid var(--s-line); scroll-margin-top: 24px; }
.ki-u-k { justify-self: center; display: grid; place-items: center; width: calc(46px + var(--i) * 4.6px); aspect-ratio: 1; border-radius: 50%; background: var(--s-leaf-soft); border: 3px solid var(--s-leaf-2); font-family: var(--s-fd); font-weight: 800; font-size: 1.15rem; color: var(--s-leaf-text); }
.ki-u-b { display: grid; gap: 8px; }
.ki-u-r { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ki-u-r b { font-family: var(--s-fd); font-weight: 740; font-size: 1.15rem; }
.ki-u-r span { font-size: .85rem; color: var(--s-muted); }
.ki-u-p { color: var(--s-muted); }
@media (max-width: 479px) {
  .ki-u { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ki-u-k { justify-self: start; width: calc(40px + var(--i) * 2.4px); font-size: 1rem; }
  .ki-doc, .ki-docs--full .ki-doc { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .ki-ava, .ki-docs--full .ki-ava { width: 64px; height: 64px; font-size: 1.2rem; }
  .ki-doc-dl div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ki-doc-dl div + div { margin-top: 4px; }
}
.ki-extra { margin-top: 26px; padding: 20px 22px; border-radius: 24px; border: 2px dashed var(--s-line-2); }
.ki-extra dl { display: grid; gap: 10px; }
.ki-extra dt { font-weight: 700; }
.ki-extra dd { color: var(--s-muted); }

/* ---------- Krank-Seite ---------- */
.ki-hero--krank { background: var(--s-apricot-soft); }
.ki-hero--krank::before { display: none; }
.ki-krank-head { display: grid; gap: 28px clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 1000px) { .ki-krank-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.ki-krank-head > div:first-child { display: grid; gap: 20px; }
.ki-nums { display: grid; gap: 10px; }
/* Notrufnummern als dunkle Karten (eigene Klasse, nicht mit .ki-num für Ziffern verwechseln) */
.ki-call { display: grid; gap: 2px; padding: 16px 20px; border-radius: 22px; background: var(--s-ink); color: #F7EEE2; }
.ki-call .ki-mini { color: #D8C8B6; margin: 0; }
.ki-call-n { font-family: var(--s-fd); font-weight: 800; font-size: 2.1rem; line-height: 1.05; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.ki-call p:last-child { font-size: .88rem; color: #D8C8B6; }
.ki-ampel { display: grid; gap: 14px; }
@media (min-width: 960px) { .ki-ampel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ki-amp { position: relative; display: grid; gap: 12px; align-content: start; padding: 26px 22px 24px; border-radius: 28px; background: var(--s-paper); border: 1px solid var(--s-line); }
.ki-amp-dot { width: 46px; height: 46px; border-radius: 50%; }
.ki-amp--rot { border-color: #E3A99C; background: #FCEDE9; }
.ki-amp--rot .ki-amp-dot { background: var(--s-red); box-shadow: 0 0 0 7px #F6CFC6; }
.ki-amp--rot .ki-h3 { color: var(--s-red); }
.ki-amp--gelb .ki-amp-dot { background: var(--s-sun); box-shadow: 0 0 0 7px #FBEAB8; }
.ki-amp--gruen .ki-amp-dot { background: var(--s-leaf); box-shadow: 0 0 0 7px var(--s-leaf-soft); }
.ki-amp > p { color: var(--s-muted); font-size: .95rem; }
.ki-amp--rot .ki-ticks li::before { background: var(--s-red); border-radius: 50%; transform: none; }
.ki-amp--gelb .ki-ticks li::before { background: #C99A14; border-radius: 50%; transform: none; }
.ki-infekt-sec { background: var(--s-paper); }
.ki-dl { display: grid; border-top: 1px solid var(--s-line); }
.ki-dl > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--s-line); }
@media (min-width: 640px) { .ki-dl > div { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; } }
.ki-dl dt { font-weight: 700; }
.ki-dl dd { color: var(--s-muted); }
.ki-dl--tight > div { padding: 10px 0; }
@media (min-width: 640px) { .ki-dl--tight > div { grid-template-columns: 140px minmax(0, 1fr); } }

/* ---------- Praxis-Seite ---------- */
.ki-tour { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1100px) { .ki-tour { grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "list haus" "list info"; } .ki-tour-list { grid-area: list; } .ki-tour .ki-haus { grid-area: haus; } .ki-tour-info { grid-area: info; } }
.ki-tour-list { display: grid; gap: 4px; }
@media (max-width: 1099px) { .ki-tour-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
.ki-tb { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 14px; border: 1.5px solid transparent; background: transparent; color: var(--s-ink); font: inherit; font-size: .95rem; text-align: left; cursor: pointer; overflow-wrap: break-word; hyphens: auto; }
.ki-tb span { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--s-sky-deep); color: #fff; font: 800 .78rem/1 var(--s-fd); }
.ki-tb--infekt span { background: var(--s-apricot); color: var(--s-ink); }
.ki-tb--vorsorge span { background: var(--s-leaf); }
.ki-tb:hover { border-color: var(--s-line-2); }
.ki-tb[aria-checked="true"] { background: var(--s-paper); border-color: var(--s-ink); font-weight: 700; }
.ki-tour .ki-spot { pointer-events: auto; }
.ki-steps { display: grid; gap: 14px; counter-reset: none; }
@media (min-width: 860px) { .ki-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ki-steps li { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 26px; background: var(--s-paper); border: 1px solid var(--s-line); }
.ki-steps p { color: var(--s-muted); }
.ki-step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--s-sun); font: 800 1.15rem/1 var(--s-fd); }
.ki-termin-sec { background: var(--s-leaf-soft); }
.ki-address { font-style: normal; display: grid; gap: 2px; margin-bottom: 14px; font-size: 1.05rem; }
.ki-address b { font-family: var(--s-fd); font-size: 1.2rem; }

/* ---------- Fuß und mobile Leiste ---------- */
.ki-foot { background: var(--s-ink); color: #F7EEE2; padding-block: 46px 24px; }
.ki-foot-grid { display: grid; gap: 26px; font-size: .92rem; }
@media (min-width: 760px) { .ki-foot-grid { grid-template-columns: 1.4fr 1.1fr 1fr auto; } }
.ki-foot .ki-mini { color: #D8C8B6; }
.ki-foot p { color: #E6D9CA; line-height: 1.6; }
.ki-foot-brand { display: flex; gap: 14px; align-items: start; }
.ki-foot-brand .ki-mark { width: 42px; height: 42px; --s-ink: #2B2420; }
.ki-foot-brand b { display: block; color: #fff; font-family: var(--s-fd); font-size: 1.05rem; }
.ki-foot-links { display: grid; gap: 4px; }
.ki-foot-links a { display: inline-flex; align-items: center; min-height: 32px; color: #F7EEE2; text-decoration: underline; text-decoration-color: rgba(247, 238, 226, .4); text-underline-offset: .2em; }
.ki-foot :focus-visible { outline-color: var(--s-sun); }
.ki-foot-fine { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(247, 238, 226, .15); font-size: .78rem; color: #D8C8B6; }
.ki-mbar { display: none; }
@media (max-width: 760px) {
  :root:has(.ki-mbar) { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .ki-mbar { position: sticky; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--s-paper); border-top: 1px solid var(--s-line); box-shadow: 0 -10px 24px rgba(43, 36, 32, .1); }
  .ki-mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 18px; background: var(--s-bg); color: var(--s-ink); font-weight: 700; text-decoration: none; }
  .ki-mbar a:nth-child(2) { background: var(--s-apricot); }
  .ki-mbar a:nth-child(3) { background: var(--s-leaf); color: #fff; }
  .ki-mbar svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) { .ki-tile, .ki-tile .ico, .ki-spot, .ki-btn, .ki-more .ico { transition: none; } [data-haus].is-drawing .ki-route { animation: none; } }
/* Unterseiten-Einstieg mit Zeichnung und Kennzahlen */
.ki-sub-head--fig { grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .ki-sub-head--fig { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.ki-sub-copy { display: grid; gap: 18px; }
.ki-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ki-facts li { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--s-paper); border: 1px solid var(--s-line); font-size: .92rem; color: var(--s-muted); }
.ki-facts b { font-family: var(--s-fd); font-weight: 780; font-size: 1.2rem; color: var(--s-ink); font-variant-numeric: tabular-nums; }
.ki-ml { display: block; width: 100%; max-width: 340px; height: auto; justify-self: center; }
@media (max-width: 899px) { .ki-ml { max-width: 220px; } }
.ml-board { fill: var(--s-sun); stroke: #C99A2E; stroke-width: 2; }
.ml-ticks line { stroke: rgba(43, 36, 32, .5); stroke-width: 1.4; }
.ml-pencil { fill: none; stroke: var(--s-ink); stroke-width: 2.6; stroke-linecap: round; }
.ml-u { font: 800 19px/1 var(--s-fd); fill: var(--s-leaf-text); }
.ml-t { font: 600 14px/1 var(--s-f); fill: var(--s-muted); }
.ml-leaf--a { fill: var(--s-leaf); }
.ml-leaf--b { fill: var(--s-leaf-2); }
.ml-stem { stroke: var(--s-leaf); stroke-width: 3; stroke-linecap: round; }
.ml-floor { stroke: var(--s-line-2); stroke-width: 2; stroke-linecap: round; }
