/* Steuerberater am Spittelberg — site layer on top of acss-system.css.
   Consumes engine tokens only; brand colours live in the BRAND block. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-var-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-var-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-var-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-var-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-var-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-var-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-var-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-var-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --ff-hand: "Caveat", cursive;
  /* Headings h1–h3 (Martin, 2026-10-07). Bricolage (--ff-heading) stays for logo, figures and small titles. */
  --ff-display: "Instrument Serif", ui-serif, Georgia, serif;
  /* Site roles (flip with the scheme) */
  /* Dark mode = near-black, not Tannengrün; every section on --ink-1, no band shifts (Martin, 2026-10-11). Light mode unchanged. */
  --ink-1: oklch(0.14 0 0);
  --ink-2: oklch(0.20 0 0);
  --ink-3: oklch(0.245 0 0);
  --ink-4: oklch(0.30 0 0);
  --clr-bg:             light-dark(var(--base-ultra-light), var(--ink-1));
  --clr-surface:        light-dark(var(--base-ultra-light), var(--ink-2));
  --clr-surface-raised: light-dark(#ffffff, var(--ink-3));
  --clr-text-muted:     light-dark(var(--neutral-semi-dark), oklch(0.76 0 0));
  --clr-border:         light-dark(var(--neutral-light), oklch(0.32 0 0));
  --clr-border-strong:  light-dark(var(--neutral-semi-light), oklch(0.45 0 0));
  --night: light-dark(var(--base-dark), var(--ink-1));       /* hero, header, footer */
  --on-night: var(--base-ultra-light);
  --on-night-muted: color-mix(in oklch, var(--base-ultra-light), transparent 22%);
  --hair-night: color-mix(in oklch, var(--base-ultra-light), transparent 88%);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --glide: cubic-bezier(.2, .7, .2, 1);
  --hdr-h: 84px;
  /* Section bands */
  --band-cream: light-dark(var(--base-light), var(--ink-2));
  --band-sky:   light-dark(var(--secondary-light), var(--ink-3));
  --band-paper: light-dark(var(--base-ultra-light), var(--ink-1));
  --band-brick: light-dark(var(--primary), oklch(0.38 0.11 38));
  --hair: light-dark(color-mix(in oklch, var(--base-dark), transparent 86%), color-mix(in oklch, var(--base-ultra-light), transparent 88%));
  --card: light-dark(#fff, var(--ink-3));
  --muted: light-dark(var(--neutral-semi-dark), oklch(0.76 0 0));
}

html { font-size: calc(100% * var(--user-font-scale, 1)); scroll-padding-top: 80px; overflow-x: clip; }
html.theme-light { color-scheme: light; }
html.theme-dark { color-scheme: dark; }
html[data-font-scale="115"] { --user-font-scale: 1.15; }
html[data-font-scale="130"] { --user-font-scale: 1.3; }
body { overflow-x: clip; }

h1, h2, h3 { font-family: var(--ff-display); font-weight: 400; letter-spacing: -0.01em; }

.skip { position: absolute; left: var(--space-s); top: -100px; z-index: 100; background: var(--accent); color: var(--base-ultra-dark); padding: var(--space-xs) var(--space-s); border-radius: var(--radius-s); }
.skip:focus { top: var(--space-s); }

.demo-ribbon {
  position: fixed; top: 16px; left: -36px; z-index: calc(var(--z-sticky) + 5); transform: rotate(-45deg);
  background: var(--accent); color: var(--base-dark);
  font: 600 11px/1 var(--ff-mono); letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 44px; box-shadow: var(--shadow-sm); pointer-events: none;
}

/* ───────── Buttons ───────── */
.pill {
  --arrow-x: 0;
  display: inline-flex; align-items: center; gap: .7em; border: 0; cursor: pointer;
  background: var(--accent); color: var(--base-dark);
  font: 600 var(--text-s)/1 var(--ff-mono); letter-spacing: .05em; text-transform: uppercase;
  padding: 1.15em 1.6em; border-radius: var(--radius-pill); text-decoration: none;
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent), transparent 40%);
  transition: transform .35s var(--pop), box-shadow .35s var(--glide), background .2s;
}
.pill:hover { color: var(--base-dark); background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 10px 24px -8px color-mix(in oklch, var(--accent-semi-dark), transparent 30%); }
.pill:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.pill__arrow { display: inline-block; transition: transform .35s var(--pop); }
.pill:hover .pill__arrow { transform: translateX(6px); }
.pill--small { font-size: var(--text-xs); padding: 1em 1.35em; }

.draw-link {
  font: 500 var(--text-xs)/1.4 var(--ff-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary-light); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .45s var(--glide), color .2s;
}
.draw-link:hover { color: var(--accent); background-size: 0 1px; animation: draw .45s .2s var(--glide) forwards; }
@keyframes draw { to { background-size: 100% 1px; } }

/* ───────── Header ───────── */
.hdr {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--night); color: var(--on-night);
  border-bottom: 1px solid var(--hair-night);
  transition: box-shadow .3s;
}
.hdr__in { display: flex; align-items: center; gap: var(--space-l); block-size: var(--hdr-h); transition: block-size .35s var(--glide); }
.hdr.is-compact .hdr__in { block-size: 64px; }
.hdr.is-compact { box-shadow: 0 10px 30px -18px oklch(0 0 0 / .6); }

.logo { display: grid; text-decoration: none; color: var(--on-night); line-height: 1; }
.logo:hover { color: var(--on-night); }
.logo__kicker { font: 500 10px/1 var(--ff-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--primary-light); margin-bottom: 4px; }
.logo__name { font: 800 clamp(1.25rem, 1.1rem + .6vw, 1.6rem)/1 var(--ff-heading); letter-spacing: -.035em; }
.logo__i { position: relative; display: inline-block; }
.logo__dot {
  position: absolute; left: 50%; top: -.02em; width: .42em; height: .42em; translate: -50% 0;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 .09em var(--night);
}
.logo:hover .logo__dot { animation: hop .6s var(--pop); }
@keyframes hop { 40% { translate: -50% -.35em; } }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; gap: var(--space-m); list-style: none; margin: 0; padding: 0; }
.nav__link {
  color: var(--on-night-muted); text-decoration: none; font-size: var(--text-s); font-weight: 500;
  position: relative; padding-block: 6px;
}
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); scale: 0 1; transform-origin: right; transition: scale .35s var(--glide); }
.nav__link:hover { color: var(--on-night); }
.nav__link:hover::after { scale: 1 1; transform-origin: left; }
.nav__mobile-extra { display: none; }
/* Mandantenportal: its own colour (sky), so it never competes with the apricot booking CTA */
.portal-btn { --portal: oklch(0.88 0.07 230); background: var(--portal); color: var(--base-dark); }
.portal-btn:hover { background: oklch(0.82 0.09 230); box-shadow: 0 10px 24px -8px oklch(0.6 0.1 230 / .55); }
.portal-btn__ico, .pill__ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; flex: none; }
.hdr__portal + .hdr__cta { margin-inline-start: calc(var(--space-m) * -1); }
.logo, .nav__link, .pill { white-space: nowrap; }
/* Tablet landscape (iPad 1024): full header does not fit, tighten gaps instead of clipping the CTA */
@media (min-width: 961px) and (max-width: 1100px) {
  .hdr__in, .nav__list { gap: var(--space-s); }
  .hdr__portal + .hdr__cta { margin-inline-start: 0; }
  .hdr .pill--small { padding-inline: 1.1em; }
}
.burger { display: none; }

/* ───────── Hero ───────── */
.hero { background: var(--night); color: var(--on-night); padding-block: 0; overflow: hidden; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-l); min-block-size: min(760px, calc(100svh - var(--hdr-h))); }
.hero__copy { align-self: center; padding-block: var(--space-xxl); position: relative; z-index: 2; }
.hero__title { color: var(--on-night); font-size: clamp(2.9rem, 1.6rem + 4.9vw, 5.4rem); line-height: 1; max-inline-size: 13ch; }
.hero__lede { color: var(--on-night-muted); font-size: var(--text-l); margin-block: var(--space-l) var(--space-xl); max-inline-size: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m) var(--space-l); }
.hero__note {
  font: 600 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.1 var(--ff-hand); color: var(--accent);
  margin-top: var(--space-xl); rotate: -3deg; transform-origin: left;
}

.hero__art { position: relative; align-self: center; padding-block: var(--space-xxl); }

/* Portal panel: our own "Monatsübersicht", sitting on a brick sheet like a stack of paper */
.dash-wrap { position: relative; margin: 0 0 0 auto; max-inline-size: 520px; }
.dash-wrap::before { /* sheet underneath */
  content: ""; position: absolute; inset: 0; border-radius: 20px;
  background: var(--primary); rotate: 4deg; translate: 14px 10px;
}
.dash {
  position: relative; margin: 0;
  background: var(--base-ultra-light); color: var(--base-ultra-dark);
  border-radius: 20px; padding: 22px 24px 20px;
  box-shadow: 0 40px 80px -30px oklch(0.08 0.036 170 / .75);
  translate: var(--px, 0) var(--py, 0); transition: translate .6s var(--glide);
}
.dash__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed var(--neutral-light); }
.dash__brand { display: inline-flex; align-items: center; gap: 8px; font: 700 var(--text-s)/1 var(--ff-heading); letter-spacing: -.01em; }
.dash__brand i { inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--base-dark); }
.dash__month { font: 600 10.5px/1 var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.dash__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-block: 16px 14px; }
.dash__k { display: block; font: 600 10px/1.3 var(--ff-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--neutral-semi-dark); margin-bottom: 4px; }
.dash__kpis b { font: 700 clamp(1.05rem, .9rem + .5vw, 1.35rem)/1 var(--ff-heading); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash__kpi--res b { color: var(--primary); }
.dash__chart { background: var(--base-light); border-radius: 12px; padding: 12px 14px 8px; }
.dash__chead { display: flex; justify-content: space-between; gap: 8px; font: 600 10px/1 var(--ff-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--neutral-semi-dark); }
.dash__legend { display: inline-flex; align-items: center; gap: 6px; }
.dash__legend i { inline-size: 8px; block-size: 8px; border-radius: 2px; background: var(--primary); }
.dash__legend i.is-out { background: var(--secondary-semi-light); margin-left: 6px; }
.bars { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; block-size: 118px; padding-bottom: 18px; }
.bars li { position: relative; display: flex; align-items: end; justify-content: center; gap: 2px; }
.bars li::before, .bars li::after { content: ""; inline-size: 42%; border-radius: 3px 3px 0 0; transform-origin: bottom; }
.bars li::before { block-size: calc(var(--in) * 100%); background: var(--primary); }
.bars li::after { block-size: calc(var(--out) * 100%); background: var(--secondary-semi-light); }
.bars li:last-child::before { background: var(--accent-semi-dark, var(--accent)); }
.bars span { position: absolute; bottom: -17px; font: 600 9.5px/1 var(--ff-mono); color: var(--neutral-semi-dark); }
.dash__row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 10px; margin-top: 10px; }
.dash__tile { border: 1px solid var(--neutral-light); border-radius: 12px; padding: 12px 14px; display: grid; align-content: start; }
.dash__tile b { font: 700 var(--text-l)/1.1 var(--ff-heading); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dash__meta { font-size: 11.5px; color: var(--neutral-semi-dark); line-height: 1.35; }
.dash__tile--ring { grid-template-columns: 46px 1fr; gap: 12px; align-items: center; }
.dash__tile--ring > div { display: grid; }
.ring { inline-size: 46px; block-size: 46px; rotate: -90deg; }
.ring circle { fill: none; stroke: var(--neutral-light); stroke-width: 6; }
.ring .ring__val { stroke: var(--accent-semi-dark, var(--accent)); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 32; }

.status { list-style: none; margin: 0; padding: 0; }
.status__card {
  position: absolute; display: grid; gap: 2px;
  background: var(--base-ultra-light); color: var(--base-ultra-dark);
  border-radius: var(--radius-l); padding: 14px 18px 15px;
  box-shadow: 0 18px 40px -14px oklch(0.12 0.036 170 / .55);
  font-size: var(--text-s); line-height: 1.35; min-inline-size: 200px;
  translate: var(--px, 0) var(--py, 0); transition: translate .6s var(--glide);
}
.status__label { font: 600 10.5px/1.3 var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.status__title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--text-m); }
.status__meta { color: var(--neutral-semi-dark); font-size: var(--text-xs); }
.status__tick { inline-size: 20px; block-size: 20px; flex: none; }
.status__tick circle { fill: var(--primary); }
.status__tick path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 0; }
.status__card--uva { right: -28px; top: calc(var(--space-xxl) - 34px); }
.status__card--person { left: -12%; bottom: calc(var(--space-xxl) - 40px); display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; }
.status__card--person > span { display: grid; gap: 2px; }
.status__card--person img { inline-size: 58px; block-size: 58px; border-radius: 12px; object-fit: cover; object-position: 50% 25%; }

/* ───────── Entrance motion (only with JS; reduced motion shows the end state) ───────── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 18px; transition: opacity .8s var(--glide) var(--d, 0s), translate .8s var(--glide) var(--d, 0s); }
  .js .is-ready .reveal { opacity: 1; translate: 0 0; }

  .js [data-split] .w { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
  .js [data-split] .w > span { display: inline-block; translate: 0 105%; transition: translate .9s var(--glide) calc(.08s + var(--i) * .045s); }
  .js .is-ready [data-split] .w > span { translate: 0 0; }

  .js .hero__note { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.6, 0, .3, 1) 1.9s; }
  .js .is-ready .hero__note { clip-path: inset(0 0 0 0); }

  .js .dash { opacity: 0; transform: translateY(40px); transition: opacity .7s var(--glide) .3s, transform 1s var(--glide) .3s, translate .6s var(--glide); }
  .js .dash-wrap::before { opacity: 0; rotate: 0deg; translate: 0 0; transition: opacity .3s .9s, rotate 1s var(--pop) .9s, translate 1s var(--pop) .9s; }
  .js .is-ready .dash { opacity: 1; transform: none; }
  .js .is-ready .dash-wrap::before { opacity: 1; rotate: 4deg; translate: 14px 10px; }
  .js .bars li::before, .js .bars li::after { scale: 1 0; transition: scale .9s var(--glide) calc(.8s + var(--i) * .06s); }
  .js .bars li::after { transition-delay: calc(.9s + var(--i) * .06s); }
  .js .is-ready .bars li::before, .js .is-ready .bars li::after { scale: 1 1; }
  .js .ring .ring__val { stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s var(--glide) 1.5s; }
  .js .is-ready .ring .ring__val { stroke-dashoffset: 32; }

  .js .status__card { opacity: 0; transform: translateY(26px) scale(.9) rotate(-2deg); transition: opacity .5s var(--glide), transform .8s var(--pop), translate .6s var(--glide); }
  .js .status__card--uva { transition-delay: 1.7s; }
  .js .status__card--person { transition-delay: 1.3s; }
  .js .is-ready .status__card { opacity: 1; transform: none; }
  .js .status__tick path { stroke-dashoffset: 16; transition: stroke-dashoffset .5s ease-out 2.25s; }
  .js .is-ready .status__tick path { stroke-dashoffset: 0; }
}

/* ───────── Mobile ───────── */
@media (max-width: 960px) {
  :root { --hdr-h: 68px; }
  .hdr__portal { display: none; }
  .hdr__in { gap: var(--space-s); }
  .hdr__cta { display: none; }
  .burger { margin-inline-start: auto; }
  .burger {
    display: grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 50%;
    background: transparent; border: 1px solid var(--hair-night); color: var(--on-night); cursor: pointer;
  }
  .burger__bars, .burger__bars::before, .burger__bars::after { display: block; inline-size: 18px; block-size: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--glide), opacity .2s; }
  .burger__bars { position: relative; }
  .burger__bars::before, .burger__bars::after { content: ""; position: absolute; left: 0; }
  .burger__bars::before { top: -6px; } .burger__bars::after { top: 6px; }
  .burger[aria-expanded="true"] .burger__bars { background: transparent; }
  .burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--hdr-h) 0 0 0; margin: 0; overflow-y: auto; overscroll-behavior: contain;
    background: var(--night); border-top: 1px solid var(--hair-night);
    padding: var(--space-m) var(--wrapper-padding-inline) var(--space-xl);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .45s var(--glide), visibility 0s .45s;
    box-shadow: 0 30px 40px -20px oklch(0 0 0 / .6);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--glide), visibility 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--hair-night); }
  .nav__link { display: block; padding: 16px 0; font: 700 var(--h4)/1.1 var(--ff-heading); color: var(--on-night); letter-spacing: -.02em; }
  .nav__link::after { display: none; }
  .nav.is-open .nav__list li { animation: slideIn .5s var(--glide) both; animation-delay: calc(var(--n) * 50ms + 80ms); }
  @keyframes slideIn { from { opacity: 0; translate: -14px 0; } }
  .nav__mobile-extra { display: grid; gap: 6px; margin-top: var(--space-l); }
  .nav__cta { justify-content: center; margin-bottom: var(--space-m); padding-block: 1.1em; }
  .nav__portal { justify-content: center; margin: calc(var(--space-s) * -1) 0 var(--space-m); padding-block: 1.1em; }
  .nav__tel { font: 700 var(--h4) var(--ff-heading); color: var(--accent); text-decoration: none; }
  .nav__hours { color: var(--on-night-muted); font-size: var(--text-s); margin-top: 6px; }

  .hero__grid { grid-template-columns: 1fr; min-block-size: 0; gap: 0; }
  .hero__copy { padding-block: var(--space-xl) var(--space-m); }
  .hero__note { font-size: 1.45rem; padding-right: 1.5rem; }
  .hero__art { padding-block: var(--space-xl) calc(var(--space-xxl) + 30px); }
  .dash-wrap { margin-inline: auto; }
  .dash { padding: 16px 16px 14px; }
  .dash-wrap::before, .js .is-ready .dash-wrap::before { translate: 8px 8px; }
  .status__card { min-inline-size: 0; padding: 11px 14px; }
  .status__card--uva { right: -6px; top: -4px; }
  .status__card--person { left: 0; bottom: 18px; }
  .demo-ribbon { top: 10px; left: -40px; font-size: 9.5px; padding: 5px 44px; }
}
@media (max-width: 420px) {
  .logo__kicker { font-size: 9px; }
  .dash__kpis { gap: 8px; }
  .dash__row { grid-template-columns: 1fr; }
  .bars { gap: 4px; block-size: 96px; }
}

/* ═════════ Shared section parts ═════════ */
.label { font: 600 var(--text-xs)/1.4 var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; color: light-dark(var(--primary), var(--primary-light)); }
.label--bar { border-left: 3px solid var(--primary); padding-left: 10px; color: var(--muted); }
.label--on-color { color: var(--accent-light); }
.hand { font: 600 clamp(1.5rem, 1.25rem + .9vw, 2rem)/1.1 var(--ff-hand); color: light-dark(var(--primary), var(--accent)); }
.framed { position: relative; }
.framed::before, .framed::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--hair); left: calc(var(--wrapper-padding-inline) - var(--space-l)); }
.framed::after { left: auto; right: calc(var(--wrapper-padding-inline) - var(--space-l)); }
.sec-head { margin-bottom: var(--space-xl); max-inline-size: 60ch; }
.sec-head--split { max-inline-size: none; display: flex; justify-content: space-between; align-items: end; gap: var(--space-l); flex-wrap: wrap; }
.sec-head__title { font-size: clamp(2.4rem, 1.5rem + 3vw, 4rem); line-height: 1.02; margin-top: var(--space-s); max-inline-size: 18ch; }
.sec-head__lede { margin-top: var(--space-m); font-size: var(--text-l); color: var(--muted); }
.draw-link--dark { color: light-dark(var(--primary-dark), var(--primary-light)); }
.draw-link--dark:hover { color: light-dark(var(--primary), var(--accent)); }
.scribble { color: inherit; text-decoration: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C80 2 200 2 298 6' stroke='%23f0b400' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 100% 10px no-repeat; padding-bottom: 6px; }
.scribble:hover { color: light-dark(var(--primary), var(--accent)); }

/* ═════════ 2 · Für wen ═════════ */
.fw { background: light-dark(var(--band-cream), var(--ink-1)); padding-block: var(--section-space-l) 0; }
.fw__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-m); }
.fw-card {
  position: relative; display: block; min-block-size: 340px; padding: var(--space-l) var(--space-l) 0;
  background: var(--card); border-radius: var(--radius-l); box-shadow: 0 18px 40px -28px oklch(0.2 0.048 170 / .5), 0 0 0 1px var(--hair);
  overflow: hidden; color: inherit; text-decoration: none; isolation: isolate;
}
.fw-card__q { display: block; hyphens: auto; overflow-wrap: break-word; font: 600 clamp(1.25rem, 1.05rem + .7vw, 1.55rem)/1.25 var(--ff-heading); letter-spacing: -.02em; max-inline-size: 15ch; margin-top: var(--space-s); transition: translate .5s var(--glide); }
.fw-card__a { display: block; font-size: var(--text-s); color: var(--muted); max-inline-size: 24ch; margin-top: var(--space-s); }
.fw-card__arc { position: absolute; right: -50px; bottom: -170px; inline-size: 360px; aspect-ratio: 1; border-radius: 50%; background: var(--arc); z-index: -1; transition: scale .7s var(--pop); }
.fw-card__img { position: absolute; right: 0; bottom: 0; inline-size: 280px; block-size: 260px; object-fit: cover; clip-path: circle(260px at 100% 100%); z-index: -1; transition: scale .8s var(--glide); transform-origin: 100% 100%; }
.fw-card__go { display: inline-flex; align-items: stretch; margin-block: var(--space-m) var(--space-l); border-radius: 10px; background: var(--arc); color: var(--base-ultra-dark); font: 600 var(--text-s)/1 var(--ff-body); overflow: hidden; transition: box-shadow .3s var(--glide); }
.fw-card__ico { inline-size: 44px; block-size: 44px; display: grid; place-items: center; flex: none; }
.fw-card__lbl { display: grid; grid-template-columns: 0fr; align-items: center; transition: grid-template-columns .45s var(--glide); }
.fw-card__lbl > span { overflow: hidden; white-space: nowrap; min-inline-size: 0; opacity: 0; transition: opacity .25s; }
.fw-card:hover .fw-card__lbl, .fw-card:focus-visible .fw-card__lbl { grid-template-columns: 1fr; }
.fw-card:hover .fw-card__lbl > span, .fw-card:focus-visible .fw-card__lbl > span { opacity: 1; padding-inline: 0 var(--space-m); transition-delay: .1s; }
.fw-card:hover .fw-card__ico svg, .fw-card:focus-visible .fw-card__ico svg { translate: 3px 0; }
.fw-card__ico svg { transition: translate .35s var(--pop); }
.fw-card:hover .fw-card__arc, .fw-card:focus-visible .fw-card__arc { scale: 1.08; }
.fw-card:hover .fw-card__img, .fw-card:focus-visible .fw-card__img { scale: 1.06; }
.fw-card:hover .fw-card__q, .fw-card:focus-visible .fw-card__q { translate: 6px 0; }
.fw__out { text-align: center; margin-inline: auto; padding-block: var(--space-xxl); font: 600 var(--text-xl)/1.4 var(--ff-heading); letter-spacing: -.01em; max-inline-size: 34ch; }

/* ═════════ 3 · Leistungen / Registerkartei ═════════ */
.ls { background: var(--band-paper); padding-block: var(--section-space-l); }
.ls__note { rotate: -3deg; margin-bottom: var(--space-s); }
.kartei__rail { position: relative; }
.kartei__tabs { display: flex; gap: 6px; padding-inline: var(--space-m); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; scroll-behavior: smooth; }
.kartei__tabs::-webkit-scrollbar { display: none; }
.kartei__more { display: none; }
.kartei__tab {
  flex: none; font: 600 var(--text-xs)/1 var(--ff-mono); letter-spacing: .07em; text-transform: uppercase;
  color: var(--base-dark); background: var(--tab); border: 0; cursor: pointer;
  padding: 16px 20px 20px; border-radius: 14px 14px 0 0;
  translate: 0 8px; transition: translate .35s var(--pop), filter .2s;
  filter: saturate(.75) brightness(.97);
}
.kartei__tab:hover { translate: 0 2px; filter: none; }
.kartei__tab[aria-selected="true"] { translate: 0 0; filter: none; }
.kartei__tab:focus-visible { outline-offset: -4px; }
.kartei__card {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-xl);
  background: var(--card); border-radius: 0 var(--radius-l) var(--radius-l) var(--radius-l);
  border-top: 10px solid var(--tab); padding: var(--space-l);
  box-shadow: 0 30px 60px -36px oklch(0.2 0.048 170 / .45), 0 0 0 1px var(--hair);
  position: relative; z-index: 1;
}
.js .kartei__card[hidden] { display: none; }
.kartei__card + .kartei__card { margin-top: var(--space-m); }
.js .kartei__card + .kartei__card { margin-top: 0; }
.kartei__img { margin: 0; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 4.4; background: color-mix(in oklch, var(--tab), transparent 50%); }
.kartei__img { position: relative; }
.kartei__img img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.kartei__img::after { /* curtain in the tab colour: placeholder while loading, then wipes away */
  content: ""; position: absolute; inset: 0; background: var(--tab); transform-origin: right; scale: 0 1; pointer-events: none;
}
.kartei__card.is-loading .kartei__img::after { scale: 1 1; }
.kartei__body { display: flex; flex-direction: column; gap: var(--space-s); padding-block: var(--space-s); }
.kartei__body h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.05; }
.kartei__body > p:not(.label) { color: var(--muted); font-size: var(--text-m); }
.kartei__list { list-style: none; padding: 0; margin: var(--space-s) 0 var(--space-m); }
.kartei__list li { display: flex; justify-content: space-between; gap: var(--space-m); padding: 13px 0; border-top: 1px dashed var(--hair); }
.kartei__list li:last-child { border-bottom: 1px dashed var(--hair); }
.kartei__when { font: 500 var(--text-xs) var(--ff-mono); color: light-dark(var(--primary), var(--primary-light)); white-space: nowrap; }
.kartei__body .draw-link { align-self: start; margin-top: auto; }
@media (prefers-reduced-motion: no-preference) {
  .kartei__card.is-switching .kartei__img::after { animation: curtain .5s cubic-bezier(.7, 0, .2, 1) both; }
  .kartei__card.is-switching .kartei__img img { animation: imgIn .6s var(--glide) both; }
  .kartei__card.is-loading .kartei__img::after { animation: shimmer 1.2s ease-in-out infinite alternate; }
  @keyframes curtain { 0% { scale: 1 1; transform-origin: left; } 20% { scale: 1 1; transform-origin: right; } 100% { scale: 0 1; transform-origin: right; } }
  @keyframes shimmer { to { filter: brightness(1.06); } }
  .kartei__card.is-switching .kartei__body > * { animation: rise .55s var(--glide) both; }
  .kartei__card.is-switching .kartei__body > *:nth-child(2) { animation-delay: .05s; }
  .kartei__card.is-switching .kartei__body > *:nth-child(3) { animation-delay: .1s; }
  .kartei__card.is-switching .kartei__list li { animation: rise .5s var(--glide) both; animation-delay: calc(.15s + var(--n, 0) * .06s); }
  @keyframes imgIn { 0%, 35% { scale: 1.12; } 100% { scale: 1; } }
  @keyframes rise { from { opacity: 0; translate: 0 14px; } }
}

/* ═════════ 4 · Automatisch verbunden ═════════ */
.vb { background: var(--night); color: var(--on-night); border-top: 1px solid var(--hair-night); padding-block: var(--section-space-l); overflow: hidden; }
.vb h2 { color: var(--on-night); }
.vb .sec-head__lede { color: var(--on-night-muted); }
.flow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: clamp(3rem, 9vw, 9rem); margin-top: var(--space-xl); }
.flow__col { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.node {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center;
  background: var(--card); color: var(--clr-text); border: 1px solid transparent; border-radius: var(--radius-l); box-shadow: 0 14px 30px -18px oklch(0 0 0 / .6);
  padding: 14px 16px; transition: border-color .3s, translate .4s var(--pop);
}
.node:hover { border-color: var(--accent); translate: 0 -2px; }
.node b { display: block; color: var(--clr-text); font: 700 var(--text-m)/1.2 var(--ff-heading); letter-spacing: -.01em; }
.node > span:last-child > span { display: block; font-size: var(--text-xs); color: var(--muted); line-height: 1.4; margin-top: 2px; }
.node__ico { display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 12px; background: light-dark(var(--primary-ultra-light), color-mix(in oklch, var(--primary), transparent 55%)); color: light-dark(var(--primary), var(--accent)); }
.node__ico svg { inline-size: 22px; block-size: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hub {
  position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; text-align: center;
  inline-size: 200px; padding: 26px 18px 22px; border-radius: 28px;
  background: var(--accent); color: var(--base-dark);
  box-shadow: 0 0 0 10px color-mix(in oklch, var(--accent), transparent 85%), 0 30px 60px -30px oklch(0 0 0 / .7);
}
.hub__kicker { font: 600 10px/1 var(--ff-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--primary-dark); }
.hub b { font: 800 1.55rem/1.05 var(--ff-heading); letter-spacing: -.035em; margin-bottom: 8px; }
.hub > span:last-child { font: 600 10.5px/1.3 var(--ff-mono); letter-spacing: .08em; text-transform: uppercase; }
.flow__lines { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; pointer-events: none; }
.flow__lines path { fill: none; stroke-width: 2; stroke-linecap: round; }
.flow__lines .ln { stroke: color-mix(in oklch, var(--primary-light), transparent 45%); stroke-dasharray: 1; stroke-dashoffset: 0; }
.flow__lines .pk { stroke: var(--accent); stroke-width: 3.5; stroke-dasharray: .05 1.05; stroke-dashoffset: .05; }
.vb__soft { margin-top: var(--space-xxl); padding: var(--space-m) var(--space-l); background: var(--card); color: var(--clr-text); border-radius: var(--radius-l); box-shadow: 0 14px 30px -18px oklch(0 0 0 / .6); display: grid; grid-template-columns: auto 1fr; gap: var(--space-s) var(--space-l); align-items: center; }
.soft { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.soft li { font: 600 var(--text-xs)/1 var(--ff-mono); letter-spacing: .04em; padding: 10px 14px; border-radius: 999px; background: light-dark(var(--secondary-light), var(--ink-4)); color: var(--clr-text); }
.vb__soft .label--on-color { color: light-dark(var(--primary), var(--accent)); }
@media (prefers-reduced-motion: no-preference) {
  .js .flow .node { opacity: 0; translate: 0 18px; transition: opacity .6s var(--glide) var(--d, 0s), translate .7s var(--glide) var(--d, 0s), border-color .3s; }
  .js .flow.is-in .node { opacity: 1; translate: 0 0; }
  .js .hub { scale: .6; opacity: 0; transition: scale .9s var(--pop) .5s, opacity .4s .5s; }
  .js .flow.is-in .hub { scale: 1; opacity: 1; }
  .js .flow__lines .ln { stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--glide) var(--d, 0s); }
  .js .flow.is-in .flow__lines .ln { stroke-dashoffset: 0; }
  .js .flow.is-in .flow__lines .pk { animation: packet 1.6s ease-in-out var(--pd, 1.5s) 3; }
  @keyframes packet { from { stroke-dashoffset: .05; } to { stroke-dashoffset: -1; } }
}

/* Rechner im Register Gründung */
.calc { background: var(--band-cream); border-radius: var(--radius-m); padding: var(--space-l); display: grid; gap: 10px; align-content: start; }
.calc__title { font: 800 clamp(1.4rem, 1.15rem + .9vw, 1.9rem)/1.05 var(--ff-heading); letter-spacing: -.03em; margin-bottom: 6px; }
.calc__in { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-s); font-size: var(--text-s); color: var(--muted); }
.calc__in output { font: 800 var(--text-xl)/1 var(--ff-heading); letter-spacing: -.02em; color: var(--clr-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__range { inline-size: 100%; accent-color: var(--primary); block-size: 28px; cursor: pointer; }
.calc__bars { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; }
.calc__bars li { display: grid; gap: 5px; }
.calc__name { font: 600 var(--text-xs)/1.3 var(--ff-mono); letter-spacing: .05em; text-transform: uppercase; }
.calc__bar { display: block; block-size: 14px; border-radius: 7px; background: color-mix(in oklch, var(--accent), transparent 35%); overflow: hidden; }
.calc__bar i { display: block; block-size: 100%; inline-size: calc(var(--w) * 100%); background: var(--primary); border-radius: inherit; transition: inline-size .5s var(--glide); }
.calc__bars li.is-best .calc__name::after { content: " · am wenigsten Steuer"; color: light-dark(var(--primary), var(--accent)); }
.calc__val { font-size: var(--text-xs); color: var(--muted); }
.calc__val b { color: var(--clr-text); font-variant-numeric: tabular-nums; }
.calc__verdict { font-weight: 600; font-size: var(--text-s); padding-top: 10px; border-top: 1px dashed var(--hair); }
.calc__fine { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* ═════════ 5 · Steuerjahr ═════════ */
.sj { background: light-dark(var(--band-sky), var(--ink-1)); padding-block: var(--section-space-l); overflow: hidden; }
.sj__head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-l); flex-wrap: wrap; margin-bottom: var(--space-xxl); }
.sj__next { background: var(--card); border-radius: var(--radius-l); padding: 20px 24px; box-shadow: 0 16px 36px -20px oklch(0.2 0.048 170 / .35); display: grid; gap: 4px; min-inline-size: 260px; }
.sj__days { font: 800 clamp(2rem, 1.6rem + 1.6vw, 2.6rem)/1 var(--ff-heading); letter-spacing: -.03em; color: light-dark(var(--primary), var(--accent)); }
.sj__what { font-size: var(--text-s); color: var(--muted); }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); position: relative; }
.track::before, .track::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--hair); }
.track::after { background: var(--primary); right: auto; width: var(--progress, 0%); transition: width 2.2s cubic-bezier(.3, .6, .2, 1); }
.track__m { position: relative; padding-right: 8px; display: flex; flex-direction: column; }
.track__m > .track__txt { flex: 1; }
.track__dot {
  position: relative; z-index: 1; display: grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--hair); font: 600 11px var(--ff-mono); text-transform: uppercase; color: var(--clr-text);
  transition: background .3s, border-color .3s, color .2s, scale .45s var(--pop);
}
.track__dot::after { /* stamp tick */
  content: ""; position: absolute; inset: 13px 12px 15px; border: solid var(--base-dark); border-width: 0 0 4px 4px; rotate: -45deg; scale: 0; transition: scale .35s var(--pop);
}
.track__txt { display: block; font-size: 12.5px; line-height: 1.35; margin-top: 14px; color: var(--muted); hyphens: manual;
  background: var(--card); border-radius: var(--radius-m); padding: 9px 9px 10px; box-shadow: 0 10px 22px -16px oklch(0.2 0.048 170 / .45), 0 0 0 1px var(--hair); }
.track__m.is-now .track__txt { box-shadow: 0 10px 22px -16px oklch(0.2 0.048 170 / .45), 0 0 0 2px var(--primary); }
.track__txt b { display: block; font: 600 11px/1.3 var(--ff-mono); color: var(--clr-text); margin-bottom: 3px; letter-spacing: .02em; }
.track__m.is-done .track__dot { background: var(--accent); border-color: var(--accent); color: transparent; scale: 1.06; }
.track__m.is-done .track__dot::after { scale: 1; }
.track__m.is-now .track__dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 8px color-mix(in oklch, var(--primary), transparent 80%); }
.sj__note { margin-top: var(--space-xl); rotate: -2deg; transform-origin: left; }

/* ═════════ 6 · Ablauf ═════════ */
.ab { background: light-dark(var(--band-brick), var(--ink-1)); color: #fff; padding-block: var(--section-space-l); }
.ab h2, .ab h3 { color: #fff; }
.ab__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: var(--space-xxl); align-items: start; }
.ab__intro { background: light-dark(var(--primary-dark), oklch(0.30 0.08 38)); border-radius: var(--radius-l); padding: var(--space-xl) var(--space-l); box-shadow: 0 30px 50px -30px oklch(0.15 0.06 38 / .6); }
.steps { list-style: none; padding: 0; margin: var(--space-xl) 0 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: var(--line-end, 120px); width: 2px; background: color-mix(in oklch, white, transparent 70%); transform-origin: top; scale: 1 var(--line, 1); transition: scale 1.6s var(--glide); }
.steps__item { position: relative; padding: 0 0 var(--space-l) 44px; }
.steps__item::before { content: ""; position: absolute; left: 0; top: 2px; inline-size: 18px; block-size: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in oklch, var(--accent), transparent 75%); transition: scale .5s var(--pop); }
.steps__item h3 { font-size: calc(var(--h4) * 1.25); line-height: 1.1; margin: 6px 0; }
.steps__end { position: relative; padding-left: 44px; padding-top: var(--space-xs); }
.steps__seal { position: absolute; left: -12px; top: -4px; inline-size: 42px; block-size: 42px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 0 7px color-mix(in oklch, var(--accent), transparent 72%); transition: scale .6s var(--pop); }
.steps__seal svg { inline-size: 24px; block-size: 24px; fill: none; stroke: var(--base-dark); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; transition: stroke-dashoffset .5s ease-out; }
.steps__end h3 { font-size: calc(var(--h4) * 1.25); line-height: 1.1; margin: 4px 0 6px 10px; }
.steps__end p { margin-left: 10px; color: color-mix(in oklch, white, transparent 8%); max-inline-size: 42ch; }
.steps__end .pill { margin: var(--space-m) 0 0 10px; }
.steps__item p { color: color-mix(in oklch, white, transparent 8%); max-inline-size: 42ch; }
.ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-l); align-content: center; }
.way { position: relative; background: var(--card); color: var(--clr-text); border-radius: var(--radius-l); padding: var(--space-l); box-shadow: 0 30px 50px -30px oklch(0.15 0.06 170 / .6); transition: rotate .8s var(--pop), translate .8s var(--pop), opacity .6s; }
.way h3 { color: var(--clr-text); font-size: calc(var(--h4) * 1.25); line-height: 1.1; margin: 8px 0 10px; }
.way p:not(.label) { color: var(--muted); font-size: var(--text-s); }
.way--portal { background: var(--base-dark); color: #fff; margin-left: var(--space-xl); }
.way--portal h3 { color: #fff; }
.way--portal .label { color: var(--accent); }
.way__tag { position: absolute; top: -16px; right: 22px; background: var(--accent); color: var(--base-dark); font: 700 1.25rem/1 var(--ff-hand); padding: 6px 12px; rotate: 3deg; box-shadow: var(--shadow-sm); }
.way__fields { list-style: none; padding: 0; margin: var(--space-m) 0 0; display: grid; gap: 8px; }
.way__fields li { border: 1px solid var(--hair); border-radius: var(--radius-m); padding: 11px 14px; font-size: var(--text-s); color: var(--muted); }
.files { list-style: none; padding: 0; margin: var(--space-m) 0; display: grid; gap: 8px; }
.files li { display: grid; gap: 7px; background: color-mix(in oklch, white, transparent 92%); padding: 11px 14px; border-radius: var(--radius-m); font: 500 var(--text-xs) var(--ff-mono); }
.files__bar { display: block; block-size: 3px; border-radius: 3px; background: color-mix(in oklch, white, transparent 85%); overflow: hidden; }
.files__bar span { display: block; block-size: 100%; background: var(--accent); transform-origin: left; transition: scale 1.2s var(--glide); }
.files li:nth-child(2) .files__bar span { transition-delay: .35s; }
.files li:nth-child(3) .files__bar span { transition-delay: .7s; }
.way__fine { color: color-mix(in oklch, white, transparent 30%) !important; }

/* ═════════ 7 · Kanzlei & Team ═════════ */
.kz { background: light-dark(var(--band-cream), var(--ink-1)); padding-block: var(--section-space-l); overflow-x: clip; }
.kz__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-xxl); align-items: start; }
.kz__intro > p:not(.label) { margin-top: var(--space-m); color: var(--muted); font-size: var(--text-l); }
.kz__place { margin: var(--space-xl) 0 0; position: relative; }
.kz__place img { border-radius: 999px 999px var(--radius-l) var(--radius-l); aspect-ratio: 4 / 3.4; object-fit: cover; inline-size: 100%; }
.kz__place figcaption { position: absolute; left: var(--space-m); bottom: var(--space-m); background: var(--card); color: var(--clr-text); font: 600 var(--text-xs) var(--ff-mono); letter-spacing: .04em; padding: 8px 12px; border-radius: var(--radius-s); }
.team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-l) var(--space-m); padding-top: var(--space-xl); }
.person:nth-child(2) { translate: 0 var(--space-xl); }
.person__img {
  margin: 0; aspect-ratio: 3 / 4; border-radius: var(--radius-l); overflow: hidden; position: relative;
  padding: 12px 12px 0; display: flex; align-items: end;
  background: color-mix(in oklch, var(--tag), transparent 30%);
}
.person__img img { inline-size: 100%; block-size: 100%; object-fit: cover; border-radius: calc(var(--radius-l) - 6px) calc(var(--radius-l) - 6px) 0 0; transform-origin: bottom; transition: scale .8s var(--glide); }
.person:hover .person__img img { scale: 1.05; }
/* Door plate, like the brass signs at a Spittelberg house entrance */
.person__tag {
  display: grid; gap: 3px; position: relative; z-index: 1; margin: -30px 10px 0; padding: 11px 26px 12px;
  background: var(--card); color: var(--clr-text); border-radius: 6px; text-align: center;
  border-bottom: 4px solid var(--tag);
  box-shadow: 0 14px 28px -16px oklch(0.2 0.048 170 / .55), 0 0 0 1px var(--hair);
  background-image: radial-gradient(circle at 12px 50%, var(--neutral-semi-light) 2.5px, transparent 3.5px), radial-gradient(circle at calc(100% - 12px) 50%, var(--neutral-semi-light) 2.5px, transparent 3.5px);
  transition: translate .8s var(--pop), opacity .5s;
}
.person__tag b { font: 700 var(--text-m)/1.15 var(--ff-heading); letter-spacing: -.02em; }
.person__tag span { font: 600 10.5px/1.2 var(--ff-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); hyphens: manual; }
.person { container-type: inline-size; }
@container (max-width: 190px) {
  .person__tag { margin-inline: 4px; padding-inline: 20px; }
  .person__tag b { font-size: var(--text-s); }
  .person__tag span { font-size: 9.5px; letter-spacing: .03em; }
}
.person__txt { hyphens: auto; overflow-wrap: break-word; margin-top: var(--space-s); font-size: var(--text-s); color: var(--muted); }
.kz__right { display: grid; gap: var(--space-xxl); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-m); border-top: 1px solid var(--hair); padding-top: var(--space-l); }
.facts li { display: grid; gap: 6px; }
.facts b { font: 800 clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem)/1 var(--ff-heading); letter-spacing: -.03em; color: light-dark(var(--primary), var(--accent)); }
.facts span { font-size: var(--text-s); color: var(--muted); }

/* ═════════ 8 · Bewertungen + Kontakt ═════════ */
.ko { background: var(--band-paper); padding-block: var(--section-space-l); }
.revs { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--hair); margin-bottom: var(--section-space-m); }
.revs > * { padding: var(--space-l) var(--space-m); border-left: 1px solid var(--hair); margin: 0; }
.revs > :first-child { border-left: 0; padding-left: 0; display: grid; gap: 6px; align-content: center; }
.revs__num { font: 800 clamp(3rem, 2.4rem + 2vw, 4rem)/1 var(--ff-heading); letter-spacing: -.04em; color: light-dark(var(--primary), var(--accent)); }
.stars { display: flex; gap: 3px; }
.stars i { inline-size: 18px; block-size: 18px; background: oklch(0.80 0.16 80); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); transition: scale .4s var(--pop); }
.rev p { font-size: var(--text-m); hyphens: auto; overflow-wrap: break-word; }
.rev footer { margin-top: var(--space-s); color: var(--muted); }
.ko__head { margin-bottom: var(--space-l); }
.ko__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-m); }
.book { background: var(--band-cream); border-radius: var(--radius-l); padding: var(--space-l); }
.book h3, .call h3 { font-size: calc(var(--h4) * 1.25); line-height: 1.1; margin: 6px 0 var(--space-m); }
.book__group { border: 0; padding: 0; margin: 0 0 var(--space-m); }
.book__group legend { font: 600 var(--text-xs) var(--ff-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--slots { display: grid; grid-template-columns: repeat(4, 1fr); }
.chip { font: 600 var(--text-xs) var(--ff-mono); border: 1px solid var(--hair); background: var(--card); color: var(--clr-text); border-radius: var(--radius-m); padding: 11px 12px; cursor: pointer; transition: background .2s, color .2s, scale .3s var(--pop), border-color .2s; }
.chip:hover { border-color: var(--primary); }
.chip[aria-pressed="true"] { background: light-dark(var(--base-dark), var(--primary)); color: #fff; border-color: light-dark(var(--base-dark), var(--primary)); scale: 1.05; }
.chip:disabled { opacity: .4; text-decoration: line-through; cursor: default; }
.book__msg, .cb__msg { min-block-size: 1.4em; margin-top: var(--space-s); font-size: var(--text-s); color: light-dark(var(--primary-dark), var(--primary-light)); }
.book__fine { font-size: var(--text-xs); color: var(--muted); }
.call { background: var(--band-sky); border-radius: var(--radius-l); padding: var(--space-l); }
.call__open { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--text-xs) var(--ff-mono); color: var(--muted); }
.call__open::before { content: ""; inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--neutral); }
.call__open.is-open { color: light-dark(var(--success-dark), var(--success-light)); }
.call__open.is-open::before { background: var(--success); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--success), transparent 40%); } 100% { box-shadow: 0 0 0 10px transparent; } }
.call__mail { display: inline-block; margin: -8px 0 var(--space-m); text-transform: none; letter-spacing: 0; font-size: var(--text-s); }
.cb__fine { font-size: var(--text-xs); color: var(--muted); }
.call__tel { display: block; font: 800 clamp(1.6rem, 1.3rem + 1vw, 2rem)/1.1 var(--ff-heading); letter-spacing: -.02em; color: light-dark(var(--primary), var(--accent)); text-decoration: none; margin-bottom: var(--space-m); }
.hours { inline-size: 100%; border-collapse: collapse; font-size: var(--text-s); }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px dashed var(--hair); text-align: left; font-weight: 400; }
.hours td { text-align: right; font: 500 var(--text-xs) var(--ff-mono); }
.cb { margin-top: var(--space-m); }
.cb summary { cursor: pointer; list-style: none; display: inline-block; }
.cb summary::-webkit-details-marker { display: none; }
.cb__form { display: grid; gap: var(--space-s); margin-top: var(--space-m); }
.cb[open] .cb__form { animation: rise .45s var(--glide); }
.field__input { background: var(--card); color: var(--clr-text); min-inline-size: 0; inline-size: 100%; }
.map { margin: 0; position: relative; border-radius: var(--radius-l); overflow: hidden; min-block-size: 420px; }
.map img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; transition: scale 1.2s var(--glide); }
.map:hover img { scale: 1.04; }
.map__label { position: absolute; left: var(--space-s); right: var(--space-s); bottom: var(--space-s); background: var(--card); color: var(--clr-text); border-radius: var(--radius-m); padding: 16px 18px; display: grid; gap: 4px; font-size: var(--text-s); }
.map__label span { color: var(--muted); }
.map__label .draw-link { justify-self: start; margin-top: 6px; }

/* ═════════ Footer ═════════ */
.ftr { background: var(--night); color: var(--on-night-muted); padding-block: var(--space-xl); }
.ftr__grid { display: flex; flex-wrap: wrap; gap: var(--space-l); align-items: center; justify-content: space-between; }
.ftr__nap { font-style: normal; font-size: var(--text-s); line-height: 1.6; }
.ftr a:not(.logo) { color: var(--on-night); text-decoration: none; }
.ftr a:not(.logo):hover { color: var(--accent); }
.ftr__links { display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-m); font-size: var(--text-s); }

/* ═════════ Barrieretool ═════════ */
.is-mockup .a11y-bar { display: none; }
.a11y-bar { position: fixed; left: 1rem; bottom: 1rem; z-index: calc(var(--z-sticky) + 10); display: flex; flex-direction: column; align-items: start; gap: .7rem; }
.a11y-launcher {
  display: grid; place-items: center; inline-size: 3.1rem; block-size: 3.1rem; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--primary); color: #fff; box-shadow: inset 0 0 0 3px #fff, 0 6px 22px -6px oklch(0.2 0.06 170 / .6);
  transition: scale .3s var(--pop), background .2s;
}
.a11y-launcher:hover, .a11y-launcher[aria-expanded="true"] { scale: 1.08; background: var(--base-dark); }
.a11y-launcher svg { inline-size: 1.45rem; block-size: 1.45rem; }
.a11y-launcher__label { display: none; }
.a11y-backdrop { position: fixed; inset: 0; z-index: calc(var(--z-sticky) + 8); background: color-mix(in oklch, var(--base-ultra-dark), transparent 55%); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); animation: fadeIn .3s var(--glide); }
.a11y-backdrop[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.a11y-panel {
  inline-size: min(21rem, calc(100vw - 2rem)); padding: 1.35rem 1.35rem 1.2rem; position: relative; overflow: hidden;
  background: var(--night); color: var(--on-night); border-radius: 22px;
  box-shadow: 0 40px 80px -24px oklch(0.1 0.048 170 / .7), 0 0 0 1px var(--hair-night);
  transform-origin: bottom left; animation: panelIn .45s var(--pop);
}
.a11y-panel::before { /* apricot disc, same language as the hero */
  content: ""; position: absolute; right: -60px; top: -70px; inline-size: 150px; aspect-ratio: 1; border-radius: 50%; background: var(--accent); opacity: .95;
}
@keyframes panelIn { from { opacity: 0; scale: .85; translate: 0 12px; } }
.a11y-panel[hidden] { display: none; }
.a11y-panel > * { position: relative; }
.a11y-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .2rem; }
.a11y-panel__head strong { font: 800 1.6rem/1 var(--ff-heading); letter-spacing: -.03em; }
.a11y-panel__dot { display: inline-block; inline-size: .32em; block-size: .32em; border-radius: 50%; background: var(--accent); margin-left: 2px; }
.a11y-panel__close { inline-size: 2.3rem; block-size: 2.3rem; border-radius: 50%; border: 0; background: var(--base-dark); color: var(--accent); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: rotate .3s var(--pop); }
.a11y-panel__close:hover { rotate: 90deg; }
.a11y-panel fieldset { border: 0; border-top: 1px dashed var(--hair-night); margin: 1rem 0 0; padding: .9rem 0 0; }
.a11y-panel legend { font: 600 11px var(--ff-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--primary-light); padding-right: .6rem; }
.a11y-panel__choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: .5rem; padding: 4px; border-radius: 999px; background: color-mix(in oklch, white, transparent 92%); }
.a11y-panel__choices button { padding: .5rem 0; border: 0; border-radius: 999px; background: transparent; color: inherit; font: 800 1rem var(--ff-heading); cursor: pointer; transition: background .2s, color .2s; }
.a11y-panel__choices button:nth-child(2) { font-size: 1.15rem; } .a11y-panel__choices button:nth-child(3) { font-size: 1.3rem; }
.a11y-panel__choices button:hover { background: color-mix(in oklch, white, transparent 88%); }
.a11y-panel__choices button[aria-pressed="true"] { background: var(--accent); color: var(--base-dark); }
.a11y-switch { display: flex; justify-content: space-between; align-items: center; inline-size: 100%; padding: .35rem 0; border: 0; background: none; color: inherit; font: 500 var(--text-s) var(--ff-body); cursor: pointer; text-align: left; }
.a11y-switch::after {
  content: ""; flex: none; inline-size: 2.8rem; block-size: 1.55rem; border-radius: 1rem;
  background: radial-gradient(circle at 28% 50%, #fff .52rem, transparent calc(.52rem + 1px)), color-mix(in oklch, white, transparent 80%);
  transition: background .25s;
}
.a11y-switch[aria-pressed="true"]::after { background: radial-gradient(circle at 72% 50%, var(--base-dark) .52rem, transparent calc(.52rem + 1px)), var(--accent); }
.a11y-panel :focus-visible { outline-color: var(--accent); }

/* Back to top: same round language as the toolbar, mirrored on the right */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: calc(var(--z-sticky) + 9);
  display: grid; place-items: center; inline-size: 3.1rem; block-size: 3.1rem; border-radius: 50%;
  background: var(--night); color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent), 0 6px 22px -6px oklch(0.2 0.06 170 / .6);
  opacity: 0; translate: 0 16px; pointer-events: none; transition: opacity .3s, translate .4s var(--pop), scale .3s var(--pop);
}
.to-top.is-shown { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { scale: 1.08; color: var(--accent); }
.to-top svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: translate .3s var(--pop); }
.to-top:hover svg { translate: 0 -2px; }
.to-top:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.is-mockup .to-top, .menu-open .to-top { display: none; }

/* In the mobile menu the toolbar becomes a menu row; the panel opens inline. */
.nav .a11y-bar { position: static; display: block; margin-top: var(--space-l); }
.nav .a11y-launcher {
  inline-size: 100%; block-size: auto; display: flex; align-items: center; gap: .8rem; border-radius: 0; scale: 1 !important;
  background: none !important; box-shadow: none; padding: 14px 0; border-top: 1px solid var(--hair-night); border-bottom: 1px solid var(--hair-night);
  font: 600 var(--text-m) var(--ff-body); text-align: left;
}
.nav .a11y-launcher svg { inline-size: 1.9rem; block-size: 1.9rem; padding: 4px; border-radius: 50%; background: var(--primary); }
.nav .a11y-launcher__label { display: inline; }
.nav .a11y-launcher::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--accent); transition: rotate .3s var(--pop); }
.nav .a11y-launcher[aria-expanded="true"]::after { rotate: 45deg; }
.nav .a11y-panel { inline-size: 100%; margin-top: .8rem; background: var(--base-ultra-dark); transform-origin: top; animation: rise .35s var(--glide); }
.nav .a11y-panel::before { display: none; }

/* ═════════ Scroll reveals ═════════ */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; translate: 0 28px; transition: opacity .8s var(--glide) var(--d, 0s), translate .9s var(--glide) var(--d, 0s); }
  .js .rv.is-in { opacity: 1; translate: 0 0; }
  .js section [data-split]:not(.is-in) .w > span { translate: 0 105%; }
  .js section [data-split].is-in .w > span { translate: 0 0; }
  .js .fw-card .fw-card__arc { scale: 0; transition: scale 1s var(--pop) calc(var(--d, 0s) + .25s); }
  .js .fw-card.is-in .fw-card__arc { scale: 1; }
  .js .fw-card .fw-card__img { clip-path: circle(0 at 100% 100%); transition: clip-path 1s cubic-bezier(.6, 0, .2, 1) calc(var(--d, 0s) + .4s), scale .8s var(--glide); }
  .js .fw-card.is-in .fw-card__img { clip-path: circle(260px at 100% 100%); }
  .js .fw-card.is-in:hover .fw-card__arc { scale: 1.08; transition-delay: 0s; }
  .js [data-steps] { --line: 0; }
  .js [data-steps].is-in { --line: 1; }
  .js .steps__item { opacity: 0; translate: -16px 0; transition: opacity .6s var(--glide), translate .7s var(--glide); }
  .js .steps__item::before { scale: 0; }
  .js [data-steps].is-in .steps__item { opacity: 1; translate: 0 0; }
  .js [data-steps].is-in .steps__item::before { scale: 1; }
  .js [data-steps].is-in .steps__item:nth-child(2), .js [data-steps].is-in .steps__item:nth-child(2)::before { transition-delay: .45s; }
  .js [data-steps].is-in .steps__item:nth-child(3), .js [data-steps].is-in .steps__item:nth-child(3)::before { transition-delay: .9s; }
  .js .steps__end { opacity: 0; translate: -16px 0; transition: opacity .6s var(--glide) 1.35s, translate .7s var(--glide) 1.35s; }
  .js [data-steps].is-in .steps__end { opacity: 1; translate: 0 0; }
  .js .steps__seal { scale: 0; transition-delay: 1.45s; }
  .js [data-steps].is-in .steps__seal { scale: 1; }
  .js .steps__seal svg { stroke-dashoffset: 24; transition-delay: 1.9s; }
  .js [data-steps].is-in .steps__seal svg { stroke-dashoffset: 0; }
  .js .way { opacity: 0; translate: 0 40px; rotate: calc(var(--tilt, 0) * 1deg); }
  .js .way.is-in { opacity: 1; translate: 0 0; rotate: 0deg; }
  .js .way--portal { transition-delay: .25s; }
  .js .files__bar span { scale: 0 1; }
  .js .way.is-in .files__bar span { scale: 1 1; }
  .js .person { opacity: 0; translate: 0 40px; transition: opacity .7s var(--glide) var(--d, 0s), translate .9s var(--glide) var(--d, 0s); }
  .js .person.is-in { opacity: 1; translate: 0 0; }
  .js .person:nth-child(2).is-in { translate: 0 var(--space-xl); }
  .js .person__tag { opacity: 0; translate: 0 24px; transition-delay: calc(var(--d, 0s) + .35s); }
  .js .person.is-in .person__tag { opacity: 1; translate: 0 0; }
  .js .stars i { scale: 0; }
  .js .revs.is-in .stars i { scale: 1; }
  .js .revs.is-in .stars i:nth-child(2) { transition-delay: .1s; } .js .revs.is-in .stars i:nth-child(3) { transition-delay: .2s; }
  .js .revs.is-in .stars i:nth-child(4) { transition-delay: .3s; } .js .revs.is-in .stars i:nth-child(5) { transition-delay: .4s; }
}

/* User override from the toolbar: same end state as prefers-reduced-motion */
html[data-motion="reduce"] { scroll-behavior: auto; }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }

/* ═════════ Responsive for sections ═════════ */
@media (max-width: 1100px) {
  .ko__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map { grid-column: 1 / -1; min-block-size: 320px; }
  .track { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: var(--space-l); }
  .track::before, .track::after { display: none; }
}
@media (max-width: 960px) {
  .framed::before, .framed::after { display: none; }
  .fw__grid { grid-template-columns: 1fr; }
  .fw-card { min-block-size: 400px; padding-inline: var(--space-m); }
  .ftr { padding-bottom: calc(var(--space-xl) + 64px); } /* room for the floating toolbar and to-top buttons */
  .fw-card__img { inline-size: 220px; block-size: 210px; clip-path: circle(210px at 100% 100%); }
  .js .fw-card.is-in .fw-card__img { clip-path: circle(210px at 100% 100%); }
  .fw-card__arc { inline-size: 280px; bottom: -120px; }
  .kartei__card { grid-template-columns: minmax(0, 1fr); gap: var(--space-m); padding: var(--space-m); }
  .kartei__img { aspect-ratio: 16 / 10; }
  .kartei__rail { margin-inline: calc(var(--wrapper-padding-inline) * -1); }
  .kartei__tabs { padding-inline: var(--wrapper-padding-inline) 64px; }
  /* Scroll hint: tabs fade out at the right edge, a round arrow sits on top until the end is reached */
  .kartei__rail.is-scrollable:not(.is-end) .kartei__tabs { mask-image: linear-gradient(90deg, #000 calc(100% - 90px), transparent calc(100% - 20px)); }
  .kartei__rail.is-scrollable.is-end .kartei__tabs { mask-image: linear-gradient(270deg, #000 calc(100% - 90px), transparent calc(100% - 20px)); }
  .kartei__more {
    position: absolute; right: 10px; top: 4px; z-index: 2; display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 50%;
    border: 0; cursor: pointer; background: var(--base-dark); color: var(--accent);
    box-shadow: 0 8px 18px -8px oklch(0.2 0.048 170 / .6); transition: opacity .3s, scale .3s var(--pop), right .35s var(--glide);
  }
  .kartei__more svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: rotate .35s var(--pop); }
  /* At the end of the rail the button jumps to the left edge and points back */
  .kartei__rail.is-end .kartei__more { right: calc(100% - 50px); }
  .kartei__rail.is-end .kartei__more svg { rotate: 180deg; }
  .kartei__rail:not(.is-scrollable) .kartei__more { opacity: 0; scale: .6; pointer-events: none; }
  @media (prefers-reduced-motion: no-preference) {
    .kartei__rail.is-scrollable:not(.is-end):not(.was-scrolled) .kartei__more { animation: nudge 1.4s var(--glide) .6s 3; }
    @keyframes nudge { 50% { translate: 6px 0; } }
  }
  .ab__grid, .kz__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 56px; justify-items: stretch; }
  .hub { justify-self: center; }
  .flow__lines { display: none; }
  .hub::before, .hub::after { content: ""; position: absolute; left: 50%; inline-size: 2px; block-size: 46px; background: linear-gradient(var(--accent) 40%, transparent 0) 0 0 / 2px 8px; }
  .hub::before { bottom: calc(100% + 12px); } .hub::after { top: calc(100% + 12px); }
  .vb__soft { grid-template-columns: 1fr; }
  .way--portal { margin-left: 0; }
  .team { grid-template-columns: 1fr 1fr; }
  .person:nth-child(2), .js .person:nth-child(2).is-in { translate: 0 0; }
  .person:nth-child(3) { grid-column: 1 / -1; justify-self: center; inline-size: calc(50% - var(--space-m) / 2); }
  .revs { grid-template-columns: 1fr; }
  .revs > * { border-left: 0; padding-inline: 0; border-top: 1px solid var(--hair); }
  .revs > :first-child { border-top: 0; }
  .ko__grid { grid-template-columns: minmax(0, 1fr); }
  .track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chips--slots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .team { grid-template-columns: minmax(0, 1fr); gap: var(--space-l); }
  .person, .person:nth-child(3) { inline-size: auto; justify-self: stretch; display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: var(--space-m); align-items: start; }
  .person__img { grid-row: span 2; aspect-ratio: 3 / 4; padding: 8px 8px 0; }
  .person__tag { margin: 8px 0 0; text-align: left; padding-inline: 14px; background-image: none; }
  .facts { grid-template-columns: 1fr; }
}

/* Paper grain: grey fractal noise at low alpha, layered over every band colour (not over photos or text).
   Grey lightens dark bands and darkens light ones by the same small amount, so one tile serves both modes. */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 .09'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body, .hdr, .hero, .fw, .ls, .vb, .sj, .ab, .kz, .ko, .ftr { background-image: var(--grain); }

/* Narrow phones: keep the card text clear of the photo, and the "Eingereicht" card off the panel title */
@media (max-width: 400px) {
  .fw-card { min-block-size: 460px; }
  .dash-wrap { margin-top: 30px; }
}

/* Larger text (A+ / A++) on desktop widths: the header row no longer fits, so the portal pill gives way
   (portal stays reachable in the footer); "Termin buchen" always stays visible. */
@media (min-width: 961px) and (max-width: 1360px) {
  html[data-font-scale] .hdr__portal { display: none; }
  html[data-font-scale="130"] .hdr__in { gap: var(--space-m); }
  html[data-font-scale="130"] .nav__list { gap: var(--space-s); }
}

/* Largest text step on the narrowest phones: let labels and pills wrap instead of pushing the layout wider */
@media (max-width: 400px) {
  html[data-font-scale="130"] .kartei__when { white-space: normal; text-align: right; }
  html[data-font-scale] .pill { max-inline-size: 100%; text-align: center; }
  html[data-font-scale] .kartei__body p { hyphens: auto; overflow-wrap: break-word; }
  html[data-font-scale] .call__mail { overflow-wrap: anywhere; }
}
