/*
  HeyPoldi v2 — das ganze Seiten-CSS (ohne Kit).

  Stil nach dem Vorbild einer dunklen Agenturseite: große ruhige Schrift, Wechsel aus dunkler und
  heller Fläche, Stufen-Übergänge zwischen den Abschnitten, abgeschrägte Karten und Buttons,
  ein einziges Wort in Schreibschrift im Hero. Gesprochene Sätze stehen in Libre Caslon Italic.

  Farben: HeyPoldi-Markenbasis v2. Graphite Night #24262C ist die dunkle Fläche, Lilac Haze #C8B7E6
  die helle Gegenfläche (kein Weiß). Acid Lime #C5FF1F ist der sparsame Akzent: auf Dunkel auch als
  Schrift, auf Lilac nur als Fläche. Text auf Lime immer Graphite Night.
*/

/* ------------------------------------------------------------------ Schriften (selbst gehostet) */
@font-face {
  font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text"; font-style: italic; font-display: swap; font-weight: 400;
  src: url("/fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Hurricane"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("/fonts/hurricane-latin-400-normal.woff2") format("woff2");
}

/* ------------------------------------------------------------------ Tokens */
:root {
  --graphite: #24262c; --graphite-2: #2e3037; --graphite-3: #3a3d45; --graphite-deep: #1b1d22;
  --lilac: #c8b7e6; --lilac-2: #d9cdf0; --lilac-pale: #ece4fa; --lilac-deep: #554969;
  --paper: #f1ebff; --lime: #c5ff1f;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --script: "Hurricane", "Segoe Script", "Brush Script MT", cursive;

  --gut: clamp(20px, 5vw, 72px);       /* Seitenrand */
  --max: 1296px;                        /* Inhaltsbreite */
  --pad: clamp(72px, 9.5vw, 148px);     /* Abschnitt oben/unten */
  --step: clamp(32px, 4.6vw, 68px);     /* Höhe der Stufe zwischen zwei Abschnitten */
  --run: clamp(44px, 7.6vw, 112px);     /* Lauf der Schräge */
  /* Kante zwischen Hero und Film: zwei Stufen. Die erste reicht bis zur Oberkante der Laufzeile
     links davon, die zweite ist ein kleiner Absatz weit rechts. */
  --kante: clamp(24px, 4.9vw, 72px);
  --kante-2: clamp(12px, 1.3vw, 18px);
  --kante-at: 55%;                      /* wo die erste Schräge beginnt, von links */
  --kante-at-2: 91.8%;                  /* wo die zweite beginnt */
  --kante-run: calc(var(--kante) * .64);
  --kante-run-2: calc(var(--kante-2) * .6);
  --kante-ges: calc(var(--kante) + var(--kante-2));
  --c: clamp(16px, 2.2vw, 30px);        /* abgeschrägte Ecke */
  --ease: cubic-bezier(.2, .8, .2, 1);

  --t-h1: clamp(38px, 6.4vw, 96px);
  --t-h2: clamp(36px, 5.6vw, 80px);
  --t-xl: clamp(44px, 8vw, 118px);
  --t-statement: clamp(25px, 3.3vw, 46px);
  --t-lead: clamp(18px, 1.5vw, 22px);
}

/* ------------------------------------------------------------------ Grund */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--graphite); color: var(--paper);
  font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.sec--lilac :focus-visible, .textseite :focus-visible { outline-color: var(--graphite); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gut); top: -80px; z-index: 100; padding: 12px 16px; background: var(--lime); color: var(--graphite); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }

/* ------------------------------------------------------------------ Abschnitte und Stufen
   Jeder Abschnitt trägt seine Fläche. data-step lässt die eigene Fläche als Stufe in den Abschnitt
   davor ragen: ein Stück höher, dann eine Schräge hinunter auf die Grundlinie.
   --at: wo die Schräge beginnt (links: von links gemessen, rechts: von rechts). */
.sec {
  position: relative; background: var(--bg); color: var(--fg); padding-block: var(--pad);
  --bg: var(--graphite); --fg: var(--paper); --muted: #b9bac2; --card: var(--graphite-2); --card-2: var(--graphite-3);
  --line: rgb(241 235 255 / .14); --accent: var(--lime); --btn-bg: var(--paper); --btn-fg: var(--graphite);
}
.sec--lilac {
  --bg: var(--lilac); --fg: var(--graphite); --muted: #453f55; --card: var(--lilac-2); --card-2: var(--lilac-pale);
  --line: rgb(36 38 44 / .2); --accent: var(--lilac-deep); --btn-bg: var(--graphite); --btn-fg: var(--paper);
}
.sec[data-step]::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--step); background: var(--bg);
  --at: 26%;
}
.sec[data-step="links"]::before { clip-path: polygon(0 0, var(--at) 0, calc(var(--at) + var(--run)) 100%, 0 100%); }
.sec[data-step="rechts"]::before { clip-path: polygon(100% 0, calc(100% - var(--at)) 0, calc(100% - var(--at) - var(--run)) 100%, 100% 100%); }
.sec--flush-top { padding-top: 0; }
.sec--flush-bottom { padding-bottom: 0; }

/* ------------------------------------------------------------------ Schrift */
h1, .h2, .xl { font-weight: 500; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: .98; }
.h2 { font-size: var(--t-h2); line-height: 1.08; }
.xl { font-size: var(--t-xl); line-height: 1; }
.h3 { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.2; font-weight: 500; letter-spacing: -0.005em; }
.statement { font-size: var(--t-statement); line-height: 1.34; font-weight: 500; letter-spacing: -0.008em; text-wrap: pretty; }
.lead { font-size: var(--t-lead); line-height: 1.55; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.3; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
}
/* das kleine Zeichen vor einer Dachzeile: ein abgeschrägtes Quadrat in der Akzentfarbe */
.eyebrow--mark::before {
  content: ""; width: 14px; height: 14px; flex: none; background: var(--mark, var(--lime));
  clip-path: polygon(0 0, 68% 0, 100% 32%, 100% 100%, 32% 100%, 0 68%);
}
.sec--lilac .eyebrow--mark { --mark: var(--graphite); }
.quote { font-family: var(--serif); font-style: italic; letter-spacing: -0.01em; }

/* ------------------------------------------------------------------ abgeschrägte Formen */
.cut { clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))); }
.cut--tr { clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); }
.cut--bl { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))); }
.cut--tl { clip-path: polygon(var(--c) 0, 100% 0, 100% 100%, 0 100%, 0 var(--c)); }

/* ------------------------------------------------------------------ Rollendes Wort
   Zwei Kopien liegen übereinander. Beim Hover fährt die obere hinaus, die untere kommt von unten herein. */
.roll { display: inline-grid; overflow: hidden; line-height: 1.3; }
.roll > span { grid-area: 1 / 1; transition: transform 520ms var(--ease); }
.roll > span + span { transform: translateY(115%); }

/* ------------------------------------------------------------------ Button: Kapsel mit Lime-Kreis
   Eine runde Kapsel, rechts sitzt ein Lime-Kreis mit Pfeil. Beim Hover flutet der Kreis die ganze
   Fläche, das Wort rollt um, der Pfeil fährt hinaus und von links neu herein. Text auf Lime ist Graphite. */
.btn {
  --h: 52px; --k: 40px;              /* Höhe der Kapsel, Durchmesser des Kreises */
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 14px;
  min-height: var(--h); padding: 0 calc((var(--h) - var(--k)) / 2) 0 24px; border: 0; border-radius: 999px; cursor: pointer; text-align: left; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg); font-size: 16px; line-height: 1; font-weight: 600;
  transition: color 300ms var(--ease) 90ms, scale 200ms var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lime);
  clip-path: circle(calc(var(--k) / 2) at calc(100% - var(--h) / 2) 50%); transition: clip-path 640ms var(--ease);
}
.btn__pfeil { flex: none; display: grid; place-items: center; width: var(--k); height: var(--k); overflow: hidden; border-radius: 50%; color: var(--graphite); }
.btn__pfeil svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 520ms var(--ease); }
.btn__pfeil svg + svg { transform: translateX(-200%); }
.btn:hover, .btn:focus-visible { color: var(--graphite); }
.btn:hover::before, .btn:focus-visible::before { clip-path: circle(170% at calc(100% - var(--h) / 2) 50%); }
.btn:hover .roll > span:first-child, .btn:focus-visible .roll > span:first-child { transform: translateY(-115%); }
.btn:hover .roll > span + span, .btn:focus-visible .roll > span + span { transform: none; }
.btn:hover .btn__pfeil svg:first-child, .btn:focus-visible .btn__pfeil svg:first-child { transform: translateX(200%); }
.btn:hover .btn__pfeil svg + svg, .btn:focus-visible .btn__pfeil svg + svg { transform: none; }
.btn:active { scale: .98; }
.btn--sm { --h: 48px; --k: 36px; gap: 12px; padding-left: 20px; font-size: 15px; }
/* zweite Wahl: nur der Umriss */
.btn--ghost { background: none; color: var(--fg); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--fg) 36%, transparent); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.link { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

/* ------------------------------------------------------------------ Leiste
   Oben auf der Startseite offen über die ganze Breite: Logo links, die Wörter in einer feinen Kapsel
   in der Mitte, der Button rechts. Sobald gescrollt wird (.is-fest), zieht sie sich zu einer
   schwebenden Glas-Insel zusammen und läuft mit. Auf den Unterseiten ist sie immer die Insel. */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; padding: 18px var(--gut) 0; pointer-events: none; --fort: 0; }
.nav__bar {
  position: relative; pointer-events: auto; max-width: var(--max); min-height: 62px; margin-inline: auto; padding: 7px 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 16px;
  color: var(--paper); border: 1px solid transparent; border-radius: 999px;
  --btn-bg: var(--paper); --btn-fg: var(--graphite); --fg: var(--paper);
  transition: max-width 760ms var(--ease), padding 760ms var(--ease), background-color 420ms var(--ease), border-color 420ms var(--ease), box-shadow 420ms var(--ease);
  animation: nav-ein 900ms var(--ease) 80ms both;
}
@keyframes nav-ein { from { opacity: 0; translate: 0 -14px; } }
.nav.is-fest .nav__bar {
  max-width: 860px; padding: 7px 8px 7px 20px; border-color: rgb(241 235 255 / .13);
  background: rgb(27 29 34 / .8); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 22px 44px -24px rgb(0 0 0 / .75), inset 0 1px 0 rgb(241 235 255 / .07);
}
/* der Rand der Insel füllt sich in Lime, so weit die Seite gescrollt ist (--fort, 0 bis 1) */
.nav__bar::after {
  content: ""; position: absolute; inset: -1px; padding: 1.5px; border-radius: inherit; pointer-events: none; opacity: 0;
  background: conic-gradient(from 0deg, var(--lime) calc(var(--fort) * 1turn), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity 420ms var(--ease);
}
.nav.is-fest .nav__bar::after { opacity: 1; }

/* Logo: in der Insel bleibt nur das Zeichen, der Schriftzug fährt hinter die Kante */
.nav__logo { justify-self: start; display: inline-flex; align-items: center; width: 130px; height: 46px; overflow: hidden; transition: width 760ms var(--ease); }
.nav__logo img { flex: none; width: auto; height: 30px; max-width: none; }
.nav.is-fest .nav__logo { width: 34px; }

/* die Wörter: Unter dem Zeiger gleitet eine Lilac-Kapsel, das Wort darauf rollt in Graphite um */
.nav__links {
  position: relative; display: flex; align-items: center; padding: 4px; border-radius: 999px;
  border: 1px solid rgb(241 235 255 / .13); background: rgb(241 235 255 / .04);
  transition: border-color 420ms var(--ease), background-color 420ms var(--ease);
}
.nav.is-fest .nav__links { border-color: transparent; background-color: transparent; }
.nav__links a { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 40px; padding: 0 clamp(13px, 1.5vw, 21px); border-radius: 999px; font-size: 15px; font-weight: 600; }
.nav__links .roll > span + span { color: var(--lime); }
.nav.is-js .nav__links .roll > span + span { color: var(--graphite); }
/* mit Script rollt das Wort nur zusammen mit der Kapsel (.is-hi), sonst stünde Graphite auf Dunkel */
.nav:not(.is-js) .nav__links a:hover .roll > span:first-child, .nav:not(.is-js) .nav__links a:focus-visible .roll > span:first-child, .nav__links a.is-hi .roll > span:first-child { transform: translateY(-115%); }
.nav:not(.is-js) .nav__links a:hover .roll > span + span, .nav:not(.is-js) .nav__links a:focus-visible .roll > span + span, .nav__links a.is-hi .roll > span + span { transform: none; }
.nav__hi { position: absolute; z-index: 0; left: 0; top: 4px; width: 0; height: 40px; border-radius: 999px; background: var(--lilac); opacity: 0; visibility: hidden; will-change: transform, width; }
/* der Abschnitt, in dem man gerade ist: ein Lime-Punkt unter dem Wort */
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: var(--lime); scale: 0; transition: scale 320ms var(--ease);
}
.nav__links a[aria-current]::after { scale: 1; }
.nav__links a.is-hi::after { scale: 0; }

.nav__end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

/* der Menüknopf: Ring und Striche in Lime, dem Akzent der Leiste */
.nav__toggle {
  display: none; position: relative; flex: none; width: 46px; height: 46px; border: 1px solid rgb(197 255 31 / .5); border-radius: 50%;
  background: rgb(197 255 31 / .05); color: var(--lime); cursor: pointer;
}
.nav__toggle span { position: absolute; left: 14px; right: 14px; top: 22px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 460ms var(--ease); }
.nav__toggle span:first-child { transform: translateY(-4px); }
.nav__toggle span:last-child { transform: translateY(4px); }
.nav.is-open .nav__toggle span:first-child { transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: rotate(-45deg); }
.nav__sheet { display: none; }

@media (max-width: 1023px) {
  .nav { padding-top: 12px; }
  /* Beim Scrollen wird die Leiste zur Glas-Leiste über die ganze Breite, das Logo fährt zum Zeichen ein.
     Sie schrumpft hier nicht zur Insel: Das Zusammenziehen beim Scrollen stockte in Safari. */
  .nav__bar { grid-template-columns: auto 1fr; min-height: 60px; }
  .nav.is-fest .nav__bar { max-width: none; padding: 6px 6px 6px 16px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  /* der Button „Kontakt“ steht hier nicht in der Leiste, sondern unten im Menü */
  .nav__end .btn { display: none; }
  /* offen: Die Leiste steht ohne Glas über dem Menü */
  .nav.is-open .nav__bar { background-color: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-open .nav__bar::after { opacity: 0; }
  html.nav-offen { overflow: hidden; }

  /* das Menü: Es öffnet sich als Kreis vom Menüknopf aus, die Wörter steigen nacheinander auf */
  .nav__sheet {
    --mx: calc(100% - var(--gut) - 23px); --my: 42px;
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: -1; pointer-events: auto; overflow-y: auto;
    padding: 112px var(--gut) max(28px, env(safe-area-inset-bottom)); background: var(--graphite-deep); color: var(--paper);
    --btn-bg: var(--paper); --btn-fg: var(--graphite); --fg: var(--paper);
    clip-path: circle(0px at var(--mx) var(--my)); visibility: hidden;
    transition: clip-path 760ms cubic-bezier(.76, 0, .24, 1), visibility 0s linear 760ms;
  }
  .nav.is-open .nav__sheet { clip-path: circle(150vmax at var(--mx) var(--my)); visibility: visible; transition-delay: 0s; }
  .nav__sheet li { overflow: hidden; border-bottom: 1px solid rgb(241 235 255 / .1); }
  .nav__sheet li a {
    display: flex; align-items: center; justify-content: space-between; padding: 15px 0 13px;
    font-size: clamp(34px, 9.6vw, 60px); line-height: 1.1; font-weight: 500; letter-spacing: -.012em;
    translate: 0 112%; transition: translate 760ms var(--ease);
  }
  .nav__sheet li a::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--lime); scale: 0; }
  .nav__sheet li a[aria-current]::after { scale: 1; }
  .nav__sheet-fuss { margin-top: auto; padding-top: 36px; opacity: 0; translate: 0 16px; transition: opacity 500ms var(--ease), translate 600ms var(--ease); }
  .nav.is-open .nav__sheet li a { translate: 0 0; transition-delay: calc(240ms + var(--i) * 70ms); }
  .nav.is-open .nav__sheet-fuss { opacity: 1; translate: 0 0; transition-delay: calc(300ms + var(--i) * 70ms); }
}
/* Der Button der Leiste zieht sich in der Insel wie das Logo zusammen: Das Wort fährt ein, es
   bleibt der Lime-Kreis, und der Pfeil dreht nach unten (Richtung Kontaktformular). So sind links
   und rechts gleich viel Platz, und die Wörter wirken mittig. Unter 1024 px fehlt er in der Leiste
   (siehe oben). */
.nav__end .btn { transition: color 300ms var(--ease) 90ms, scale 200ms var(--ease), padding 760ms var(--ease), gap 760ms var(--ease), opacity 300ms var(--ease), visibility 0s; }
.nav__end .btn .roll { max-width: 120px; transition: max-width 760ms var(--ease), opacity 420ms var(--ease); }
.nav__end .btn .btn__pfeil { transition: rotate 760ms var(--ease); }
.nav.is-fest .nav__end .btn { gap: 0; padding-left: calc((var(--h) - var(--k)) / 2); }
.nav.is-fest .nav__end .btn .roll { max-width: 0; opacity: 0; }
.nav.is-fest .nav__end .btn .btn__pfeil { rotate: 90deg; }
@media (max-width: 379px) { .nav__logo { width: 34px; } }
@media (prefers-reduced-motion: reduce) {
  .nav__bar { animation: none; }
  .nav__bar, .nav__logo, .nav__links, .nav__sheet, .nav__sheet li a, .nav__sheet-fuss, .nav__toggle span, .roll > span, .btn, .btn::before { transition-duration: .01ms; transition-delay: 0s; }
  .nav__end .btn, .nav__end .btn .roll, .nav__end .btn .btn__pfeil { transition-duration: .01ms; transition-delay: 0s; }
}

/* ------------------------------------------------------------------ Hero
   Oben der Spruch mit dem Wort in Schreibschrift, darunter die Bühne (Du sagst → Zeichen → Poldi
   erledigt). Unten ragt der Film in zwei Stufen herein (siehe .film): Links unten läuft die dunkle
   Fläche weiter, dort steht die Laufzeile auf Höhe der ersten Stufe. */
/* Der Hero füllt den Bildschirm, auf hohen Hochformaten (iPad Pro hochkant) aber höchstens 85 % der
   Breite: Sonst zöge sich die Bühne auseinander, und dafür ragt der Film schon im ersten Bild herein. */
.hero { min-height: min(100svh, 85vw); padding-block: clamp(112px, 9.6vw, 140px) calc(var(--kante-ges) + 22px); display: flex; flex-direction: column; overflow: clip; }
.hero__kopf { position: relative; z-index: 2; }
.hero h1 { margin-top: clamp(16px, 1.8vw, 26px); line-height: 1.1; text-wrap: wrap; }
.hero h1 .zeile { display: block; }
/* das wechselnde Wort: Schreibschrift in Lime, alle Wörter liegen im selben Feld übereinander */
.hw { display: inline-grid; vertical-align: baseline; margin-left: .03em; font-family: var(--script); font-weight: 400; font-size: 1.56em; line-height: .64; letter-spacing: 0; color: var(--lime); }
/* --p ist der Schreibfortschritt: die weiche Maske deckt das Wort von links nach rechts auf.
   Der Rand aus padding und negativem margin gibt den Schwüngen Platz, ohne das Layout zu ändern. */
.hw__w {
  grid-area: 1 / 1; white-space: nowrap; padding: .5em .3em .5em .14em; margin: -.5em -.16em -.5em -.09em; --p: 116%;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p) - 16%), transparent var(--p));
  mask-image: linear-gradient(90deg, #000 calc(var(--p) - 16%), transparent var(--p));
}
.hw__w:not(:first-child) { opacity: 0; visibility: hidden; }

/* die Bühne: das Canvas liegt über die ganze Breite dahinter, Satz und Karte sind HTML */
.buehne { position: relative; flex: 1 1 auto; display: grid; min-height: clamp(300px, 25vw, 372px); margin-top: clamp(18px, 2vw, 30px); }
/* das Canvas ragt oben und unten 90px über die Bühne hinaus, damit Schein und Wellen nicht abgeschnitten werden */
.buehne > canvas { position: absolute; left: 0; top: -90px; width: 100%; height: calc(100% + 180px); pointer-events: none; opacity: 0; transition: opacity 900ms var(--ease); }
.buehne.is-gl.is-los > canvas { opacity: 1; }
.buehne__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 27vw, 380px) minmax(0, 1fr); align-items: start; }
.buehne__say { max-width: 480px; padding-top: 4px; }
.buehne__qs { display: grid; margin-top: 14px; }
.buehne__qs li { grid-area: 1 / 1; }
.buehne__qs li:not(:first-child) { opacity: 0; visibility: hidden; }
.buehne__qs .quote { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.32; text-wrap: balance; }
.buehne__mark { grid-column: 2; align-self: center; justify-self: center; width: 60%; height: auto; transition: opacity 400ms var(--ease); }
.buehne.is-gl .buehne__mark { opacity: 0; }
/* mit Script erscheint gleich das 3D-Zeichen. Das flache Bild zeigt sich nur, wenn 3D nicht geht. */
html.js .buehne:not(.kein-gl) .buehne__mark { opacity: 0; transition: none; }
/* Die Seite geht geordnet auf (hero.ts). Bis das Script übernimmt (.is-auf), bleiben die Teile des
   Hero und der Film verborgen, damit nichts erst dasteht und dann springt. Fällt das Script aus,
   nimmt Base.astro nach 2,5 s die Klasse js weg und alles steht da. */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero:not(.is-auf) .hero__kopf .eyebrow, html.js .hero:not(.is-auf) h1 .zeile,
  html.js .hero:not(.is-auf) .buehne__say > .eyebrow, html.js .hero:not(.is-auf) .hero__foot,
  html.js .hero:not(.is-auf) ~ .film { opacity: 0; }
}
/* beim Laden baut sich die Bühne der Reihe nach auf: Bis das Script übernimmt, bleiben Satz und Karte verborgen */
@media (prefers-reduced-motion: no-preference) {
  html.js .buehne:not(.is-bereit) .buehne__qs, html.js .buehne:not(.is-bereit) .buehne__work { visibility: hidden; }
}
/* die Karte „Poldi erledigt“ steht fest da und ist so hoch wie ihr längster Inhalt: Alle Ergebnisse
   liegen im selben Feld übereinander, nur der Text darin wechselt. So springt nichts. */
.buehne__work { grid-column: 3; justify-self: end; align-self: center; width: min(100%, 320px); margin-top: 5%; }
.vcard { padding: 20px 22px 22px; background: var(--card); }
.vcard__feld { display: grid; margin-top: 14px; }
.vcard__label { font-size: 13px; line-height: 1.3; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.vcard__done { grid-area: 1 / 1; align-self: start; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; font-size: 15px; line-height: 1.4; }
.vcard__done:not(:first-child) { opacity: 0; visibility: hidden; }
.vcard__done b { display: block; font-size: 17px; line-height: 1.3; font-weight: 600; }
.vcard__done span { grid-column: 2; margin-top: 2px; color: var(--muted); }
/* die sechs Aufgaben stehen nur am Handy hochkant in der Karte (siehe unten) */
.vcard__done--aufgabe { display: none; }
.tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--graphite); flex: none; }
.tick svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tick path { stroke-dasharray: 10.5; }
.buehne__pause, .film__pause {
  position: absolute; z-index: 3; width: 44px; height: 44px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgb(36 38 44 / .7); color: var(--paper); border-radius: 50%;
}
.buehne__pause { right: 0; bottom: 0; background: var(--graphite-2); }
.buehne:not(.is-live) .buehne__pause, .buehne:not(.is-los) .buehne__pause { display: none; }
.buehne__pause svg, .film__pause svg { width: 14px; height: 14px; fill: currentColor; }
.buehne__pause .i-play, .buehne__pause[aria-pressed="true"] .i-pause,
.film__pause .i-play, .film__pause[aria-pressed="true"] .i-pause { display: none; }
.buehne__pause[aria-pressed="true"] .i-play, .film__pause[aria-pressed="true"] .i-play { display: block; }

/* unten links: das Etikett, darunter die Laufzeile. Ihre Oberkante liegt auf Höhe der ersten Stufe. */
.hero__foot {
  position: absolute; z-index: 2; left: 0; bottom: 0; width: var(--kante-at);
  padding: 0 0 max(8px, var(--kante) - 28px) max(var(--gut), (100% - var(--max)) / 2); display: grid; gap: clamp(14px, 1.9vw, 26px);
}
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 78%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 48px; padding-right: 48px; animation: lauf 34s linear infinite; }
.marquee:hover .marquee__track, .hero.is-angehalten .marquee__track { animation-play-state: paused; }
.marquee__track span { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.3; font-weight: 600; white-space: nowrap; color: rgb(241 235 255 / .5); }
@keyframes lauf { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee__track [aria-hidden="true"] { display: none; } }

@media (max-width: 1023px) {
  /* gestapelt: Satz oben, Zeichen in der Mitte, Karte unten */
  .hero { min-height: 0; }
  .buehne { min-height: 0; }
  .buehne__in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto clamp(190px, 34vw, 270px) auto; padding-bottom: clamp(28px, 5vw, 44px); }
  .buehne__say { max-width: 560px; }
  .buehne__mark { grid-column: 1; grid-row: 2; width: auto; height: 64%; }
  .buehne__work { grid-column: 1; grid-row: 3; justify-self: center; width: min(100%, 380px); margin-top: 0; }
  /* Am Handy und Tablet gibt es keine Knöpfe zum Anhalten, weder neben dem Zeichen noch im Film (auf
     Wunsch). Bewegung hält dann nur „Bewegung reduzieren“ im System an. */
  .buehne__pause, .film__pause { display: none; }
}
/* Am Handy (hochkant, oder quer und niedrig) füllt der Hero den Bildschirm, oben stehen Dachzeile und
   Spruch, darunter beginnt gleich der Film. „Du sagst“ und die Sätze fehlen hier, sie wären überladen.
   Quer steht unten die Laufzeile in voller Breite über der Stufe; hochkant ersetzt sie die Bühne mit
   der Aufgaben-Karte (nächster Block). */
@media (max-width: 639px), (max-width: 1023px) and (max-height: 519px) {
  .hero { min-height: 100vh; min-height: 100svh; padding-block: clamp(92px, 15svh, 112px) calc(var(--kante-ges) + 18px); }
  .hero h1 { margin-top: clamp(20px, 4.5svh, 32px); }
  .hero__foot { position: relative; width: auto; margin-top: auto; padding: clamp(28px, 7svh, 48px) var(--gut) 0; gap: 14px; }
}
@media (max-width: 639px) {
  /* der Spruch so groß, dass „nach Feierabend“ gerade noch in eine Zeile passt */
  .hero h1 { font-size: clamp(36px, calc((100vw - 2 * var(--gut)) / 7.4), 60px); }
  /* das längste Wort („Dokumentieren“) passt auch auf 320 px ganz in die Zeile */
  .hw { font-size: min(1.9em, 19.5vw); line-height: .78; margin-left: -.03em; }
  /* ausgeglichen umbrechen, damit „für den Außendienst“ zusammen in der zweiten Zeile steht */
  .hero .eyebrow { letter-spacing: .1em; text-wrap: balance; }
  .marquee__track span { font-size: 19px; }
  /* Die Bühne ohne „Du sagst“ und Sätze füllt den Rest des Bildschirms: oben mittig das Zeichen mit dem
     Schweif von links, kleiner als am Tablet, darunter die Karte. Von ihm laufen Linien hinunter in die
     Karte, in der nacheinander die sechs Aufgaben stehen (hero.ts, stage.ts). Sie ersetzt hier die
     Laufzeile. */
  .hero__foot { display: none; }
  /* nie kleiner als ihr Inhalt: Auf sehr kleinen Handys wird der Hero dann höher, statt dass die Karte in den Film ragt */
  .buehne { flex: 1 1 0; min-height: auto; margin-top: 4px; grid-template-rows: minmax(0, 1fr); }
  .buehne__in { grid-template-rows: minmax(110px, 1fr) auto; padding-bottom: 0; }
  .buehne__say, .vcard__label { display: none; }
  .buehne__mark { grid-row: 1; height: min(110px, 15svh); }
  .buehne__work { grid-row: 2; width: min(100%, 340px); }
  .vcard { padding: 16px 18px 18px; }
  .vcard__feld { margin-top: 0; }
  .vcard__feld > .vcard__done { display: none; }
  .vcard__feld > .vcard__done--aufgabe { display: grid; opacity: 1; visibility: visible; }
  .vcard__feld > .vcard__done--aufgabe ~ .vcard__done--aufgabe { opacity: 0; visibility: hidden; }
}
/* Handy quer: Für die Bühne ist kein Platz, dort stehen nur Spruch und Laufzeile.
   hero.ts lädt die 3D-Szene hier gar nicht erst (dieselbe Abfrage). */
@media (min-width: 640px) and (max-width: 1023px) and (max-height: 519px) {
  .buehne { display: none; }
}

/* ------------------------------------------------------------------ Film mit Stufe (oben) und Lasche (unten)
   Der Film ragt in den Hero hinauf. Seine Oberkante hat zwei Stufen: Links ist ein Stück
   ausgeschnitten (dort läuft die dunkle Fläche des Hero weiter), eine steile Schräge führt hinauf,
   weit rechts folgt ein zweiter kleiner Absatz. */
.film {
  position: relative; z-index: 1; background: var(--graphite); height: calc(clamp(300px, 56vw, 760px) + var(--kante-ges)); margin-top: calc(-1 * var(--kante-ges)); overflow: clip;
  clip-path: polygon(
    0 var(--kante-ges), var(--kante-at) var(--kante-ges), calc(var(--kante-at) + var(--kante-run)) var(--kante-2),
    var(--kante-at-2) var(--kante-2), calc(var(--kante-at-2) + var(--kante-run-2)) 0, 100% 0, 100% 100%, 0 100%);
}
.film__video, .film__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* das Standbild, bis der Film läuft (und unter „Bewegung reduzieren“); der Film deckt es zu */
.film__still { background: url(/media/film-reel-poster.webp) center / cover no-repeat; }
.film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(36 38 44 / .28) 0, rgb(36 38 44 / 0) 30%, rgb(36 38 44 / 0) 70%, rgb(36 38 44 / .5) 100%); pointer-events: none; }
.film__pause { left: var(--gut); bottom: 24px; }
/* die helle Stufe: die Fläche des nächsten Abschnitts ragt mit einer Schräge ins Bild */
.film__tab {
  position: absolute; z-index: 2; right: 0; bottom: -1px; width: 46%; height: var(--step); background: var(--lilac);
  clip-path: polygon(var(--run) 0, 100% 0, 100% 100%, 0 100%);
}
/* Am Handy steht der Film hochkant: die eigene Fassung in 9:16 über die volle Breite, höchstens so hoch
   wie der Bildschirm (dann schneidet das Bild oben und unten ein wenig ab). Dieselbe Grenze steht in
   ui.ts, dort wird die Fassung gewählt. */
@media (max-width: 639px) {
  .film { height: min(177.78vw, 100vh); height: min(177.78vw, 100svh); }
  .film__still { background-image: url(/media/film-reel-hoch-poster.webp); }
}

/* ------------------------------------------------------------------ Aussage (Lilac): links der Arbeitstag, rechts der Text */
.aussage { scroll-margin-top: 0; }
.aussage__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; align-items: center; }
.aussage__text { grid-column: 6 / -1; }
.aussage__text .h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.06; }
.aussage__satz { margin-top: clamp(18px, 2vw, 28px); max-width: 30ch; font-size: clamp(20px, 2vw, 29px); line-height: 1.34; font-weight: 500; text-wrap: pretty; }
.aussage__mehr { margin-top: clamp(16px, 1.6vw, 22px); max-width: 52ch; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: #453f55; text-wrap: pretty; }
.aussage__satz + .aussage__mehr { margin-top: clamp(22px, 2.4vw, 34px); }

/* Der Arbeitstag als Ablauf: eine Schiene mit Wagen, daneben abwechselnd Fahrten und Termine.
   Eine Fahrt ist erst ein gestrichelter Umriss. Fährt der Wagen vorbei, füllt sie sich in Lime und
   zeigt, was auf ihr erledigt wurde. Ohne Script steht der fertige Tag da. */
.tag { grid-column: 1 / span 4; position: relative; width: 100%; max-width: 400px; padding-left: 56px; }
.tag__schiene { position: absolute; left: 17px; top: 23px; bottom: 26px; width: 2px; border-radius: 2px; background: rgb(36 38 44 / .16); }
.tag__stand { position: absolute; inset: 0; border-radius: inherit; background: var(--graphite); transform-origin: 50% 0; }
.tag__wagen {
  display: none; position: absolute; z-index: 2; left: 0; top: 0; width: 36px; height: 36px; place-items: center; border-radius: 50%;
  background: var(--lime); color: var(--graphite); box-shadow: 0 0 0 5px var(--lilac);
}
.tag.is-live .tag__wagen { display: grid; }
.tag__wagen svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tag__reihe { display: grid; gap: 10px; }
.tag__zeit { font-size: 13px; line-height: 1; font-weight: 600; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
/* Die volle Fahrt bestimmt die Höhe der Zeile, die leere liegt als Umriss genau darunter. So darf
   der Text auf sehr schmalen Handys umbrechen, ohne aus der Zeile zu laufen. */
.tag__fahrt { position: relative; display: grid; min-height: 46px; border-radius: 999px; }
.tag__fahrt > span { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-radius: inherit; white-space: nowrap; }
.tag__leer { position: absolute; inset: 0; border: 1.5px dashed rgb(36 38 44 / .32); color: var(--muted); font-size: 14px; }
.tag__voll { position: relative; min-height: 46px; background: var(--lime); color: var(--graphite); font-size: 15px; font-weight: 600; }
.tag__voll .tick { width: 20px; height: 20px; background: var(--graphite); color: var(--lime); }
.tag__termin { --c: 16px; display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 20px; background: var(--graphite); color: var(--paper); font-size: 17px; font-weight: 600; }
.tag__termin .tag__zeit { color: var(--lilac); }
.tag__ende { display: flex; align-items: center; gap: 12px; height: 52px; padding-left: 12px; font-size: clamp(21px, 2vw, 27px); line-height: 1; font-weight: 600; }
.tag__ende .tag__zeit { color: var(--muted); }
@media (max-width: 899px) {
  .aussage__text { grid-column: 1 / -1; grid-row: 1; }
  .tag { grid-column: 1 / -1; }
}
/* schmale Handys: die Schiene rückt näher, lange Fahrten dürfen zweizeilig werden */
@media (max-width: 419px) {
  .tag { padding-left: 48px; }
  .tag__fahrt > span { gap: 8px; padding-inline: 14px; }
  .tag__fahrt > .tag__voll { white-space: normal; padding-block: 7px; font-size: 14.5px; line-height: 1.25; }
  .tag__termin { gap: 12px; padding-inline: 16px; font-size: 16px; }
}

/* ------------------------------------------------------------------ Aufgaben
   Links bleibt die Spalte mit Überschrift, Text und Button beim Scrollen stehen. Rechts die Liste:
   Zeilen mit Haarlinien, große Nummer, Name und ein Satz. Die offene Zeile hebt sich als Fläche ab. */
.aufg__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 44px; align-items: start; }
.aufg__seite { grid-column: 1 / span 4; position: sticky; top: 124px; display: grid; gap: clamp(20px, 2.2vw, 30px); justify-items: start; }
.aufg__seite .h2 { font-size: clamp(34px, 3.9vw, 58px); line-height: 1.08; }
.aufg__seite p { max-width: 36ch; color: var(--muted); font-size: var(--t-lead); line-height: 1.55; text-wrap: pretty; }
.aufg__liste { grid-column: 6 / -1; border-top: 1px solid var(--line); }

/* scroll-margin: Ein Sprung auf #aufgabe-… landet unter der mitlaufenden Leiste, nicht dahinter */
.aufgabe { border-bottom: 1px solid var(--line); scroll-margin-top: 108px; transition: background-color 260ms var(--ease); }
.aufgabe[open] { background: var(--card); }
.aufgabe summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; column-gap: 20px;
  padding: 26px 20px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color 200ms var(--ease);
}
.aufgabe summary::-webkit-details-marker { display: none; }
.aufgabe__kopf { min-width: 0; display: grid; gap: 6px; transition: transform 320ms var(--ease); }
.aufgabe__kurz { color: var(--muted); font-size: 16px; line-height: 1.45; text-wrap: pretty; }
/* der Knopf rechts: ein Plus, das beim Öffnen zum Minus wird */
.aufgabe__chip {
  position: relative; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(241 235 255 / .22);
  transition: background-color 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}
.aufgabe__chip::before, .aufgabe__chip::after { content: ""; position: absolute; left: 15px; right: 15px; top: 21.2px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 320ms var(--ease); }
.aufgabe__chip::after { transform: rotate(90deg); }
.aufgabe[open] .aufgabe__chip::after { transform: rotate(0deg); }
.aufgabe[open] .aufgabe__chip { background: var(--lime); color: var(--graphite); box-shadow: none; }
.aufgabe summary:active .aufgabe__chip { transform: scale(.92); }
@media (hover: hover) {
  .aufgabe:not([open]) summary:hover { background: rgb(241 235 255 / .045); }
  .aufgabe summary:hover .aufgabe__kopf { transform: translateX(6px); }
  .aufgabe:not([open]) summary:hover .aufgabe__chip { background: var(--paper); color: var(--graphite); box-shadow: none; }
}
.aufgabe summary:focus-visible { outline-offset: -3px; }

/* offen: links der Satz, rechts der Zettel mit dem Ergebnis, darunter in einem Absatz der Ablauf */
.aufgabe__in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px 28px; align-items: start; padding: 2px 20px 30px; }
.aufgabe[open] .aufgabe__in { animation: aufgabe-auf 420ms var(--ease) both; }
@keyframes aufgabe-auf { from { opacity: 0; transform: translateY(10px); } }
.aufgabe__in .quote { margin-top: 10px; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.34; text-wrap: pretty; }
.aufgabe__in .txt { grid-column: 1 / -1; max-width: 62ch; color: var(--muted); text-wrap: pretty; }
/* der Zettel auf Lilac: was danach erledigt ist */
.erledigt { background: var(--lilac); color: var(--graphite); padding: 20px; display: grid; gap: 12px; }
.erledigt .eyebrow { font-size: 12px; }
.erledigt__reihe { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; font-size: 15px; line-height: 1.4; }
.erledigt__reihe .tick { background: var(--graphite); color: var(--lime); }
.erledigt__reihe b { font-weight: 600; }
.erledigt__reihe span { grid-column: 2; color: #453f55; }
@media (max-width: 1099px) {
  .aufg__seite { grid-column: 1 / -1; position: static; }
  .aufg__liste { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .aufgabe summary { column-gap: 12px; padding: 22px 12px 22px 16px; }
  .aufgabe__in { grid-template-columns: minmax(0, 1fr); padding: 0 12px 26px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .aufgabe[open] .aufgabe__in { animation: none; }
  .aufgabe, .aufgabe summary, .aufgabe__kopf, .aufgabe__chip, .aufgabe__chip::before, .aufgabe__chip::after { transition-duration: .01ms; }
}

/* ------------------------------------------------------------------ Produkt: der Stapel (Lilac)
   Oben Überschrift, Satz und Button, darunter die sieben Motive. Ohne Script, unter „Bewegung
   reduzieren“ und auf niedrigen Bildschirmen (Handy quer) stehen sie als Liste da: Bild, Name, Satz.
   Mit Script (.is-buehne, src/scripts/ui.ts, stapel()) bleibt die Bühne beim Scrollen stehen und die
   Motive legen sich nacheinander übereinander; das Script setzt Lage, Größe und Dunst jedes Blatts. */
.produkt__kopf { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 26px clamp(32px, 5vw, 96px); align-items: end; }
.produkt__kopf .h2 { max-width: 12ch; }
.produkt__seite { display: grid; gap: 22px; justify-items: start; }
.produkt__seite p { color: var(--muted); max-width: 46ch; text-wrap: pretty; }
@media (max-width: 899px) { .produkt__kopf { grid-template-columns: minmax(0, 1fr); } }

/* die Liste (Grundform) */
.stapel { margin-top: clamp(44px, 5.4vw, 80px); }
.stapel__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(40px, 4.4vw, 64px) clamp(24px, 3vw, 44px); align-items: start; }
.stapel__teil { display: flex; flex-direction: column; }
.stapel__karte { order: -1; margin: 0 0 18px; }
.stapel__name { font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; line-height: 1.25; }
.stapel__name > span { display: block; }
.stapel__satz { margin-top: 6px; color: var(--muted); max-width: 40ch; text-wrap: pretty; }
.stapel__schiene { display: none; }
/* ein Motiv: dunkler Rand wie ein Passepartout, oben rechts abgeschrägt */
.stapel__blatt { position: relative; width: fit-content; max-width: 100%; }
.stapel__rahmen { --c: 20px; --pp: clamp(7px, .8vw, 12px); position: relative; background: var(--graphite); padding: var(--pp); }
/* in der Liste nie höher als gut zwei Drittel des Bildschirms (Hochformate am Handy quer) */
.stapel__rahmen img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(72svh, 560px); border-radius: 6px; }

/* mit Script: Die Bühne bleibt stehen, solange man durch den Stapel scrollt. --schritt ist der Weg je
   Motiv, --lauf der ganze Weg (die .7 sind die Ruhe am Anfang und am Ende, VOR und NACH in stapel()). */
.stapel.is-buehne { --schritt: 52svh; --lauf: calc((var(--n) - 1 + .7) * var(--schritt)); height: calc(100svh + var(--lauf)); margin-top: clamp(8px, 2vw, 32px); }
.is-buehne .stapel__buehne { position: sticky; top: 0; height: 100svh; padding: 112px 0 clamp(24px, 4svh, 48px); }
.is-buehne .stapel__raster {
  height: 100%; display: grid; column-gap: clamp(20px, 2.6vw, 44px);
  grid-template-columns: [schiene] 8px [text] minmax(0, 4fr) [karte] minmax(0, 7fr);
  grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr);
}
.is-buehne .stapel__liste, .is-buehne .stapel__teil { display: contents; }
/* Alle Namen liegen in derselben Zelle, ebenso alle Sätze und alle Motive; das Script zeigt die vorderen.
   Der Name rollt in seiner Zeile: Was darüber oder darunter steht, schneidet die Zeile ab. Die Größe
   ist so gewählt, dass auch „Chat-Oberfläche“ in eine Zeile passt (sonst steht er unten bündig). */
.is-buehne .stapel__name { grid-column: text; grid-row: 2; align-self: end; position: relative; z-index: 2; overflow: clip; padding-bottom: .1em; font-size: clamp(30px, 3.7vw, 56px); font-weight: 500; line-height: 1.1; letter-spacing: -.014em; }
.is-buehne .stapel__name > span { will-change: transform; }
.is-buehne .stapel__satz { grid-column: text; grid-row: 3; position: relative; z-index: 2; align-self: start; margin-top: clamp(12px, 1.4vw, 20px); max-width: 24ch; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; }
.is-buehne .stapel__karte { grid-column: karte; grid-row: 1 / -1; margin: 0; container-type: size; display: grid; place-items: center; }
.is-buehne .stapel__blatt { grid-area: 1 / 1; will-change: transform, opacity; }
/* jedes Motiv so groß wie möglich: höchstens so breit wie die Bühne und 84 % so hoch (Platz für den Stapel) */
.is-buehne .stapel__rahmen img { width: min(100cqw - 2 * var(--pp), (84cqh - 2 * var(--pp)) * var(--ar)); max-height: none; }
/* der Dunst: Rückt ein Motiv nach hinten, legt sich Lilac darüber */
.is-buehne .stapel__rahmen::after { content: ""; position: absolute; inset: 0; background: var(--lilac); opacity: var(--dunst, 0); pointer-events: none; }
/* ein weicher Schatten unter jedem Blatt gibt dem Stapel Tiefe */
.is-buehne .stapel__blatt::before { content: ""; position: absolute; inset: 14% 3% -7%; z-index: -1; opacity: var(--schatten, 1); background: radial-gradient(closest-side, rgb(36 38 44 / .32), rgb(36 38 44 / 0)); }
/* die Schiene: sieben Punkte untereinander, der Zeiger wandert mit dem Scrollen nach unten */
.is-buehne .stapel__schiene { --takt: 18px; grid-column: schiene; grid-row: 2 / 4; align-self: center; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: calc(var(--takt) - 6px); }
.stapel__schiene i { width: 6px; height: 6px; border-radius: 50%; background: rgb(36 38 44 / .3); }
.stapel__schiene b { position: absolute; left: 50%; top: -8px; width: 6px; height: 22px; margin-left: -3px; border-radius: 3px; background: var(--graphite); transform: translate3d(0, calc(var(--p, 0) * var(--takt)), 0); }
/* mit Maus neigt sich der Stapel leicht zum Zeiger (das Script setzt --kx und --ky) */
@media (hover: hover) and (pointer: fine) {
  .is-buehne .stapel__blatt { perspective: 1600px; }
  .is-buehne .stapel__rahmen { transform: rotateX(var(--ky, 0deg)) rotateY(var(--kx, 0deg)); }
}
/* Tablet und Handy hochkant: Name und Satz über dem Stapel */
@media (max-width: 1023px) {
  .is-buehne .stapel__buehne { padding: 96px 0 clamp(14px, 3svh, 32px); }
  .is-buehne .stapel__raster { grid-template-columns: [schiene] 8px [text] minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 18px; }
  .is-buehne .stapel__name { grid-row: 1; font-size: clamp(30px, 5.4vw, 48px); }
  .is-buehne .stapel__satz { grid-row: 2; margin-top: 8px; max-width: 34ch; font-size: clamp(16px, 2.2vw, 20px); }
  .is-buehne .stapel__schiene { --takt: 15px; grid-row: 1 / 3; align-self: start; margin-top: .4em; }
  /* Die Motive hängen oben unter dem Text, mit etwas Luft für den Stapel dahinter; was ein Motiv
     kürzer ist als die Bühne, bleibt unten frei */
  .is-buehne .stapel__karte { grid-column: 1 / -1; grid-row: 3; margin-top: clamp(4px, 1svh, 12px); place-items: start center; }
  .is-buehne .stapel__blatt { margin-top: 7cqh; }
  .is-buehne .stapel__rahmen img { width: min(100cqw - 2 * var(--pp), (88cqh - 2 * var(--pp)) * var(--ar)); }
}
/* die gezeichneten Fenster (Kit-Fragmente window und chat) in den Markenfarben */
.ui { --fx-bg: #fdfcfe; --fx-surface: #f1ebff; --fx-ink: #24262c; --fx-muted: #52555c; --fx-accent: #6f6089; --fx-accent-ink: #fdfcfe; --ui-font: var(--font); --ui-radius: 12px; color: var(--graphite); }
/* die vorbereitete Antwort mit den zwei Knöpfen */
.fg__blatt {
  display: grid; gap: 16px; align-content: start; padding: 20px; border-radius: 12px; background: #fdfcfe; color: var(--graphite);
  font-size: 14px; line-height: 1.5; box-shadow: 0 1px 2px rgb(36 38 44 / .08), 0 16px 40px -16px rgb(36 38 44 / .3);
}
.fg__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fg__marke { padding: 4px 10px; border-radius: 999px; background: var(--lime); font-weight: 600; font-size: 13px; }
.fg__zahl { color: #52555c; font-size: 13px; }
.fg__meta { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid rgb(36 38 44 / .1); }
.fg__meta > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); }
.fg__meta dt { color: #52555c; }
.fg__meta dd { font-weight: 600; }
.fg__text { display: grid; gap: 10px; }
.fg__knoepfe { display: flex; gap: 8px; }
.fg__knopf { display: inline-grid; place-items: center; height: 40px; padding: 0 18px; border-radius: 8px; font-weight: 600; border: 1px solid rgb(36 38 44 / .22); }
.fg__knopf--ja { background: var(--graphite); color: var(--paper); border-color: transparent; }
.fg__liste { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid rgb(36 38 44 / .1); }
.fg__liste li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 8px; background: #efe8fb; }
.fg__liste b { font-weight: 600; }
.fg__liste span { color: #52555c; font-size: 13px; }

/* ------------------------------------------------------------------ Team (Lilac) */
.team__kopf { display: grid; gap: 22px; justify-items: start; }
.team__kopf .h2 { max-width: 16ch; }
/* drei gleich große Karten; Richard in der Mitte steht etwas tiefer als die beiden anderen. Im Quelltext
   steht er vorn (so am Handy): Er bekommt die mittlere Spalte, dense füllt links und rechts mit den anderen. */
.team__reihe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: clamp(24px, 3vw, 44px); margin-top: clamp(44px, 5.4vw, 80px); align-items: start; }
.person { outline: none; cursor: pointer; }
.person--mitte { grid-column: 2; margin-top: clamp(0px, 5.4vw, 80px); }
/* Foto wie auf der bisherigen Seite: Sessel in Ruhe, Porträt beim Hovern */
.person__bild { --c: 28px; position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--graphite-3); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); transition: transform 700ms var(--ease); }
.person__bild picture { display: contents; }
.person__bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 700ms ease, transform 1100ms var(--ease); }
/* Das Porträt sitzt in einer Box von 124 % der Kartenhöhe; top je Person bringt alle Köpfe auf eine Höhe */
.person__bild .person__portrait { opacity: 0; inset: auto 0 auto 0; height: 124%; transform: scale(1.06); transform-origin: 50% 0; }
.person:focus-visible .person__bild, .person.ist-gewechselt .person__bild { transform: translateY(-6px); }
.person:focus-visible .person__sessel, .person.ist-gewechselt .person__sessel { transform: scale(1.05); }
.person:focus-visible .person__portrait, .person.ist-gewechselt .person__portrait { opacity: 1; transform: scale(1); }
/* Hovern nur mit echtem Zeiger: Am Handy bliebe :hover nach dem Tippen hängen, und das zweite
   Tippen könnte nicht mehr zum Sesselfoto zurück. Dort wechselt das Tippen (Team.astro). */
@media (hover: hover) {
  .person:hover .person__bild { transform: translateY(-6px); }
  .person:hover .person__sessel { transform: scale(1.05); }
  .person:hover .person__portrait { opacity: 1; transform: scale(1); }
}
.person:focus-visible .person__bild { outline: 2px solid var(--lime); outline-offset: 4px; }
.person__name { margin-top: 22px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.15; }
.person__rolle { margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.person__text { margin-top: 16px; color: var(--muted); text-wrap: pretty; }
/* Tablet: weiter drei Spalten wie am Desktop, mit etwas kleinerem Text */
@media (max-width: 1023px) {
  .person__name { margin-top: 18px; }
  .person__text { margin-top: 12px; font-size: 15.5px; line-height: 1.55; }
}
/* Handy: die drei Karten untereinander in der Reihenfolge des Quelltexts, Richard zuerst */
@media (max-width: 699px) {
  .team__reihe { grid-template-columns: minmax(0, 1fr); row-gap: 64px; }
  .person--mitte { grid-column: auto; margin-top: 0; }
  .person__name { margin-top: 22px; }
  .person__text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .person__bild, .person__bild img { transition: none; }
}

/* ------------------------------------------------------------------ Fragen */
.fragen__kopf { text-align: center; display: grid; justify-items: center; gap: 20px; }
.fragen__gruppe { width: min(100%, 940px); margin: clamp(40px, 5vw, 72px) auto 0; }
.fragen__gruppe + .fragen__gruppe { margin-top: clamp(40px, 4.4vw, 64px); }
.fragen__thema { font-size: clamp(24px, 2.3vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.fragen__liste { display: grid; gap: 12px; margin-top: 18px; }
.frage { background: var(--card); }
.frage summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 20px; padding: 22px 26px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; line-height: 1.3; }
.frage summary::-webkit-details-marker { display: none; }
/* die Plakette rechts: Plus zum Aufklappen, Minus zum Schließen */
.frage summary::after {
  content: "+"; width: 28px; height: 28px; display: grid; place-items: center; background: var(--lime); color: var(--graphite);
  font-size: 20px; line-height: 1; font-weight: 600;
  clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%);
}
.frage[open] summary::after { content: "–"; }
.frage p { padding: 0 26px 26px; color: var(--muted); max-width: 70ch; }
@media (max-width: 639px) {
  .frage summary { gap: 16px; padding: 20px; }
  .frage p { padding: 0 20px 22px; }
}

/* ------------------------------------------------------------------ Schluss mit Formular */
.schluss { padding-bottom: clamp(48px, 6vw, 88px); }
.schluss__kopf { text-align: center; display: grid; justify-items: center; gap: 24px; }
.schluss__kopf .xl { font-size: clamp(32px, 6.2vw, 92px); max-width: none; }
.schluss__kopf p { max-width: 56ch; color: var(--muted); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(100%, 940px); margin: clamp(36px, 4.6vw, 64px) auto 0; }
.feld { display: grid; gap: 8px; align-content: start; }
.feld label { font-size: 14px; font-weight: 600; }
/* Der Rand macht das Feld erkennbar: Die Fläche allein hebt sich auf Graphite kaum ab (1,15 : 1), der Rand mit 3 : 1 */
.feld input:not([type="checkbox"]) { width: 100%; height: 60px; padding: 0 18px; border: 1px solid rgb(241 235 255 / .36); border-radius: 0; background: var(--card); color: var(--fg); font-size: 17px; }
.feld input:not([type="checkbox"]):focus-visible { outline: 0; border-color: var(--lime); }
.feld textarea { width: 100%; min-height: 150px; padding: 16px 18px; border: 1px solid rgb(241 235 255 / .36); border-radius: 0; background: var(--card); color: var(--fg); font: inherit; font-size: 17px; line-height: 1.5; resize: vertical; }
.feld textarea:focus-visible { outline: 0; border-color: var(--lime); }
.feld input[aria-invalid="true"] { border-color: #ff8a80; border-width: 2px; }
.feld__fehler { font-size: 14px; font-weight: 600; color: #ffaba3; }
.feld--breit, .form .btn-row, .form__status, .form__hinweis { grid-column: 1 / -1; }
.feld--haken label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 44px; font-weight: 400; font-size: 15px; line-height: 1.5; cursor: pointer; }
.feld--haken input { width: 24px; height: 24px; margin: 0; accent-color: var(--lime); }
.feld--haken a { text-decoration: underline; text-underline-offset: .2em; }
.form__status { min-height: 1.5em; font-weight: 600; }
.form__status:empty { min-height: 0; }
.form__hinweis { font-size: 14px; color: var(--muted); }
.leer { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 639px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ Fuß: eine abgesetzte Tafel */
.fuss { margin-top: clamp(64px, 8vw, 120px); padding: clamp(28px, 4vw, 56px); background: var(--graphite-deep); border-radius: 18px; display: grid; gap: clamp(32px, 4vw, 56px); }
.fuss__oben { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
/* der Link um das Logo ist mindestens 44 px hoch, auch wenn das Logo am Handy nur 34 px misst */
.fuss__marke { display: inline-flex; align-items: center; min-height: 44px; }
.fuss__marke img { height: clamp(34px, 3.4vw, 46px); width: auto; }
.fuss__zeile { margin-top: 22px; font-size: clamp(19px, 1.8vw, 25px); line-height: 1.35; font-weight: 500; max-width: 26ch; color: var(--lime); }
.fuss__spalten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fuss__spalten h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.fuss__spalten a { display: flex; align-items: center; min-height: 44px; color: var(--muted); }
.fuss__spalten a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: .25em; }
/* unten drei Plätze: links der Vermerk, in der Mitte der Urheber, rechts die drei Netzwerke */
.fuss__unten { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px 24px; padding-top: 22px; border-top: 1px solid rgb(241 235 255 / .12); font-size: 14px; color: var(--muted); }
.fuss__autor { display: inline-flex; align-items: center; min-height: 44px; text-align: center; }
.fuss__autor:hover { color: var(--paper); }
.fuss__sozial { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; gap: 8px; }
.fuss__sozial a, .fuss__sozial span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--lime); box-shadow: inset 0 0 0 1px rgb(197 255 31 / .32); transition: background-color 220ms var(--ease), color 220ms var(--ease); }
.fuss__sozial svg { width: 20px; height: 20px; fill: currentColor; }
.fuss__sozial a:hover { background: var(--lime); color: var(--graphite); box-shadow: none; }
@media (max-width: 699px) {
  .fuss__unten { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 10px; }
  .fuss__sozial { justify-content: center; order: -1; }
}
@media (max-width: 899px) { .fuss__oben { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 519px) { .fuss__spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ Einblenden beim Scrollen
   Erst wenn das Script läuft (html.js), sonst steht alles da. */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); }
html.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 800ms var(--ease), transform 800ms var(--ease); transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { html.js [data-reveal] { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ Unterseiten mit Fließtext (blasses Lilac) */
.textseite { background: var(--lilac-pale); color: var(--graphite); min-height: 100svh; padding-block: clamp(140px, 14vw, 190px) clamp(64px, 8vw, 110px); --fg: var(--graphite); --muted: #52555c; --card: #fdfcfe; --line: rgb(36 38 44 / .2); --btn-bg: var(--graphite); --btn-fg: var(--paper); }
.textseite > .wrap > * { max-width: 46rem; }
/* Am Handy haben alle Abschnitts-Überschriften dieselbe Größe (vorher 34, 36 und 38 px). 34 px, damit
   „Was Poldi dir abnimmt“ in einer Zeile bleibt. Die zwei großen Sätze (Fragen, Kontakt) sind eigene Größen. */
@media (max-width: 639px) {
  .h2, .aussage__text .h2, .aufg__seite .h2 { font-size: 34px; }
}
.textseite h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; margin: 22px 0 14px; }
/* Ein Wort, das breiter ist als die Zeile, läuft nicht über den Rand. Die langen Wörter im Titel
   trennen an der Wortfuge (weiches Trennzeichen, Rechtstext.astro). */
.textseite :is(h1, h2, h3) { overflow-wrap: break-word; }
.textseite h2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; font-weight: 600; margin: 56px 0 14px; }
.textseite h3 { font-size: 19px; line-height: 1.4; font-weight: 600; margin: 28px 0 6px; }
.textseite :is(p, ul, ol, address, dl, table) { margin: 0 0 16px; line-height: 1.65; }
.textseite :is(ul, ol) { padding-left: 1.3em; }
.textseite ul { list-style: disc; }
.textseite ol { list-style: decimal; }
.textseite address { font-style: normal; }
.textseite :is(p, li, address, dd) a, .textseite__inhalt a { text-decoration: underline; text-underline-offset: .2em; }
.textseite__stand { font-size: 14px; color: var(--muted); }
.textseite__inhalt ol { display: grid; gap: 4px; }
.textseite .form { margin: 40px 0 0; width: 100%; }
.textseite .feld input:not([type="checkbox"]) { border-color: rgb(36 38 44 / .25); }
.textseite .feld input:not([type="checkbox"]):focus-visible { border-color: var(--graphite); }
.textseite .feld--haken input { accent-color: var(--graphite); }
.textseite .feld input[aria-invalid="true"] { border-color: #b3261e; }
.textseite .feld__fehler { color: #8c1d18; }
.textseite .fq { margin: 0 0 8px; padding: 18px 0; border-bottom: 1px solid rgb(36 38 44 / .16); }
.textseite .fq h3 { margin: 0 0 6px; }
.textseite .fq p { margin: 0; }
.fuss-klein { background: var(--graphite); color: var(--paper); padding-block: 28px; }
.fuss-klein__reihe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; font-size: 14px; }
.fuss-klein__reihe img { height: 28px; width: auto; }
.fuss-klein__links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.fuss-klein__links a { display: inline-flex; align-items: center; min-height: 44px; }
.fuss-klein__links a:hover { text-decoration: underline; text-underline-offset: .25em; }
