/* ==========================================================================
   SIEDEPUNKT — Kaffeerösterei & Café (fiktiv)
   Designstudie von mabu:design

   Aufbau
   1.  Schriften
   2.  Registrierte Custom Properties (@property)
   3.  Tokens
   4.  Basis & Hilfsklassen
   5.  Kopf, Navigation, Fortschritt
   6.  Held (kinetische Typo)
   7.  Laufband
   8.  Abschnitts-Kopf & Titel
   9.  01 Rösterei (Editorial)
   10. 02 Reise
   11. 03 Röstprofil
   12. 04 Brühen
   13. 05 Shop & Warenkorb
   14. 06 Café
   15. Röstbrief & Fuß
   16. Scroll-getriebene Animationen (nur mit Unterstützung)
   17. View Transitions
   18. Zeitbasierte Schleifen & reduzierte Bewegung
   ========================================================================== */


/* 1. SCHRIFTEN ============================================================= */
/* Fraunces „full“: alle vier Achsen (opsz, wght, SOFT, WONK) */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-ext-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-ext-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans variabel (wght + opsz); kursiv wird nicht gebraucht */
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-ext-opsz-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* 2. REGISTRIERTE CUSTOM PROPERTIES ======================================
   Registriert = typisiert = animierbar. Die Fraunces-Achsen hängen an
   --wght/--opsz/--soft/--wonk; scroll-getriebene Keyframes verändern nur
   diese Zahlen, font-variation-settings rechnet daraus. */
@property --wght   { syntax: "<number>"; inherits: true;  initial-value: 400; }
@property --opsz   { syntax: "<number>"; inherits: true;  initial-value: 144; }
@property --soft   { syntax: "<number>"; inherits: true;  initial-value: 50; }
@property --wonk   { syntax: "<number>"; inherits: true;  initial-value: 0; }
@property --kochen { syntax: "<number>"; inherits: true;  initial-value: 0; }    /* 0 = lauwarm, 1 = siedend */
@property --roest  { syntax: "<number>"; inherits: true;  initial-value: .5; }   /* Röstgrad 0 … 1 */
@property --zahl   { syntax: "<integer>"; inherits: true; initial-value: 0; }    /* hochzählende Zahlen */
@property --crema  { syntax: "<angle>";  inherits: false; initial-value: 0deg; } /* Crema-Wirbel im Tassenpunkt */
@property --ring   { syntax: "<angle>";  inherits: false; initial-value: 0deg; } /* Rahmen „Kaffee des Monats“ */
@property --glanz  { syntax: "<percentage>"; inherits: false; initial-value: -30%; } /* Knopf-Schimmer */
@property --glut-x { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
@property --glut-y { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --fuell  { syntax: "<percentage>"; inherits: false; initial-value: 0%; }  /* Wortmarke im Fuß */


/* 3. TOKENS ================================================================ */
:root {
  --papier: #f3ece0;
  --papier-hell: #faf6ef;
  --papier-dunkel: #e8dbc5;
  --tinte: #22150e;
  --espresso: #2b1a11;
  --espresso-hell: #3d2618;
  --mokka: #6b4a36;
  --orange: #b4461a;       /* Text-tauglich auf Papier (≥ 4,5 : 1) */
  --orange-hell: #e0672a;  /* für dunkle Flächen und große Formen */
  --kuehl: #2e6468;        /* der kühle Gegenpol: Wasser, Fokus */
  --kuehl-hell: #9ccbc7;
  --kirsche: #b3322a;
  --linie: rgb(34 21 14 / .16);
  --linie-hell: rgb(243 236 224 / .2);

  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --text: clamp(1.0625rem, 1rem + .22vw, 1.1875rem);
  --lead: clamp(1.3rem, 1.05rem + 1vw, 2.1rem);
  --titel: clamp(2.6rem, 1.3rem + 5.4vw, 7.4rem);

  --rand: clamp(16px, 4.5vw, 72px);
  --max: 1400px;
  --kopfhoehe: 4.25rem;
  --spalt: clamp(1.5rem, 3vw, 3rem); /* Spaltenabstand des 3/9-Rasters */
  --ease-raus: cubic-bezier(.16, 1, .3, 1);
}


/* 4. BASIS & HILFSKLASSEN ================================================= */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--kopfhoehe) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: var(--text);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* Sicherheitsnetz: kein horizontales Scrollen auf dem Handy */
}

/* Papierkorn: SVG-feTurbulence als Kachel, einmal gerastert, fixiert über allem */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .12 0 0 0 0 .06 0 0 0 -1.6 1.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E");
  opacity: .38;
  mix-blend-mode: multiply;
}

/* Horizontal überstehende Deko (gedrehtes Laufband, Reise-Spur) sauber abschneiden.
   clip statt hidden: erzeugt keinen Scroll-Container, position: sticky bleibt intakt. */
main { overflow-x: clip; }

img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
p { margin: 0; }
/* :where() = Spezifität 0, damit Klassen (z. B. .reise__spur) Abstände setzen können */
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--kuehl);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--orange-hell); color: var(--tinte); }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprunglink {
  position: fixed;
  z-index: 100;
  top: .75rem; left: .75rem;
  padding: .7rem 1.1rem;
  background: var(--espresso);
  color: var(--papier);
  border-radius: 99px;
  font-weight: 600;
  translate: 0 -200%;
  transition: translate .3s var(--ease-raus);
}
.sprunglink:focus-visible { translate: 0 0; }

.symbole { position: absolute; width: 0; height: 0; overflow: hidden; }

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

/* Alle Elemente in Fraunces bekommen die vier Achsen – auch ihre Kinder,
   damit ein <em> nur eigene Achsenwerte setzen muss. */
:where(.logo__wort, .held__titel, .titel, .abschnitt-nr, .editorial__lead, .randnotiz,
       .zitat blockquote, .zahlen__zahl, .station__nr, .station h3, .notiz, .regler__stufe,
       .roester__text, .noten__liste, .grosszahl, .feld__einheit, .timer__zeit, .phasen__name,
       .kaffee__name, .kaffee__noten, .tuete__name, .kaffee__preis, .tafel, .oeffnung h3,
       .roestbrief__titel, .fuss__wortmarke, .schublade h2, .korb-posten__name,
       .demo-hinweis__titel, .protokoll__kopf, .fassade__schild, .fassade__nummer, .laufband__spur,
       .markierung text, .korb-leer p, .stempel text) {
  font-family: var(--serif);
}
:where(.logo__wort, .held__titel, .titel, .abschnitt-nr, .editorial__lead, .randnotiz,
       .zitat blockquote, .zahlen__zahl, .station__nr, .station h3, .notiz, .regler__stufe,
       .roester__text, .noten__liste, .grosszahl, .feld__einheit, .timer__zeit, .phasen__name,
       .kaffee__name, .kaffee__noten, .tuete__name, .kaffee__preis, .tafel, .oeffnung h3,
       .roestbrief__titel, .fuss__wortmarke, .schublade h2, .korb-posten__name,
       .demo-hinweis__titel, .protokoll__kopf, .fassade__schild, .fassade__nummer, .laufband__spur,
       .markierung text, .korb-leer p),
:where(.logo__wort, .titel, .editorial__lead, .randnotiz, .zitat blockquote, .zahlen__zahl,
       .station h3, .regler__stufe, .kaffee__preis, .tafel, .roestbrief__titel, .fuss__wortmarke) * {
  font-variation-settings: "wght" var(--wght), "opsz" var(--opsz), "SOFT" var(--soft), "WONK" var(--wonk);
}

/* Knöpfe ------------------------------------------------------------------ */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 3rem;
  padding: .8rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 99px;
  font: 600 1rem/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .35s var(--ease-raus), background-color .3s, color .3s, border-color .3s, --glanz .9s var(--ease-raus);
}
.knopf:active { transform: scale(.97); }

/* @property-Verlauf: Beim Hover wandert ein Schimmer durch den Knopf */
.knopf--voll {
  color: var(--papier-hell);
  background:
    linear-gradient(105deg, transparent calc(var(--glanz) - 18%), rgb(255 214 170 / .38) var(--glanz), transparent calc(var(--glanz) + 18%)),
    var(--orange);
}
.knopf--voll:hover { --glanz: 130%; }
.knopf--linie { border-color: currentColor; background: transparent; color: var(--tinte); }
.knopf--linie:hover { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }
.knopf--dunkel { background: var(--espresso); color: var(--papier); }
.knopf--dunkel:hover { background: var(--tinte); }
.knopf--breit { width: 100%; }

/* Dachzeile --------------------------------------------------------------- */
.dachzeile {
  display: flex;
  align-items: center;
  gap: .75em;
  font: 650 .8125rem/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
}
.dachzeile::before {
  content: "";
  width: 2.25em;
  height: 1.5px;
  background: currentColor;
}
.dachzeile__nr { font-variant-numeric: tabular-nums; }

.kleingedrucktes { font-size: .8125rem; line-height: 1.5; color: var(--mokka); }


/* 5. KOPF, NAVIGATION, FORTSCHRITT ======================================= */
.fortschritt {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(var(--fs, 0));
  background: linear-gradient(90deg, var(--kuehl), var(--orange-hell) 60%, var(--kirsche));
  pointer-events: none;
}

.kopf {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
}
/* Hintergrund als eigene Ebene: wird beim Scrollen eingeblendet (nur opacity) */
.kopf::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--papier) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--linie);
}
.kopf__innen {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--kopfhoehe);
  width: min(100% - 2 * var(--rand), var(--max));
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  margin-right: auto;
}
.logo__wort {
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -.02em;
  --wght: 640; --opsz: 36; --soft: 100; --wonk: 1;
}
.logo__punkt {
  width: .42rem;
  height: .42rem;
  margin-left: .12rem;
  border-radius: 50%;
  background: var(--orange-hell);
}

/* Navigation: Handy = Popover, ab 64em = Leiste */
.nav__liste { list-style: none; margin: 0; padding: 0; }
.nav__liste a {
  text-decoration: none;
  background: linear-gradient(currentColor 0 0) 0 100% / 0 1.5px no-repeat;
  transition: background-size .4s var(--ease-raus), color .2s;
}
.nav__liste a:hover,
.nav__liste a.aktiv { background-size: 100% 1.5px; }
.nav__liste a.aktiv { color: var(--orange); }

/* Modernes Scroll-Spy ohne JS: scroll-target-group + :target-current.
   Die Gruppe umfasst auch das Logo (#start) – so ist im Held kein Menüpunkt aktiv. */
.kopf__innen { scroll-target-group: auto; }
.nav__liste a:target-current { background-size: 100% 1.5px; color: var(--orange); }

.nav[popover] {
  /* Handy: Vollbild-Panel im Top-Layer */
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: calc(var(--kopfhoehe) + 2rem) var(--rand) 2rem;
  border: 0;
  background: var(--espresso);
  color: var(--papier);
  overflow: auto;
}
.nav[popover]:popover-open {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nav[popover] .nav__liste {
  display: grid;
  gap: .25rem;
}
.nav[popover] .nav__liste a {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 11vw, 4rem);
  line-height: 1.15;
  font-variation-settings: "wght" 480, "opsz" 144, "SOFT" 100, "WONK" 1;
}
.nav__fuss { font-size: .875rem; color: rgb(243 236 224 / .7); }
.nav__schliessen {
  position: absolute;
  top: calc((var(--kopfhoehe) - 2.75rem) / 2);
  right: var(--rand);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
}
.nav__schliessen svg { width: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav[popover] :focus-visible { outline-color: var(--papier); }

/* Popover-Einblendung mit @starting-style */
@media (prefers-reduced-motion: no-preference) {
  .nav[popover] {
    transition: opacity .35s, translate .45s var(--ease-raus), overlay .45s allow-discrete, display .45s allow-discrete;
    opacity: 0;
    translate: 0 -1.5rem;
  }
  .nav[popover]:popover-open { opacity: 1; translate: 0 0; }
  @starting-style {
    .nav[popover]:popover-open { opacity: 0; translate: 0 -1.5rem; }
  }
}

.kopf__aktionen {
  display: flex;
  align-items: center;
  gap: .5rem;
  position: relative;
}

.korb-knopf {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .35rem .4rem .35rem .95rem;
  border: 0;
  border-radius: 99px;
  background: var(--espresso);
  color: var(--papier);
  font: 600 .9rem/1 var(--sans);
  transition: transform .3s var(--ease-raus), background-color .3s;
}
.korb-knopf:hover { background: var(--tinte); }
.korb-knopf__icon {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.korb-knopf { flex: none; }
/* Sehr schmale Handys: „Korb“ nur noch für Screenreader, Icon + Zahl bleiben */
@media (max-width: 23.5em) {
  .korb-knopf { padding-left: .75rem; }
  .korb-knopf__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.korb-zahl {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding-inline: .45rem;
  border-radius: 99px;
  background: var(--orange-hell);
  color: var(--tinte);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.korb-zahl.stups { animation: stups .55s var(--ease-raus); }
@keyframes stups {
  30% { transform: scale(1.35); }
  60% { transform: scale(.92); }
}

.menue-knopf {
  display: grid;
  place-content: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--tinte);
  border-radius: 50%;
  background: transparent;
}
.menue-knopf span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
}

@media (min-width: 64em) {
  .nav[popover] {
    /* Desktop: Popover-Verhalten neutralisieren, einfach sichtbar */
    display: block;
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    color: inherit;
    overflow: visible;
    opacity: 1;
    translate: none;
  }
  .nav[popover] .nav__liste {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
  }
  .nav[popover] .nav__liste a {
    font: 520 .95rem/1 var(--sans);
    padding-block: .45rem;
    font-variation-settings: normal;
  }
  .nav__fuss, .nav__schliessen, .menue-knopf { display: none; }
}


/* 6. HELD — KINETISCHE TYPO =============================================== */
.held {
  position: relative;
  background:
    radial-gradient(60rem 40rem at 88% 8%, rgb(224 103 42 / .10), transparent 70%),
    radial-gradient(50rem 36rem at 0% 100%, rgb(46 100 104 / .08), transparent 70%);
}
.held__buehne {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--kopfhoehe) + clamp(.5rem, 1.6vw, 1.25rem)) var(--rand) clamp(1.25rem, 3vw, 2.5rem);
  overflow: clip;
}

.held__kopfzeile {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .6rem;
  border-block: 1px solid var(--linie);
  font: 650 .6875rem/1.2 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.held__kopfzeile sup { font-size: .8em; vertical-align: .35em; }
.held__kopfzeile-mitte { display: none; }

.held__titel {
  position: relative;
  z-index: 1;
  align-self: center;
  margin: 0;
  padding-block: .06em .02em;
  font-size: min(30vw, 30svh);
  line-height: .8;
  letter-spacing: -.045em;
  font-weight: 400;
}
.zeile { display: block; white-space: nowrap; }
.zeile--zwei { text-align: right; }

/* Jeder Buchstabe erhitzt sich leicht verzögert (--i).
   --kochen kommt als animierte, registrierte Zahl vom Elternelement. */
.bst {
  --lokal: clamp(0, var(--kochen) * 1.9 - var(--i) * .09, 1);
  display: inline-block;
  font-variation-settings:
    "wght" calc(260 + var(--lokal) * 640),
    "opsz" calc(144 - var(--lokal) * 30),
    "SOFT" calc(var(--lokal) * 100),
    "WONK" var(--lokal);
  color: color-mix(in oklab, var(--orange) calc(var(--lokal) * 100%), var(--tinte));
  /* kleine Blubber-Welle, stärker je heißer */
  transform: translateY(calc(sin(var(--lokal) * 6.2832 + var(--i) * .9) * -.035em * var(--lokal)));
}

/* Der Punkt von „punkt.“ ist eine Tasse von oben – Crema dreht per @property */
.tassenpunkt {
  position: relative;
  display: inline-block;
  width: .27em;
  height: .27em;
  margin-left: .05em;
  border-radius: 50%;
  background: radial-gradient(circle, #fbf6ee 0 58%, #e7dac4 59% 100%);
  box-shadow: 0 .012em .03em rgb(43 26 17 / .25);
}
.tassenpunkt::before {
  /* Kaffee mit Crema-Wirbel */
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 30%, rgb(43 26 17 / .25) 100%),
    conic-gradient(from var(--crema), #8a5530, #d49a5c, #8a5530, #6e3f22, #c98b52, #8a5530);
}
.tassenpunkt::after {
  /* Henkel */
  content: "";
  position: absolute;
  top: 40%;
  right: -10%;
  width: 16%;
  height: 20%;
  border-radius: 99px;
  background: #fbf6ee;
  box-shadow: 0 .005em .01em rgb(43 26 17 / .2);
}
.tassenpunkt__dampf {
  position: absolute;
  left: 50%;
  bottom: 96%;
  width: .26em;
  height: auto;
  translate: -50% 0;
  overflow: visible;
  opacity: calc(.35 + var(--kochen) * .65);
}
.tassenpunkt__dampf path {
  fill: none;
  stroke: var(--mokka);
  stroke-width: 3.5;
  stroke-linecap: round;
  opacity: .55;
}

/* Blasen */
.blasen {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: calc(var(--kochen) * 1.8 - .55);
}
.blasen i {
  position: absolute;
  bottom: -3rem;
  left: var(--x);
  width: calc(var(--s) * 1.7rem);
  aspect-ratio: 1;
  border: 2px solid var(--orange-hell);
  border-radius: 50%;
}

/* Thermometer ohne Zahlen */
.thermo {
  position: absolute;
  top: 50%;
  right: calc(var(--rand) * .35);
  translate: 0 -50%;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  font: 650 .625rem/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mokka);
}
.thermo__label { writing-mode: vertical-rl; rotate: 180deg; }
.thermo__label--oben { color: var(--orange); }
.thermo__roehre {
  position: relative;
  width: 8px;
  height: 26svh;
  border-radius: 99px;
  background: rgb(34 21 14 / .1);
  overflow: hidden;
}
.thermo__fuellung {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to top, var(--kuehl), var(--orange-hell) 70%, var(--kirsche));
  clip-path: inset(calc((.92 - var(--kochen) * .92) * 100%) 0 0 0 round 99px);
}

.held__fuss {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  align-items: end;
}
.held__intro {
  max-width: 34ch;
  font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.held__knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; }
.held__hinweis {
  display: none;
  font: 600 .75rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mokka);
}
.held__pfeil { display: inline-block; font-size: 1.1rem; color: var(--orange); }

.stempel {
  /* Handy: schwebt rechts über dem Einleitungstext */
  position: absolute;
  top: -5.4rem;
  right: -.25rem;
  width: clamp(4.75rem, 20vw, 5.75rem);
  z-index: 2;
}
.stempel svg { display: block; width: 100%; height: auto; overflow: visible; }
.stempel text {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  fill: var(--tinte);
}
.stempel__ring { transform-origin: 100px 100px; }
.stempel__bohne { color: var(--orange-hell); --bohne-furche: var(--papier); }

@media (min-width: 48em) {
  .held__kopfzeile-mitte { display: inline; }
  .held__titel { font-size: min(19.5vw, 40svh); }
  .held__fuss {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
    column-gap: 2rem;
  }
  .held__fuss > .held__intro { grid-column: 1; }
  .held__knoepfe { grid-column: 1; grid-row: 2; }
  .held__hinweis { display: block; grid-column: 2; grid-row: 2; justify-self: center; text-align: center; padding-bottom: .9rem; }
  .stempel {
    position: static;
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
    width: clamp(7.5rem, 11vw, 10rem);
  }
}
@media (min-width: 64em) {
  .thermo { display: flex; }
}


/* 7. LAUFBAND ============================================================== */
.laufband {
  position: relative;
  z-index: 2;
  overflow: clip;
  background: var(--espresso);
  color: var(--papier);
  padding-block: 1.1rem;
  rotate: -1.6deg;
  scale: 1.04;
  margin-block: -.5rem;
  box-shadow: 0 18px 40px -20px rgb(0 0 0 / .5);
}
.laufband__spur {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  width: max-content;
  font-size: clamp(1.6rem, 1rem + 2.2vw, 3rem);
  font-style: italic;
  line-height: 1;
  white-space: nowrap;
  font-variation-settings: "wght" 380, "opsz" 72, "SOFT" 100, "WONK" 1;
}
.laufband__spur svg {
  width: .5em;
  height: .7em;
  flex: none;
  color: var(--orange-hell);
  --bohne-furche: var(--espresso);
}


/* 8. ABSCHNITTS-KOPF & TITEL ============================================= */
.abschnitt {
  position: relative;
  padding-block: clamp(5rem, 11vw, 11rem);
}
.abschnitt-kopf {
  position: relative;
  display: grid;
  gap: .9rem;
  margin-bottom: clamp(2.5rem, 6vw, 5.5rem);
}
.abschnitt-nr {
  font-size: clamp(4.5rem, 3rem + 9vw, 13rem);
  line-height: .78;
  letter-spacing: -.04em;
  color: var(--flaeche, var(--papier));
  -webkit-text-stroke: 2.8px var(--orange);
  paint-order: stroke fill; /* überdeckt die inneren Überlappungen der variablen Glyphen */
  --wght: 300; --opsz: 144; --soft: 100; --wonk: 1;
  margin-bottom: .5rem;
  user-select: none;
}
.titel {
  font-size: var(--titel);
  line-height: .96;
  letter-spacing: -.028em;
  text-wrap: balance;
  --wght: 440; --opsz: 144; --soft: 40; --wonk: 0;
}
.titel em {
  font-style: italic;
  color: var(--orange);
  --wght: 400; --soft: 100; --wonk: 1;
}
.abschnitt-lead {
  max-width: 44ch;
  margin-top: .6rem;
  font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem);
  line-height: 1.55;
  color: var(--mokka);
  text-wrap: pretty;
}

@media (min-width: 60em) {
  .abschnitt-kopf {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: var(--spalt);
  }
  .abschnitt-kopf > .abschnitt-nr { grid-row: 1 / span 3; align-self: start; margin: 0; }
  .abschnitt-kopf > :not(.abschnitt-nr) { grid-column: 2; }
}


/* 9. 01 RÖSTEREI (EDITORIAL) ============================================== */
.editorial__lead {
  max-width: 30ch;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  font-size: var(--lead);
  line-height: 1.28;
  letter-spacing: -.01em;
  text-wrap: pretty;
  --wght: 340; --opsz: 48; --soft: 60; --wonk: 0;
}

.editorial__raster {
  display: grid;
  gap: 2rem;
}
.spalten {
  columns: 2 19rem;
  column-gap: clamp(2rem, 4vw, 4rem);
  column-rule: 1px solid var(--linie);
  hyphens: auto;
  -webkit-hyphens: auto;
}
.spalten p { margin-bottom: 1em; text-wrap: pretty; }

/* Initial: Firefox bekommt eine Float-Variante, der Rest echtes initial-letter */
.initial::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.9em;
  line-height: .78;
  padding: .06em .08em 0 0;
  color: var(--orange);
  font-variation-settings: "wght" 700, "opsz" 144, "SOFT" 100, "WONK" 1;
}
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  .initial::first-letter {
    float: none;
    font-size: 1em;
    line-height: 1;
    padding: 0 .12em 0 0;
    -webkit-initial-letter: 3;
    initial-letter: 3;
  }
}

.randnotiz {
  max-width: 24ch;
  padding-top: .8rem;
  border-top: 1.5px solid var(--orange);
  font-size: 1.06rem;
  font-style: italic;
  line-height: 1.38;
  color: var(--mokka);
  --wght: 380; --opsz: 14; --soft: 100; --wonk: 1;
}
.randnotiz__pfeil {
  display: none;
  width: 5.5rem;
  height: auto;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 60em) {
  .editorial__lead { margin-left: calc((100% - var(--spalt)) * .25 + var(--spalt)); } /* = Beginn der Titelspalte */
  .editorial__raster {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: var(--spalt);
    row-gap: 3rem;
  }
  .randnotiz--eins { grid-column: 1; grid-row: 1; align-self: start; }
  .randnotiz--zwei { grid-column: 1; grid-row: 1; align-self: end; }
  .spalten { grid-column: 2; grid-row: 1; }
  .randnotiz__pfeil { display: block; margin: -.2rem 0 .6rem auto; rotate: 8deg; }
}

.zitat {
  position: relative;
  margin: clamp(4.5rem, 10vw, 9rem) 0;
  text-align: center;
}
.zitat blockquote { margin: 0; }
.zitat blockquote p {
  max-width: 17ch;
  margin-inline: auto;
  font-size: clamp(2.3rem, 1rem + 5.2vw, 6.4rem);
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
  --wght: 360; --opsz: 144; --soft: 100; --wonk: 1;
}
.zitat__marke {
  display: block;
  height: .45em;
  margin-bottom: .1em;
  font-size: 1.9em;
  line-height: 0;
  color: var(--orange-hell);
}
.zitat figcaption {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  margin-top: 2rem;
  font: 650 .8125rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mokka);
}
.zitat figcaption::before, .zitat figcaption::after {
  content: "";
  width: 2rem;
  height: 1.5px;
  background: var(--orange);
}

.zahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  border-top: 1.5px solid var(--tinte);
}
.zahlen__eintrag {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--linie);
}
/* Die Zahl selbst ist ein CSS-Zähler aus der registrierten Ganzzahl --zahl */
.zahlen__zahl {
  --zahl: var(--ziel);
  counter-reset: z var(--zahl);
  display: flex;
  align-items: baseline;
  gap: .12em;
  margin-bottom: .6rem;
  font-size: clamp(5rem, 3rem + 7vw, 10rem);
  line-height: .85;
  letter-spacing: -.04em;
  font-variant-numeric: lining-nums;
  --wght: 720; --opsz: 144; --soft: 100; --wonk: 0;
}
.zahlen__zahl::before { content: counter(z); }
.zahlen__zahl span {
  font-size: .2em;
  font-style: italic;
  letter-spacing: 0;
  color: var(--orange);
  --wght: 420; --wonk: 1;
}
.zahlen__eintrag > p:last-child { max-width: 28ch; color: var(--mokka); }

@media (min-width: 56em) {
  .zahlen__eintrag { padding: 2rem clamp(1rem, 2.5vw, 2.5rem) 1rem; border-bottom: 0; }
  .zahlen__eintrag + .zahlen__eintrag { border-left: 1px solid var(--linie); }
  .zahlen__eintrag:first-child { padding-left: 0; }
}


/* 10. 02 REISE ============================================================= */
.reise {
  --flaeche: var(--papier-dunkel);
  position: relative;
  background: var(--papier-dunkel);
  view-timeline: --reise block;
}
.reise__buehne {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(5rem, 10vw, 8rem);
}
.reise__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 3rem;
  width: min(100% - 2 * var(--rand), var(--max));
  margin-inline: auto;
}
.reise__titel { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 6.2rem); margin-top: .8rem; }
.reise__intro { max-width: 26ch; color: var(--mokka); }

.reise__spur {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 4.5rem);
  padding-inline: var(--rand);
}
.station {
  display: grid;
  gap: 1.25rem;
  view-timeline: --station block;
}
.station__bild {
  position: relative;
  padding: clamp(.5rem, 2vw, 1.5rem);
}
.station__bild::before {
  /* heller „Teller“ hinter der Zeichnung */
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(78%, 30rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(250 246 239 / .95) 0 64%, rgb(250 246 239 / .5) 65% 69%, transparent 70%);
  outline: 1.5px dashed rgb(180 70 26 / .35);
  outline-offset: .8rem;
}
.station__bild .zeichnung { position: relative; }
.zeichnung {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.zeichnung .striche > * {
  fill: none;
  stroke: var(--tinte);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.zeichnung .striche--fein > * { stroke-width: 2; stroke: var(--orange); }
.zeichnung .glanz path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; opacity: .7; }
.notiz {
  font-size: 17px;
  font-style: italic;
  fill: var(--orange);
  font-variation-settings: "wght" 450, "opsz" 18, "SOFT" 100, "WONK" 1;
}
.notiz--knack { font-size: 24px; font-variation-settings: "wght" 700, "opsz" 36, "SOFT" 100, "WONK" 1; }

.station__text { position: relative; }
.station__nr {
  display: block;
  font-size: clamp(4rem, 2.5rem + 6vw, 9rem);
  line-height: .8;
  letter-spacing: -.04em;
  color: var(--flaeche, var(--papier));
  -webkit-text-stroke: 2.8px var(--orange);
  paint-order: stroke fill;
  font-variation-settings: "wght" 650, "opsz" 144, "SOFT" 100, "WONK" 1;
}
.station h3 {
  margin: .6rem 0 .7rem;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3.3rem);
  line-height: 1;
  letter-spacing: -.02em;
  --wght: 520; --opsz: 144; --soft: 100; --wonk: 1;
}
.station p { max-width: 34ch; color: var(--mokka); text-wrap: pretty; }

.reise__fortschritt { display: none; }

/* Tablet/Desktop ohne Scroll-Animation: echte horizontale Scroll-Leiste mit Snap */
@media (min-width: 48em) {
  .reise__spur {
    flex-direction: row;
    gap: 4vw;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--rand);
    padding-bottom: 1.5rem;
    scrollbar-color: var(--orange) transparent;
  }
  .station {
    flex: none;
    width: min(80vw, 1060px);
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    scroll-snap-align: start;
  }
}


/* 11. 03 RÖSTPROFIL ======================================================== */
.roestprofil {
  /* Bohnenfarbe rein in CSS: drei verschachtelte color-mix-Stufen,
     gesteuert von der registrierten (und damit weich animierten) Zahl --roest */
  --t1: clamp(0%, var(--roest) * 250%, 100%);
  --t2: clamp(0%, (var(--roest) - .4) * 333%, 100%);
  --t3: clamp(0%, (var(--roest) - .7) * 333%, 100%);
  --bohnenfarbe: color-mix(in oklab, #1a100b var(--t3), color-mix(in oklab, #6e3f24 var(--t2), color-mix(in oklab, #b27745 var(--t1), #97a45a)));
  transition: --roest .6s var(--ease-raus);
  background:
    radial-gradient(70rem 40rem at 80% 0%, rgb(224 103 42 / .12), transparent 70%),
    var(--espresso);
  color: var(--papier);
  overflow: clip;
}
.roestprofil .dachzeile { color: var(--orange-hell); }
.roestprofil .titel em { color: var(--orange-hell); }
.roestprofil { --flaeche: var(--espresso); }
.roestprofil .abschnitt-nr { -webkit-text-stroke-color: var(--orange-hell); }
.roestprofil .abschnitt-lead { color: rgb(243 236 224 / .78); }
.roestprofil :focus-visible { outline-color: var(--papier); }

.roestprofil__raster {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

.protokoll {
  position: relative;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 2rem);
  border-radius: 6px;
  background: var(--papier-hell);
  color: var(--tinte);
  box-shadow: 0 40px 70px -30px rgb(0 0 0 / .7), 0 2px 0 rgb(0 0 0 / .25);
  rotate: -.7deg;
  view-timeline: --protokoll block;
}
.protokoll::before {
  /* Klebestreifen */
  content: "";
  position: absolute;
  top: -.9rem;
  left: 50%;
  width: 7.5rem;
  height: 1.8rem;
  translate: -50% 0;
  rotate: 2.5deg;
  background: rgb(236 222 190 / .5);
  box-shadow: 0 1px 3px rgb(0 0 0 / .18);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}
.protokoll__kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: .6rem;
  margin-bottom: .6rem;
  border-bottom: 1.5px solid var(--tinte);
  font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem);
  font-style: italic;
  font-variation-settings: "wght" 450, "opsz" 36, "SOFT" 100, "WONK" 1;
}
.protokoll__stempel {
  padding: .35em .7em;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  font: 700 .6875rem/1 var(--sans);
  font-style: normal;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  rotate: -5deg;
}
.protokoll figcaption { margin-top: .6rem; font-size: .8125rem; line-height: 1.45; color: var(--mokka); }

.kurve { display: block; width: 100%; height: auto; overflow: visible; color: var(--tinte); }
.band--trocknung { fill: #8c9a55; opacity: .16; }
.band--maillard { fill: #d9a441; opacity: .2; }
.band--entwicklung { fill: var(--orange-hell); opacity: .16; transition: width .6s var(--ease-raus); }
.band-label text {
  font: 650 11px var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  fill: var(--mokka);
}
.band-label [data-entwicklung-label] { transition: opacity .4s; }
.achse { fill: none; stroke: var(--tinte); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.achse-text { font: 650 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; fill: var(--tinte); }
.achse-text--klein { font-size: 10px; letter-spacing: .1em; fill: var(--mokka); }
.markierung path { stroke: var(--tinte); stroke-width: 1.3; stroke-dasharray: 4 5; opacity: .28; transition: opacity .4s, stroke .4s; }
.markierung text { font-size: 15px; font-style: italic; fill: var(--mokka); opacity: .5; transition: opacity .4s, fill .4s; font-variation-settings: "wght" 500, "opsz" 18, "SOFT" 100, "WONK" 1; }
.markierung.erreicht path { stroke: var(--orange); opacity: .9; }
.markierung.erreicht text { fill: var(--orange); opacity: 1; }
.kurve__geist {
  fill: none;
  stroke: var(--tinte);
  stroke-width: 1.6;
  stroke-dasharray: 1 7;
  stroke-linecap: round;
  opacity: .35;
}
.kurve__linie {
  fill: none;
  stroke: url(#kurven-verlauf);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: d .6s var(--ease-raus);
}
.wendepunkt circle { fill: var(--papier-hell); stroke: var(--tinte); stroke-width: 2; }
.wendepunkt text { font: 600 11px var(--sans); letter-spacing: .08em; fill: var(--mokka); }
.kurve__ende { transition: transform .6s var(--ease-raus); }
.kurve__punkt { fill: var(--bohnenfarbe); stroke: var(--papier-hell); stroke-width: 3.5; }
.kurve__puls { fill: none; stroke: var(--orange-hell); stroke-width: 2; transform-box: fill-box; transform-origin: center; }

/* Auf schmalen Bildschirmen wird das SVG stark verkleinert – Beschriftung mitwachsen lassen */
@media (max-width: 40em) {
  .band-label text { font-size: 17px; letter-spacing: .04em; }
  .achse-text { font-size: 19px; letter-spacing: .06em; }
  .achse-text--klein { font-size: 16px; }
  .markierung text { font-size: 22px; }
  .wendepunkt text { font-size: 18px; }
}

.roester { display: grid; gap: 1.6rem; align-content: start; }

.bohnenteller {
  display: grid;
  place-items: center;
  width: min(100%, 21rem);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 46%, #fdf9f2 0 50%, #efe4d1 51% 60%, #f8f1e6 61% 66%, #e4d4bb 67% 70.5%, transparent 71%);
  filter: drop-shadow(0 30px 34px rgb(0 0 0 / .5));
}
.grossbohne {
  width: 44%;
  height: auto;
  overflow: visible;
  rotate: -22deg;
  scale: calc(.94 + var(--roest) * .16); /* Bohnen gehen beim Rösten etwas auf */
}
.grossbohne__schatten { fill: rgb(43 26 17 / .18); }
.grossbohne__koerper { fill: var(--bohnenfarbe); }
.grossbohne__furche {
  fill: none;
  stroke: color-mix(in oklab, var(--bohnenfarbe), #000 42%);
  stroke-width: 7;
  stroke-linecap: round;
}
.grossbohne__oel { fill: #fff; opacity: clamp(0, (var(--roest) - .72) * 2.4, .75); }

.regler { display: grid; gap: .35rem; }
.regler__kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.regler__kopf label {
  font: 650 .8125rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.regler__stufe {
  font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem);
  font-style: italic;
  line-height: 1;
  color: var(--orange-hell);
  --wght: 560; --opsz: 72; --soft: 100; --wonk: 1;
}
.regler__skala {
  display: flex;
  justify-content: space-between;
  font: 600 .75rem/1.2 var(--sans);
  letter-spacing: .08em;
  opacity: .75;
}

/* Eigener Regler, weiterhin ein echtes <input type="range"> */
.regler__eingabe {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2.75rem; /* große Touch-Fläche */
  margin: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 99px;
}
.regler__eingabe--roest { --spur: linear-gradient(90deg, #97a45a, #c9a640 18%, #b27745 36%, #6e3f24 62%, #2a170e 84%, #120a06); }
.regler__eingabe--verhaeltnis { --spur: linear-gradient(90deg, var(--espresso), #8a5530 45%, var(--kuehl-hell)); }
.regler__eingabe::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 99px;
  background: var(--spur);
  box-shadow: inset 0 0 0 1px rgb(243 236 224 / .25);
}
.regler__eingabe::-moz-range-track {
  height: 12px;
  border-radius: 99px;
  background: var(--spur);
}
.regler__eingabe::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -9px;
  border: 3px solid var(--orange-hell);
  border-radius: 50%;
  background: var(--papier-hell);
  box-shadow: 0 4px 12px rgb(0 0 0 / .35);
  transition: scale .2s;
}
.regler__eingabe::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 3px solid var(--orange-hell);
  border-radius: 50%;
  background: var(--papier-hell);
  box-shadow: 0 4px 12px rgb(0 0 0 / .35);
}
.regler__eingabe:active::-webkit-slider-thumb { scale: 1.15; }

.roester__text {
  min-height: 2.6em;
  font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem);
  line-height: 1.3;
  text-wrap: balance;
  font-variation-settings: "wght" 360, "opsz" 36, "SOFT" 60, "WONK" 0;
}
.noten__titel {
  margin-bottom: .6rem;
  font: 650 .75rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .75;
}
.noten__liste { display: flex; flex-wrap: wrap; gap: .5rem; }
.noten__liste li {
  padding: .4em .95em .45em;
  border: 1px solid rgb(243 236 224 / .35);
  border-radius: 99px;
  font-size: 1.1rem;
  font-style: italic;
  font-variation-settings: "wght" 420, "opsz" 24, "SOFT" 100, "WONK" 1;
  transition: opacity .45s, translate .45s var(--ease-raus);
}
@starting-style {
  .noten__liste li { opacity: 0; translate: 0 .6rem; }
}

.balance { display: grid; gap: .65rem; margin: 0; }
.balance div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}
.balance dt { font: 650 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.balance dd {
  height: 7px;
  margin: 0;
  border-radius: 99px;
  background: rgb(243 236 224 / .13);
  overflow: hidden;
}
.balance dd span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange-hell), #f0a060);
  transform-origin: 0 50%;
  transform: scaleX(clamp(.04, var(--wert), 1));
}
.roestprofil .kleingedrucktes { color: rgb(243 236 224 / .65); }

@media (min-width: 64em) {
  .roestprofil__raster {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
  .roester { padding-top: .5rem; }
  .protokoll { position: sticky; top: calc(var(--kopfhoehe) + 2.5rem); }
}


/* 12. 04 BRÜHEN ============================================================ */
.bruehen__raster {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}
.rechner { display: grid; gap: 2rem; align-content: start; }
.rechner__paar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(.5rem, 2vw, 1.5rem);
}
.feld { display: grid; gap: .35rem; }
.feld label {
  font: 650 .8125rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mokka);
}
.feld--kaffee { color: var(--espresso); }
.feld--wasser { color: var(--kuehl); }
.feld__zahl {
  display: flex;
  align-items: baseline;
  gap: .1em;
  border-bottom: 2px solid currentColor;
  padding-bottom: .2rem;
  border-radius: 2px;
}
/* :has() — Fokus des Zahlenfelds markiert das ganze Feld */
.feld__zahl:has(.grosszahl:focus-visible) { outline: 3px solid var(--kuehl); outline-offset: 6px; }
.grosszahl {
  font-family: var(--serif); /* input erbt sonst die Sans */
  width: 3.3ch;
  min-width: 1.4ch;
  padding: 0;
  border: 0;
  background: none;
  font-size: clamp(3.4rem, 1.8rem + 6vw, 7.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: lining-nums;
  font-variation-settings: "wght" 600, "opsz" 144, "SOFT" 100, "WONK" 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
/* field-sizing: Feld wächst mit der Eingabe (feste Breite nur als Rückfall) */
@supports (field-sizing: content) {
  .grosszahl { field-sizing: content; width: auto; }
}
.grosszahl:focus { outline: none; }
.grosszahl::-webkit-inner-spin-button,
.grosszahl::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.feld__einheit {
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
  font-style: italic;
  font-variation-settings: "wght" 400, "opsz" 36, "SOFT" 100, "WONK" 1;
}
.feld__notiz { font-size: .8125rem; color: var(--mokka); }
.stepper { display: flex; gap: .5rem; }
.stepper button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--tinte);
  border-radius: 50%;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  transition: background-color .2s, color .2s;
}
.stepper button:hover { background: var(--tinte); color: var(--papier); }
.rechner__mal { padding-bottom: 1.6rem; color: var(--orange); }
.rechner__mal svg {
  display: block;
  width: clamp(2rem, 4vw, 3.5rem);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feld--wasser .feld__notiz { order: 3; }

/* Anteile: 1 Kästchen Kaffee, n Kästchen Wasser */
.anteile { margin: 0; display: grid; gap: .6rem; }
.anteile__reihe { display: flex; gap: 4px; height: 2.2rem; }
.anteile__reihe span {
  flex: 1 1 0;
  border-radius: 4px;
  background: var(--kuehl-hell);
  transition: flex-grow .4s var(--ease-raus), background-color .3s;
}
.anteile__reihe span:first-child { background: var(--espresso); }
.anteile__reihe span[data-halb] { flex-grow: .5; }
.anteile figcaption { font-size: .875rem; color: var(--mokka); }
@media (prefers-reduced-motion: no-preference) {
  @starting-style {
    .anteile__reihe span { flex-grow: 0; }
  }
}
.regler--hell .regler__kopf label { color: var(--mokka); }
.regler--hell .regler__stufe { color: var(--kuehl); font-style: normal; font-variant-numeric: lining-nums; }
.regler--hell .regler__eingabe::-webkit-slider-thumb { border-color: var(--kuehl); background: var(--papier-hell); }
.regler--hell .regler__eingabe::-moz-range-thumb { border-color: var(--kuehl); }
.regler--hell .regler__skala { color: var(--mokka); opacity: 1; }

.timer {
  --fortschritt: 0;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--linie);
  border-radius: 24px;
  background: var(--papier-hell);
  box-shadow: 0 30px 60px -40px rgb(43 26 17 / .45);
}
.timer__oben {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}
.timer__ring { position: relative; width: min(100%, 15rem); aspect-ratio: 1; }
.timer__ring svg { display: block; width: 100%; height: 100%; rotate: -90deg; overflow: visible; }
.timer__spur { fill: none; stroke: var(--papier-dunkel); stroke-width: 12; }
.timer__bogen {
  fill: none;
  stroke: var(--orange);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: calc(1 - var(--fortschritt));
}
.timer[data-zustand="bereit"] .timer__bogen { opacity: 0; }
.timer__marken circle { fill: var(--papier-hell); stroke: var(--tinte); stroke-width: 2.5; }
.timer__anzeige {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}
.timer__zeit {
  font-size: clamp(2.8rem, 2rem + 2.4vw, 4.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-variation-settings: "wght" 600, "opsz" 144, "SOFT" 100, "WONK" 0;
}
.timer__phase {
  max-width: 10ch;
  margin-top: .45rem;
  font: 650 .75rem/1.2 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
}

.handfilter { width: clamp(7rem, 16vw, 12.5rem); height: auto; overflow: visible; }
.handfilter__kegel { fill: #fffaf2; stroke: var(--tinte); stroke-width: 2.6; stroke-linejoin: round; }
.handfilter__bett { fill: #8a5530; }
.handfilter__linie { fill: none; stroke: var(--tinte); stroke-width: 2.6; stroke-linecap: round; }
.handfilter__kanne { fill: rgb(255 255 255 / .55); stroke: var(--tinte); stroke-width: 2.6; stroke-linejoin: round; }
.handfilter__kaffee {
  fill: #6e3f24;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(var(--fortschritt));
}
.handfilter__strahl {
  fill: none;
  stroke: var(--kuehl);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 14 6;
  opacity: 0;
  transition: opacity .3s;
}
.handfilter__tropfen { fill: #6e3f24; opacity: 0; }
.handfilter__dampf path {
  fill: none;
  stroke: var(--mokka);
  stroke-width: 2.6;
  stroke-linecap: round;
  opacity: .0;
}
/* Während der Aufguss-Phasen fließt Wasser */
.timer[data-zustand="laeuft"]:is([data-phase="0"], [data-phase="1"], [data-phase="2"]) .handfilter__strahl { opacity: 1; }

.timer__knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; }
.timer__knoepfe .knopf { min-width: 8.5rem; }

.phasen { display: grid; gap: .3rem; container-type: inline-size; }
.phasen li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .75rem;
  padding: .7rem .9rem;
  border-radius: 12px;
  transition: background-color .35s, color .35s, opacity .35s;
}
.phasen__zeit { font: 650 .875rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--mokka); }
.phasen__name {
  font-size: 1.2rem;
  line-height: 1.2;
  font-variation-settings: "wght" 520, "opsz" 24, "SOFT" 100, "WONK" 0;
}
.phasen__menge { font: 650 .8125rem/1.2 var(--sans); color: var(--kuehl); text-align: right; }
.phasen li.aktiv { background: var(--espresso); color: var(--papier); }
.phasen li.aktiv .phasen__zeit { color: var(--orange-hell); }
.phasen li.aktiv .phasen__menge { color: var(--kuehl-hell); }
.phasen li.erledigt { opacity: .55; }
/* Container Query: in schmalen Timer-Karten rutscht die Menge unter den Namen */
@container (max-width: 26rem) {
  .phasen li { grid-template-columns: 2.75rem minmax(0, 1fr); row-gap: .15rem; }
  .phasen__menge { grid-column: 2; text-align: left; }
}
.phasen li.erledigt .phasen__name { text-decoration: line-through; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

@media (min-width: 64em) {
  .bruehen__raster { grid-template-columns: minmax(0, 6fr) minmax(0, 5.5fr); align-items: start; column-gap: clamp(3rem, 6vw, 6rem); }
  .rechner { position: sticky; top: calc(var(--kopfhoehe) + 2rem); }
}


/* 13. 05 SHOP & WARENKORB ================================================= */
.shop { --flaeche: var(--papier-dunkel); background: var(--papier-dunkel); }

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
}
.filter label { position: relative; }
.filter input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.filter span {
  display: inline-block;
  padding: .65rem 1.25rem;
  border: 1.5px solid var(--tinte);
  border-radius: 99px;
  font: 600 .95rem/1 var(--sans);
  transition: background-color .25s, color .25s;
}
.filter input:checked + span { background: var(--tinte); color: var(--papier); }
.filter label:hover span { background: rgb(34 21 14 / .08); }
.filter label:hover input:checked + span { background: var(--tinte); }
.filter input:focus-visible + span { outline: 3px solid var(--kuehl); outline-offset: 3px; }

.regal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* :has()-Filter: nur CSS, keine Zeile JavaScript */
.shop:has(#f-hell:checked) .kaffee:not([data-roest="hell"]),
.shop:has(#f-mittel:checked) .kaffee:not([data-roest="mittel"]),
.shop:has(#f-dunkel:checked) .kaffee:not([data-roest="dunkel"]) { display: none; }

.kaffee {
  container: kaffee / inline-size;
  transition: opacity .5s, scale .5s var(--ease-raus), display .5s allow-discrete;
}
/* Wieder eingeblendete Karten (display: none → grid) blenden weich ein */
@starting-style {
  .kaffee { opacity: 0; scale: .96; }
}

.kaffee__innen {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  border: 1px solid var(--linie);
  border-radius: 20px;
  background: var(--papier-hell);
  overflow: clip;
  transition: transform .45s var(--ease-raus), box-shadow .45s;
}
.kaffee:hover .kaffee__innen,
.kaffee:has(:focus-visible) .kaffee__innen {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -30px rgb(43 26 17 / .5);
}

/* @property-Winkel dreht einen Verlauf im Rahmen der Monatskarte */
.kaffee--star .kaffee__innen {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--papier-hell), var(--papier-hell)) padding-box,
    conic-gradient(from var(--ring), var(--orange-hell), #e2a93b, var(--kuehl), var(--kirsche), var(--orange-hell)) border-box;
}

.kaffee__bild {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  background:
    radial-gradient(circle at 50% 58%, color-mix(in oklab, var(--akzent) 32%, var(--papier-hell)) 0 34%, transparent 34.5%),
    color-mix(in oklab, var(--akzent) 12%, var(--papier-hell));
  overflow: clip;
}
.kaffee--star .kaffee__bild {
  background:
    radial-gradient(circle at 50% 56%, color-mix(in oklab, var(--akzent) 45%, var(--papier-hell)) 0 36%, transparent 36.5%),
    color-mix(in oklab, var(--akzent) 22%, var(--papier-hell));
}
.kaffee__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: .5em .85em;
  border-radius: 99px;
  background: var(--espresso);
  color: var(--papier);
  font: 700 .6875rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tuete {
  width: 40%;
  height: auto;
  overflow: visible;
  rotate: -5deg;
  filter: drop-shadow(0 18px 14px rgb(43 26 17 / .28));
  transition: rotate .6s var(--ease-raus), translate .6s var(--ease-raus);
}
.kaffee:hover .tuete { rotate: 3deg; translate: 0 -8px; }
.tuete__name {
  font-size: 14.5px;
  font-style: italic;
  fill: var(--etikett-text);
  font-variation-settings: "wght" 560, "opsz" 18, "SOFT" 100, "WONK" 1;
}

.kaffee__text {
  display: grid;
  gap: .45rem;
  align-content: start;
  padding: 1.3rem 1.3rem 1.4rem;
}
.kaffee__herkunft {
  font: 650 .75rem/1.3 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mokka);
}
.kaffee__name {
  font-size: clamp(1.9rem, 1.6rem + 1vw, 2.3rem);
  line-height: 1;
  letter-spacing: -.02em;
  font-variation-settings: "wght" 600, "opsz" 72, "SOFT" 100, "WONK" 1;
}
.kaffee__noten {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--orange);
  font-variation-settings: "wght" 440, "opsz" 24, "SOFT" 100, "WONK" 1;
}
.kaffee__beschreibung { color: var(--mokka); max-width: 36ch; }
.kaffee__profil { display: flex; align-items: center; gap: 1rem; margin-top: .4rem; }
.radar { flex: none; width: 9.5rem; height: auto; overflow: visible; color: var(--tinte); }
.radar__wert {
  fill: color-mix(in oklab, var(--akzent) 42%, transparent);
  stroke: var(--akzent);
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.kaffee__roestgrad {
  display: grid;
  gap: .45rem;
  font: 600 .8125rem/1.3 var(--sans);
  color: var(--mokka);
}
/* Drei Punkte: gefüllt je nach --stufe */
.roestpunkte {
  position: relative;
  width: 3.3rem;
  height: .8rem;
  background: radial-gradient(circle, transparent 0 38%, var(--mokka) 40% 52%, transparent 54%) 0 50% / 1.1rem .8rem repeat-x;
}
.roestpunkte::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--stufe) * 1.1rem);
  background: radial-gradient(circle, var(--tinte) 0 52%, transparent 54%) 0 50% / 1.1rem .8rem repeat-x;
}
.kaffee__fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-top: .8rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--linie);
}
.kaffee__preis {
  font-size: 1.65rem;
  line-height: 1;
  --wght: 620; --opsz: 36; --soft: 100; --wonk: 0;
}
.kaffee__preis small { font: 500 .8125rem/1 var(--sans); color: var(--mokka); margin-left: .25rem; }
.in-korb { min-height: 2.75rem; padding: .7rem 1.15rem; font-size: .95rem; }
.in-korb[data-gerade] { background: var(--kuehl); }

/* Container Queries: die Karte ordnet sich nach IHRER Breite, nicht der des Fensters */
@container kaffee (min-width: 34rem) {
  .kaffee__innen { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: none; }
  .kaffee__bild { aspect-ratio: auto; min-height: 100%; }
  .tuete { width: 58%; }
  .kaffee__text { align-content: center; padding: 1.75rem; }
}
@container kaffee (min-width: 60rem) {
  .kaffee__innen { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .kaffee__bild { min-height: 30rem; }
  .tuete { width: 46%; }
  .kaffee__text {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "herkunft herkunft"
      "name     name"
      "noten    noten"
      "text     profil"
      "fuss     fuss";
    column-gap: 2.5rem;
    padding: 3rem clamp(2rem, 4cqi, 4rem);
  }
  .kaffee__herkunft { grid-area: herkunft; }
  .kaffee__name { grid-area: name; font-size: clamp(3.4rem, 6cqi, 6rem); margin-block: .3rem .2rem; }
  .kaffee__noten { grid-area: noten; font-size: 1.45rem; }
  .kaffee__beschreibung { grid-area: text; align-self: center; font-size: 1.1rem; }
  .kaffee__profil { grid-area: profil; }
  .kaffee__fuss { grid-area: fuss; }
  .radar { width: 11.5rem; }
}

/* Info-Kachel: füllt das Raster und schickt Leute ins Café */
.regal__info {
  position: relative;
  display: grid;
  align-content: end;
  gap: 1rem;
  min-height: 22rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 20px;
  background:
    radial-gradient(30rem 20rem at 100% 0%, rgb(224 103 42 / .25), transparent 70%),
    var(--espresso);
  color: var(--papier);
  overflow: clip;
}
.regal__info-bohne {
  position: absolute;
  top: -2rem;
  right: -1.5rem;
  width: 11rem;
  height: auto;
  rotate: 24deg;
  color: var(--orange-hell);
  --bohne-furche: var(--espresso);
  opacity: .9;
}
.regal__info-titel {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.8rem);
  line-height: 1;
  letter-spacing: -.02em;
  font-variation-settings: "wght" 560, "opsz" 72, "SOFT" 100, "WONK" 0;
}
.regal__info-titel em { font-style: italic; color: var(--orange-hell); font-variation-settings: "wght" 480, "opsz" 72, "SOFT" 100, "WONK" 1; }
.regal__info > p:not(.dachzeile) { color: rgb(243 236 224 / .82); max-width: 32ch; }
.regal__info .knopf { justify-self: start; }
.regal__info :focus-visible { outline-color: var(--papier); }
.knopf--hell { background: var(--papier); color: var(--tinte); }
.knopf--hell:hover { background: var(--orange-hell); }

@media (min-width: 40em) {
  .regal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kaffee--star { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .regal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Sobald gefiltert wird: Monatskarte wird normal, Info-Kachel tritt zurück */
.shop:has(.filter input:not(#f-alle):checked) .kaffee--star { grid-column: auto; }
.shop:has(.filter input:not(#f-alle):checked) .regal__info { display: none; }

/* Warenkorb-Schublade: <dialog> + @starting-style für Ein- und Ausfahrt */
html:has(.schublade[open]) { overflow: hidden; }
.schublade {
  width: min(100%, 28rem);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--papier-hell);
  color: var(--tinte);
  box-shadow: -40px 0 80px rgb(0 0 0 / .25);
  transform: translateX(100%);
  transition: transform .5s var(--ease-raus), overlay .5s allow-discrete, display .5s allow-discrete;
}
.schublade[open] { transform: none; }
@starting-style {
  .schublade[open] { transform: translateX(100%); }
}
.schublade::backdrop {
  background: rgb(34 21 14 / 0);
  transition: background-color .5s, overlay .5s allow-discrete, display .5s allow-discrete;
}
.schublade[open]::backdrop { background: rgb(34 21 14 / .5); }
@starting-style {
  .schublade[open]::backdrop { background: rgb(34 21 14 / 0); }
}
.schublade__innen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}
.schublade__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--linie);
}
.schublade h2 {
  font-size: 2rem;
  font-style: italic;
  font-variation-settings: "wght" 560, "opsz" 72, "SOFT" 100, "WONK" 1;
}
.schliessen {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--tinte);
  border-radius: 50%;
  background: transparent;
}
.schliessen svg { width: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.schublade__inhalt { overflow: auto; padding: .5rem 1.5rem; overscroll-behavior: contain; }
.korb-leer { display: grid; justify-items: center; gap: 1rem; padding: 3rem 1rem; text-align: center; }
.korb-leer svg { width: 5.5rem; rotate: -6deg; opacity: .75; --akzent: var(--papier-dunkel); --etikett-text: var(--mokka); }
.korb-leer p { font-size: 1.3rem; font-style: italic; font-variation-settings: "wght" 400, "opsz" 36, "SOFT" 100, "WONK" 1; }
.korb-liste:empty { display: none; }
.korb-posten {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--linie);
}
.korb-posten__tuete { width: 3rem; height: auto; }
.korb-posten__name {
  font-size: 1.25rem;
  line-height: 1.15;
  font-variation-settings: "wght" 560, "opsz" 36, "SOFT" 100, "WONK" 1;
}
.korb-posten__preis { font-size: .875rem; color: var(--mokka); }
.menge { display: flex; align-items: center; gap: .35rem; }
.menge button {
  width: 2.25rem;
  height: 2.25rem;
  border: 1.5px solid var(--linie);
  border-radius: 50%;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
}
.menge button:hover { border-color: var(--tinte); }
.menge span { min-width: 1.5rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.schublade__fuss {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--linie);
  background: var(--papier);
}
.summe { display: grid; gap: .3rem; margin: 0; }
.summe div { display: flex; justify-content: space-between; align-items: baseline; }
.summe dt { font-weight: 600; }
.summe dd { margin: 0; font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.summe__klein dt, .summe__klein dd { font-size: .875rem; font-weight: 500; color: var(--mokka); }
.demo-hinweis {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--espresso);
  color: var(--papier);
  font-size: .9375rem;
  line-height: 1.5;
}
.demo-hinweis__titel {
  margin-bottom: .3rem;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--orange-hell);
  font-variation-settings: "wght" 600, "opsz" 36, "SOFT" 100, "WONK" 1;
}
@media (prefers-reduced-motion: no-preference) {
  .demo-hinweis { transition: opacity .4s, translate .4s var(--ease-raus); }
  @starting-style {
    .demo-hinweis { opacity: 0; translate: 0 .75rem; }
  }
}


/* 14. 06 CAFÉ ============================================================== */
.cafe__raster { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.fassade { margin: 0; }
.fassade svg { display: block; width: 100%; height: auto; overflow: visible; }
.fassade__schild {
  font-size: 44px;
  font-style: italic;
  fill: var(--papier);
  font-variation-settings: "wght" 560, "opsz" 72, "SOFT" 100, "WONK" 1;
}
.fassade__nummer { font-size: 22px; fill: var(--tinte); font-variation-settings: "wght" 700, "opsz" 36, "SOFT" 100, "WONK" 0; }
.haengeschild { transform-origin: 552px 228px; }
.katze__schwanz { transform-origin: 270px 398px; }

.cafe__info { display: grid; gap: 2.5rem; align-content: start; }
.oeffnung__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}
.oeffnung h3 {
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem);
  font-variation-settings: "wght" 520, "opsz" 72, "SOFT" 100, "WONK" 0;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  border-radius: 99px;
  background: var(--papier-dunkel);
  font: 650 .8125rem/1.2 var(--sans);
}
.status__punkt { width: .6rem; height: .6rem; border-radius: 50%; background: var(--mokka); }
.status[data-offen="ja"] .status__punkt { background: #2f7d4f; box-shadow: 0 0 0 4px rgb(47 125 79 / .2); }
.status[data-offen="nein"] .status__punkt { background: var(--kirsche); }
.oeffnung__liste li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .2rem;
  border-bottom: 1px dotted rgb(34 21 14 / .3);
}
.oeffnung__liste li small {
  margin-left: .4rem;
  padding: .15em .5em;
  border-radius: 99px;
  background: var(--orange);
  color: var(--papier-hell);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: .15em;
}
.oeffnung__liste li.heute {
  margin-inline: -.6rem;
  padding-inline: .8rem;
  border-radius: 10px;
  border-bottom-color: transparent;
  background: var(--espresso);
  color: var(--papier);
  font-weight: 650;
}

.tafel {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 10px solid #7a4e31;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 20%, rgb(255 255 255 / .06), transparent 60%),
    #26302a;
  color: #f1ede4;
  box-shadow: inset 0 0 30px rgb(0 0 0 / .45), 0 20px 40px -24px rgb(0 0 0 / .6);
  rotate: 1.2deg;
  font-style: italic;
  --wght: 380; --opsz: 36; --soft: 100; --wonk: 1;
}
.tafel__titel {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  text-align: center;
  --wght: 560;
}
.tafel__liste { display: grid; gap: .35rem; font-size: 1.2rem; }
.tafel__liste li { display: flex; align-items: baseline; gap: .5rem; }
.tafel__liste li span:first-child { display: flex; flex: 1; align-items: baseline; }
.tafel__liste li span:first-child::after {
  content: "";
  flex: 1;
  margin: 0 .5rem;
  border-bottom: 2px dotted rgb(241 237 228 / .35);
}
.tafel__liste li span:last-child { font-variant-numeric: lining-nums; }
.tafel__fuss { margin-top: 1rem; font: 500 .8125rem/1.4 var(--sans); font-style: normal; color: rgb(241 237 228 / .7); text-align: center; }

.adresse { font-style: normal; line-height: 1.7; }
.adresse strong { font-weight: 700; }
.adresse a { color: var(--orange); text-underline-offset: .2em; }

@media (min-width: 64em) {
  .cafe__raster { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .fassade { position: sticky; top: calc(var(--kopfhoehe) + 2rem); }
}


/* 15. RÖSTBRIEF & FUSS ==================================================== */
.roestbrief {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 9rem);
  color: var(--papier-hell);
  /* @property-Verlauf: eine dunkle Glut wandert langsam über die Fläche */
  background:
    radial-gradient(38rem 26rem at var(--glut-x) var(--glut-y), rgb(110 36 8 / .55), transparent 70%),
    var(--orange);
  overflow: clip;
}
.roestbrief__innen { display: grid; gap: 2rem; align-items: end; }
.dachzeile--hell { color: var(--papier); }
.roestbrief__titel {
  margin-top: .6rem;
  font-size: clamp(3.4rem, 1rem + 8vw, 9rem);
  line-height: .86;
  letter-spacing: -.045em;
  --wght: 780; --opsz: 144; --soft: 100; --wonk: 1;
}
.roestbrief__rechts { display: grid; gap: 1.5rem; max-width: 36rem; }
.roestbrief__rechts > p { font-size: 1.15rem; line-height: 1.55; }
.roestbrief__form { display: grid; gap: .5rem; }
.roestbrief__form label { font: 650 .8125rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.roestbrief__zeile { display: flex; flex-wrap: wrap; gap: .5rem; }
.roestbrief__zeile input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 3.25rem;
  padding: .8rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 99px;
  background: var(--papier-hell);
  color: var(--tinte);
}
.roestbrief__zeile input::placeholder { color: #8a7566; }
.roestbrief__zeile input:focus-visible { outline: 3px solid var(--espresso); outline-offset: 3px; }
.roestbrief__zeile .knopf { min-height: 3.25rem; }
.roestbrief :focus-visible { outline-color: var(--espresso); }
.roestbrief__fehler {
  display: none;
  font-weight: 650;
  padding: .4rem .8rem;
  border-radius: 8px;
  background: var(--espresso);
  justify-self: start;
}
/* :has() + :user-invalid: Fehlertext erst nach echter Nutzereingabe */
.roestbrief__form:has(input:user-invalid) .roestbrief__fehler { display: block; }
.roestbrief__form:has(input:user-invalid) input { border-color: var(--espresso); }
.roestbrief__danke:empty { display: none; }
.roestbrief__danke {
  padding: .8rem 1rem;
  border-radius: 12px;
  background: var(--espresso);
  font-weight: 600;
}
.roestbrief__demo { font-size: .8125rem; opacity: .9; }

@media (min-width: 60em) {
  .roestbrief__innen { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 4rem; }
}

.fuss {
  padding-block: clamp(3.5rem, 8vw, 6rem) 2rem;
  background: var(--espresso);
  color: var(--papier);
  overflow: clip;
  view-timeline: --fuss block;
}
.fuss .huelle { container-type: inline-size; }
.fuss .fuss__wortmarke {
  font-size: 21.6cqi; /* Containerbreite: füllt die Hülle auf jeder Breite */
  line-height: .8;
  letter-spacing: -.05em;
  padding-bottom: .2em;         /* Hintergrund reicht bis in die Unterlängen */
  margin-bottom: calc(clamp(2.5rem, 6vw, 5rem) - .2em);
  white-space: nowrap;
  color: transparent;
  /* Füllung wandert über den Schriftzug (--fuell per Scroll) */
  background: linear-gradient(90deg, var(--orange-hell) var(--fuell), rgb(243 236 224 / .1) var(--fuell));
  -webkit-background-clip: text;
  background-clip: text;
  --wght: 820; --opsz: 144; --soft: 100; --wonk: 1;
  user-select: none;
}
.fuss__raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--linie-hell);
}
.fuss__titel {
  margin-bottom: .6rem;
  font: 650 .75rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-hell);
}
.fuss p { color: rgb(243 236 224 / .85); line-height: 1.65; }
.fuss ul { display: grid; gap: .3rem; }
.fuss a { text-underline-offset: .22em; text-decoration-thickness: 1px; }
.fuss a:hover { color: var(--orange-hell); }
.fuss :focus-visible { outline-color: var(--papier); }
.fuss__unten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-top: 1.5rem;
  font-size: .875rem;
}
.fuss__credit a { font-weight: 650; }


/* 16. SCROLL-GETRIEBENE ANIMATIONEN ======================================
   Alles hier nur, wenn der Browser view()/scroll() kann UND niemand
   reduzierte Bewegung wünscht. Ohne das bleibt jede Seite komplett sichtbar. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    /* Fortschrittsbalken & Kopf */
    .fortschritt { animation: skalieren-x linear both; animation-timeline: scroll(root); }
    .kopf::before { animation: einblenden linear both; animation-timeline: scroll(root); animation-range: 0 40svh; }

    /* Held: 185svh hoch, Bühne klebt – --kochen läuft 0 → 1 */
    .held { height: 185svh; view-timeline: --held block; }
    .held__buehne {
      position: sticky;
      top: 0;
      height: 100svh;
      min-height: 0;
      animation: kochen linear both;
      animation-timeline: --held;
      animation-range: contain 0% contain 100%;
    }
    .held__hinweis {
      animation: abkuehlen linear both;
      animation-timeline: --held;
      animation-range: contain 10% contain 45%;
    }

    /* Allgemeines Einblenden */
    .aufblenden {
      animation: aufblenden linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 95%;
    }

    /* Überschriften heizen beim Hereinkommen auf */
    .titel {
      animation: titel-heizen linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%;
    }
    .abschnitt-nr {
      animation: nr-schweben linear both;
      animation-timeline: view();
      animation-range: cover;
    }

    /* Laufband wandert mit dem Scrollen */
    .laufband__spur {
      animation: laufen linear both;
      animation-timeline: view();
      animation-range: cover;
    }

    /* Zitat wird fetter & weicher */
    .zitat blockquote p {
      animation: zitat-heizen linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 50%;
    }

    /* Zahlen zählen hoch (registrierte Ganzzahl --zahl) */
    .zahlen__zahl {
      animation: zaehlen linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 45%;
    }

    /* Röstprotokoll zeichnet sich */
    .kurve__linie {
      stroke-dasharray: 1 2;
      animation: zeichnen linear both;
      animation-timeline: --protokoll;
      animation-range: entry 35% cover 45%;
    }
    /* Endpunkt erscheint erst, wenn die Linie ihn erreicht */
    .kurve__ende, .wendepunkt {
      animation: einblenden linear both;
      animation-timeline: --protokoll;
      animation-range: cover 38% cover 46%;
    }
    .bohnenteller {
      animation: teller-rein linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }

    /* Café */
    .tafel {
      animation: tafel-rein linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }

    /* Fuß: Wortmarke füllt sich */
    .fuss__wortmarke {
      animation: fuellen linear both;
      animation-timeline: --fuss;
      animation-range: entry 10% entry 100%;
    }

    /* Laufende Nummer eines Strichs – moderne Browser kennen sibling-index() */
    @supports (order: sibling-index()) {
      .zeichnung .striche > * { --n: min(sibling-index(), 18); }
    }

    /* --- Reise, Handy: senkrechte Stationen, jede zeichnet sich selbst --- */
    .station .striche > * {
      stroke-dasharray: 1 2;
      animation: zeichnen linear both;
      animation-timeline: --station;
      animation-range: entry calc(5% + var(--n, 0) * 3%) cover calc(30% + var(--n, 0) * 1.2%);
    }
    .station .flaechen, .station .glanz, .station .notiz {
      animation: einblenden linear both;
      animation-timeline: --station;
      animation-range: cover 35% cover 50%;
    }

    /* --- Reise, ab Tablet: vertikales Scrollen fährt horizontal --- */
    @media (min-width: 48em) and (min-height: 32em) {
      .reise { height: 480svh; }
      .reise__buehne {
        position: sticky;
        top: 0;
        height: 100svh;
        grid-template-columns: minmax(0, 1fr); /* Spalte = Bühnenbreite, die breite Spur darf überstehen */
        grid-template-rows: auto minmax(0, 1fr) auto;
        align-content: stretch;
        gap: clamp(1rem, 3svh, 2.5rem);
        padding-block: calc(var(--kopfhoehe) + 3svh) 4svh;
        overflow: clip;
        container-type: inline-size;
      }
      .reise__titel { font-size: clamp(2.2rem, 1rem + 3.6vw, 5rem); }
      .reise__spur {
        --stationsbreite: min(74cqw, 1080px);
        justify-self: start;
        width: max-content;
        /* Innenabstand = halber Rest: bei Fortschritt i/4 steht Station i genau in der Mitte */
        padding-inline: calc((100cqw - var(--stationsbreite)) / 2);
        align-items: center;
        gap: 6cqw;
        overflow: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
        animation: fahren linear both;
        animation-timeline: --reise;
        animation-range: contain 0% contain 100%;
      }
      .station {
        width: var(--stationsbreite);
        max-height: 100%;
      }
      /* Hochformat-Tablets: Bild über Text */
      @container (max-width: 60rem) {
        .station { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
        .station__bild { max-height: 44svh; }
        .zeichnung { max-height: calc(44svh - 2rem); }
      }
      .station__bild { max-height: 58svh; }
      .zeichnung { max-height: calc(58svh - 3rem); margin-inline: auto; }

      /* Station i ist mittig bei cover (17,24 + 16,38·i) % – sie zeichnet sich kurz davor */
      .station .striche > * {
        animation-timeline: --reise;
        animation-range:
          cover calc(17.24% + var(--i) * 16.38% - 14% + var(--n, 0) * .55%)
          cover calc(17.24% + var(--i) * 16.38% - 7% + var(--n, 0) * .5%);
      }
      .station .flaechen, .station .glanz, .station .notiz {
        animation-timeline: --reise;
        animation-range:
          cover calc(17.24% + var(--i) * 16.38% - 4%)
          cover calc(17.24% + var(--i) * 16.38% + 2%);
      }
      /* Text gleitet herein, steht kurz, gleitet hinaus – Mitte des Bereichs = Station mittig */
      .station__text {
        animation: text-gleiten linear both;
        animation-timeline: --reise;
        animation-range:
          cover calc(17.24% + var(--i) * 16.38% - 16%)
          cover calc(17.24% + var(--i) * 16.38% + 16%);
      }
      .station__nr {
        animation: nr-gleiten linear both;
        animation-timeline: --reise;
        animation-range:
          cover calc(17.24% + var(--i) * 16.38% - 16%)
          cover calc(17.24% + var(--i) * 16.38% + 16%);
      }

      .reise__fortschritt {
        display: block;
        width: min(100% - 2 * var(--rand), var(--max));
        margin-inline: auto;
        padding-top: 1.6rem;
      }
      .reise__linie {
        position: relative;
        display: block;
        height: 2px;
        background: var(--linie);
      }
      .reise__linie::after {
        /* fünf Haltepunkte */
        content: "";
        position: absolute;
        inset: -6px -5px;
        background:
          radial-gradient(circle at 0% 50%, var(--tinte) 0 5px, transparent 5.5px),
          radial-gradient(circle at 25% 50%, var(--tinte) 0 5px, transparent 5.5px),
          radial-gradient(circle at 50% 50%, var(--tinte) 0 5px, transparent 5.5px),
          radial-gradient(circle at 75% 50%, var(--tinte) 0 5px, transparent 5.5px),
          radial-gradient(circle at 100% 50%, var(--tinte) 0 5px, transparent 5.5px);
      }
      .reise__linie-fuellung {
        position: absolute;
        inset: -1px 0;
        background: var(--orange);
        transform-origin: 0 50%;
        animation: skalieren-x linear both;
        animation-timeline: --reise;
        animation-range: contain 0% contain 100%;
      }
      .reise__fortschritt ol { position: relative; height: 1.4rem; margin-top: .9rem; }
      .reise__fortschritt li {
        position: absolute;
        left: calc(var(--n) * 25%);
        translate: calc(var(--n) * -25%) 0;
        font: 650 .6875rem/1 var(--sans);
        letter-spacing: .16em;
        text-transform: uppercase;
        color: var(--mokka);
        animation: markieren linear both;
        animation-timeline: --reise;
        animation-range: contain calc(var(--n) * 25% - 3%) contain calc(var(--n) * 25% + 1%);
      }
      .reise__fortschritt li:nth-child(1) { --n: 0; animation: none; color: var(--orange); }
      .reise__fortschritt li:nth-child(2) { --n: 1; }
      .reise__fortschritt li:nth-child(3) { --n: 2; }
      .reise__fortschritt li:nth-child(4) { --n: 3; }
      .reise__fortschritt li:nth-child(5) { --n: 4; }
    }
  }
}

@keyframes skalieren-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
@keyframes kochen { from { --kochen: 0; } to { --kochen: 1; } }
@keyframes abkuehlen { to { opacity: 0; translate: 0 -1.5rem; } }
@keyframes aufblenden {
  from { opacity: 0; translate: 0 2.5rem; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes titel-heizen {
  from { --wght: 200; --soft: 0; }
  to   { --wght: 440; --soft: 40; }
}
@keyframes nr-schweben {
  from { translate: 0 2.5rem; }
  to   { translate: 0 -2.5rem; }
}
@keyframes laufen {
  from { transform: translateX(0); }
  to   { transform: translateX(-38%); }
}
@keyframes zitat-heizen {
  from { --wght: 150; --soft: 0; --wonk: 0; }
  to   { --wght: 360; --soft: 100; --wonk: 1; }
}
@keyframes zaehlen {
  from { --zahl: 0; --wght: 200; }
  to   { --zahl: var(--ziel); --wght: 720; }
}
@keyframes zeichnen {
  from { stroke-dashoffset: 1.02; }
  to   { stroke-dashoffset: 0; }
}
@keyframes teller-rein {
  from { transform: rotate(-70deg) scale(.7); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes tafel-rein {
  from { transform: rotate(7deg) translateY(3rem); }
  to   { transform: none; }
}
@keyframes fuellen {
  from { --fuell: 0%; }
  to   { --fuell: 100%; }
}
@keyframes fahren { to { transform: translateX(calc(-100% + 100cqw)); } }
@keyframes text-gleiten {
  0%       { opacity: 0; translate: 10cqw 0; }
  42%, 58% { opacity: 1; translate: 0 0; }
  100%     { opacity: 0; translate: -8cqw 0; }
}
@keyframes nr-gleiten {
  from { translate: 6cqw 0; }
  to   { translate: -6cqw 0; }
}
@keyframes markieren {
  from { color: var(--mokka); }
  to   { color: var(--orange); }
}


/* 17. VIEW TRANSITIONS (Karte fliegt in den Korb) ======================== */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-group(flug) {
  z-index: 100;
  animation-duration: .8s;
  animation-timing-function: cubic-bezier(.55, 0, .15, 1);
}
::view-transition-old(flug) {
  animation: flug-alt .8s cubic-bezier(.55, 0, .15, 1) both;
  border-radius: 20px;
}
::view-transition-new(flug) {
  animation: flug-neu .8s ease both;
}
@keyframes flug-alt {
  0%   { opacity: 1; }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes flug-neu {
  0%, 70% { opacity: 0; }
  100%    { opacity: 1; }
}


/* 18. ZEITBASIERTE SCHLEIFEN & REDUZIERTE BEWEGUNG ======================= */
@media (prefers-reduced-motion: no-preference) {
  .tassenpunkt::before { animation: crema 9s linear infinite; }
  .tassenpunkt__dampf path { animation: dampf-kringel 2.8s ease-in-out infinite; }
  .tassenpunkt__dampf path:nth-child(2) { animation-delay: -.9s; }
  .tassenpunkt__dampf path:nth-child(3) { animation-delay: -1.8s; }
  .bst { animation: blubbern 2.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.31s); }
  .blasen i { animation: blase 6.5s linear infinite; animation-delay: var(--d); }
  .stempel__ring { animation: drehen 26s linear infinite; }
  .held__pfeil { animation: nicken 1.8s ease-in-out infinite; }
  .kaffee--star .kaffee__innen { animation: ring-drehen 7s linear infinite; }
  .kurve__puls { animation: puls 1.9s ease-out infinite; }
  .roestbrief { animation: glut 16s ease-in-out infinite alternate; }
  .handfilter__dampf path { animation: dampf-kringel 3.2s ease-in-out infinite; }
  .handfilter__dampf path:nth-child(2) { animation-delay: -1.1s; }
  .handfilter__dampf path:nth-child(3) { animation-delay: -2.2s; }
  .timer[data-zustand="laeuft"] .handfilter__strahl { animation: strahl .45s linear infinite; }
  .timer[data-zustand="laeuft"] .handfilter__tropfen { animation: tropfen 1.1s ease-in infinite; }
  .timer[data-zustand="laeuft"] .handfilter__dampf { --dampf: 1; }
  .haengeschild { animation: schaukeln 5s ease-in-out infinite; }
  .katze__schwanz { animation: schwanz 3.6s ease-in-out infinite; }
  .fassade__tassendampf path { animation: dampf-kringel 2.8s ease-in-out infinite; }
  .fassade__tassendampf path:nth-child(2) { animation-delay: -1.4s; }

  /* Ohne Scroll-Animationen läuft das Laufband zeitbasiert */
  @supports not (animation-timeline: view()) {
    .laufband__spur { animation: laufen-zeit 40s linear infinite; }
  }
}

@keyframes crema { to { --crema: 360deg; } }
@keyframes blubbern {
  50% { translate: 0 calc(-.03em * var(--kochen)); }
}
@keyframes blase {
  0%   { transform: translateY(0) scale(.5); opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: .9; }
  100% { transform: translateY(-78svh) scale(1.15); opacity: 0; }
}
@keyframes drehen { to { rotate: 360deg; } }
@keyframes nicken { 50% { translate: 0 .3rem; } }
@keyframes ring-drehen { to { --ring: 360deg; } }
@keyframes puls {
  0%   { transform: scale(1); opacity: .9; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes glut {
  0%   { --glut-x: 12%; --glut-y: 20%; }
  50%  { --glut-x: 70%; --glut-y: 85%; }
  100% { --glut-x: 92%; --glut-y: 30%; }
}
@keyframes dampf-kringel {
  0%   { opacity: 0; transform: translateY(6px); }
  45%  { opacity: calc(.35 + var(--dampf, 0) * .4); }
  100% { opacity: 0; transform: translateY(-10px); }
}
@keyframes strahl { to { stroke-dashoffset: -20; } }
@keyframes tropfen {
  0%   { opacity: 0; transform: translateY(-6px); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}
@keyframes schaukeln { 50% { rotate: 4deg; } }
@keyframes schwanz { 50% { rotate: -12deg; } }
@keyframes laufen-zeit { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
