/* Praxis Lindengrund (fictional). Tokens carry their derivation; see notes.md. */

:root {
  /* Grounds. The practice is named after a linden tree; the colour world is that tree,
     not a clinic: bark, the underside of a leaf, its shade, and linden honey. */
  --color-bark: oklch(0.21 0.014 60);        /* linden bark, warm near-black: hero, step stage and footer ground */
  --color-bark-2: oklch(0.27 0.016 60);      /* lifted bark for panels and hairlines on the dark ground */
  --color-pale: oklch(0.93 0.012 95);        /* text on bark: pale linden wood */
  --color-pale-muted: oklch(0.8 0.014 95);   /* quieter text on bark, 8:1 */
  --color-canvas: oklch(0.945 0.014 128);    /* underside of a linden leaf: pale cool green-grey, deliberately not cream and not white */
  --color-shade: oklch(0.875 0.028 130);     /* the leaf's shade: the second light ground */
  --color-surface: oklch(0.975 0.008 128);   /* form fields, the window pane */
  --color-ink: oklch(0.23 0.025 145);        /* green-black ink */
  --color-muted: oklch(0.42 0.025 145);      /* secondary text on the light grounds */
  --color-honey: oklch(0.82 0.135 85);       /* linden honey: the hand and the stopped state, nothing else */
  --color-honey-field: oklch(0.87 0.11 88);  /* the closing ground, the hand lowered */
  --color-border-strong: oklch(0.55 0.03 145); /* interactive boundaries on light grounds, 3:1 */
  --color-border-dark: oklch(0.62 0.02 80);  /* interactive boundaries on bark, 3:1 */
  --color-error: oklch(0.48 0.17 30);        /* form errors, 6:1 on canvas, 4.6:1 on honey */

  /* craft.css reads these */
  --color-text: var(--color-ink);
  --color-bg: var(--color-canvas);
  --color-accent: var(--color-honey);
  --focus-ring-width: 3px;
  --focus-ring-offset: 3px;
  --scroll-offset: 5.5rem;

  /* Type: Alegreya Sans for display and UI (its calligraphic stroke is a drawn stroke, like the
     hand), Alegreya for reading (a letter from the practice, not a brochure). */
  --font-display: "Alegreya Sans", "Gill Sans", "Segoe UI", sans-serif;
  --font-body: "Alegreya", Georgia, "Times New Roman", serif;
  --text-body: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
  --text-small: 0.95rem;
  --text-h1: clamp(2.75rem, 1.2rem + 6.4vw, 7rem);
  --text-h2: clamp(2.1rem, 1rem + 4.4vw, 4.9rem);
  --text-h3: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);

  /* Space: three tiers, one dominant (air for the hero and the closing) */
  --space-tight: 0.5rem;
  --space-group: 1.5rem;
  --space-section: clamp(3.5rem, 7vw, 6.5rem);
  --space-air: clamp(6rem, 13vw, 10.5rem);
  --gutter: clamp(1rem, 4.5vw, 4.5rem);
  --radius-control: 999px;
  --radius-field: 0.375rem;
  --header-h: 4.5rem;

  /* Motion: slow and breathing. Arrivals on one ease-out, state changes on one in-out. */
  --dur-instant: 90ms;
  --dur-quick: 160ms;
  --dur-base: 260ms;
  --dur-reveal: 900ms;
  --dur-signature: 1600ms;
  --dur-wipe: 700ms;
  --dur-hover-in: 125ms;
  --dur-hover-out: 450ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-wipe: cubic-bezier(0.76, 0, 0.24, 1);
  --stagger-line: 90ms;
}

/* The pen sweep that draws the hero hand (registered so it can animate) */
@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 360deg;
}

/* craft baseline (from the webdesigner craft pass) */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  font-kerning: normal;
  overflow-x: clip;
}
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--font-display); font-weight: 300; margin: 0; word-spacing: 0.08em; }
p, li, dd, figcaption { text-wrap: pretty; }
p { margin: 0 0 1em; }
dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-inline-size: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 0.06em; text-underline-offset: 0.14em; }
::selection { background: var(--color-honey); color: var(--color-bark); }
:focus-visible { outline: 3px solid var(--color-honey); outline-offset: 3px; }
[id] { scroll-margin-top: var(--scroll-offset); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: var(--gutter); top: -4rem; z-index: 50;
  background: var(--color-honey); color: var(--color-bark); font-family: var(--font-display);
  font-weight: 700; padding: 0.6rem 1rem; border-radius: 0 0 0.5rem 0.5rem; text-decoration: none;
}
.skip-link:focus-visible { top: 0; }

/* Links grow their underline from the left; buttons press. */
.nav a { text-decoration: none; position: relative; }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -0.15em; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-hover-out) var(--ease-out);
}
@media (hover: hover) {
  .nav a:hover::after { transform: scaleX(1); transition-duration: var(--dur-hover-in); }
}
.button {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1;
  padding: 0.95rem 1.5rem; border-radius: var(--radius-control); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-quick) var(--ease-out), background-color var(--dur-hover-out) var(--ease-out), color var(--dur-hover-out) var(--ease-out);
}
.button:active { transform: scale(0.97); transition-duration: var(--dur-instant); }
.button--ink { background: var(--color-ink); color: var(--color-canvas); }
.button--pale { background: var(--color-pale); color: var(--color-bark); }
@media (hover: hover) {
  .button--ink:hover { background: var(--color-bark); transition-duration: var(--dur-hover-in); }
  .button--pale:hover { background: #fdfdfb; transition-duration: var(--dur-hover-in); }
}
.placeholder { font-family: var(--font-display); font-size: var(--text-small); color: var(--color-pale-muted); }
.placeholder.on-light { color: var(--color-muted); }

/* Header on the bark ground, solid so the fingertips disappear under it */
.header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: var(--gutter); background: var(--color-bark); color: var(--color-pale);
}
.brand { display: flex; flex-direction: column; line-height: 1.05; text-decoration: none; font-family: var(--font-display); }
.brand strong { font-weight: 700; font-size: 1.3rem; }
.brand span { font-size: 0.85rem; color: var(--color-pale-muted); font-weight: 400; }
.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.header .button { font-size: 0.95rem; padding: 0.7rem 1.2rem; }
.header .button .short { display: none; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 560px) {
  .header .button { padding: 0.6rem 0.9rem; font-size: 0.9rem; }
  .header .button .long { display: none; }
  .header .button .short { display: inline; }
}

/* Hero: bark; the hand owns the right half and runs from the bottom edge up under the nav */
.hero {
  position: relative; background: var(--color-bark); color: var(--color-pale);
  min-height: calc(100vh - var(--header-h)); display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 0 1rem;
  padding-inline: var(--gutter); overflow: hidden; isolation: isolate;
}
.hero-copy { align-self: center; padding-block: var(--space-section) var(--space-air); max-width: 36rem; position: relative; z-index: 2; }
.hero-copy h1 { font-size: var(--text-h1); line-height: 0.95; letter-spacing: -0.015em; color: var(--color-pale); margin-bottom: 1.5rem; min-height: 2.85em; display: grid; align-content: end; }
.hero-copy h1 strong { font-weight: 700; }
.hero-lede { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); line-height: 1.45; max-width: 30rem; min-height: 2.9em; }
.hero-fact { color: var(--color-pale-muted); max-width: 30rem; min-height: 6.4em; transition: color var(--dur-base) var(--ease-out); }
.hero-fact.is-paused { color: var(--color-honey); }
.hero-trust { margin: 1rem 0 0; font-family: var(--font-display); font-size: var(--text-small); color: var(--color-pale-muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }

.hero-stage { position: relative; }
.hand-wrap { position: absolute; bottom: 0; inset-inline-end: clamp(0rem, 4vw, 5rem); height: 100%; display: flex; align-items: flex-end; }
.hero-hand {
  appearance: none; border: 0; background: none; padding: 0; margin: 0; cursor: pointer;
  color: var(--color-honey); --hand-ground: var(--color-bark);
  height: 112%; width: auto; aspect-ratio: 420 / 800;
  transform: translateY(8%);
  transition: transform var(--dur-wipe) var(--ease-wipe);
  will-change: transform;
}
.hero-hand svg { height: 100%; width: 100%; overflow: visible; }
.hero-hand:focus-visible { outline-offset: -6px; }
@media (hover: hover) {
  .hero-hand:hover { transform: translateY(7%); transition-duration: var(--dur-hover-out); }
}
.hero-hint {
  position: absolute; inset-inline-start: -1rem; top: 23%; max-width: 8.5rem; text-align: left;
  font-family: var(--font-display); font-size: var(--text-small); color: var(--color-pale-muted); line-height: 1.35; z-index: 3;
  transition: opacity var(--dur-base) var(--ease-out);
}
.hero-hint::after { content: ""; display: block; width: 2.5rem; height: 1px; background: currentColor; margin: 0.6rem 0 0 0; opacity: 0.7; }

/* The stopped state: the hand lifts about 20 px and keeps its crop; honey appears only here and on the hand. */
html[data-motion="paused"] .hero-hand { transform: translateY(5.5%); }
html[data-motion="paused"] .hero-hint { opacity: 0; }
html[data-motion="paused"] *, html[data-motion="paused"] *::before, html[data-motion="paused"] *::after { animation-play-state: paused !important; }
/* Entrances never freeze in a hidden first frame: when the page is stopped they jump to rest. */
html[data-motion="paused"] .hero-copy > *, html[data-motion="paused"] .hero-hand, html[data-motion="paused"] .hero-hand svg,
html[data-motion="paused"] .close-hand { animation: none !important; -webkit-mask-image: none !important; mask-image: none !important; }

/* Hand control: fixed, visible only with JavaScript (nothing moves without it) */
.hand-control {
  position: fixed; inset-inline-end: max(var(--gutter), 1rem); bottom: 1.25rem; z-index: 45; max-width: calc(100vw - 2rem);
  display: none; align-items: center; gap: 0.6rem;
  background: var(--color-bark); color: var(--color-pale); border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-control); padding: 0.55rem 1rem 0.55rem 0.7rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}
html.js .hand-control { display: inline-flex; }
.hand-control svg { width: 1.1rem; height: auto; aspect-ratio: 420 / 760; color: var(--color-honey); }
.hand-control .when-paused { display: none; }
html[data-motion="paused"] .hand-control .when-running { display: none; }
html[data-motion="paused"] .hand-control .when-paused { display: inline; }
html[data-motion="paused"] .hand-control { background: var(--color-honey); color: var(--color-bark); border-color: transparent; }
html[data-motion="paused"] .hand-control svg { color: var(--color-bark); }

/* Section scaffolding: margins at the award range, not a narrow centred column */
.section { padding-inline: var(--gutter); padding-block: var(--space-section); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--text-h2); line-height: 0.98; letter-spacing: -0.012em; }
.section-head p { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); color: var(--color-muted); max-width: 34rem; margin-top: 1.2rem; }
.on-shade { background: var(--color-shade); }

/* Ablauf: bark scene; the honey hand counts the steps and ends in the stop sign. The immersive section. */
.ablauf { background: var(--color-bark); color: var(--color-pale); padding-block: var(--space-section) var(--space-air); }
.ablauf .section-head h2 { color: var(--color-pale); }
.ablauf .section-head p { color: var(--color-pale-muted); }
.ablauf-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(2rem, 5vw, 6rem); align-items: start; }
.stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: grid; grid-template-rows: 1fr auto auto; align-content: end; padding-bottom: 1.5rem; }
.count-hand { position: relative; align-self: end; height: min(58vh, 30rem); aspect-ratio: 420 / 680; overflow: hidden; color: var(--color-honey); --hand-ground: var(--color-bark); justify-self: start; margin-inline-start: clamp(0rem, 4vw, 4rem); }
.count-hand svg { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% * 760 / 680); overflow: visible; opacity: 0; translate: 0 0.6rem; transition: opacity var(--dur-base) var(--ease-out), translate var(--dur-base) var(--ease-out); }
.stage[data-step="1"] svg[data-n="1"], .stage[data-step="2"] svg[data-n="2"], .stage[data-step="3"] svg[data-n="3"], .stage[data-step="4"] svg[data-n="4"] { opacity: 1; translate: 0 0; }
.count { font-family: var(--font-display); font-weight: 300; font-size: var(--text-h1); line-height: 0.9; letter-spacing: -0.02em; margin: 1.75rem 0 0; display: flex; align-items: baseline; gap: 0.2em; color: var(--color-pale); }
.count-n { font-variant-numeric: tabular-nums; min-width: 0.6em; }
.count-of { font-size: 0.32em; font-weight: 400; color: var(--color-pale-muted); letter-spacing: 0; }
.stage-note { color: var(--color-pale-muted); max-width: 22rem; margin: 0.75rem 0 0; font-size: var(--text-small); font-family: var(--font-display); }

.steps { padding-top: 1rem; }
.step { position: relative; padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2.5rem, 6vw, 5rem) 0; border-top: 1px solid var(--color-border-dark); min-height: 50vh; }
.step:first-child { border-top: 0; padding-top: 0.5rem; }
.step-n { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--color-pale-muted); margin-bottom: 0.6rem; }
.step h3 { font-size: var(--text-h3); line-height: 1.08; max-width: 24rem; margin-bottom: 1rem; color: var(--color-pale); }
.step p { max-width: 36rem; }
.step dl { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; margin-top: 1.25rem; max-width: 36rem; align-items: baseline; color: var(--color-pale-muted); transition: color var(--dur-base) var(--ease-out); }
.step dt { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.step dd { font-family: var(--font-display); font-size: 1.05rem; }
.step[aria-current="step"] dl, html:not(.js) .step dl { color: var(--color-pale); }

/* Leistungen: four services as one typeset list, each with its strip of sessions and stop points */
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0.5rem clamp(2rem, 5vw, 6rem);
  padding-block: clamp(1.75rem, 3.2vw, 2.75rem); border-top: 1px solid var(--color-border-strong); align-items: start;
}
.service:last-child { border-bottom: 1px solid var(--color-border-strong); }
.service h3 { font-size: clamp(2rem, 1rem + 3.4vw, 4rem); line-height: 0.95; letter-spacing: -0.015em; }
.service h3 small { display: block; font-size: 0.4em; font-weight: 500; color: var(--color-muted); letter-spacing: 0; margin-top: 0.3em; }
.service p { max-width: 36rem; }
.strip { width: 100%; max-width: 36rem; height: auto; color: var(--color-ink); margin: 0.5rem 0 1.25rem; overflow: visible; }
.strip text { font-family: var(--font-display); font-size: 13px; fill: var(--color-muted); }
.strip text.gap { fill: var(--color-muted); }
.strip .stop path { stroke: currentColor; stroke-width: 2; }
.strip-legend { display: none; list-style: none; margin: 0 0 1.25rem; padding: 0; font-family: var(--font-display); font-size: var(--text-small); color: var(--color-muted); }
.strip-legend li { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.3rem; }
.strip-legend .seg { flex: none; width: 2.2rem; height: 0.55rem; border-radius: 999px; background: var(--color-ink); }
.strip-legend .seg--outline { background: none; border: 1.5px solid var(--color-ink); }
.strip-legend .seg--gap { background: none; border-bottom: 1.5px solid var(--color-ink); border-radius: 0; height: 0.3rem; }
.strip-legend .seg--dashed { background: none; border: 1.5px dashed var(--color-ink); }
.strip-legend .seg--dots { background: none; border-bottom: 2px dotted var(--color-ink); border-radius: 0; height: 0.3rem; }
.service dl { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; max-width: 36rem; font-family: var(--font-display); font-size: 1.05rem; }
.service dt { font-weight: 700; }
.services-note { margin-top: 1.5rem; max-width: 40rem; }

/* Erster Termin: the room with planes, sticky beside the lists; the item being read brings its object forward */
.termin-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.room { color: var(--color-ink); position: sticky; top: calc(var(--header-h) + 1rem); }
.room svg { width: 100%; height: auto; }
.room .plane.wall { fill: var(--color-shade); }
.room .plane.floor { fill: var(--color-bark); opacity: 0.12; }
.room .fillplane { fill: var(--color-canvas); }
.room .fillplane.light { fill: var(--color-surface); }
.room [data-object] { transition: opacity var(--dur-base) var(--ease-out); }
.room.is-focus [data-object]:not(.on) { opacity: 0.38; }
.room .absent { opacity: 0.7; }
.room.is-focus .absent.on { opacity: 1; }
.room .absent-label { font-family: var(--font-display); font-size: 14px; fill: var(--color-muted); }
.room figcaption { font-family: var(--font-display); font-size: var(--text-small); color: var(--color-muted); margin-top: 0.75rem; }
.lists { display: grid; gap: 2.5rem; }
.lists h3 { font-size: var(--text-h3); margin-bottom: 0.75rem; }
.lists ul { margin: 0; padding: 0; list-style: none; }
.lists li { position: relative; padding-inline-start: 1.6rem; margin-bottom: 0.6rem; }
.lists li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.9rem; height: 1px; background: var(--color-ink); }
.list-not li::before { width: 0.6rem; height: 0.6rem; top: 0.52em; left: 0.1rem; background: none; border: 1.5px solid var(--color-ink); border-radius: 50%; }
.list-not li::after { content: ""; position: absolute; left: 0.1rem; top: calc(0.52em + 0.3rem); width: 0.6rem; height: 1.5px; background: var(--color-ink); transform: rotate(-45deg); }
.team { margin-top: 2.5rem; display: grid; gap: 1rem; }
.team h3 { font-size: var(--text-h3); margin-bottom: 0.25rem; }
.team dl { display: grid; gap: 1rem; }
.team dt { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.team dd { color: var(--color-muted); }

/* Hours: the week as five bars; the practice has time, the values are placeholders */
.hours { padding-block: var(--space-section) 0; margin-top: var(--space-section); border-top: 1px solid var(--color-border-strong); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(2rem, 5vw, 6rem); align-items: start; }
.hours-head h2 { font-size: var(--text-h3); }
.hours-head p { color: var(--color-muted); max-width: 22rem; margin-top: 0.5rem; }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; }
.week li { display: grid; gap: 0.5rem; }
.week .day { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.week .bar { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 7rem; border: 1.5px solid var(--color-border-strong); border-radius: 0.5rem; padding: 0.5rem 0.3rem; text-align: center; background: linear-gradient(to top, var(--color-shade) 0 55%, transparent 55%); overflow: hidden; }
.week .bar::before { content: ""; position: absolute; left: 0; right: 0; top: 18%; height: 30%; background: repeating-linear-gradient(135deg, var(--color-ink) 0 1px, transparent 1px 7px); opacity: 0.55; }
.week-legend { grid-column: 2; display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: var(--text-small); color: var(--color-muted); margin: 0; }
.week-legend .swatch { flex: none; width: 2rem; height: 0.9rem; border: 1px solid var(--color-border-strong); background: repeating-linear-gradient(135deg, var(--color-ink) 0 1px, transparent 1px 7px); opacity: 0.8; }
.week .bar .placeholder { font-size: 0.8rem; line-height: 1.2; }
.hours-line { grid-column: 2; max-width: 36rem; margin: 0; }

/* FAQ: four open questions, no accordion; the answer's first word set large */
.faq-list { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); max-width: 60rem; }
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0.5rem clamp(2rem, 5vw, 6rem); padding-top: 1.5rem; border-top: 1px solid var(--color-border-strong); }
.faq h3 { font-size: clamp(1.4rem, 1rem + 1.3vw, 2rem); line-height: 1.15; }
.faq p { max-width: 36rem; margin: 0; }
.answer-word { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 1rem + 2.6vw, 3.4rem); line-height: 1; margin-bottom: 0.4rem; letter-spacing: -0.01em; }

/* Closing: the honey field, the request as a sentence, the hand lowered over the action */
.closing { position: relative; background: var(--color-honey-field); color: var(--color-ink); overflow: hidden; padding-block: var(--space-air) var(--space-section); isolation: isolate; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 4vw, 5rem); align-items: start; margin: 0; }
.closing-copy h2 { font-size: var(--text-h2); line-height: 0.98; letter-spacing: -0.012em; }
.closing-lede { max-width: 32rem; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); margin-top: 1.2rem; }
.sentence { margin-top: clamp(2rem, 4vw, 3rem); font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); line-height: 1.9; max-width: 48rem; }
.sentence .line { margin: 0 0 0.6em; }
.sentence label, .sentence legend { display: inline; font: inherit; }
.sentence legend { float: left; margin-right: 0.3em; padding: 0; }
.sentence .punct { margin-left: 0; }
.sentence .inline {
  font-family: var(--font-display); font-weight: 500; font-size: 0.92em; color: var(--color-ink);
  background: transparent; border: 0; border-bottom: 2px solid var(--color-ink); border-radius: 0; padding: 0 0.2em 0.1em; margin: 0 0.1em 0 0;
  line-height: 1.3; vertical-align: baseline; max-width: 100%;
}
.sentence .inline:focus-visible { outline: 3px solid var(--color-ink); outline-offset: 4px; }
.sentence textarea.inline { display: block; width: 100%; min-width: 0; margin: 0.3em 0 0; resize: none; line-height: 1.4; min-height: 3.2em; }
.sentence textarea.inline::placeholder { color: var(--color-muted); opacity: 0.75; font-weight: 400; font-size: 0.72em; }
.sentence .hint, .sentence .error { display: block; font-family: var(--font-display); font-size: var(--text-small); line-height: 1.4; margin-top: -0.2em; }
.sentence .hint { color: var(--color-muted); }
.sentence .hint-inline { font-family: var(--font-display); font-size: 0.65em; color: var(--color-muted); }
.sentence .error { display: none; color: var(--color-error); }
.field[data-invalid="true"] .error { display: block; }
.field[data-invalid="true"] .inline { border-bottom-color: var(--color-error); }
.chips { display: inline; }
.chip { display: inline-block; position: relative; margin: 0.1em 0.15em 0.1em 0; cursor: pointer; white-space: nowrap; }
.sentence .line.field { white-space: nowrap; }
.sentence .line.field label, .sentence .line.field .hint, .sentence .line.field .error, .sentence .line--textarea { white-space: normal; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; font-family: var(--font-display); font-weight: 500; font-size: 0.78em; line-height: 1.2;
  padding: 0.25em 0.75em; border: 1.5px solid var(--color-ink); border-radius: var(--radius-control);
  transition: background-color var(--dur-quick) var(--ease-out), color var(--dur-quick) var(--ease-out);
}
.chip input:checked + span { background: var(--color-ink); color: var(--color-honey-field); }
.chip input:focus-visible + span { outline: 3px solid var(--color-ink); outline-offset: 3px; }
@media (hover: hover) { .chip:hover span { background: color-mix(in oklab, var(--color-ink) 12%, transparent); } }
.chip input:checked:hover + span { background: var(--color-ink); }

.closing-side { position: relative; display: grid; justify-items: center; }
.close-hand {
  position: relative; height: min(62vh, 34rem); aspect-ratio: 420 / 760; margin-top: calc(-1 * var(--space-air) - 2rem);
  color: var(--color-ink); --hand-ground: var(--color-honey-field); transform: rotate(180deg); pointer-events: none;
}
.close-hand svg { height: 100%; width: 100%; overflow: visible; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.form-status { font-family: var(--font-display); font-size: 1.05rem; margin-top: 1rem; min-height: 1.5em; max-width: 24rem; }
.form-note { font-family: var(--font-display); font-size: var(--text-small); color: var(--color-muted); margin: 0.5rem 0 0; max-width: 40rem; }

/* Footer: bark again */
.footer { background: var(--color-bark); color: var(--color-pale); padding: var(--space-section) var(--gutter) 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 2rem clamp(2rem, 5vw, 6rem); }
.footer h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.footer p, .footer dd { color: var(--color-pale-muted); font-family: var(--font-display); font-size: 1.05rem; }
.footer dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; }
.footer dt { font-family: var(--font-display); font-weight: 700; }
.footer-mark { width: 1.9rem; height: auto; aspect-ratio: 420 / 760; color: var(--color-honey); margin-bottom: 1rem; }
.footer-brand { font-family: var(--font-display); font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); font-weight: 300; line-height: 1.05; }
.footer-line { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--color-bark-2); font-family: var(--font-display); font-size: 0.85rem; color: var(--color-pale-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }

/* Motion: content is visible by default; staging only with no-preference and JS.
   Order: the words first (0 to 0.6 s), then one pen sweep draws the hand (0.3 to 1.9 s), then it breathes. */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-copy > * { animation: arrive 600ms var(--ease-out) both; }
  html.js .hero-copy > :nth-child(2) { animation-delay: 70ms; }
  html.js .hero-copy > :nth-child(3) { animation-delay: 140ms; }
  html.js .hero-copy > :nth-child(5) { animation-delay: 210ms; }
  @supports (mask-image: conic-gradient(red, blue)) or (-webkit-mask-image: conic-gradient(red, blue)) {
    html.js .hero-hand svg {
      -webkit-mask-image: conic-gradient(from 205deg at 54% 62%, black 0 var(--sweep), transparent var(--sweep));
      mask-image: conic-gradient(from 205deg at 54% 62%, black 0 var(--sweep), transparent var(--sweep));
      animation: sweep var(--dur-signature) var(--ease-in-out) 300ms both;
    }
  }
  html.js .hero-hand { animation: breathe 7s var(--ease-in-out) 2.2s infinite alternate; }
  html.js .close-hand { animation: lower 1200ms var(--ease-out) both; animation-play-state: paused; }
  html.js .close-hand.in-view { animation-play-state: running; }
}
@keyframes arrive { from { opacity: 0; translate: 0 0.6rem; } to { opacity: 1; translate: 0 0; } }
@keyframes sweep { from { --sweep: 0deg; } to { --sweep: 360deg; } }
@keyframes breathe { from { translate: 0 0; } to { translate: 0 -0.8rem; } }
@keyframes lower { from { translate: 0 2rem; } to { translate: 0 0; } }

/* Responsive */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-block: 2rem 0.5rem; max-width: none; }
  .hero-copy h1 { margin-bottom: 1rem; }
  .hero-lede { min-height: 0; }
  .hero-actions { margin-top: 1.25rem; }
  .hero-stage { margin-top: 0.75rem; height: 44vh; max-height: 25rem; padding-top: 3.2rem; }
  .hero-hand { height: 100%; transform: translateY(10%); }
  .hero-hand:hover { transform: translateY(12%); }
  html[data-motion="paused"] .hero-hand { transform: translateY(10%); }
  .hand-wrap { inset-inline-end: auto; inset-inline-start: 0.5rem; height: calc(100% - 3.2rem); }
  .hero-hint { position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: calc(-3.2rem + 0.25rem); width: auto; max-width: 22rem; text-align: left; }
  .hero-hint::after { margin: 0.5rem 0 0; }
  .ablauf-grid, .termin-grid, .closing-grid, .faq, .service, .hours { grid-template-columns: minmax(0, 1fr); }
  .stage { position: sticky; top: var(--header-h); height: auto; grid-template-rows: auto auto; background: var(--color-bark); z-index: 2; padding: 0.75rem 0 0.75rem; border-bottom: 1px solid var(--color-border-dark); display: grid; grid-template-columns: auto 1fr; gap: 0 1.25rem; align-items: end; }
  .count-hand { height: 9rem; margin-inline-start: 0; grid-row: 1 / 3; }
  .count { margin-top: 0; font-size: clamp(3rem, 14vw, 4.5rem); }
  .stage-note { display: none; }
  .hero-copy h1 { min-height: 1.9em; }
  .hero-fact { min-height: 0; }
  .step { min-height: 0; }
  .room { position: static; }
  .week { grid-template-columns: 1fr; gap: 0.5rem; }
  .week li { grid-template-columns: 7rem 1fr; align-items: center; gap: 0.75rem; }
  .week .bar { height: 2.4rem; padding: 0 0.75rem; justify-content: flex-start; align-items: center; background: var(--color-shade); }
  .week .bar::before { top: auto; bottom: 0; height: 0.45rem; left: 0; width: 42%; right: auto; }
  .week .bar .placeholder { font-size: var(--text-small); }
  .week .day { font-size: 0.95rem; }
  .hours-line { grid-column: 1; }
  .closing { padding-top: calc(var(--space-section) + 10rem); }
  .closing-side { position: static; }
  .close-hand { position: absolute; top: -3rem; inset-inline-end: var(--gutter); height: 15rem; margin: 0; }
  .week-legend { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stage { height: 42vh; max-height: 22rem; }
  .close-hand { height: 12rem; }
  .closing { padding-top: calc(var(--space-section) + 7.5rem); }
  .sentence .line.field { white-space: normal; }
  .step dl, .service dl { grid-template-columns: 1fr; }
  .week li { grid-template-columns: 6rem 1fr; }
  .sentence { line-height: 1.8; }
}

/* Print: the page stays readable on paper */
@media print {
  .header, .hand-control, .hero-hint, .skip-link { display: none !important; }
  body, .hero, .footer, .closing, .on-shade, .ablauf { background: #fdfdfb !important; color: #141412 !important; }
  .hero-hand, .close-hand, .count-hand { display: none; }
}

@media (max-width: 600px) {
  .strip text { display: none; }
  .strip { margin-bottom: 0.5rem; }
  .strip-legend { display: block; }
  .room .absent-label { display: none; }
}
@media (max-width: 360px) {
  .chip span { font-size: 0.66em; padding-inline: 0.6em; }
}
