/* mende.info – every value comes from design-system/mende-info/MASTER.md (version 2) */

/* ---------- font (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: 'Geist'; src: url('../fonts/geist-latin-ext-wght.woff2') format('woff2-variations'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; src: url('../fonts/geist-latin-wght.woff2') format('woff2-variations'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: 'Geist Fallback'; src: local('Helvetica Neue'), local('Helvetica'), local('Arial'); size-adjust: 101%; ascent-override: 93%; descent-override: 24%; line-gap-override: 0%; }

/* ---------- tokens ---------- */
:root {
  --black: #000000;
  --white: #ffffff;
  --surface: #f2f2f2;
  --surface-dark: #1a1a1a;
  --ink: #1d1d1f;
  --muted: #5f5f64;
  --muted-dark: #a1a1a6;
  --gold: #dac78d;
  --on-gold-muted: #4a3f22;
  --line-dark: #333333;
  --error: #e8a3a3;

  --font: 'Geist', 'Geist Fallback', -apple-system, 'Helvetica Neue', Helvetica, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.3125rem, 1.1rem + 0.6vw, 1.75rem);
  --step-mid: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem);
  --step-head: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  --step-display: clamp(4.5rem, 15.2vw, 17rem);

  --margin: clamp(1rem, 2.5vw, 2.5rem);
  --gutter: clamp(0.75rem, 1.6vw, 1.5rem);
  --section: clamp(5rem, 11vw, 10rem);
  --pad: clamp(1.5rem, 3.2vw, 3rem);
  --radius: clamp(1.25rem, 2vw, 1.75rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--black); } /* the canvas: a phone shows it when the page is pulled past the top, and the page starts black */
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; letter-spacing: -0.005em; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, blockquote, ul, ol, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
input { font: inherit; }
a { color: inherit; }
a, button, label, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
/* controls are not text: no selection and no callout on a long press (body text and the e-mail address stay selectable) */
button, .btn, .nav a, .menu__links a, .menu__top a, summary, .option, .checkq label { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:target { scroll-margin-top: 1.5rem; }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hero :focus-visible, .cv :focus-visible, .contact :focus-visible, .brand--dark :focus-visible { outline-color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 10; padding: 0.75rem 1rem; background: var(--gold); color: var(--black); border-radius: 999px; }
.skip:focus { top: var(--margin); }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 600; text-wrap: balance; hyphens: none; }
.head { font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.03em; }
.lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; }
p { text-wrap: pretty; }
blockquote { hanging-punctuation: first; }
a[href^='tel:'] { white-space: nowrap; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem; border-radius: 999px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform 140ms var(--ease-out); }
.btn:active, .nav__toggle:active { transform: scale(0.97); }
.btn--gold { position: relative; overflow: hidden; isolation: isolate; background: var(--gold); color: var(--black); transition: transform 140ms var(--ease-out), color 260ms var(--ease-out), translate 500ms var(--ease-out); }
.btn--gold::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--black); translate: -101% 0; transition: translate 360ms var(--ease-expo); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--black { background: var(--black); color: var(--white); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.link--quiet { text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn--gold:hover { color: var(--white); }
  .btn--gold:hover::before { translate: 0 0; }
  .timeline__entry:hover { translate: 6px 0; }
  .timeline__entry:hover .timeline__year { color: var(--white); }
  .link:hover { text-decoration-color: currentColor; }
  .contact__mail:hover { color: var(--gold); }
}

/* ---------- shared section frame ---------- */
.why, .figures, .cv, .method, .services, .books, .voices { padding: var(--section) var(--margin); }

/* ================================================================
   Hero
   ================================================================ */
.hero { position: relative; overflow: clip; min-height: 100svh; display: flex; flex-direction: column; padding: 0 var(--margin); background: var(--black); color: var(--white); }
.nav { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.nav__mark { font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.nav__links { display: none; }
.nav__cta { display: none; }
.nav__toggle { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.2rem; border-radius: 999px; background: var(--surface-dark); color: var(--white); font-weight: 500; transition: transform 140ms var(--ease-out); }
.hero { padding-left: max(var(--margin), env(safe-area-inset-left)); padding-right: max(var(--margin), env(safe-area-inset-right)); }
.nav { padding-top: max(1rem, env(safe-area-inset-top)); }
html:not(.js) .nav__toggle { display: none; }
html:not(.js) .nav { flex-wrap: wrap; }
html:not(.js) .nav__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; width: 100%; }

/* sticky bar: hidden above the viewport until the hero has gone */
.stickybar { position: fixed; top: 0; left: 0; right: 0; z-index: 15; background: var(--black); color: var(--white); padding: 0 max(var(--margin), env(safe-area-inset-right)) 0 max(var(--margin), env(safe-area-inset-left)); transform: translateY(-100%); visibility: hidden; transition: transform 320ms var(--ease-out), visibility 0s linear 320ms; }
.stickybar.is-shown { transform: none; visibility: visible; transition-delay: 0s; }
.stickybar .nav { padding-block: 0.75rem; }
html:not(.js) .stickybar { display: none; }

/* phone menu */
.menu { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; padding: max(1rem, env(safe-area-inset-top)) var(--margin) max(2rem, env(safe-area-inset-bottom)); background: var(--black); color: var(--white); overflow-y: auto; overscroll-behavior: contain; }
.menu[hidden] { display: none; }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu__links { display: grid; gap: 0.35rem; margin-top: clamp(3rem, 12vh, 6rem); }
.menu__links a { display: block; padding-block: 0.2rem; font-size: var(--step-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; text-decoration: none; }
.menu__links a:active { opacity: 0.55; }
.menu__foot { display: grid; gap: 1.25rem; justify-items: start; margin-top: auto; padding-top: 3rem; color: var(--muted-dark); }
.menu__foot a:not(.btn) { color: var(--white); }
.hero__stage { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
.hero__intro { position: relative; z-index: 2; padding-top: 1.5rem; }
.hero__role { font-size: var(--step-lead); line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; max-width: 22ch; }
.hero__text { margin-top: 1rem; color: var(--muted-dark); max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.hero__portrait { grid-row: 2 / 4; grid-column: 1; align-self: end; justify-self: center; position: relative; z-index: 1; width: min(100%, 26rem); margin-top: 1rem; transition: transform 700ms var(--ease-out); }
.hero__portrait img { width: 100%; height: auto; }
.hero__name { grid-row: 3; grid-column: 1; position: relative; z-index: 2; font-size: 23vw; line-height: 0.84; letter-spacing: -0.055em; font-weight: 600; margin-bottom: 0.04em; margin-left: -0.085em; transform-origin: 50% 100%; transition: transform 700ms var(--ease-out); }
.hero__word { display: inline-block; white-space: nowrap; }
.hero__ch { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__ch > span { display: inline-block; }

@media (min-width: 48em) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; padding-block: 1.5rem; }
  .nav__links { display: flex; gap: clamp(1.25rem, 2.5vw, 2.25rem); font-size: var(--step-small); }
  .nav__cta { display: inline-flex; justify-self: end; min-height: 3rem; padding: 0 1.4rem; }
  .nav__toggle { display: none; }
  .menu { display: none; }
  .stickybar .nav { padding-block: 0.85rem; }
  .stickybar .nav__cta { min-height: 2.75rem; padding: 0 1.2rem; }
  .hero__stage { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); grid-template-rows: 1fr auto; }
  .hero__intro { grid-column: 1 / 7; grid-row: 1; align-self: center; padding: 2rem 0 4rem; }
  .hero__portrait { grid-column: 6 / 13; grid-row: 1 / 3; width: auto; height: min(84svh, 62rem); margin: 0; justify-self: end; }
  .hero__portrait img { width: auto; height: 100%; }
  .hero__name { grid-column: 1 / -1; grid-row: 2; font-size: var(--step-display); white-space: nowrap; }
}
@media (min-width: 64em) {
  .hero__intro { grid-column: 1 / 6; }
  .hero__portrait { grid-column: 6 / 12; justify-self: center; }
}

/* ================================================================
   Tunnel: own pictures fly towards the visitor (static grid without script or with reduced motion)
   ================================================================ */
.tunnel { position: relative; padding: var(--section) var(--margin); background: var(--black); color: var(--white); }
.tunnel__stage { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.tunnel__text { max-width: 44rem; margin-inline: auto; text-align: center; }
.tunnel__text p { margin-top: 1rem; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; color: var(--muted-dark); }
.tunnel__space { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.tunnel__card { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: clip; background: var(--surface-dark); }
.tunnel__card img { width: 100%; height: 100%; object-fit: cover; }
.tunnel__card--book { background: var(--surface); }
.tunnel__card--book img { object-fit: contain; padding: 12%; }

@media (min-width: 48em) {
  .tunnel__space { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tunnel.is-live { height: 220vh; padding: 0; }
.tunnel.is-live .tunnel__stage { position: sticky; top: 0; height: 100svh; overflow: clip; display: grid; place-items: center; perspective: 900px; }
.tunnel.is-live .tunnel__text { position: relative; z-index: 2; margin-inline: var(--margin); padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 3rem); border-radius: var(--radius); background: var(--black); }
.tunnel.is-live .tunnel__space { position: absolute; inset: 0; z-index: 1; display: block; transform-style: preserve-3d; pointer-events: none; }
.tunnel.is-live .tunnel__card { position: absolute; left: 50%; top: 50%; width: clamp(8rem, 38vw, 11rem); opacity: 0; transform: translate(-50%, -50%); will-change: transform, opacity; }

@media (min-width: 48em) {
  .tunnel.is-live .tunnel__stage { perspective: 1200px; }
  .tunnel.is-live .tunnel__card { width: clamp(11rem, 18vw, 17rem); }
}

/* ================================================================
   Section header: the same structure on every section
   ================================================================ */
.shead { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.shead p { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; color: var(--muted); max-width: 34ch; }
.cv .shead p { color: var(--muted-dark); }
.voices .shead p { color: var(--on-gold-muted); }

@media (min-width: 48em) {
  .shead { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
  .shead h2 { grid-column: 1 / 6; }
  .shead p { grid-column: 7 / 13; }
}

/* ================================================================
   Why: picture beside the letter, profile facts beneath
   ================================================================ */
.why__body { display: grid; gap: 2.5rem; }
.why__letter { display: grid; gap: 1.1rem; align-content: start; }
.why__letter p { color: var(--muted); }
.why__signature { width: min(13rem, 55%); margin-top: 0.75rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .why__signature[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1500ms var(--ease-expo) 300ms; }
  .js .why__signature[data-reveal].is-in { clip-path: inset(0 -2% 0 0); }
}
.why__frame { border-radius: var(--radius); overflow: clip; aspect-ratio: 4 / 3; }
.why__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 20%; }
.why__picture figcaption { margin-top: 0.9rem; font-size: var(--step-small); color: var(--muted); }
.profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem var(--gutter); margin-top: clamp(2.5rem, 5vw, 4rem); padding: var(--pad); border-radius: var(--radius); background: var(--surface); }
.profile dt { font-size: var(--step-small); color: var(--muted); }
.profile dd { margin: 0.35rem 0 0; font-weight: 500; }

@media (min-width: 48em) {
  .why__body { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .why__picture { grid-column: 1 / 8; }
  .why__letter { grid-column: 8 / 13; padding-left: clamp(0rem, 2vw, 2rem); }
  .profile { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .profile dd { font-size: var(--step-lead); letter-spacing: -0.015em; line-height: 1.25; }
}

/* ================================================================
   Figures: board of unequal tiles
   ================================================================ */
.figures { background: var(--surface); }
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0.75rem; }
.board .tile:not(.tile--photo) { padding: 1.75rem 1.25rem; }
.tile { border-radius: var(--radius); padding: var(--pad); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 12rem; }
.tile--white { background: var(--white); }
.tile--black { background: var(--black); color: var(--white); }
.tile--photo { grid-column: 1 / -1; padding: 0; overflow: clip; aspect-ratio: 4 / 5; }
.tile--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.tile__figure { font-size: var(--step-head); line-height: 1; letter-spacing: -0.04em; font-weight: 600; font-variant-numeric: tabular-nums; }
.tile__text { color: var(--muted); max-width: 24ch; }
.tile--black .tile__text { color: var(--muted-dark); }

@media (min-width: 48em) {
  .board { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(17rem, auto)); gap: var(--gutter); }
  .board .tile:not(.tile--photo) { padding: var(--pad); }
  .tile--photo { grid-column: 1 / 6; grid-row: 1 / 3; aspect-ratio: auto; }
  .tile:nth-child(2) { grid-column: 6 / 10; grid-row: 1; }
  .tile:nth-child(3) { grid-column: 10 / 13; grid-row: 1; }
  .tile:nth-child(4) { grid-column: 6 / 9; grid-row: 2; }
  .tile:nth-child(5) { grid-column: 9 / 13; grid-row: 2; }
}

/* ================================================================
   CV: a timeline. The axis fills in gold as the reader scrolls past the stations.
   ================================================================ */
.cv { background: var(--black); color: var(--white); }
.timeline { --year-w: 3.25rem; --spine-w: 1.5rem; --gap: 0.75rem; position: relative; }
.timeline__list { display: grid; row-gap: 1.5rem; }
.timeline::before, .timeline__fill { content: ''; position: absolute; top: 1.4rem; bottom: 1.4rem; left: calc(var(--year-w) + var(--gap) + var(--spine-w) / 2 - 2px); width: 4px; border-radius: 2px; } /* the gap between year and spine counts too */
.timeline::before { background: var(--line-dark); }
.timeline__fill { background: var(--gold); transform-origin: 50% 0; transform: scaleY(0); } /* the script scales it up to the reading line */
html:not(.js) .timeline__fill { transform: none; }
.timeline__group { grid-column: 1 / -1; padding: 1.5rem 0 0.25rem calc(var(--year-w) + var(--spine-w) + 2 * var(--gap)); }
.timeline__group h3 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; color: var(--white); }
.timeline__group .timeline__span { display: block; margin-top: 0.2rem; font-size: var(--step-small); font-weight: 400; letter-spacing: 0; color: var(--muted-dark); }
.timeline__entry { position: relative; display: grid; grid-template-columns: var(--year-w) var(--spine-w) minmax(0, 1fr); column-gap: var(--gap); align-items: start; transition: translate 260ms var(--ease-out); }
.timeline__year { font-size: var(--step-small); font-variant-numeric: tabular-nums; color: var(--muted-dark); text-align: right; padding-top: 0.35rem; transition: color 240ms ease; }
.timeline__dot { position: relative; z-index: 1; justify-self: center; width: 0.875rem; height: 0.875rem; margin-top: 0.45rem; border-radius: 50%; background: var(--line-dark); }
.timeline__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--gold); opacity: 0; transition: opacity 300ms var(--ease-out); }
.timeline__what { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.015em; }
.timeline__kind { grid-column: 3; font-size: var(--step-small); color: var(--muted-dark); margin-top: 0.2rem; }
.timeline__entry.is-passed .timeline__year, html:not(.js) .timeline__year { color: var(--white); }
.timeline__entry.is-passed .timeline__dot::after, html:not(.js) .timeline__dot::after { opacity: 1; }

@media (min-width: 48em) {
  .timeline { --year-w: 6.5rem; --spine-w: 2.5rem; --gap: var(--gutter); }
  .timeline__list { row-gap: 1.1rem; }
  .timeline__entry { grid-template-columns: var(--year-w) var(--spine-w) minmax(0, 1fr) minmax(0, 32%); column-gap: var(--gap); align-items: baseline; }
  .timeline__year { font-size: var(--step-lead); letter-spacing: -0.015em; padding-top: 0; }
  .timeline__dot { align-self: start; margin-top: 0.5rem; }
  .timeline__kind { grid-column: 4; font-size: var(--step-lead); letter-spacing: -0.015em; margin-top: 0; }
}

/* ================================================================
   Method: four stages in one panel
   ================================================================ */
.process { display: grid; gap: 2.25rem; padding: var(--pad); border-radius: var(--radius); background: var(--surface); }
.process__step h3 { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; }
.process__step p { margin-top: 0.75rem; color: var(--muted); max-width: 30ch; }

@media (min-width: 48em) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--gutter) * 2); row-gap: 3rem; }
}
@media (min-width: 64em) {
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: calc(var(--pad) * 1.25); }
}

/* ================================================================
   Services: brand tiles and one panel of names
   ================================================================ */
.services { background: var(--surface); }
.brands { display: grid; gap: var(--gutter); }
.brand { border-radius: var(--radius); padding: var(--pad); display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; min-height: 19rem; }
.brand__title { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: auto; }
.brand p { max-width: 40ch; }
.brand--dark { background: var(--black); color: var(--white); }
.brand--dark p { color: var(--muted-dark); }
.brand--light { background: var(--white); }
.brand--light p { color: var(--muted); }
.names { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem var(--gutter); margin-top: var(--gutter); padding: var(--pad); border-radius: var(--radius); background: var(--white); }
.names h3 { font-size: var(--step-body); margin-bottom: 0.9rem; }
.names li { color: var(--muted); line-height: 1.35; padding-block: 0.2rem; }

@media (min-width: 48em) {
  .brands { grid-template-columns: 7fr 5fr; }
  .brand { min-height: 23rem; }
  .names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .names { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ================================================================
   Books: one large tile, two smaller
   ================================================================ */
.shelf { display: grid; gap: var(--gutter); }
.book { background: var(--surface); border-radius: var(--radius); padding: var(--pad); display: grid; gap: 1.5rem; align-items: center; }
.book img { width: 100%; max-width: 15rem; height: auto; justify-self: center; }
.book--main img { max-width: 24rem; }
.book__title { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; }
.book__text p { color: var(--muted); margin: 0.5rem 0 1.25rem; max-width: 40ch; }

@media (min-width: 48em) {
  .shelf { grid-template-columns: 7fr 5fr; }
  .book--main { grid-row: 1 / 3; align-content: space-between; }
  .book:not(.book--main) { grid-template-columns: 40% minmax(0, 1fr); }
}

/* ================================================================
   Voices: one quotation set large, two more in tiles
   ================================================================ */
.voices { background: var(--gold); color: var(--black); }
.quotes { display: grid; gap: clamp(2.5rem, 5vw, 4rem) calc(var(--gutter) * 2); }
.quote { display: grid; gap: 1rem; align-content: start; }
.quote blockquote { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; max-width: 30ch; }
.quote--lead blockquote { max-width: 40ch; }
.quote figcaption { font-size: var(--step-small); color: var(--on-gold-muted); }

@media (min-width: 48em) {
  .quotes { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .quote--lead { grid-column: 1 / -1; }
  .quote--lead blockquote { font-size: var(--step-mid); line-height: 1.25; letter-spacing: -0.025em; max-width: none; }
  .quote:nth-child(2) { grid-column: 1 / 6; }
  .quote:nth-child(3) { grid-column: 7 / 12; }
}

/* ================================================================
   Flow: candidates travel through the pre-qualification into the practice
   ================================================================ */
.method { perspective: 1400px; }
.flow { position: relative; display: grid; gap: 1.25rem; margin: 0 0 var(--gutter); padding: var(--pad); border-radius: var(--radius); background: var(--black); color: var(--white); transform-origin: 50% 100%; }
.flow__col { display: grid; gap: 1rem; align-content: center; }
.flow__col--in { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.flow__node { position: relative; z-index: 1; display: grid; gap: 0.35rem; padding: 1.25rem 1.35rem; border-radius: calc(var(--radius) * 0.75); background: var(--surface-dark); }
.flow__node strong { font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.flow__node > span:not(.flow__dots) { font-size: var(--step-small); color: var(--muted-dark); }
.flow__dots { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.flow__dots i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--muted-dark); }
.flow__node--hub { background: var(--white); color: var(--ink); padding-top: 1.35rem; }
.flow__node--hub > span:not(.flow__dots) { color: var(--muted); }
.flow__node--hub img { width: 3.25rem; height: 3.25rem; object-fit: cover; object-position: 50% 20%; border-radius: 0.75rem; margin-bottom: 0.5rem; }
.flow__node--out { background: var(--white); color: var(--black); }
.flow__node--out > span:not(.flow__dots) { color: var(--on-gold-muted); }
.flow__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow__lines path { fill: none; stroke: var(--muted-dark); stroke-width: 2; stroke-linecap: round; opacity: 0.55; }
.flow__lines circle { fill: var(--gold); }
.flow__caption { font-size: var(--step-small); color: var(--muted-dark); max-width: 60ch; }

@media (min-width: 48em) {
  .flow { grid-template-columns: 5fr 4fr 4fr; column-gap: clamp(2.5rem, 6vw, 6rem); row-gap: 1.5rem; padding: calc(var(--pad) * 1.15) var(--pad); }
  .flow__col--in { grid-row: 1; grid-template-columns: 1fr; gap: 1rem; }
  .flow__col--hub, .flow__col--out { grid-row: 1; align-self: center; }
  .flow__node--hub img { width: 3.75rem; height: 3.75rem; }
  .flow__caption { grid-column: 1 / -1; }
}

/* ================================================================
   FAQ: one panel, a row per question
   ================================================================ */
.faq { padding: var(--section) var(--margin); }
.faq__panel { padding: 0.5rem var(--pad); border-radius: var(--radius); background: var(--surface); }
.faq__item { padding-block: 1.1rem; }
.faq__item + .faq__item { margin-top: 0.25rem; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 3rem; cursor: pointer; list-style: none; font-size: var(--step-body); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: 0.25rem; }
.faq__mark { flex: 0 0 auto; display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--white); font-size: 1.25rem; font-weight: 400; line-height: 1; transition: transform 240ms var(--ease-out), scale 120ms var(--ease-out); }
.faq__item[open] .faq__mark { transform: rotate(45deg); }
.faq__item summary:active .faq__mark { scale: 0.9; }
.faq__item p { margin-top: 0.75rem; max-width: 62ch; color: var(--muted); }
@media (min-width: 48em) {
  .faq__item summary { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.015em; }
  .faq__mark { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] p { animation: rise 420ms var(--ease-out) both; opacity: 0; transform: translateY(8px); }
}
@media (hover: hover) and (pointer: fine) {
  .faq__item summary:hover .faq__mark { background: var(--black); color: var(--white); }
  .choice input:not(:checked) + span:hover { background: var(--line-dark); }
}

/* ================================================================
   Contact: the address as display type
   ================================================================ */
.contact { padding: var(--section) var(--margin) 2rem; background: var(--black); color: var(--white); }
.contact__grid { display: grid; gap: 2.75rem; }
.contact__top { max-width: 34rem; }
.contact__text { margin-top: 1rem; color: var(--muted-dark); max-width: 40ch; }
.contact__direct { display: grid; gap: 0.3rem; margin-top: 2rem; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; }

/* what it is about: tiles with a title and a small line, chosen one turns white */
.topic { display: grid; gap: 0.5rem; }
.topic legend, .field label, .anfrage__note { font-size: var(--step-small); color: var(--muted-dark); }
.topic legend { padding: 0; margin-bottom: 0.4rem; }
.options { display: grid; gap: 0.5rem; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.option span { display: grid; gap: 0.1rem; min-height: 3.25rem; padding: 0.8rem 1.1rem; border-radius: 1rem; background: var(--surface-dark); color: var(--white); font-weight: 500; line-height: 1.3; transition: background-color 180ms ease, color 180ms ease, transform 120ms var(--ease-out); }
.option small { font-size: var(--step-small); font-weight: 400; color: var(--muted-dark); transition: color 180ms ease; }
.option:active span { transform: scale(0.98); }
.option input:checked + span { background: var(--white); color: var(--black); }
.option input:checked + span small { color: var(--muted); }
.option input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.topic__note { margin-top: 0.4rem; font-size: var(--step-small); color: var(--muted-dark); max-width: 44ch; transition: opacity 160ms ease; }
.topic__note.is-swapping { opacity: 0; }
.topic__note:empty { display: none; }
.contact__mail { overflow-wrap: anywhere; }

/* the inquiry form: dark fields on black, one gold action */
.anfrage { display: grid; gap: 1rem; align-content: start; }
.field { display: grid; gap: 0.4rem; }
.anfrage input:not([type="radio"]), .anfrage textarea { width: 100%; min-height: 3.25rem; padding: 0.85rem 1.1rem; border: 0; border-radius: 1rem; background: var(--surface-dark); color: var(--white); font: inherit; font-size: max(1rem, var(--step-body)); line-height: 1.4; }
.anfrage textarea { resize: vertical; min-height: 7.5rem; }
.anfrage input:not([type="radio"]):focus-visible, .anfrage textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.anfrage input:not([type="radio"]):user-invalid, .anfrage textarea:user-invalid { outline: 2px solid var(--error); outline-offset: 2px; }
.anfrage__hp { position: absolute; left: -200vw; top: 0; opacity: 0; pointer-events: none; }
.anfrage__note { max-width: 44ch; }
.anfrage__note a { color: var(--white); }
.anfrage .btn { justify-self: start; }
.anfrage__status { color: var(--muted-dark); max-width: 44ch; }
.anfrage__status:empty { display: none; }
.anfrage.is-sent .field, .anfrage.is-sent .anfrage__note, .anfrage.is-sent .btn { display: none; }
.anfrage.is-sent .anfrage__status { color: var(--white); font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; }
.contact__bottom { display: grid; gap: 1.5rem; margin-top: clamp(3.5rem, 7vw, 6rem); color: var(--muted-dark); }
.contact__bottom ul { display: grid; gap: 0.4rem; max-width: 40ch; }
.contact__bottom a { color: var(--white); }

@media (min-width: 48em) {
  .contact__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .contact__top { grid-column: 1 / 6; }
  .anfrage { grid-column: 7 / 13; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem var(--gutter); }
  .field--full, .anfrage__hp, .anfrage__note, .anfrage .btn, .anfrage__status { grid-column: 1 / -1; }
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__bottom { display: flex; justify-content: space-between; align-items: end; }
  .contact__social { text-align: right; }
}

/* ================================================================
   Book order: the fourth tile of the shelf, a light variant of the contact form
   ================================================================ */
.order { margin-top: var(--gutter); background: var(--surface); border-radius: var(--radius); padding: var(--pad); display: grid; gap: 2rem; scroll-margin-top: 5rem; }
.order__intro { max-width: 34rem; }
.order__text { margin-top: 1rem; color: var(--muted); max-width: 40ch; }
.anfrage--light .topic legend, .anfrage--light .field label, .anfrage--light .anfrage__note { color: var(--muted); }
.anfrage--light .option span { background: var(--white); color: var(--ink); }
.anfrage--light .option small { color: var(--muted); }
.anfrage--light .option input:checked + span { background: var(--black); color: var(--white); }
.anfrage--light .option input:checked + span small { color: var(--muted-dark); }
.anfrage--light .option input:focus-visible + span { outline-color: var(--black); }
.anfrage--light input:not([type="radio"]), .anfrage--light textarea { background: var(--white); color: var(--ink); }
.anfrage--light input:not([type="radio"]):focus-visible, .anfrage--light textarea:focus-visible { outline-color: var(--black); }
.anfrage--light .anfrage__note a { color: var(--ink); }
.anfrage--light .anfrage__status { color: var(--muted); }
.anfrage--light.is-sent .anfrage__status { color: var(--ink); }
.options--books { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 48em) {
  .order { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .order__intro { grid-column: 1 / 6; }
  .options--books { grid-template-columns: minmax(0, 1fr); }
}

/* ================================================================
   Footer: name first
   ================================================================ */
.footer { padding: clamp(3.5rem, 6vw, 5rem) var(--margin) 2rem; background: var(--white); color: var(--ink); }
.footer__row { display: grid; gap: 2.5rem; }
.footer__who { display: grid; gap: 1rem; align-content: start; }
.footer__name { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.footer__reach { display: grid; gap: 0.3rem; }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem var(--gutter); }
.footer__cols ul { display: grid; gap: 0.4rem; align-content: start; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(3rem, 6vw, 5rem); font-size: var(--step-small); color: var(--muted); }
.footer__legal a { color: var(--ink); }

@media (min-width: 48em) {
  .footer__row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .footer__who { grid-column: 1 / 6; }
  .footer__cols { grid-column: 7 / 13; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ================================================================
   Sub pages (Impressum, Datenschutz)
   ================================================================ */
.subhead { padding: 0 var(--margin); background: var(--black); color: var(--white); }
.subhead .nav { display: flex; justify-content: space-between; }
.legal { padding: clamp(3.5rem, 8vw, 7rem) var(--margin) var(--section); }
.legal__grid { display: grid; gap: var(--gutter); margin-top: clamp(2.5rem, 5vw, 4rem); }
.legal section { padding: var(--pad); border-radius: var(--radius); background: var(--surface); }
.legal h2 { font-size: var(--step-body); margin-bottom: 0.75rem; }
.legal p { color: var(--ink); }
/* Datenschutz: one reading column instead of boxes; the short summary keeps the Impressum box */
.legal--text .legal__lead { margin-top: 1.5rem; max-width: 40ch; color: var(--muted); font-weight: 400; }
.legal__kurz { margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 56ch; }
.legal__kurz ul { display: grid; gap: 0.5rem; margin: 0; padding-left: 1.2rem; }
.legal__text { display: grid; gap: clamp(2.25rem, 4.5vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 56ch; }
.legal__text section { padding: 0; border-radius: 0; background: none; }
.legal__text h2 { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; margin-bottom: 0.75rem; }
.legal__text p + p { margin-top: 0.85rem; }
.legal__text .legal__offen { font-size: var(--step-small); color: var(--muted); }
.notfound { min-height: 70svh; }
.notfound .lead { margin-top: 1.5rem; max-width: 40ch; color: var(--muted); font-weight: 400; }
.notfound__links { display: grid; gap: 0.75rem; margin-top: 2.5rem; font-size: var(--step-lead); font-weight: 500; }
.footer--compact { padding-top: 2rem; }
.footer--compact .footer__legal { margin-top: 0; }
.footer__legal-links { display: flex; gap: 1.5rem; }

@media (min-width: 48em) {
  .legal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Datenschutz: the text reads on the left, the summary keeps it company on the right and scrolls along */
  .legal__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .legal__cols .legal__text { grid-column: 1 / 8; grid-row: 1; }
  .legal__cols .legal__kurz { grid-column: 9 / 13; grid-row: 1; align-self: start; position: sticky; top: 1.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); max-width: none; }
}

/* On a phone every text block uses the full column, so both margins match */
@media (max-width: 47.99em) {
  main p, .hero p, .brand p { max-width: none; }
  .names li, .tile__text, .flow__node > span, .book__text p, .process__step p { hyphens: auto; }
}

/* ================================================================
   Motion (transform and opacity only; content stays visible without script)
   ================================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
  .js .hero__portrait img { opacity: 0; transform: translateY(56px) scale(1.04); animation: rise 1400ms var(--ease-expo) 260ms forwards; }
  .js .hero__name.is-split .hero__ch > span { transform: translateY(112%); animation: letter-in 1000ms var(--ease-expo) forwards; animation-delay: calc(var(--i, 0) * 36ms + 120ms); }
  @supports (animation-timeline: view()) {
    /* the diagram tips flat onto the page as it scrolls in (idea from 21st.dev "Container Scroll", without frame or shadow) */
    .flow { animation: flow-in linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .hero { view-timeline-name: --hero; }
    .hero__name { animation: hero-name-out linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    .hero__portrait { animation: hero-portrait-out linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    .hero__intro { animation: hero-intro-out linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
  }
  /* section entrances from tablet width up; on a phone the long page simply stands */
  @media (min-width: 48em) {
    .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
    .js [data-reveal].is-in { opacity: 1; transform: none; }
  }

  @supports (animation-timeline: view()) {
    .tile--photo img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .menu.is-open { animation: menu-in 320ms var(--ease-out) both; }
  .menu.is-open .menu__links li { animation: rise 600ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms + 80ms); }
  .menu.is-open .menu__links li { opacity: 0; transform: translateY(14px); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes flow-in { from { rotate: x 18deg; scale: 0.94; opacity: 0.35; } to { rotate: x 0deg; scale: 1; opacity: 1; } }
@keyframes letter-in { to { transform: none; } }
@keyframes hero-name-out { to { scale: 1.22; translate: 0 -34%; opacity: 0; } }
@keyframes hero-portrait-out { to { scale: 1.1; translate: 0 -28%; opacity: 0.15; } }
@keyframes hero-intro-out { to { translate: 0 -40%; opacity: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1); } }

/* ================================================================
   Print: the content, black on white, without the stage pieces
   ================================================================ */
@media print {
  html { background: #fff; }
  .stickybar, .menu, .nav__toggle, .tunnel, .skip { display: none !important; }
  .hero, .cv, .contact, .flow, .brand--dark, .tile--black { background: #fff !important; color: #000 !important; }
  .hero__portrait { display: none; }
  .hero__name, .footer__name { font-size: 48pt; }
  .contact__mail { font-size: 24pt; color: #000; }
  .flow__node, .flow__node--hub, .flow__node--out { background: #f2f2f2 !important; color: #000 !important; }
  .timeline__group h3 { color: #000; }
  .timeline::before, .timeline__fill { display: none; }
  .timeline__dot { background: #000; }
  .timeline__year, .timeline__kind, .tile__text, .flow__node > span { color: #333 !important; }
  .flow__lines, .btn { display: none; }
  .faq__item { break-inside: avoid; }
  .faq__item p { display: block; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #555; }
}

/* ================================================================
   Standpunkt: vier Thesen, Aussage links, Begründung rechts
   ================================================================ */
.stance { padding: var(--section) var(--margin); background: var(--white); }
.theses { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem) calc(var(--gutter) * 2); }
.thesis { display: grid; gap: 0.75rem; align-content: start; }
.thesis h3 { font-size: var(--step-mid); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; max-width: 22ch; }
.thesis p { color: var(--muted); max-width: 40ch; }
@media (min-width: 48em) {
  .theses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thesis { padding-right: var(--gutter); }
}

/* Zahlen: Herkunft und Stand */
.board__note { margin-top: 1.25rem; font-size: var(--step-small); color: var(--muted); }

/* Ein Bildton für alle Fotos: leicht warm, etwas zurückgenommen, eine Serie statt drei Stimmungen */
img[src^="assets/img/dennis-mende-"] { filter: sepia(0.1) saturate(0.95) contrast(1.03); }

/* Leistungen: die zwei Wege mit ihren Stellen */
.brand__list { display: grid; gap: 0.35rem; margin: -0.25rem 0 0.5rem; }
.brand__list li { padding-left: 1.1rem; position: relative; }
.brand__list li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; opacity: 0.6; }
.brand--dark .brand__list { color: var(--white); }
.brand__ways { display: grid; gap: 1.5rem; width: 100%; margin-top: 0.25rem; }
.way { display: grid; gap: 0.4rem; justify-items: start; align-content: start; }
.way h4 { font-size: var(--step-body); font-weight: 600; margin: 0; }
.way p { max-width: 36ch; }
.brand--dark .way .link { color: var(--white); }
@media (min-width: 48em) {
  .brand__ways { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
}

/* ================================================================
   Stellen-Check: Fragen links, Einschätzung rechts
   ================================================================ */
.check { padding: var(--section) var(--margin); background: var(--surface); }
.checkform { display: grid; gap: clamp(2rem, 4vw, 3rem) var(--gutter); }
.checkform__q { display: grid; gap: 1.75rem; align-content: start; }
.checkq legend { font-weight: 500; margin-bottom: 0.6rem; padding: 0; }
.checkq { display: grid; gap: 0.4rem; }
.checkq label { position: relative; cursor: pointer; }
.checkq input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.checkq span { display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0 1.1rem; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 500; transition: background-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out); }
/* the phone list shows a ring that fills when chosen; the desktop pills say it with colour alone */
.checkq span::before { content: ''; flex: none; width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid currentColor; opacity: 0.45; transition: opacity 160ms ease, background-color 160ms ease; }
.checkq label:active span { transform: scale(0.97); }
.checkq input:checked + span { background: var(--black); color: var(--white); }
.checkq input:checked + span::before { background: currentColor; opacity: 1; }
.checkq input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.checkresult { background: var(--black); color: var(--white); border-radius: var(--radius); padding: var(--pad); display: grid; gap: 0.9rem; justify-items: start; align-content: start; transition: opacity 160ms ease; }
.checkresult.is-swapping { opacity: 0; }
.checkresult__lead { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; }
.checkresult__text, .checkresult__way { color: var(--muted-dark); max-width: 44ch; }
.checkresult .btn { margin-top: 0.5rem; }
@media (min-width: 48em) {
  .checkq { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .checkq span { display: inline-flex; gap: 0; min-height: 2.75rem; font-size: var(--step-small); }
  .checkq span::before { display: none; }
  .checkform { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .checkform__q { grid-column: 1 / 8; }
  .checkresult { grid-column: 8 / 13; position: sticky; top: 6rem; }
}
@media (hover: hover) and (pointer: fine) {
  .checkq input:not(:checked) + span:hover { background: var(--surface-dark); color: var(--white); }
}

/* ================================================================
   Cookie window: grey card bottom-left (reads on black and on white), a full-width sheet on the phone.
   Every service is visible at once with its own checkbox and a "Details" fold; nothing loads before a choice.
   ================================================================ */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 0 var(--margin) calc(0.75rem + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.cookie [hidden] { display: none !important; }
.cookie__in { pointer-events: auto; max-width: 27rem; max-height: calc(100svh - 1.5rem - env(safe-area-inset-bottom, 0px)); overflow: auto; margin: 0 auto; padding: 1.4rem 1.4rem 1.25rem; border-radius: var(--radius); background: var(--surface); color: var(--ink); display: grid; gap: 0.9rem; opacity: 0; transform: translateY(12px); transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
.cookie.is-in .cookie__in { opacity: 1; transform: none; }
.cookie__titel { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; }
.cookie__text { font-size: var(--step-small); line-height: 1.5; color: var(--muted); max-width: 44ch; }
.cookie__text a { color: var(--ink); }
.cookie__liste { display: grid; gap: 0.9rem; padding: 0.15rem 0; }
.cookie__dienst { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.75rem; align-items: start; }
.cookie__kat { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.8rem; align-items: start; font-size: var(--step-small); line-height: 1.4; cursor: pointer; }
.cookie__kat input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--black); }
.cookie__kat b { display: block; font-weight: 600; color: var(--ink); }
.cookie__kat small { display: block; font-size: inherit; color: var(--muted); }
.cookie__kat--fest { cursor: default; }
.cookie__details { background: none; border: 0; padding: 0.1rem 0; font: inherit; font-size: var(--step-small); color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.cookie__info { grid-column: 1 / -1; margin-top: 0.5rem; padding: 0.8rem 0.9rem; border-radius: 0.75rem; background: var(--white); font-size: var(--step-small); line-height: 1.45; color: var(--ink); display: grid; gap: 0.5rem; }
.cookie__info table { width: 100%; border-collapse: collapse; }
.cookie__info th, .cookie__info td { text-align: left; vertical-align: top; padding: 0.2rem 0.5rem 0.2rem 0; }
.cookie__info th { font-weight: 600; color: var(--muted); }
.cookie__info th:last-child, .cookie__info td:last-child { white-space: nowrap; }
.cookie__info code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; }
.cookie__knoepfe { display: grid; gap: 0.6rem; }
.cookie__knoepfe .btn { width: 100%; }
.cookie input:focus-visible, .cookie__details:focus-visible, .cookie .btn:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
@media (min-width: 48em) {
  .cookie { left: var(--margin); right: auto; bottom: var(--margin); padding: 0; }
  .cookie__knoepfe { grid-template-columns: 1fr 1fr; }
  .cookie__speichern { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .cookie__in { transition: none; } }
