/* ==========================================================================
   MOCCORTE — „Röstgrad“
   Ein Kaffee-UI: die Seite röstet beim Scrollen nach. Espresso, Crema, Gold.
   Scroll-Drama mit klarem Fokus, der Shop bleibt immer einen Klick entfernt.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Röstpalette */
  --bg: #0f0a06;
  --bg-warm: #171009;
  --espresso: #241610;
  --bean: #6f3d22;
  --copper: #b4633a;
  --gold: #e2a94f;
  --gold-soft: #f2c96f;
  --crema: #f0d9ae;
  --paper: #f6ecd8;
  --leaf: #a9c186;

  --ink: #f6ecdd;
  --muted: rgba(246, 236, 221, 0.74);
  --dim: rgba(246, 236, 221, 0.52);
  --ink-on-paper: #22150d;

  --panel: rgba(246, 224, 188, 0.065);
  --panel-strong: rgba(246, 224, 188, 0.12);
  --line: rgba(240, 216, 178, 0.2);
  --line-strong: rgba(240, 216, 178, 0.38);

  --glass-shift: 0px;
  --scroll-progress: 0;
  --aroma-intensity: 0.62;
  --header-h: 78px;

  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-deep: 0 30px 90px rgba(0, 0, 0, 0.55);

  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
  /* clip statt hidden: verhindert horizontales Pannen, ohne dass html oder
     body zum Scroll-Container werden (hidden würde position: sticky brechen
     und mobil den Layout-Viewport an überstehende Transforms anpassen). */
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.6;
  background:
    radial-gradient(120vh 80vh at 82% -10%, rgba(180, 99, 58, 0.2), transparent 70%),
    radial-gradient(90vh 70vh at 8% 12%, rgba(226, 169, 79, 0.1), transparent 70%),
    linear-gradient(180deg, #150d08 0%, var(--bg) 45%, #0a0603 100%);
}

/* Die Seite dunkelt beim Scrollen nach — Röstverlauf über die volle Strecke. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: calc(var(--scroll-progress) * 0.55);
  background:
    radial-gradient(140vh 100vh at calc(50% + var(--glass-shift)) 110%, rgba(111, 61, 34, 0.4), transparent 72%),
    linear-gradient(180deg, rgba(6, 3, 1, 0.1), rgba(6, 3, 1, 0.66));
}

::selection {
  background: var(--gold);
  color: var(--ink-on-paper);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.04;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

button,
select,
input,
textarea {
  font: inherit;
  color: inherit;
}

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

.liquid-defs {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Atmosphäre: Korn, Röstgrad-Leiste, Bohnenfeld, Aromadampf
   -------------------------------------------------------------------------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: soft-light;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, rgba(255, 244, 224, 0.05) 0 1px, transparent 1px 4px),
    repeating-radial-gradient(circle at 73% 64%, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px);
  background-size: 260px 260px, 210px 210px;
}

.scroll-meter {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 130;
  background: rgba(246, 224, 188, 0.1);
}

.scroll-meter span {
  display: block;
  height: 100%;
  transform: scaleX(var(--scroll-progress));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--leaf), var(--gold-soft) 34%, var(--copper) 68%, #3c2010);
  box-shadow: 0 0 18px rgba(226, 169, 79, 0.55);
}

.scroll-meter::after {
  content: "Röstgrad";
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: calc(0.25 + var(--scroll-progress) * 0.75);
}

/* Schwebende Kaffeebohnen im Hintergrund, mit Scroll-Parallaxe. */
.bean-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.bean-field span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(74px * var(--s));
  height: calc(108px * var(--s));
  border-radius: 50%;
  opacity: 0.4;
  background:
    linear-gradient(90deg, transparent 0 44%, rgba(15, 8, 4, 0.9) 47% 53%, transparent 56% 100%),
    radial-gradient(circle at 32% 28%, rgba(226, 169, 79, 0.5), transparent 52%),
    radial-gradient(ellipse at 50% 50%, #4a2312 0%, #2a1207 68%, #180a04 100%);
  box-shadow:
    inset -8px -12px 26px rgba(0, 0, 0, 0.65),
    0 30px 60px rgba(0, 0, 0, 0.4);
  filter: blur(0.4px);
  animation: beanHover calc(15s + var(--s) * 8s) ease-in-out infinite alternate;
  animation-delay: calc(var(--s) * -7s);
}

@keyframes beanHover {
  from {
    transform:
      translate3d(calc(var(--glass-shift) * 0.05), calc(var(--scroll-progress) * -90px), 0)
      rotate(var(--r));
  }
  to {
    transform:
      translate3d(calc(var(--glass-shift) * 0.05 + 22px), calc(var(--scroll-progress) * -90px - 30px), 0)
      rotate(calc(var(--r) + 12deg));
  }
}

/* Aufsteigender Röstdampf, Intensität folgt der gewählten Bohne. */
.aroma-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: calc(0.3 + var(--aroma-intensity) * 0.55);
}

.aroma-layer span {
  position: absolute;
  bottom: -12vh;
  left: var(--x);
  width: 86px;
  height: var(--height);
  mix-blend-mode: screen;
  background:
    radial-gradient(closest-side, rgba(246, 224, 188, 0.14), transparent 78%),
    linear-gradient(180deg, transparent, rgba(240, 217, 174, 0.1) 42%, transparent);
  filter: blur(14px);
  animation: aromaDrift 13s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes aromaDrift {
  0% {
    transform: translate3d(0, 16vh, 0) skewX(0deg) scaleY(0.82);
    opacity: 0;
  }
  30% {
    opacity: 0.9;
  }
  60% {
    transform: translate3d(14px, -26vh, 0) skewX(-7deg) scaleY(1.06);
  }
  100% {
    transform: translate3d(-10px, -62vh, 0) skewX(5deg) scaleY(1.2);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Liquid Glass — warmes Glas mit Refraktion und Lichtkante
   -------------------------------------------------------------------------- */

.liquid {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(246, 224, 188, 0.11), rgba(246, 224, 188, 0.03) 38%, rgba(36, 22, 16, 0.34)),
    var(--panel);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow:
    inset 0 1px 0 rgba(246, 236, 221, 0.22),
    inset 0 -18px 44px rgba(15, 8, 4, 0.28),
    var(--shadow-deep);
}

/* Flüssige Lichtschicht: verzerrter Glanz, wandert mit Zeiger und Scroll. */
.liquid::before {
  content: "";
  position: absolute;
  inset: -6%;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(38% 60% at calc(24% + var(--glass-shift) * 0.4) 0%, rgba(246, 236, 221, 0.2), transparent 70%),
    radial-gradient(30% 46% at calc(78% + var(--glass-shift) * -0.3) 110%, rgba(226, 169, 79, 0.18), transparent 72%);
  filter: url(#liquid-glass-filter);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Kopfzeile + permanenter Shop-Zugang
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(1240px, calc(100% - 24px));
  min-height: var(--header-h);
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ink-on-paper);
  background:
    radial-gradient(circle at 32% 28%, #ffe9bd, transparent 58%),
    linear-gradient(150deg, var(--gold-soft), var(--copper));
  box-shadow:
    inset 0 -6px 12px rgba(84, 40, 16, 0.45),
    0 10px 26px rgba(226, 169, 79, 0.3);
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.26rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}

.main-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 200ms ease, background-color 200ms ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(246, 224, 188, 0.09);
}

.main-nav a.is-active {
  color: var(--ink-on-paper);
  background: linear-gradient(150deg, var(--crema), var(--gold));
}

.nav-shop {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ink-on-paper);
  background: linear-gradient(150deg, var(--gold-soft), var(--copper));
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 210, 0.6),
    0 14px 34px rgba(226, 169, 79, 0.28);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.nav-shop:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 210, 0.6),
    0 20px 44px rgba(226, 169, 79, 0.4);
}

/* Fixe Shop-Kachel unten rechts: aus jedem Scrollzustand direkt kaufen. */
.shop-ribbon {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 118;
  display: grid;
  gap: 2px;
  padding: 14px 20px;
  border-radius: 20px;
  border-color: rgba(226, 169, 79, 0.5);
  transition: transform 240ms ease, opacity 240ms ease, box-shadow 240ms ease;
}

.shop-ribbon span {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.shop-ribbon strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}

.shop-ribbon:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(246, 236, 221, 0.28),
    0 26px 70px rgba(226, 169, 79, 0.26);
}

/* Wenn der Kassenbon lebt und der Shop im Bild ist, weicht die Kachel aus. */
:root.cart-is-live.shop-is-active .shop-ribbon {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 30px));
}

/* Schnellnavi am linken Rand — nur auf großen Screens. */
.shop-orbit {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 20px;
  max-width: 168px;
}

.shop-orbit-title {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}

.shop-orbit a {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.shop-orbit a:hover {
  color: var(--ink);
  background: rgba(246, 224, 188, 0.09);
  transform: translateX(3px);
}

.shop-orbit a.is-active {
  color: var(--ink-on-paper);
  background: linear-gradient(150deg, var(--crema), var(--gold));
}

/* --------------------------------------------------------------------------
   Typo-Bausteine
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.button-primary {
  color: var(--ink-on-paper);
  background: linear-gradient(150deg, var(--gold-soft), var(--copper));
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 210, 0.55),
    0 18px 44px rgba(226, 169, 79, 0.3);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 210, 0.55),
    0 24px 60px rgba(226, 169, 79, 0.42);
}

.button-ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: rgba(246, 224, 188, 0.04);
}

.button-ghost:hover {
  transform: translateY(-2px);
  background: rgba(246, 224, 188, 0.1);
}

/* --------------------------------------------------------------------------
   Held: das Röstereibild trägt, die Typo schlägt ein
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  padding: calc(var(--header-h) + 60px) max(20px, calc((100vw - 1240px) / 2)) 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.28) saturate(1.05) contrast(1.04) brightness(0.82);
}

/* Sanfter Röst-Zoom nur dort, wo das Bild sicher beschnitten bleibt. */
@media (min-width: 761px) {
  .hero-image {
    transform: scale(calc(1.04 + var(--scroll-progress) * 0.35));
    transform-origin: 50% 30%;
    will-change: transform;
  }
}

.hero-shadow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 10, 6, 0.62) 0%, rgba(15, 10, 6, 0.12) 34%, rgba(15, 10, 6, 0.88) 82%),
    radial-gradient(90vw 70vh at 24% 88%, rgba(15, 8, 4, 0.72), transparent 68%),
    linear-gradient(90deg, rgba(15, 10, 6, 0.55), transparent 55%);
}

.hero-content {
  position: relative;
  width: min(880px, 100%);
}

.hero-tagline {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  color: var(--crema);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(4.2rem, 14vw, 12.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.82;
  color: var(--paper);
  text-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

.hero h1::after {
  content: ".";
  color: var(--gold);
}

.hero-copy {
  max-width: 620px;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  color: var(--muted);
}

.decision-ladder {
  display: grid;
  gap: 8px;
  margin: 22px 0 14px;
  padding: 16px 18px;
  list-style: none;
  border-radius: var(--radius-md);
  max-width: 640px;
}

.decision-ladder li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.decision-ladder li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.52em;
  width: 9px;
  height: 9px;
  border-radius: 50% 50% 50% 4px;
  background: var(--gold);
}

.decision-ladder strong {
  color: var(--ink);
}

.psych-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}

.psych-chip {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--crema);
  background: rgba(36, 22, 16, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.social-proof-badge {
  margin: 0;
  font-size: 0.8rem;
  color: var(--dim);
}

.hero-proof {
  position: absolute;
  right: max(20px, calc((100vw - 1240px) / 2));
  bottom: 96px;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
}

.hero-proof span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--crema);
}

.hero-proof span::before {
  content: "— ";
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Kaffeeschule — läuft jetzt als eigene horizontale Bühne
   -------------------------------------------------------------------------- */

.school-track .school-tile {
  flex: 0 0 auto;
  width: min(430px, calc(100vw - 60px));
  min-height: 300px;
  align-content: center;
}

.school-address {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
}

.school-address-kicker {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}

.school-address strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.2;
}

.school-address a {
  font-size: 0.9rem;
  color: var(--gold-soft);
}

.school-address a:hover {
  color: var(--crema);
}

.school-tile {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  border-radius: var(--radius-md);
  transition: transform 220ms ease, border-color 220ms ease;
}

.school-tile:nth-child(even) {
  transform: translateY(22px);
}

.school-tile:hover {
  border-color: rgba(226, 169, 79, 0.55);
  transform: translateY(-4px);
}

.school-tile:nth-child(even):hover {
  transform: translateY(18px);
}

.school-tile strong {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  color: var(--gold-soft);
}

.school-tile span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Horizontale Bühnen: vertikal scrollen, seitlich reisen
   -------------------------------------------------------------------------- */

.horizontal-stage {
  position: relative;
  min-height: 300vh;
}

.stage-sticky {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 34px) 0 48px;
  overflow: hidden;
  isolation: isolate;
}

.stage-sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(70vw 50vh at 50% 46%, rgba(111, 61, 34, 0.16), transparent 70%);
}

.school-stage .stage-sticky::before,
.product-stage .stage-sticky::before,
.pos-stage .stage-sticky::before {
  position: absolute;
  top: 4vh;
  left: 0;
  z-index: -1;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(9rem, 24vw, 22rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(240, 217, 174, 0.13);
  transform: translateX(calc(8vw - var(--stage-progress, 0) * 46vw));
  will-change: transform;
}

.school-stage .stage-sticky::before {
  content: "Kaffeeschule";
}

.product-stage .stage-sticky::before {
  content: "Sortiment";
  transform: translateX(calc(-38vw + var(--stage-progress, 0) * 46vw));
}

.pos-stage .stage-sticky::before {
  content: "Vor Ort";
}

.stage-heading {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto 20px;
}

.stage-heading h2 {
  max-width: 900px;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.stage-heading > p:last-child {
  max-width: 680px;
  color: var(--muted);
  margin-bottom: 0;
}

.product-heading {
  width: min(1240px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - 1240px) / 2));
  margin-right: auto;
}

.track-cue {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crema);
  background: rgba(36, 22, 16, 0.5);
}

.scroll-track {
  display: flex;
  justify-self: start;
  gap: 20px;
  width: max-content;
  padding: 14px max(20px, calc((100vw - 1240px) / 2)) 26px;
  will-change: transform;
}

.scroll-track[data-direction="rtl"] {
  flex-direction: row-reverse;
}

/* Story-Panels: nummerierte Röstkapitel */
.story-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  width: min(600px, calc(100vw - 48px));
  min-height: 430px;
  padding: clamp(26px, 3vw, 40px);
  overflow: hidden;
}

.panel-number {
  position: absolute;
  top: 6px;
  right: 18px;
  font-family: var(--font-display);
  font-size: clamp(6rem, 9vw, 9rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(226, 169, 79, 0.4);
  pointer-events: none;
}

.story-panel h3 {
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  max-width: 420px;
}

.story-panel p {
  max-width: 460px;
  color: var(--muted);
}

.story-panel a,
.product-card a,
.loc-card a,
.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.story-panel a::after,
.product-card a::after,
.link-list a::after {
  content: "→";
  color: var(--gold-soft);
  transition: transform 200ms ease;
}

.story-panel a:hover,
.product-card a:hover,
.loc-card a:hover,
.link-list a:hover {
  color: var(--ink-on-paper);
  background: var(--crema);
  transform: translateY(-2px);
}

.story-panel a:hover::after,
.product-card a:hover::after,
.link-list a:hover::after {
  color: var(--ink-on-paper);
  transform: translateX(3px);
}

.accent-panel {
  border-color: rgba(226, 169, 79, 0.55);
  background:
    radial-gradient(80% 90% at 84% 10%, rgba(226, 169, 79, 0.24), transparent 62%),
    linear-gradient(160deg, rgba(246, 224, 188, 0.13), rgba(36, 22, 16, 0.4));
}

/* --------------------------------------------------------------------------
   Sortiment: Produktkarten wie Kaffeebeutel im Regal
   -------------------------------------------------------------------------- */

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  align-content: start;
  gap: 4px;
  width: min(430px, calc(100vw - 48px));
  min-height: 440px;
  padding: clamp(24px, 2.6vw, 34px);
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.product-card::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 0 45%, rgba(15, 8, 4, 0.85) 47% 53%, transparent 55%),
    radial-gradient(circle at 34% 30%, rgba(226, 169, 79, 0.45), transparent 55%),
    radial-gradient(ellipse at 50% 50%, #52290f, #2a1207 72%);
  opacity: 0.5;
  transform: rotate(-24deg);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-10px) rotate(-0.5deg);
  border-color: rgba(226, 169, 79, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(246, 236, 221, 0.3),
    0 38px 100px rgba(0, 0, 0, 0.5),
    0 24px 70px rgba(226, 169, 79, 0.14);
}

.product-kind {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-on-paper);
  background: linear-gradient(150deg, var(--crema), var(--gold));
}

.product-card h3,
.shop-product h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  letter-spacing: -0.01em;
}

.price {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gold-soft);
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.price-old {
  margin-right: 10px;
  font-size: 0.44em;
  color: var(--dim);
  text-decoration: line-through;
  letter-spacing: 0;
}

.price-per-kg {
  width: fit-content;
  margin: 8px 0 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--crema);
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 3px;
}

.product-card > p:not(.price, .price-per-kg) {
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 320px;
}

.product-card .psych-chip {
  width: fit-content;
  margin-bottom: 6px;
}

/* Spiegel des Original-Checkouts direkt unter der Produktreise. */
.shop-mirror {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: center;
  width: min(1240px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: clamp(22px, 3vw, 34px);
}

.shop-mirror h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.shop-mirror p {
  color: var(--muted);
  margin-bottom: 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.checkout-item {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(36, 22, 16, 0.5);
  transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.checkout-item:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 169, 79, 0.6);
  background: rgba(52, 30, 18, 0.7);
}

.checkout-item span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.checkout-item strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

.paypal-direct {
  border-color: rgba(226, 169, 79, 0.6);
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(226, 169, 79, 0.28), transparent 60%),
    rgba(52, 30, 18, 0.66);
}

/* --------------------------------------------------------------------------
   KAFFEE-SHOP Nachbau: wählen, mahlen, in den Warenkorb
   -------------------------------------------------------------------------- */

.shop-replica-section {
  position: relative;
  width: min(1240px, calc(100% - 40px));
  margin: 50px auto 130px;
  padding-top: calc(var(--header-h) + 42px);
}

.shop-replica-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.shop-replica-heading h2 {
  font-size: clamp(2rem, 3.8vw, 3.6rem);
}

.shop-replica-heading > p {
  color: var(--muted);
}

/* Schnellansicht: großformatige Bühne für die gewählte Bohne */
/* Schnellansicht als Overlay: öffnet zentriert über der Seite */
.quickview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 5, 2, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.quickview-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 91;
  width: min(980px, calc(100vw - 32px));
  max-height: min(86vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(200px, 0.55fr) minmax(0, 1.45fr) minmax(220px, 0.7fr);
  gap: 26px;
  align-items: center;
  padding: clamp(20px, 2.6vw, 32px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.quickview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--crema);
  background: rgba(24, 13, 7, 0.75);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

.quickview-close:hover {
  color: var(--ink-on-paper);
  background: var(--crema);
}

.quickview-pack {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 250px;
  border-radius: 18px 18px 24px 24px;
  background:
    linear-gradient(180deg, rgba(246, 236, 221, 0.92) 0 14%, rgba(20, 10, 5, 0.2) 14% 18%, transparent 18%),
    radial-gradient(circle at 50% 44%, rgba(226, 169, 79, 0.5), transparent 62%),
    linear-gradient(170deg, #3a2113, #1c0f07);
  box-shadow:
    inset 0 -26px 44px rgba(0, 0, 0, 0.5),
    0 26px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.quickview-pack span {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--ink-on-paper);
  background: linear-gradient(150deg, var(--crema), var(--gold));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.quickview-pack::before {
  content: "Frisch geröstet · Bio DE-ÖKO-022";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 7px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--crema);
  background: rgba(15, 8, 4, 0.55);
}

.quickview-copy h3 {
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
}

.quickview-copy > p {
  color: var(--muted);
  max-width: 520px;
}

.quickview-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quickview-facts span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--crema);
  background: rgba(36, 22, 16, 0.5);
}

.quickview-facts span:first-child {
  color: var(--ink-on-paper);
  border-color: transparent;
  background: linear-gradient(150deg, var(--gold-soft), var(--copper));
  font-weight: 700;
  font-size: 0.8rem;
}

.quickview-actions {
  display: grid;
  gap: 10px;
}

/* Produktregal */
.shop-replica-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shop-product {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: clamp(20px, 2.4vw, 28px);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.shop-product:hover {
  transform: translateY(-6px);
  border-color: rgba(226, 169, 79, 0.5);
}

.shop-product.is-previewed {
  border-color: rgba(226, 169, 79, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(246, 236, 221, 0.3),
    0 0 0 1px rgba(226, 169, 79, 0.5),
    0 30px 80px rgba(226, 169, 79, 0.14);
}

.shop-product.is-previewed::after {
  content: "In der Schnellansicht";
  position: absolute;
  top: -11px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-on-paper);
  background: linear-gradient(150deg, var(--gold-soft), var(--copper));
}

.shop-product .product-kind {
  margin-bottom: 4px;
}

.shop-product h3 {
  margin-bottom: 0;
}

.shop-product .price {
  font-size: clamp(2.2rem, 3vw, 3rem);
}

.shop-product label {
  display: grid;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.shop-product select,
.shop-product input {
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  background: rgba(20, 11, 6, 0.72);
  transition: border-color 180ms ease;
}

.shop-product select:hover,
.shop-product input:hover,
.shop-product select:focus,
.shop-product input:focus {
  border-color: rgba(226, 169, 79, 0.6);
}

.shop-product select option {
  background: var(--espresso);
  color: var(--ink);
}

.shop-product button {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.9rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.shop-product .quickview-trigger {
  margin-top: 6px;
  color: var(--ink);
  background: rgba(246, 224, 188, 0.05);
}

.shop-product .quickview-trigger:hover {
  background: rgba(246, 224, 188, 0.14);
  transform: translateY(-2px);
}

.shop-product [data-add-product] {
  border: none;
  color: var(--ink-on-paper);
  background: linear-gradient(150deg, var(--gold-soft), var(--copper));
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 210, 0.55),
    0 14px 36px rgba(226, 169, 79, 0.26);
}

.shop-product [data-add-product]:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 210, 0.55),
    0 20px 48px rgba(226, 169, 79, 0.4);
}

.shop-product.is-in-cart {
  animation: cartPulse 900ms ease both;
}

@keyframes cartPulse {
  0% {
    transform: translateY(-6px) scale(1);
  }
  45% {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
      inset 0 1px 0 rgba(246, 236, 221, 0.35),
      0 0 0 2px rgba(226, 169, 79, 0.7),
      0 40px 90px rgba(226, 169, 79, 0.2);
  }
  100% {
    transform: translateY(-6px) scale(1);
  }
}

/* --------------------------------------------------------------------------
   Der Kassenbon: heller Papierbeleg auf dunkler Rösterei
   -------------------------------------------------------------------------- */

.cart-dock {
  /* Ruhezustand: liegt als Beleg am Ende des Regals; sticky greift erst,
     wenn die Sektion länger als der Bon ist — nie über der Schnellansicht. */
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding: 22px;
  border: none;
  border-radius: 14px 14px 4px 4px;
  color: var(--ink-on-paper);
  background:
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(34, 21, 13, 0.045) 26px 27px),
    linear-gradient(180deg, #fbf3e2, var(--paper) 60%, #efe2c8);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.6),
    0 8px 26px rgba(0, 0, 0, 0.35);
  /* Zackenkante wie ein abgerissener Beleg */
  clip-path: polygon(
    0 0, 100% 0, 100% calc(100% - 9px),
    97.5% 100%, 95% calc(100% - 9px), 92.5% 100%, 90% calc(100% - 9px),
    87.5% 100%, 85% calc(100% - 9px), 82.5% 100%, 80% calc(100% - 9px),
    77.5% 100%, 75% calc(100% - 9px), 72.5% 100%, 70% calc(100% - 9px),
    67.5% 100%, 65% calc(100% - 9px), 62.5% 100%, 60% calc(100% - 9px),
    57.5% 100%, 55% calc(100% - 9px), 52.5% 100%, 50% calc(100% - 9px),
    47.5% 100%, 45% calc(100% - 9px), 42.5% 100%, 40% calc(100% - 9px),
    37.5% 100%, 35% calc(100% - 9px), 32.5% 100%, 30% calc(100% - 9px),
    27.5% 100%, 25% calc(100% - 9px), 22.5% 100%, 20% calc(100% - 9px),
    17.5% 100%, 15% calc(100% - 9px), 12.5% 100%, 10% calc(100% - 9px),
    7.5% 100%, 5% calc(100% - 9px), 2.5% 100%, 0 calc(100% - 9px)
  );
}

.cart-dock .eyebrow {
  color: var(--copper);
  margin-bottom: 8px;
}

.cart-dock .eyebrow::before {
  background: linear-gradient(90deg, var(--copper), transparent);
}

.cart-dock h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.cart-dock p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(34, 21, 13, 0.75);
  overflow-wrap: anywhere;
}

.cart-aroma {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px dashed rgba(34, 21, 13, 0.35);
  border-radius: 10px;
}

.cart-aroma span {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
}

.cart-aroma strong {
  font-family: var(--font-display);
  font-size: 1.04rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.aroma-meter {
  height: 7px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(34, 21, 13, 0.16);
  overflow: hidden;
}

.aroma-meter i {
  display: block;
  height: 100%;
  inline-size: calc(var(--aroma-intensity) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--copper), #46220e);
  transition: inline-size 400ms ease;
}

.cart-total {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px dashed rgba(34, 21, 13, 0.35);
}

.cart-total span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(34, 21, 13, 0.6);
}

.cart-total strong {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #351b0c;
}

.cart-receipt {
  display: grid;
  gap: 3px;
}

.cart-receipt span {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
}

.cart-receipt strong {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cart-receipt small {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: rgba(34, 21, 13, 0.6);
}

.cart-actions {
  display: grid;
  gap: 10px;
}

.cart-actions .button-primary {
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 210, 0.55),
    0 14px 34px rgba(180, 99, 58, 0.4);
}

.cart-actions .button-ghost {
  color: var(--ink-on-paper);
  border-color: rgba(34, 21, 13, 0.45);
  background: rgba(34, 21, 13, 0.05);
}

.cart-actions .button-ghost:hover {
  background: rgba(34, 21, 13, 0.12);
}

/* Sobald der Bon lebt, dockt er fix an die Unterkante — Fokus auf den Kauf. */
.shop-replica-section .cart-dock.is-live {
  position: fixed;
  top: auto;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 122;
  width: min(1200px, calc(100% - 24px));
  margin-inline: auto;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  transition: transform 300ms ease, opacity 300ms ease;
}

/* Ohne Shop im Bild taucht der Bon ab, die Shop-Kachel übernimmt wieder. */
:root:not(.shop-is-active) .shop-replica-section .cart-dock.is-live {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 60px));
}

@media (min-width: 980px) {
  .shop-replica-section .cart-dock.is-live {
    grid-template-columns: minmax(200px, 1.05fr) minmax(190px, 0.9fr) minmax(130px, 0.5fr) minmax(190px, 0.85fr) minmax(230px, 0.9fr);
    gap: 18px;
    align-items: center;
    padding: 18px 22px 24px;
    max-height: 210px;
    overflow: hidden;
  }

  .shop-replica-section .cart-dock.is-live h3 {
    font-size: clamp(1.2rem, 1.6vw, 1.7rem);
  }

  .shop-replica-section .cart-dock.is-live .cart-total {
    border-top: none;
    padding-top: 0;
    border-left: 1px dashed rgba(34, 21, 13, 0.35);
    padding-left: 16px;
  }

  .shop-replica-section .cart-dock.is-live .cart-actions .button {
    min-height: 46px;
    padding-inline: 16px;
    font-size: 0.86rem;
  }
}

/* --------------------------------------------------------------------------
   Point of Sale: Karte im Röstrahmen
   -------------------------------------------------------------------------- */

.pos-stage .stage-sticky {
  align-content: start;
}

.pos-stage .stage-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.9rem);
}

.pos-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  grid-template-rows: auto auto;
  gap: 16px 22px;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto 14px;
  padding: clamp(18px, 2.2vw, 26px);
}

.pos-map-copy {
  align-self: center;
}

.pos-map-copy h3 {
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.pos-map-copy p {
  color: var(--muted);
  font-size: 0.92rem;
}

#pos-current {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--crema);
}

.map-route-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  transition: background-color 200ms ease, color 200ms ease;
}

.map-route-link::after {
  content: "↗";
  color: var(--gold-soft);
}

.map-route-link:hover {
  background: var(--crema);
  color: var(--ink-on-paper);
}

.map-route-link:hover::after {
  color: var(--ink-on-paper);
}

.map-canvas {
  position: relative;
  grid-row: span 2;
  min-height: 340px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(150deg, #1d1209, #120a05);
}

#pos-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0.22;
  filter: sepia(0.5) saturate(0.8) contrast(0.92) brightness(0.7);
}

:root.map-fallback-only #pos-map {
  opacity: 0;
}

/* Stilisierte Röstkarte über dem echten Kartenmaterial */
.map-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(226, 169, 79, 0.08), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 44px, rgba(240, 217, 174, 0.04) 44px 45px),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(240, 217, 174, 0.04) 44px 45px);
}

.map-road {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(240, 217, 174, 0.2), transparent);
  height: 2px;
  pointer-events: none;
}

.road-one {
  left: -4%;
  right: 8%;
  top: 46%;
  transform: rotate(-7deg);
}

.road-two {
  left: 12%;
  right: -6%;
  top: 66%;
  transform: rotate(4deg);
}

.map-river {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 55%;
  height: 34px;
  pointer-events: none;
  background: radial-gradient(60% 100% at 50% 50%, rgba(140, 170, 190, 0.16), transparent 76%);
  transform: rotate(-4deg);
  filter: blur(3px);
}

.map-pin {
  position: absolute;
  left: var(--mx);
  top: var(--my);
  transform: translate(-50%, -100%);
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.map-pin::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50% 50% 50% 4px;
  background: var(--copper);
  border: 2px solid rgba(246, 236, 221, 0.75);
  transform: rotate(45deg);
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.map-pin span {
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--crema);
  background: rgba(15, 8, 4, 0.72);
  border: 1px solid var(--line);
  transition: background-color 200ms ease, color 200ms ease;
}

.map-pin:hover::before {
  transform: rotate(45deg) scale(1.2);
}

.map-pin.is-active::before {
  background: var(--gold-soft);
  box-shadow: 0 0 0 7px rgba(226, 169, 79, 0.25), 0 0 30px rgba(226, 169, 79, 0.6);
  transform: rotate(45deg) scale(1.28);
}

.map-pin.is-active span {
  color: var(--ink-on-paper);
  background: linear-gradient(150deg, var(--crema), var(--gold));
  border-color: transparent;
}

.location-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.location-picker button {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(36, 22, 16, 0.45);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.location-picker button:hover {
  color: var(--ink);
  border-color: rgba(226, 169, 79, 0.5);
  transform: translateY(-2px);
}

.location-picker button.is-active {
  color: var(--ink-on-paper);
  border-color: transparent;
  background: linear-gradient(150deg, var(--crema), var(--gold));
}

.pos-track .loc-card {
  width: min(330px, calc(100vw - 48px));
  min-height: 240px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: clamp(20px, 2.2vw, 28px);
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.loc-card:hover {
  transform: translateY(-5px);
}

.loc-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.loc-card span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.loc-card strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.loc-card.is-active {
  border-color: rgba(226, 169, 79, 0.7);
  background:
    radial-gradient(120% 140% at 80% 0%, rgba(226, 169, 79, 0.22), transparent 62%),
    linear-gradient(160deg, rgba(246, 224, 188, 0.12), rgba(36, 22, 16, 0.4));
  box-shadow:
    inset 0 1px 0 rgba(246, 236, 221, 0.32),
    0 26px 70px rgba(226, 169, 79, 0.16);
}

.loc-card.is-active span::before {
  content: "● ";
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Letzter Stupser + Kontakt
   -------------------------------------------------------------------------- */

.conversion-section {
  display: grid;
  place-items: center;
  padding: 120px 20px;
}

.conversion-card {
  width: min(880px, 100%);
  padding: clamp(34px, 5vw, 64px);
  text-align: center;
  border-color: rgba(226, 169, 79, 0.4);
}

.conversion-card h2 {
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
}

.conversion-card p {
  max-width: 560px;
  margin-inline: auto;
  color: var(--muted);
}

.conversion-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 18px;
  width: min(1240px, calc(100% - 40px));
  margin: 40px auto 120px;
}

.contact-card {
  padding: clamp(24px, 3vw, 38px);
}

.contact-card h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
}

.contact-card address {
  font-style: normal;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 22px;
}

.contact-card address a {
  color: var(--gold-soft);
}

.contact-card address a:hover {
  color: var(--crema);
}

.contact-card > p {
  color: var(--muted);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.contact-form label:nth-of-type(5),
.contact-form label:nth-of-type(6) {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  background: rgba(20, 11, 6, 0.72);
  transition: border-color 180ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(226, 169, 79, 0.6);
}

.contact-form button {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 52px;
  padding: 12px 30px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  color: var(--ink-on-paper);
  background: linear-gradient(150deg, var(--gold-soft), var(--copper));
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 210, 0.55),
    0 16px 40px rgba(226, 169, 79, 0.26);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
}

.contact-thanks {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 700;
  color: var(--leaf);
}

.link-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 4px 110px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.86rem;
}

.site-footer a {
  color: var(--gold-soft);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--crema);
}

/* --------------------------------------------------------------------------
   Enthüllungen beim Scrollen
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.school-tile.reveal:nth-child(even).is-visible {
  transform: translateY(22px);
}

/* --------------------------------------------------------------------------
   Responsiv
   -------------------------------------------------------------------------- */

/* Die Schnellnavi braucht eigenen Randraum — nur zeigen, wo sie nichts verdeckt. */
@media (max-width: 1679px) {
  .shop-orbit {
    display: none;
  }
}

@media (max-width: 979px) {
  :root {
    --header-h: 64px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 8px 10px 8px 14px;
  }

  .main-nav {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .nav-shop {
    padding: 11px 16px;
    font-size: 0.84rem;
  }

  .hero {
    align-items: end;
    padding-bottom: 72px;
  }

  .hero-proof {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 30px;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-tile:nth-child(even),
  .school-tile.reveal:nth-child(even).is-visible {
    transform: none;
  }

  .shop-mirror {
    grid-template-columns: 1fr;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .quickview-panel {
    grid-template-columns: 1fr;
    width: calc(100vw - 24px);
    max-height: 82vh;
  }

  .quickview-pack {
    min-height: 160px;
  }

  .shop-replica-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-replica-section {
    margin-block: 30px 90px;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .pos-map-shell {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .map-canvas {
    grid-row: auto;
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  /* Bühnen fließen mobil vertikal: gleiche Inhalte, kein Sticky-Zwang. */
  .horizontal-stage {
    min-height: auto;
  }

  .stage-sticky {
    position: relative;
    min-height: auto;
    padding: 72px 0 40px;
    overflow: visible;
  }

  .school-stage .stage-sticky::before,
  .product-stage .stage-sticky::before,
  .pos-stage .stage-sticky::before {
    display: none;
  }

  .scroll-track,
  .scroll-track[data-direction="rtl"] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    padding: 10px 20px 20px;
    transform: none !important;
  }

  .story-panel,
  .product-card,
  .pos-track .loc-card {
    width: 100%;
    min-height: 0;
  }

  .story-panel {
    min-height: 320px;
  }

  .track-cue {
    display: none;
  }

  .pos-stage .stage-heading > p:last-child {
    display: none;
  }

  .pos-map-copy > p:not(#pos-current) {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 19vw, 5.4rem);
  }

  .hero {
    padding-inline: 18px;
  }

  .stage-heading,
  .product-heading {
    width: calc(100% - 36px);
    margin-inline: auto;
  }

  .shop-replica-grid {
    grid-template-columns: 1fr;
  }

  .shop-ribbon {
    display: none;
  }

  .decision-ladder {
    padding: 12px 14px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form label:nth-of-type(5),
  .contact-form label:nth-of-type(6),
  .contact-form button,
  .contact-thanks {
    grid-column: auto;
  }

  .bean-field span {
    left: clamp(8px, var(--x), calc(100vw - 130px));
    width: 56px;
    height: 84px;
  }

  .aroma-layer span {
    left: clamp(8px, var(--x), calc(100vw - 100px));
    width: 60px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 40px;
  }

  .shop-replica-section .cart-dock.is-live {
    max-height: min(62vh, 520px);
  }
}

/* --------------------------------------------------------------------------
   Zusätzliche Scroll-Animationen, wo der Browser sie nativ kann
   -------------------------------------------------------------------------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
    .conversion-card {
      animation: stageRise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    .hero-content {
      animation: heroSink linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
  }
}

@keyframes stageRise {
  from {
    transform: translateY(60px) scale(0.97);
    opacity: 0.25;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes heroSink {
  to {
    transform: translateY(-9vh);
    opacity: 0.05;
  }
}

/* --------------------------------------------------------------------------
   Ruhe für alle, die weniger Bewegung wollen
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .horizontal-stage {
    min-height: auto;
  }

  .stage-sticky {
    position: relative;
    min-height: auto;
  }

  .scroll-track {
    width: auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    transform: none !important;
  }

  .hero-image {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ==========================================================================
   KAFFEE-SHOP Seite (shop.html) — eigener Shop im Röstgrad-Design
   ========================================================================== */

.shop-page main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-cart {
  gap: 10px;
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(34, 21, 13, 0.85);
  color: var(--crema);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.shop-hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 62svh;
  padding: calc(var(--header-h) + 70px) 0 30px;
  isolation: isolate;
}

/* Geisterwort hinter dem Shop-Einstieg, zieht mit dem Röstgrad nach links. */
.shop-hero::before {
  content: "Kaffee";
  position: absolute;
  top: calc(var(--header-h) + 10px);
  left: 0;
  z-index: -1;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 20rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(240, 217, 174, 0.12);
  transform: translateX(calc(4vw - var(--scroll-progress) * 40vw));
  pointer-events: none;
}

.shop-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(3.6rem, 9vw, 7.5rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--paper);
}

.shop-hero h1 span {
  color: var(--gold);
}

.shop-hero-copy {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.shop-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.shop-hero-facts span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crema);
  background: rgba(36, 22, 16, 0.55);
}

.catalog-section {
  margin: 56px 0 90px;
}

.catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.catalog-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
}

.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-filter button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(36, 22, 16, 0.45);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.catalog-filter button:hover {
  color: var(--ink);
  border-color: rgba(226, 169, 79, 0.5);
  transform: translateY(-2px);
}

.catalog-filter button.is-active {
  color: var(--ink-on-paper);
  border-color: transparent;
  background: linear-gradient(150deg, var(--crema), var(--gold));
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: start;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.catalog-card .card-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.catalog-card.is-sale {
  border-color: rgba(226, 169, 79, 0.55);
}

.sale-kind {
  background: linear-gradient(150deg, var(--gold-soft), var(--copper));
}

.card-origin-link {
  width: fit-content;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 2px;
  transition: color 180ms ease;
}

.card-origin-link:hover {
  color: var(--gold-soft);
}

/* Kassenbon des eigenen Shops: gleiches Papier, klebt beim Scrollen mit. */
.cart-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 14px;
  padding: 24px 22px 30px;
  border-radius: 14px 14px 4px 4px;
  color: var(--ink-on-paper);
  background:
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(34, 21, 13, 0.045) 26px 27px),
    linear-gradient(180deg, #fbf3e2, var(--paper) 60%, #efe2c8);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.55),
    0 8px 26px rgba(0, 0, 0, 0.3);
  clip-path: polygon(
    0 0, 100% 0, 100% calc(100% - 9px),
    97.5% 100%, 95% calc(100% - 9px), 92.5% 100%, 90% calc(100% - 9px),
    87.5% 100%, 85% calc(100% - 9px), 82.5% 100%, 80% calc(100% - 9px),
    77.5% 100%, 75% calc(100% - 9px), 72.5% 100%, 70% calc(100% - 9px),
    67.5% 100%, 65% calc(100% - 9px), 62.5% 100%, 60% calc(100% - 9px),
    57.5% 100%, 55% calc(100% - 9px), 52.5% 100%, 50% calc(100% - 9px),
    47.5% 100%, 45% calc(100% - 9px), 42.5% 100%, 40% calc(100% - 9px),
    37.5% 100%, 35% calc(100% - 9px), 32.5% 100%, 30% calc(100% - 9px),
    27.5% 100%, 25% calc(100% - 9px), 22.5% 100%, 20% calc(100% - 9px),
    17.5% 100%, 15% calc(100% - 9px), 12.5% 100%, 10% calc(100% - 9px),
    7.5% 100%, 5% calc(100% - 9px), 2.5% 100%, 0 calc(100% - 9px)
  );
}

.cart-panel .eyebrow {
  color: var(--copper);
  margin-bottom: 0;
}

.cart-panel .eyebrow::before {
  background: linear-gradient(90deg, var(--copper), transparent);
}

.cart-panel-title {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.cart-empty {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(34, 21, 13, 0.7);
}

.cart-lines {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-line {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(34, 21, 13, 0.3);
}

.cart-line-info {
  display: grid;
  gap: 2px;
}

.cart-line-info strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cart-line-info small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(34, 21, 13, 0.66);
  overflow-wrap: anywhere;
}

.cart-line-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-step {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(34, 21, 13, 0.4);
  border-radius: 50%;
  background: transparent;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.qty-step:hover {
  background: rgba(34, 21, 13, 0.1);
  transform: translateY(-1px);
}

.cart-line-qty {
  min-width: 22px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
}

.cart-line-total {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-line-remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(34, 21, 13, 0.55);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.cart-line-remove:hover {
  color: #8c2f16;
  background: rgba(140, 47, 22, 0.12);
}

.cart-panel-aroma {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px dashed rgba(34, 21, 13, 0.35);
  border-radius: 10px;
}

.cart-panel-aroma span {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
}

.cart-panel-aroma strong {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.3;
}

.cart-panel-total {
  display: grid;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px dashed rgba(34, 21, 13, 0.35);
}

.cart-panel-total span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(34, 21, 13, 0.6);
}

.cart-panel-total strong {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #351b0c;
}

.cart-panel-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.5;
  color: rgba(34, 21, 13, 0.6);
}

.cart-panel-actions {
  display: grid;
  gap: 10px;
}

.cart-panel-actions .button-ghost {
  color: var(--ink-on-paper);
  border-color: rgba(34, 21, 13, 0.45);
  background: rgba(34, 21, 13, 0.05);
}

.cart-panel-actions .button-ghost:hover {
  background: rgba(34, 21, 13, 0.12);
}

.cart-panel-actions .paypal-direct.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cart-clear {
  justify-self: start;
  padding: 6px 0;
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(34, 21, 13, 0.55);
  text-decoration: underline dashed;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 160ms ease;
}

.cart-clear:hover {
  color: #8c2f16;
}

/* Mobile Sprungmarke zum Bon */
.cart-fab {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 118;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  border-color: rgba(226, 169, 79, 0.55);
}

.cart-fab span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.cart-fab strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.cart-fab i {
  font-style: normal;
}

.shop-outro {
  display: grid;
  place-items: center;
  margin: 40px 0 110px;
}

@media (min-width: 1081px) {
  .cart-fab {
    display: none;
  }
}

@media (max-width: 1080px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-head {
    align-items: start;
    flex-direction: column;
  }

  .shop-hero {
    min-height: 48svh;
  }

  .shop-page main {
    width: calc(100% - 32px);
  }

  .cart-line-controls {
    flex-wrap: wrap;
  }
}

/* hidden-Attribut gewinnt immer gegen display-Regeln (Filter, Bon-Boxen, FAB). */
[hidden] {
  display: none !important;
}

/* Auf hellem Bon-Papier braucht der Gold-Knopf mehr Sättigung und Kontur. */
.cart-panel-actions .button-primary,
.cart-actions .button-primary {
  border: 1px solid rgba(122, 62, 22, 0.4);
  background: linear-gradient(120deg, #f7d07c 0%, #e2a94f 48%, #c9793d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 210, 0.7),
    0 12px 30px rgba(148, 84, 36, 0.38);
}

/* Katalogkarten blenden ohne Unschärfe ein — kein matschiger Anschnitt an der Falzkante. */
.catalog-card.reveal {
  filter: none;
  transform: translate3d(0, 26px, 0);
}

/* ==========================================================================
   Der Weg des Kaffees — scrollgetriebene Bühne von der Pflanze bis zur Tüte
   Alles transform/opacity, Loops pausieren außerhalb des Viewports.
   Die alten Inhaltskapitel gleiten als Panels durch die passenden Stationen:
   hereingleiten, zum Lesen verweilen, weiterziehen — rein scrollgetrieben.
   ========================================================================== */

.journey-stage {
  position: relative;
  min-height: 820vh;
}

/* Anker für die Rösterei-Navigation: springt mitten in die Röst-Phase. */
.journey-anchor {
  position: absolute;
  top: 62%;
  left: 0;
  width: 1px;
  height: 1px;
}

.journey-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-color: #131c10;
  transition: background-color 1100ms ease;
}

.journey-stage[data-phase="1"] .journey-sticky { background-color: #202410; }
.journey-stage[data-phase="2"] .journey-sticky { background-color: #2a1f0d; }
.journey-stage[data-phase="3"] .journey-sticky { background-color: #150a04; }
.journey-stage[data-phase="4"] .journey-sticky { background-color: #120b06; }

.journey-sticky::before {
  content: "Der Weg des Kaffees";
  position: absolute;
  top: calc(var(--header-h) + 26px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-soft);
  white-space: nowrap;
}

.journey-sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(10, 5, 2, 0.55) 100%),
    linear-gradient(180deg, rgba(15, 10, 6, 0.5), transparent 22% 70%, rgba(15, 10, 6, 0.55));
}

.jscene-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Phasen blenden weich übereinander */
.jph {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 750ms ease, transform 750ms ease;
  will-change: opacity, transform;
}

.journey-stage[data-phase="0"] .ph-1,
.journey-stage[data-phase="1"] .ph-2,
.journey-stage[data-phase="2"] .ph-3,
.journey-stage[data-phase="3"] .ph-4,
.journey-stage[data-phase="4"] .ph-5 {
  opacity: 1;
  transform: translateY(0);
}

/* Endlos-Loops nur, wenn die Bühne wirklich im Bild ist */
.journey-stage:not(.is-running) .jscene-svg * {
  animation-play-state: paused !important;
}

/* --- Sonne wandert über die Stationen --- */
.j-sun {
  transform: translate(880px, 170px) scale(0.9);
  transition: transform 1100ms ease, opacity 900ms ease;
}

.journey-stage[data-phase="1"] .j-sun { transform: translate(910px, 140px) scale(1.05); }
.journey-stage[data-phase="2"] .j-sun { transform: translate(870px, 120px) scale(1.2); }
.journey-stage[data-phase="3"] .j-sun,
.journey-stage[data-phase="4"] .j-sun { opacity: 0; transform: translate(880px, 110px) scale(0.7); }

.j-sun-rays {
  animation: jSpin 60s linear infinite;
}

@keyframes jSpin {
  to { transform: rotate(360deg); }
}

/* --- Station 1: Aufzucht --- */
.j-mist-a { animation: jMist 16s ease-in-out infinite alternate; }
.j-mist-b { animation: jMist 22s ease-in-out infinite alternate-reverse; }

@keyframes jMist {
  from { transform: translateX(-30px); }
  to { transform: translateX(44px); }
}

.j-cloud-a { animation: jDrift 26s ease-in-out infinite alternate; }
.j-cloud-b { animation: jDrift 34s ease-in-out infinite alternate-reverse; }

@keyframes jDrift {
  from { transform: translateX(-36px); }
  to { transform: translateX(48px); }
}

.j-rain line {
  animation: jRain 1.25s linear infinite;
}

.j-rain line:nth-child(2n) { animation-delay: -0.45s; }
.j-rain line:nth-child(3n) { animation-delay: -0.85s; }

@keyframes jRain {
  0% { transform: translateY(-36px); opacity: 0; }
  25% { opacity: 0.8; }
  100% { transform: translateY(150px); opacity: 0; }
}

.j-splash {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: jSplash 1.6s ease-out infinite;
}

.j-splash-b { animation-delay: -0.55s; }
.j-splash-c { animation-delay: -1.1s; }

@keyframes jSplash {
  0% { transform: scale(0.2); opacity: 0; }
  18% { opacity: 0.55; }
  70% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

.j-sproutlet-a {
  transform: scaleY(clamp(0.2, calc(var(--p1, 0) * 1.8), 1));
  transform-origin: 430px 614px;
}

.j-sproutlet-b {
  transform: scaleY(clamp(0.2, calc(var(--p1, 0) * 1.5), 1));
  transform-origin: 792px 606px;
}

.j-stem {
  transform: scaleY(clamp(0.08, calc(var(--p1, 0) * 1.25), 1));
  transform-origin: 600px 622px;
}

.j-lp1 {
  transform: scale(clamp(0, calc(var(--p1, 0) * 2.4 - 0.5), 1));
  transform-origin: 600px 574px;
}

.j-lp2 {
  transform: scale(clamp(0, calc(var(--p1, 0) * 2.4 - 1), 1));
  transform-origin: 600px 530px;
}

.j-lp3 {
  transform: scale(clamp(0, calc(var(--p1, 0) * 2.4 - 1.5), 1));
  transform-origin: 600px 494px;
}

.j-bud {
  transform: scale(clamp(0, calc(var(--p1, 0) * 3 - 2.2), 1));
  transform-origin: 600px 466px;
}

/* --- Station 2: Ernte — Kirschen reifen nacheinander --- */
.j-ch1 { --rip: 0.1; }
.j-ch2 { --rip: 0.35; }
.j-ch3 { --rip: 0.6; }
.j-ch4 { --rip: 0.2; }
.j-ch5 { --rip: 0.85; }
.j-ch6 { --rip: 0.5; }
.j-ch7 { --rip: 1; }
.j-ch8 { --rip: 0.7; }

.j-cherry-skin {
  fill: color-mix(in oklab, #7ba354, #b3402e calc(clamp(0, var(--p2, 0) * 2.4 - var(--rip, 0), 1) * 100%));
}

.j-crown {
  transform-origin: 606px 400px;
  animation: jSway 6s ease-in-out infinite alternate;
}

@keyframes jSway {
  from { transform: rotate(-1.2deg); }
  to { transform: rotate(1.4deg); }
}

.j-basket-fill {
  transform: scaleY(clamp(0, var(--p2, 0), 1));
  transform-origin: 830px 626px;
}

.j-drop {
  opacity: 0;
  animation: jPick 2.6s ease-in infinite;
}

.j-drop-a { animation-delay: 0s; }
.j-drop-b { animation-delay: 0.9s; }
.j-drop-c { animation-delay: 1.7s; }

@keyframes jPick {
  0% { transform: translate(600px, 380px); opacity: 0; }
  12% { opacity: 1; }
  70% { transform: translate(770px, 500px); opacity: 1; }
  92% { transform: translate(824px, 586px); opacity: 0.9; }
  100% { transform: translate(826px, 596px); opacity: 0; }
}

/* --- Station 3: Trocknung — Bohnen bleichen in der Sonne aus --- */
.j-dry-bean {
  fill: color-mix(in oklab, #7d8f62, #cbb58a calc(clamp(0, calc(var(--p3, 0) * 1.2), 1) * 100%));
}

.j-rake {
  animation: jRake 5.5s ease-in-out infinite alternate;
}

@keyframes jRake {
  from { transform: translate(400px, 572px); }
  to { transform: translate(800px, 572px); }
}

.j-shimmer path {
  animation: jShimmer 2.8s ease-in-out infinite alternate;
}

.j-shimmer path:nth-child(2) { animation-delay: -1.1s; }
.j-shimmer path:nth-child(3) { animation-delay: -2s; }

@keyframes jShimmer {
  from { transform: translateY(0) skewX(0deg); opacity: 0.16; }
  to { transform: translateY(-16px) skewX(-6deg); opacity: 0.38; }
}

/* --- Station 4: Röstung — je weiter gescrollt, desto dunkler die Bohnen --- */
.j-barnwindow polygon {
  animation: jShaft 8s ease-in-out infinite alternate;
}

@keyframes jShaft {
  from { opacity: 0.04; }
  to { opacity: 0.09; }
}

.j-lamp {
  transform: translate(380px, 200px);
  animation: jLamp 5.2s ease-in-out infinite alternate;
}

@keyframes jLamp {
  from { transform: translate(380px, 200px) rotate(-2.2deg); }
  to { transform: translate(380px, 200px) rotate(1.8deg); }
}

.j-roastglow {
  opacity: calc(var(--p4, 0) * 0.3);
}

.j-ember {
  opacity: calc(0.2 + var(--p4, 0) * 0.8);
  transform-origin: 600px 602px;
  animation: jEmber 2.8s ease-in-out infinite alternate;
}

@keyframes jEmber {
  from { transform: scale(0.92, 0.85); }
  to { transform: scale(1.06, 1.1); }
}

.j-flames {
  opacity: calc(0.45 + var(--p4, 0) * 0.55);
}

.j-flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: jFlick 0.55s ease-in-out infinite alternate;
}

.j-flame:nth-of-type(2) { animation-delay: -0.2s; }
.j-flame:nth-of-type(3) { animation-delay: -0.4s; }

@keyframes jFlick {
  from { transform: scaleY(0.78) scaleX(0.94); opacity: 0.85; }
  to { transform: scaleY(1.16) scaleX(1.04); opacity: 1; }
}

.j-flame-back {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: jFlickBig 0.9s ease-in-out infinite alternate;
}

@keyframes jFlickBig {
  from { transform: scaleY(0.85); opacity: 0.6; }
  to { transform: scaleY(1.08); opacity: 0.95; }
}

.j-spark {
  opacity: 0;
  animation: jSparkRise 1.4s ease-out infinite;
}

.j-spark-b { animation-delay: -0.5s; }
.j-spark-c { animation-delay: -0.95s; }

@keyframes jSparkRise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-46px) translateX(6px); opacity: 0; }
}

.j-vanes {
  transform: translate(600px, 400px);
  animation: jDrum 2.6s linear infinite;
}

@keyframes jDrum {
  from { transform: translate(600px, 400px) rotate(0deg); }
  to { transform: translate(600px, 400px) rotate(360deg); }
}

.j-heap {
  transform-origin: 600px 400px;
  animation: jHeapRock 2.1s ease-in-out infinite alternate;
}

@keyframes jHeapRock {
  from { transform: rotate(-5deg); }
  to { transform: rotate(5deg); }
}

.j-flyer-a { animation: jFlyA 1.7s linear infinite; }
.j-flyer-b { animation: jFlyB 2.1s linear infinite; animation-delay: -0.8s; }
.j-flyer-c { animation: jFlyA 1.45s linear infinite; animation-delay: -0.6s; }
.j-flyer-d { animation: jFlyB 1.9s linear infinite; animation-delay: -1.3s; }

@keyframes jFlyA {
  0% { transform: translate(566px, 436px) rotate(0deg); }
  45% { transform: translate(590px, 364px) rotate(200deg); }
  75% { transform: translate(624px, 398px) rotate(300deg); }
  100% { transform: translate(638px, 442px) rotate(360deg); }
}

@keyframes jFlyB {
  0% { transform: translate(634px, 438px) rotate(0deg); }
  40% { transform: translate(610px, 368px) rotate(-190deg); }
  72% { transform: translate(574px, 396px) rotate(-290deg); }
  100% { transform: translate(562px, 440px) rotate(-360deg); }
}

/* Röstverlauf: grün → gold → zimt → dunkelbraun, rein über den Scrollfortschritt.
   Wichtig: Die Bohnen sind <use>-Klone aus <defs>; Selektoren dürfen deshalb
   nicht auf .ph-4 gescoped sein — die --p4-Variable erbt trotzdem hinein. */
.j-rbean-body {
  fill: color-mix(
    in oklab,
    color-mix(in oklab, #7d8f62, #c49a4e calc(clamp(0, calc(var(--p4, 0) * 2.6 - 0.3), 1) * 100%)),
    #35190a calc(clamp(0, calc(var(--p4, 0) * 2.4 - 1.15), 1) * 100%)
  );
}

.j-rbean-crease {
  stroke: color-mix(in oklab, #4c5c38, #170a04 calc(clamp(0, calc(var(--p4, 0) * 2.2 - 0.9), 1) * 100%));
}

.j-rbean-sheen {
  opacity: calc(0.2 + var(--p4, 0) * 0.55);
}

.j-chaff-a { animation: jChaffA 1.9s linear infinite; }
.j-chaff-b { animation: jChaffB 2.3s linear infinite; animation-delay: -0.7s; }
.j-chaff-c { animation: jChaffA 2.6s linear infinite; animation-delay: -1.4s; }
.j-chaff-d { animation: jChaffB 2s linear infinite; animation-delay: -1.1s; }
.j-chaff-e { animation: jChaffA 2.2s linear infinite; animation-delay: -0.4s; }

@keyframes jChaffA {
  0% { transform: translate(580px, 432px) rotate(0deg); opacity: 0; }
  15% { opacity: 0.7; }
  100% { transform: translate(620px, 366px) rotate(260deg); opacity: 0; }
}

@keyframes jChaffB {
  0% { transform: translate(618px, 440px) rotate(0deg); opacity: 0; }
  15% { opacity: 0.7; }
  100% { transform: translate(576px, 372px) rotate(-230deg); opacity: 0; }
}

/* Erster Crack: kurzes Aufblitzen mitten in der Röstung */
.j-crack {
  opacity: calc(
    clamp(0, calc(var(--p4, 0) * 5 - 2.6), 1) *
    clamp(0, calc(4.1 - var(--p4, 0) * 5), 1)
  );
}

.j-crack-a,
.j-crack-b {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: jCrackFlash 0.9s ease-in-out infinite alternate;
}

.j-crack-b { animation-delay: -0.45s; }

@keyframes jCrackFlash {
  from { transform: scale(0.7); opacity: 0.4; }
  to { transform: scale(1.2); opacity: 1; }
}

.j-smoke {
  opacity: calc(0.25 + var(--p4, 0) * 0.75);
}

.j-puff {
  opacity: 0;
  animation: jPuff 3.8s ease-out infinite;
}

.j-puff-b { animation-delay: -1.4s; }
.j-puff-c { animation-delay: -2.6s; }
.j-puff-d { animation-delay: -0.7s; }
.j-puff-e { animation-delay: -2s; }

@keyframes jPuff {
  0% { transform: translateY(6px) scale(0.7); opacity: 0; }
  20% { opacity: 0.4; }
  100% { transform: translateY(-110px) scale(1.9); opacity: 0; }
}

.j-heatwave path {
  animation: jShimmer 2.4s ease-in-out infinite alternate;
}

.j-heatwave path:nth-child(2) { animation-delay: -1.2s; }

.j-needle {
  transform: rotate(calc(-84deg + clamp(0, var(--p4, 0), 1) * 168deg));
  transform-origin: 824px 428px;
}

.j-mercury {
  transform: scaleY(clamp(0.08, var(--p4, 0), 1));
  transform-origin: 899px 506px;
}

.j-temps text {
  opacity: 0;
}

.j-temp-1 { opacity: clamp(0, calc(1.45 - var(--p4, 0) * 5), 1); }
.j-temp-2 { opacity: calc(clamp(0, calc(var(--p4, 0) * 5 - 1), 1) * clamp(0, calc(2.9 - var(--p4, 0) * 5), 1)); }
.j-temp-3 { opacity: calc(clamp(0, calc(var(--p4, 0) * 5 - 2.5), 1) * clamp(0, calc(4.4 - var(--p4, 0) * 5), 1)); }
.j-temp-4 { opacity: clamp(0, calc(var(--p4, 0) * 5 - 4), 1); }

.j-light {
  animation: jBlink 1.8s ease-in-out infinite alternate;
}

.j-light-b { animation-delay: -0.6s; }
.j-light-c { animation-delay: -1.2s; }

@keyframes jBlink {
  from { opacity: 0.25; }
  to { opacity: 1; }
}

.j-label {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 2px;
  fill: #f6ecdd;
}

/* --- Station 5: Abfüllung --- */
.j-fill-stream {
  opacity: calc(
    clamp(0, calc(var(--p5, 0) * 10), 1) *
    clamp(0, calc((0.85 - var(--p5, 0)) * 8), 1)
  );
}

.j-fall {
  animation: jFallBean 0.75s linear infinite;
}

.j-fall-b { animation-delay: -0.12s; }
.j-fall-c { animation-delay: -0.26s; }
.j-fall-d { animation-delay: -0.4s; }
.j-fall-e { animation-delay: -0.55s; }
.j-fall-f { animation-delay: -0.66s; }

@keyframes jFallBean {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  88% { transform: translateY(128px); opacity: 1; }
  100% { transform: translateY(142px); opacity: 0; }
}

.j-scale-needle {
  transform: rotate(calc(-55deg + clamp(0, calc(var(--p5, 0) * 1.15), 1) * 100deg));
  transform-origin: 736px 588px;
}

.j-shelf-bags {
  opacity: clamp(0, calc(var(--p5, 0) * 3 - 1.4), 1);
}

.j-bag-fill {
  transform: scaleY(clamp(0, calc(var(--p5, 0) * 1.3), 1));
  transform-origin: 600px 614px;
}

.j-bag-seal {
  opacity: clamp(0, calc(var(--p5, 0) * 5 - 3.2), 1);
}

.j-bag-word {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.6px;
  fill: #40230f;
}

.j-stamp {
  opacity: clamp(0, calc(var(--p5, 0) * 4 - 2.2), 1);
  transform: scale(clamp(1, calc(2.9 - var(--p5, 0) * 2.4), 2.9));
  transform-origin: 600px 484px;
}

.j-stamp-m {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  fill: #22150d;
}

.j-sparkle {
  opacity: clamp(0, calc(var(--p5, 0) * 4 - 2.4), 1);
}

.j-sparkle path {
  animation: jTwinkle 1.6s ease-in-out infinite alternate;
}

.j-sparkle path:nth-child(2) { animation-delay: -0.5s; }
.j-sparkle path:nth-child(3) { animation-delay: -1s; }

@keyframes jTwinkle {
  from { transform: scale(0.85); opacity: 0.5; }
  to { transform: scale(1.15); opacity: 1; }
}

.journey-stage[data-phase="4"].is-running .j-bag {
  animation: jBob 3.4s ease-in-out infinite alternate;
}

@keyframes jBob {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

/* --- Info-Karten: eine Station, eine Karte --- */
.journey-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.journey-card {
  position: absolute;
  left: clamp(20px, 6vw, 110px);
  top: 50%;
  width: min(420px, 42vw);
  padding: clamp(20px, 2.4vw, 30px);
  opacity: 0;
  transform: translateY(calc(-50% + 30px));
  transition: opacity 550ms ease, transform 550ms ease;
}

.journey-stage[data-phase="0"] .journey-card[data-step="0"],
.journey-stage[data-phase="1"] .journey-card[data-step="1"],
.journey-stage[data-phase="2"] .journey-card[data-step="2"],
.journey-stage[data-phase="3"] .journey-card[data-step="3"],
.journey-stage[data-phase="4"] .journey-card[data-step="4"] {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

.journey-card h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.journey-card p:last-of-type {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.journey-card .button {
  margin-top: 16px;
}

/* --- Die alten Inhaltskapitel gleiten durch die Stationen ---
   Einfahrt (--e) und Ausfahrt (--q) hängen direkt am Phasenfortschritt:
   dazwischen liegt ein Plateau, auf dem der Text zum Lesen stehen bleibt. */
.journey-flow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.journey-flow-panel {
  position: absolute;
  top: 50%;
  right: clamp(24px, 6vw, 120px);
  width: min(460px, 38vw);
  padding: clamp(18px, 2.2vw, 28px);
  visibility: hidden;
  pointer-events: none;
  --cy: -50%;
  --e: clamp(0, calc(var(--fp, 0) * 3.4), 1);
  --q: clamp(0, calc(var(--fp, 0) * 3.4 - 2.4), 1);
  opacity: calc(var(--e) * (1 - var(--q)));
  transform: translate3d(calc((1 - var(--e)) * 52vw), calc(var(--cy) - var(--q) * 46px), 0);
  will-change: transform, opacity;
}

.journey-flow-panel[data-flow="1"] { --fp: var(--p1, 0); }
.journey-flow-panel[data-flow="2"] { --fp: var(--p2, 0); }
.journey-flow-panel[data-flow="3"] { --fp: var(--p3, 0); }
.journey-flow-panel[data-flow="4"] { --fp: clamp(0, calc(var(--p4, 0) * 2), 1); }
.journey-flow-panel[data-flow="5"] { --fp: clamp(0, calc(var(--p4, 0) * 2 - 1), 1); }
.journey-flow-panel[data-flow="6"] { --fp: var(--p5, 0); }

.journey-stage[data-phase="0"] .journey-flow-panel[data-flow="1"],
.journey-stage[data-phase="1"] .journey-flow-panel[data-flow="2"],
.journey-stage[data-phase="2"] .journey-flow-panel[data-flow="3"],
.journey-stage[data-phase="3"] .journey-flow-panel[data-flow="4"],
.journey-stage[data-phase="3"] .journey-flow-panel[data-flow="5"],
.journey-stage[data-phase="4"] .journey-flow-panel[data-flow="6"] {
  visibility: visible;
  pointer-events: auto;
}

.journey-flow-panel .panel-number {
  top: 2px;
  right: 14px;
  font-size: clamp(3.2rem, 5vw, 4.6rem);
}

.journey-flow-panel h3 {
  max-width: 340px;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.journey-flow-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.journey-flow-panel a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 16px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background-color 200ms ease, color 200ms ease;
}

.journey-flow-panel a::after {
  content: "→";
  color: var(--gold-soft);
}

.journey-flow-panel a:hover {
  color: var(--ink-on-paper);
  background: var(--crema);
}

/* --- Stationsleiste: unten mittig, quer über die Bühne --- */
.journey-rail {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-rail li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 400ms ease;
  white-space: nowrap;
}

.journey-rail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--line-strong);
  background: transparent;
  transition: background-color 400ms ease, box-shadow 400ms ease;
}

.journey-stage[data-phase="0"] .journey-rail li[data-step="0"],
.journey-stage[data-phase="1"] .journey-rail li[data-step="1"],
.journey-stage[data-phase="2"] .journey-rail li[data-step="2"],
.journey-stage[data-phase="3"] .journey-rail li[data-step="3"],
.journey-stage[data-phase="4"] .journey-rail li[data-step="4"] {
  color: var(--crema);
}

.journey-stage[data-phase="0"] .journey-rail li[data-step="0"]::before,
.journey-stage[data-phase="1"] .journey-rail li[data-step="1"]::before,
.journey-stage[data-phase="2"] .journey-rail li[data-step="2"]::before,
.journey-stage[data-phase="3"] .journey-rail li[data-step="3"]::before,
.journey-stage[data-phase="4"] .journey-rail li[data-step="4"]::before {
  background: var(--gold-soft);
  box-shadow: 0 0 14px rgba(226, 169, 79, 0.8);
}

/* --- Scroll-Hinweis am Anfang --- */
.journey-cue {
  position: absolute;
  left: 50%;
  top: calc(var(--header-h) + 52px);
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--crema);
  opacity: calc(1 - var(--jp, 0) * 16);
  white-space: nowrap;
}

/* ==========================================================================
   Der Shop fliegt zusammen — direkt nach der Reise
   ========================================================================== */

.shop-replica-grid .shop-product.reveal {
  filter: none;
  transform: translate3d(var(--fly-x, 0px), 150px, 0) rotate(var(--fly-r, 0deg)) scale(0.86);
  transition:
    opacity 750ms ease,
    transform 950ms cubic-bezier(0.18, 0.9, 0.24, 1.06);
}

.shop-replica-grid .shop-product:nth-child(3n + 1) { --fly-x: -90px; --fly-r: -5deg; }
.shop-replica-grid .shop-product:nth-child(3n) { --fly-x: 90px; --fly-r: 5deg; }
.shop-replica-grid .shop-product:nth-child(2n) { transition-delay: 90ms; }
.shop-replica-grid .shop-product:nth-child(3n) { transition-delay: 160ms; }

.shop-replica-grid .shop-product.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Reise: mobil kompakter, Reduced Motion in Ruhe
   ========================================================================== */

@media (max-width: 760px) {
  .journey-stage {
    min-height: 640vh;
  }

  /* Mobil: Die Szene bekommt das obere Drittel für sich — Texte laufen darunter. */
  .jscene-svg {
    inset: 0 0 auto 0;
    height: 58svh;
  }

  .journey-card {
    left: 12px;
    right: 12px;
    top: calc(58svh + 8px);
    bottom: auto;
    width: auto;
    padding: 14px 16px;
    max-height: calc(42svh - 54px);
    overflow-y: auto;
    transform: translateY(18px);
  }

  .journey-card h3 {
    font-size: 1.15rem;
  }

  .journey-card p:last-of-type {
    font-size: 0.86rem;
  }

  .journey-card .button {
    margin-top: 10px;
  }

  /* Kapitel-Panel und Stationskarte teilen sich den Text-Slot:
     Die Karte blendet aus, solange ein Kapitel zum Lesen verweilt. */
  .journey-card[data-step="0"] { --jfv: calc(clamp(0, calc(var(--p1, 0) * 3.4), 1) * (1 - clamp(0, calc(var(--p1, 0) * 3.4 - 2.4), 1))); }
  .journey-card[data-step="1"] { --jfv: calc(clamp(0, calc(var(--p2, 0) * 3.4), 1) * (1 - clamp(0, calc(var(--p2, 0) * 3.4 - 2.4), 1))); }
  .journey-card[data-step="2"] { --jfv: calc(clamp(0, calc(var(--p3, 0) * 3.4), 1) * (1 - clamp(0, calc(var(--p3, 0) * 3.4 - 2.4), 1))); }
  .journey-card[data-step="3"] {
    --jf4a: clamp(0, calc(var(--p4, 0) * 2), 1);
    --jf4b: clamp(0, calc(var(--p4, 0) * 2 - 1), 1);
    --jfv: max(
      calc(clamp(0, calc(var(--jf4a) * 3.4), 1) * (1 - clamp(0, calc(var(--jf4a) * 3.4 - 2.4), 1))),
      calc(clamp(0, calc(var(--jf4b) * 3.4), 1) * (1 - clamp(0, calc(var(--jf4b) * 3.4 - 2.4), 1)))
    );
  }
  .journey-card[data-step="4"] { --jfv: calc(clamp(0, calc(var(--p5, 0) * 3.4), 1) * (1 - clamp(0, calc(var(--p5, 0) * 3.4 - 2.4), 1))); }

  .journey-stage[data-phase="0"] .journey-card[data-step="0"],
  .journey-stage[data-phase="1"] .journey-card[data-step="1"],
  .journey-stage[data-phase="2"] .journey-card[data-step="2"],
  .journey-stage[data-phase="3"] .journey-card[data-step="3"],
  .journey-stage[data-phase="4"] .journey-card[data-step="4"] {
    transform: translateY(0);
    /* Karte verschwindet doppelt so schnell, wie das Kapitel auftaucht —
       sonst scheinen beide Texte kurz durcheinander. */
    opacity: calc(1 - clamp(0, calc(var(--jfv, 0) * 2), 1));
  }

  .journey-flow-panel {
    --cy: 0px;
    top: calc(58svh + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    padding: 14px 16px;
    max-height: calc(42svh - 54px);
    overflow-y: auto;
    /* Transparente Panels dürfen die Stationskarte darunter nicht blockieren. */
    pointer-events: none !important;
  }

  .journey-flow-panel a {
    pointer-events: auto;
  }

  .journey-flow-panel .panel-number {
    font-size: 2.2rem;
    top: 0;
    right: 10px;
  }

  .journey-flow-panel h3 {
    max-width: none;
    font-size: 1.1rem;
  }

  .journey-flow-panel p {
    font-size: 0.86rem;
  }

  .journey-rail {
    bottom: 12px;
    gap: 12px;
  }

  .journey-rail li {
    padding-left: 0;
    padding-top: 16px;
    font-size: 0;
  }

  .journey-rail li::before {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }

  .journey-cue {
    display: none;
  }

  .shop-replica-grid .shop-product:nth-child(3n + 1) { --fly-x: -36px; }
  .shop-replica-grid .shop-product:nth-child(3n) { --fly-x: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-stage {
    min-height: auto;
  }

  .journey-sticky {
    position: relative;
    min-height: auto;
    padding: 90px 20px 60px;
  }

  .jscene-svg,
  .journey-rail,
  .journey-cue {
    display: none;
  }

  .journey-copy {
    position: relative;
    inset: auto;
    display: grid;
    gap: 16px;
    width: min(760px, 100%);
    margin: 0 auto;
    pointer-events: auto;
  }

  .journey-card {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: auto;
    max-height: none;
    opacity: 1 !important;
    transform: none;
    pointer-events: auto;
  }

  .journey-flow {
    position: relative;
    inset: auto;
    display: grid;
    gap: 16px;
    width: min(760px, 100%);
    margin: 16px auto 0;
    pointer-events: auto;
  }

  .journey-flow-panel {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .shop-replica-grid .shop-product.reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Perf-Lite: Touch/Mobile — gleiche Optik ohne Live-Blur, Displacement
   und Fullscreen-Blends. Klasse wird von script.js/shop.js gesetzt
   ((max-width: 760px) oder (pointer: coarse)).
   ========================================================================== */

/* Der Displacement-Glanz ist auf kleinen Screens unsichtbar teuer —
   die Glanz-Gradients bleiben, nur die Refraktion entfällt. */
.perf-lite .liquid::before {
  filter: none;
}

/* Live-Backdrop-Blur → dichteres, getöntes Glas mit gleicher Lichtkante. */
.perf-lite .liquid {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background:
    linear-gradient(160deg, rgba(246, 224, 188, 0.11), rgba(246, 224, 188, 0.03) 38%, rgba(36, 22, 16, 0.5)),
    rgba(24, 13, 7, 0.92);
}

.perf-lite .quickview-backdrop {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(10, 5, 2, 0.78);
}

/* Korn bleibt als Textur, aber ohne Blend-Pass über den ganzen Screen. */
.perf-lite .grain {
  mix-blend-mode: normal;
  opacity: 0.16;
}

/* Bohnen: kein Sub-Pixel-Blur, kein Dauerschweben — Scroll-Parallaxe bleibt. */
.perf-lite .bean-field span {
  filter: none;
  box-shadow: inset -8px -12px 26px rgba(0, 0, 0, 0.65);
  animation: none;
  transform: translate3d(0, calc(var(--scroll-progress) * -90px), 0) rotate(var(--r));
}

/* Aromadampf: die Gradients sind schon weich — der 14px-Blur ist verzichtbar. */
.perf-lite .aroma-layer span {
  filter: none;
}

/* Enthüllungen nur über Transform+Opacity, ohne Blur-Übergang. */
.perf-lite .reveal {
  filter: none;
  transition:
    opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.perf-lite .reveal.is-visible {
  filter: none;
}

/* Journey: die großflächigen Haze-Blurs (Nebel, Lichtschacht) entfallen. */
.perf-lite .j-mist,
.perf-lite .j-barnwindow polygon {
  display: none;
}
