/* ==========================================================================
   Jolly Oats — High Protein Müsli
   Art direction: "Food Noir" — warm black like the sleeve, oat-cream type,
   one accent colour that follows the selected variant (lime ↔ raspberry).

   Performance notes (Safari especially):
   - no backdrop-filter, no mix-blend-mode, no animated SVG filters
   - no mask-image on moving media; feathering is done with gradient overlays
   - scroll animations only touch transform / opacity
   ========================================================================== */

:root {
  --ink: #0e0d0b;
  --ink-2: #16140f;
  --ink-3: #221f19;
  --line: rgba(242, 235, 221, 0.12);
  --cream: #f2ebdd;
  --cream-dim: #bdb3a1;
  --muted: #80776a;

  --lime: #b5d334;
  --pink: #f27db3;
  --copper: #d98a4e;
  --accent: var(--lime);
  --accent-ink: #14160a;
  --accent-glow: rgba(181, 211, 52, 0.22);

  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  /* Labels & numbers: house font, semibold, tracked, tabular figures (replaces the old monospace) */
  --f-mono: "Bricolage Grotesque", system-ui, sans-serif;
  --f-logo: "Leckerli One", "Brush Script MT", cursive;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;

  color-scheme: dark;
}

body[data-variant="schoko"] {
  --accent: var(--copper);
  --accent-ink: #1e1109;
  --accent-glow: rgba(217, 138, 78, 0.24);
}
body[data-variant="fruechte"] {
  --accent: var(--pink);
  --accent-ink: #1d0a13;
  --accent-glow: rgba(242, 125, 179, 0.24);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.unit { text-transform: lowercase; }

/* Variant switching: text blocks + media */
/* data-variant-text / data-variant-media take a space-separated list of variants ("bircher fruechte") */
body[data-variant="bircher"] [data-variant-text]:not([data-variant-text~="bircher"]),
body[data-variant="fruechte"] [data-variant-text]:not([data-variant-text~="fruechte"]),
body[data-variant="schoko"] [data-variant-text]:not([data-variant-text~="schoko"]) { display: none !important; }

[data-variant-media] { transition: opacity 0.8s var(--ease-out); }
body[data-variant="bircher"] [data-variant-media]:not([data-variant-media~="bircher"]),
body[data-variant="fruechte"] [data-variant-media]:not([data-variant-media~="fruechte"]),
body[data-variant="schoko"] [data-variant-media]:not([data-variant-media~="schoko"]) { opacity: 0; pointer-events: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--f-mono); font-weight: 600; font-variation-settings: "wdth" 100; font-variant-numeric: tabular-nums; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-dim);
}
/* The lid seen from above — round label with the two sleeve tabs. Brand-derived, replaces the generic dot. */
.eyebrow__icon { width: 26px; height: 18px; flex: none; color: var(--accent); transition: color 0.6s; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --pad: 0.95em 1.5em;
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: var(--pad);
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.4s var(--ease-out);
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line); color: var(--cream); background: rgba(14, 13, 11, 0.55); }
.btn--ghost:hover { border-color: var(--cream-dim); }
.btn--xl { font-size: 1.1rem; --pad: 1.1em 1.9em; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: grid; place-items: center;
}
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.loader__logo { font-family: var(--f-logo); font-size: clamp(2.6rem, 8vw, 5rem); color: var(--cream); transform: rotate(-4deg); }
.loader__count { font-family: var(--f-mono); font-weight: 600; font-variation-settings: "wdth" 100; font-variant-numeric: tabular-nums; font-size: 0.8rem; letter-spacing: 0.2em; color: var(--muted); }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink-3); }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 0.3s; }

/* ---------- Grain (static tile — no animation, no SVG filter) ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.5;
  background: url("../assets/img/grain.png") repeat;
  background-size: 160px;
}

@media (hover: none), (pointer: coarse) { .grain { display: none; } }

/* ---------- Cursor (pointer devices only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--cream); }
.cursor__ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(242, 235, 221, 0.45); transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), margin 0.3s var(--ease-out), border-color 0.3s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: flex; align-items: center; gap: 2rem;
  transition: background 0.5s, transform 0.6s var(--ease-out);
}
.nav.is-scrolled { background: rgba(14, 13, 11, 0.9); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { font-family: var(--f-logo); font-size: 1.65rem; line-height: 1; transform: rotate(-4deg); }
.nav__links { display: flex; gap: 1.8rem; margin-left: auto; font-size: 0.9rem; color: var(--cream-dim); }
.nav__links a { position: relative; transition: color 0.3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out); }
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__switch {
  position: relative; display: flex; padding: 4px; border-radius: 999px;
  background: rgba(242, 235, 221, 0.06); border: 1px solid var(--line);
}
.nav__switch button { position: relative; z-index: 1; flex: 1 1 0; text-align: center; padding: 0.45em 0.9em; font-size: 0.82rem; font-weight: 600; color: var(--cream-dim); transition: color 0.4s; }
.nav__switch button[aria-pressed="true"] { color: var(--accent-ink); }
.nav__switch-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); /* 2 visible flavours, Schoko hidden (/ 3 with Schoko) */
  border-radius: 999px; background: var(--accent);
  transition: transform 0.55s var(--ease-out), background 0.6s;
}
body[data-variant="fruechte"] .nav__switch-pill { transform: translateX(100%); }
body[data-variant="schoko"] .nav__switch-pill { transform: translateX(200%); }

/* Language switch: DE | EN, the current language is highlighted; phones only show the other one */
.nav__lang { display: flex; align-items: center; gap: 0.15rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; }
.nav__lang a { padding: 0.35em 0.45em; border-radius: 6px; color: var(--cream-dim); transition: color 0.3s; }
.nav__lang a:hover { color: var(--cream); }
.nav__lang a[aria-current] { color: var(--accent); }
.nav__lang a + a::before { content: "/"; margin: 0 0.45em 0 -0.45em; color: var(--line); pointer-events: none; }

.nav__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.nav__progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; }
/* The film sits in a smaller box on the right so the cup reads at ~40 % of the viewport height,
   not full-bleed. Its edges are feathered into the page colour with gradients (no mask-image). */
.hero__media { position: absolute; inset: 8vh 0 0 26%; will-change: transform; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 58%; }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(14, 13, 11, 0.6) 18%, rgba(14, 13, 11, 0) 42%),
    linear-gradient(180deg, var(--ink) 0%, rgba(14, 13, 11, 0) 18%),
    linear-gradient(0deg, var(--ink) 0%, rgba(14, 13, 11, 0) 22%);
}
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 5rem;
  max-width: 50rem;
}
.hero__title {
  font-weight: 800; font-size: clamp(3rem, 7.4vw, 7.6rem); line-height: 0.9; letter-spacing: -0.035em;
  font-variation-settings: "wdth" 78, "opsz" 96;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .word { display: inline-block; }
.hero__title .line--serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.02em; font-size: 0.86em; color: var(--accent); transition: color 0.6s; }
.hero__lead { max-width: 30rem; font-size: clamp(1rem, 1.2vw, 1.15rem); color: var(--cream-dim); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 1.6rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.6rem; font-family: var(--f-mono); font-weight: 600; font-variation-settings: "wdth" 100; font-variant-numeric: tabular-nums; font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.hero__scroll i { width: 1px; height: 44px; background: linear-gradient(var(--cream-dim), transparent); animation: drip 2s var(--ease-out) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Statement (replaces the marquee) ---------- */
.statement {
  position: relative;
  padding: clamp(7rem, 20vh, 13rem) var(--gutter) clamp(6rem, 16vh, 10rem);
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: clamp(3rem, 8vh, 5rem);
}
.statement__text {
  max-width: 19ch;
  font-weight: 700; font-size: clamp(2.1rem, 5vw, 4.8rem); line-height: 1.04; letter-spacing: -0.03em;
  font-variation-settings: "wdth" 85;
}
.statement__text em { color: var(--accent); transition: color 0.6s; }
.statement__text .w { display: inline-block; opacity: 0.16; }
.packicons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 4.5rem); }
.packicons li { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.packicons svg { width: 64px; height: 64px; color: var(--cream); }
.packicons .pi-num { font-weight: 800; font-size: 1.35rem; fill: currentColor; font-family: var(--f-display); }
.packicons span { font-family: var(--f-mono); font-weight: 600; font-variation-settings: "wdth" 100; font-variant-numeric: tabular-nums; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-dim); }

/* ---------- Scroll-scrubbed sequences ---------- */
.seq { position: relative; height: 100svh; background: var(--ink); }
.seq__stage { position: relative; height: 100svh; overflow: hidden; }
.seq__film { position: absolute; inset: 0; }
.seq__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.seq__video { display: none; }

/* Lid */
.seq__steps { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
/* Landscape: the film stays centred; the copy sits in a lower corner on a soft dark vignette
   (lid: bottom right, dive: bottom left), so it never lands on the bright product. */
@media (min-aspect-ratio: 1/1) {
  /* lid: the hand enters bottom-left and carries the lid out bottom-right, so the copy lives top-left */
  .seq--lid .seq__stage::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: radial-gradient(55% 55% at 0% 0%, rgba(14, 13, 11, 0.85), rgba(14, 13, 11, 0) 70%); }
  .seq--lid .step, .seq--lid .step:nth-child(2) { left: var(--gutter); right: auto; top: calc(var(--nav-h) + 8vh); bottom: auto; transform: none; text-align: left; max-width: 24rem; }
  .seq--dive .seq__stage::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at 0% 100%, rgba(14, 13, 11, 0.85), rgba(14, 13, 11, 0) 70%); }
  .seq--dive .dive__text { top: auto; bottom: 12vh; height: auto; justify-content: flex-end; background: none; width: min(40vw, 30rem); }
}
.step {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
  max-width: 21rem; opacity: 0;
}
.step:nth-child(2) { left: auto; right: var(--gutter); text-align: right; }
.step__num { display: block; font-family: var(--f-mono); font-weight: 600; font-variation-settings: "wdth" 100; font-variant-numeric: tabular-nums; font-size: 0.78rem; color: var(--accent); letter-spacing: 0.2em; margin-bottom: 0.9rem; transition: color 0.6s; }
.step__title { font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 0.95; letter-spacing: -0.03em; font-variation-settings: "wdth" 80; margin-bottom: 1rem; }
.step__title em { color: var(--accent); transition: color 0.6s; }
.step p { color: var(--cream-dim); font-size: 1.02rem; }

.seq__meter { position: absolute; z-index: 3; left: 50%; bottom: 2rem; width: min(220px, 40vw); height: 2px; transform: translateX(-50%); background: var(--ink-3); border-radius: 2px; overflow: hidden; }
.seq__meter span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* Dive */
/* Copy sits in the dark space left of the cup (never on the bright yogurt). */
.dive__text {
  position: absolute; z-index: 2; inset: 0; pointer-events: none;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.1rem;
  padding: 0 var(--gutter); width: min(44vw, 36rem); text-align: left;
  background: linear-gradient(90deg, rgba(14, 13, 11, 0.9) 0%, rgba(14, 13, 11, 0.7) 60%, rgba(14, 13, 11, 0) 100%);
}
.dive__title { font-weight: 800; font-size: clamp(3rem, 6vw, 6.4rem); line-height: 0.86; letter-spacing: -0.04em; text-transform: uppercase; font-variation-settings: "wdth" 76; }
.dive__title span, .dive__title em { display: block; }
.dive__title em { text-transform: none; color: var(--accent); transition: color 0.6s; }
.dive__lead { font-size: 1.1rem; color: var(--cream-dim); max-width: 18rem; }

/* Anatomy */
.seq--anatomy .seq__stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(45% 40% at 0% 0%, rgba(14, 13, 11, 0.92), rgba(14, 13, 11, 0) 100%), radial-gradient(80% 75% at 50% 55%, transparent 55%, rgba(14, 13, 11, 0.7) 100%); }
.anatomy__head { position: absolute; z-index: 3; top: calc(var(--nav-h) + 1.5rem); left: var(--gutter); }
.anatomy__head h2 { font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 3.3rem); line-height: 0.95; letter-spacing: -0.03em; margin-top: 0.8rem; font-variation-settings: "wdth" 80; }
.anatomy__head h2 em { color: var(--accent); transition: color 0.6s; }
.anatomy__labels { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tag {
  position: absolute; left: var(--x); top: var(--y);
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.65rem 1rem 0.7rem 1.05rem; max-width: 16rem;
  border-left: 2px solid var(--accent);
  background: rgba(14, 13, 11, 0.86);
  border-radius: 0 10px 10px 0;
  opacity: 0; transform: translateY(14px);
  transition: border-color 0.6s;
}
.tag--r { border-left: 0; border-right: 2px solid var(--accent); border-radius: 10px 0 0 10px; text-align: right; }
.tag b { font-weight: 700; font-size: 1.02rem; }
.tag span { font-size: 0.84rem; color: var(--cream-dim); line-height: 1.35; }
.anatomy__hint { position: absolute; z-index: 3; left: var(--gutter); bottom: 2rem; font-family: var(--f-mono); font-weight: 600; font-variation-settings: "wdth" 100; font-variant-numeric: tabular-nums; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Ingredients (horizontal) ---------- */
.ingredients { position: relative; background: var(--ink); }
.ingredients__pin { height: 100svh; overflow: hidden; display: flex; align-items: center; }
.ingredients__track { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); padding: 0 var(--gutter); will-change: transform; }
.ingredients__intro { flex: 0 0 min(28rem, 80vw); display: flex; flex-direction: column; gap: 1.2rem; }
.ingredients__intro h2 { font-weight: 800; font-size: clamp(2.4rem, 4.8vw, 4.6rem); line-height: 0.92; letter-spacing: -0.035em; font-variation-settings: "wdth" 78; }
.ingredients__intro h2 em { color: var(--accent); transition: color 0.6s; }
.ingredients__intro p { color: var(--cream-dim); max-width: 22rem; }
.swipe-hint, .ingredients__progress { display: none; }

.card { flex: 0 0 clamp(240px, 23vw, 340px); display: flex; flex-direction: column; gap: 1.1rem; }
.card--offset { transform: translateY(7vh); }
.card__img { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--ink-2); }
/* 116 % wide for the sideways parallax; max-width must be lifted or the global reset caps it at 100 % */
.card__img img { position: absolute; top: 0; left: -8%; width: 116%; max-width: none; height: 100%; object-fit: cover; }
.card__body { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: 0.35rem; }
.card__num { grid-row: span 2; font-family: var(--f-mono); font-weight: 600; font-variation-settings: "wdth" 100; font-variant-numeric: tabular-nums; font-size: 0.78rem; color: var(--accent); padding-top: 0.35rem; transition: color 0.6s; }
.card h3 { font-weight: 700; font-size: 1.3rem; line-height: 1.15; letter-spacing: -0.01em; }
.card p { color: var(--cream-dim); font-size: 0.95rem; grid-column: 2; }

/* ---------- Protein ---------- */
.protein {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(6rem, 14vh, 10rem) var(--gutter);
  border-block: 1px solid var(--line);
  background: radial-gradient(60% 80% at 20% 50%, var(--accent-glow), transparent 70%), var(--ink);
}
.protein__num { font-weight: 800; font-size: clamp(9rem, 28vw, 25rem); line-height: 0.75; letter-spacing: -0.07em; font-variation-settings: "wdth" 75, "opsz" 96; color: var(--accent); transition: color 0.6s; display: flex; align-items: flex-start; font-variant-numeric: tabular-nums; }
.protein__num sup { font-size: 0.26em; letter-spacing: 0; margin-left: 0.08em; margin-top: 0.1em; color: var(--cream); }
.protein__text h2 { font-weight: 800; font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 0.98; letter-spacing: -0.03em; font-variation-settings: "wdth" 80; }
.facts { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts li { padding: 1.2rem 1rem 0 0; display: flex; flex-direction: column; gap: 0.2rem; }
.facts b { font-weight: 700; font-size: clamp(1.25rem, 1.9vw, 1.8rem); }
.facts__icon { display: block; width: 1.5em; height: 1.5em; color: var(--accent); transition: color 0.6s; }
.facts span { font-family: var(--f-mono); font-weight: 600; font-variation-settings: "wdth" 100; font-variant-numeric: tabular-nums; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Sorten ---------- */
.sorten { padding: clamp(6rem, 14vh, 10rem) var(--gutter); }
.sorten__head h2, .moments__head h2 { font-weight: 800; font-size: clamp(2.2rem, 4.8vw, 4.5rem); line-height: 0.95; letter-spacing: -0.035em; font-variation-settings: "wdth" 80; margin-top: 1rem; }
.sorten__head h2 em, .moments__head h2 em { color: var(--accent); transition: color 0.6s; }
.sorten__head .muted { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 0.5em; letter-spacing: 0; }

.sorten__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 4vw, 4rem); margin-top: clamp(2.5rem, 6vh, 4rem); align-items: start; }
.sorten__visual { position: sticky; top: calc(var(--nav-h) + 1.5rem); aspect-ratio: 16 / 11; border-radius: 20px; overflow: hidden; background: var(--ink-2); }
.sorten__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 55%; }

.tabs { display: inline-flex; gap: 0.4rem; padding: 5px; border-radius: 999px; border: 1px solid var(--line); margin-bottom: 1.8rem; }
.tabs button { padding: 0.6em 1.3em; border-radius: 999px; font-weight: 600; color: var(--cream-dim); transition: background 0.4s, color 0.4s; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.sorten__name { font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 2.8rem); letter-spacing: -0.02em; line-height: 1; margin-bottom: 1rem; font-variation-settings: "wdth" 85; }
.sorten__desc { color: var(--cream-dim); font-size: 1.05rem; max-width: 34rem; }
.chips { list-style: none; padding: 0; margin: 1.6rem 0 2.2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { padding: 0.4em 0.9em; border-radius: 999px; border: 1px solid var(--line); font-size: 0.85rem; color: var(--cream-dim); }
.chips li:first-child { border-color: var(--accent); color: var(--accent); transition: color 0.6s, border-color 0.6s; }

.nutri { border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1.4rem 1.1rem; background: var(--ink-2); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.nutri__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.nutri__table th, .nutri__table td { padding: 0.62rem 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; }
.nutri__table td { text-align: right; padding-left: 1rem; white-space: pre; }
.nutri__table .nutri__head th { padding: 0 0 0.8rem 1rem; border-bottom: 2px solid var(--cream); text-align: right; vertical-align: bottom; font-family: var(--f-mono); font-weight: 600; font-variation-settings: "wdth" 100; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nutri__table .nutri__head th:first-child { padding-left: 0; text-align: left; }
.nutri__table tr.sub th { padding-left: 1rem; color: var(--cream-dim); font-size: 0.93rem; }
.nutri__table tr.hl th, .nutri__table tr.hl td { font-weight: 700; color: var(--accent); transition: color 0.6s; }
.nutri__table td.pending { color: var(--muted); font-family: var(--f-mono); font-weight: 600; font-variation-settings: "wdth" 100; font-variant-numeric: tabular-nums; font-size: 0.78rem; }
.nutri__foot { margin-top: 0.8rem; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }

.ingr { margin-top: 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); }
.ingr summary { cursor: pointer; list-style: none; padding: 1.1rem 1.4rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.ingr summary::-webkit-details-marker { display: none; }
.ingr summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform 0.4s var(--ease-out), color 0.6s; }
.ingr[open] summary::after { transform: rotate(45deg); }
.ingr__body { padding: 0 1.4rem 1.3rem; font-size: 0.9rem; color: var(--cream-dim); line-height: 1.6; }
.ingr__body strong { color: var(--cream); font-weight: 700; }
.ingr__body h4 { margin: 1rem 0 0.3rem; font-family: var(--f-mono); font-weight: 600; font-variation-settings: "wdth" 100; font-variant-numeric: tabular-nums; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.ingr__body .pending { color: var(--muted); font-style: italic; }

/* ---------- Moments ---------- */
.moments { padding: clamp(5rem, 12vh, 9rem) var(--gutter) clamp(7rem, 16vh, 12rem); overflow: hidden; }
.moments__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.8rem, 2vw, 1.6rem); margin-top: clamp(2.5rem, 6vh, 4rem); }
.moment { margin: 0; will-change: transform; }
.moment--low { margin-top: 12vh; }
.moment__frame { overflow: hidden; border-radius: 14px; }
.moment img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--ease-out); }
.moment:hover img { transform: scale(1.03); }
.moment figcaption { margin-top: 0.9rem; font-size: 0.92rem; color: var(--cream-dim); display: flex; gap: 0.8rem; align-items: baseline; }
.moment time { font-family: var(--f-mono); font-weight: 600; font-variation-settings: "wdth" 100; font-variant-numeric: tabular-nums; font-size: 0.78rem; color: var(--accent); transition: color 0.6s; }

/* ---------- Finale ---------- */
.finale { position: relative; min-height: 100svh; display: grid; place-items: end start; overflow: hidden; }
.finale__img { position: absolute; inset: 0 0 26% 0; overflow: hidden; }
.finale__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform-origin: 50% 60%; will-change: transform; }
.finale__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(14, 13, 11, 0) 35%), linear-gradient(180deg, rgba(14, 13, 11, 0.6) 0%, rgba(14, 13, 11, 0) 20%); }
.finale__content { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(4rem, 10vh, 7rem); display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
.finale__content h2 { font-weight: 800; font-size: clamp(2.4rem, 6vw, 6rem); line-height: 0.9; letter-spacing: -0.04em; font-variation-settings: "wdth" 78; text-transform: uppercase; }
.finale__content h2 em { text-transform: none; color: var(--accent); transition: color 0.6s; }

/* ---------- KI-Kennzeichnung (EU AI Act Art. 50) ---------- */
.moments, .ingredients__pin { position: relative; }
.ki-icon { width: 14px; height: 14px; flex: none; }
.ki-legend { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.25em 0.4em; border-radius: 6px; background: rgba(242, 235, 221, 0.08); color: var(--cream-dim); font: 700 0.66rem/1 var(--f-mono); letter-spacing: 0.08em; }

/* Hinweis-Button: one floating button, expands on hover/focus, opens the Cookies & KI dialog */
.ki-fab {
  display: inline-flex; position: fixed; z-index: 96; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  align-items: center; gap: 0; height: 32px; padding: 0 8px; border-radius: 999px;
  background: rgba(14, 13, 11, 0.55); border: 1px solid var(--line); color: rgba(242, 235, 221, 0.7);
  font: 700 0.68rem/1 var(--f-mono); letter-spacing: 0.08em; white-space: nowrap;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.ki-fab .ki-icon { width: 15px; height: 15px; }
.ki-fab__txt { max-width: 0; overflow: hidden; opacity: 0; transition: max-width 0.45s var(--ease-out), opacity 0.3s, margin 0.45s var(--ease-out); }
.ki-fab:hover, .ki-fab:focus-visible { color: var(--cream); border-color: var(--accent); background: rgba(14, 13, 11, 0.85); }
.ki-fab:hover .ki-fab__txt, .ki-fab:focus-visible .ki-fab__txt { max-width: 8rem; opacity: 1; margin-left: 0.45em; }
.cookie-dialog h3 { display: flex; align-items: center; gap: 0.5em; font-size: 1.05rem; font-weight: 700; margin: 1.1rem 0 0.4rem; }

/* ---------- Legal pages (Impressum, Datenschutz) ---------- */
.legal { max-width: 46rem; margin: 0 auto; padding: calc(var(--nav-h) + clamp(3rem, 10vh, 6rem)) var(--gutter) clamp(4rem, 10vh, 7rem); }
.legal h1 { font-weight: 800; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 0.95; letter-spacing: -0.035em; font-variation-settings: "wdth" 80; margin: 1rem 0 clamp(2rem, 6vh, 3.5rem); hyphens: manual; }
.legal section { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.legal h2 { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 0.7rem; }
.legal p { color: var(--cream-dim); margin-bottom: 0.8rem; }
.legal strong { color: var(--cream); }
.legal a { color: var(--cream); border-bottom: 1px solid var(--accent); }
.legal__ki { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em; }
.legal__todo { color: var(--accent); }
.legal__stand { margin-top: 2rem; font-size: 0.85rem; color: var(--muted) !important; }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center;
  padding: 3rem var(--gutter) calc(2.6rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted);
}
.footer__logo { font-family: var(--f-logo); font-size: 1.6rem; color: var(--cream); transform: rotate(-4deg); }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.6rem; }
.footer nav a, .footer nav button { color: var(--cream-dim); font-size: 0.85rem; padding: 0.2rem 0; border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s; }
.footer nav a:hover, .footer nav button:hover { color: var(--cream); border-color: var(--accent); }

/* Cookie-Hinweis */
.cookie-dialog {
  max-width: min(34rem, calc(100vw - 2rem)); padding: 1.8rem 1.8rem 1.5rem; border: 1px solid var(--line); border-radius: 18px;
  background: var(--ink-2); color: var(--cream); font-size: 0.95rem; line-height: 1.6;
}
.cookie-dialog::backdrop { background: rgba(14, 13, 11, 0.75); }
.cookie-dialog h2:focus { outline: none; }
.cookie-dialog h2 { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.cookie-dialog p { color: var(--cream-dim); margin-bottom: 0.8rem; }
.cookie-dialog strong { color: var(--cream); }
.cookie-dialog__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; margin-top: 1.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__lang { margin-left: auto; }
  .sorten__grid { grid-template-columns: 1fr; }
  .sorten__visual { position: relative; top: 0; }
  .moments__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moment--low { margin-top: 6vh; }
  .protein { grid-template-columns: 1fr; }
}

/* Portrait screens (phones, narrow windows): product in the upper half, copy anchored at the bottom */
@media (max-aspect-ratio: 1/1) {
  .hero__media { inset: calc(var(--nav-h) + 1vh) 0 56% 0; }
  .hero__video { object-position: 71% 62%; }
  .hero__vignette { background: linear-gradient(0deg, var(--ink) 0%, rgba(14, 13, 11, 0) 30%), linear-gradient(180deg, var(--ink) 0%, rgba(14, 13, 11, 0) 14%); }
  .hero__content { justify-content: flex-end; padding-bottom: 4.5rem; gap: 1.2rem; max-width: none; }
  .hero__title { font-size: clamp(2.8rem, 12vw, 6rem); }
  .hero__scroll { display: none; }
  /* Portrait: finale shows the duo image in full, headline underneath */
  .finale { display: block; min-height: 0; }
  .finale__img { position: relative; inset: auto; aspect-ratio: 1788 / 1029; }
  .finale__img img { display: block; width: 100%; height: 100%; }
  .finale__img::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(14, 13, 11, 0) 18%), linear-gradient(180deg, var(--ink) 0%, rgba(14, 13, 11, 0) 16%); }
  .finale__content { padding-top: 1rem; }
  /* Portrait: anatomy labels leave the film and line up as a two-column list underneath it */
  .anatomy__head h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .anatomy__hint { display: none; }
  .seq--anatomy .seq__stage::after { background: none; }
  .anatomy__labels { inset: auto var(--gutter) calc(1.2rem + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .tag, .tag--r { position: static; max-width: none; padding: 0.45rem 0.65rem; border-left: 2px solid var(--accent); border-right: 0; border-radius: 0 10px 10px 0; text-align: left; box-shadow: none; }
  .tag:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tag b { font-size: 0.9rem; }
  .tag span { font-size: 0.74rem; }
  /* Portrait: step copy sits at the bottom on its own dark card, below the product */
  .step, .step:nth-child(2) { left: var(--gutter); right: var(--gutter); top: auto; bottom: 4.5rem; transform: none; text-align: left; max-width: 34rem; }
  .step { padding: 1.1rem 1.2rem; border-radius: 14px; background: rgba(14, 13, 11, 0.9); }
  .step__title { font-size: clamp(2rem, 6vw, 2.8rem); }
  /* Portrait: the film covers the whole screen, so the copy gets its own dark floor at the bottom */
  .dive__text { justify-content: flex-end; width: auto; padding-bottom: 4.5rem; background: linear-gradient(0deg, rgba(14, 13, 11, 0.92) 0%, rgba(14, 13, 11, 0.75) 32%, rgba(14, 13, 11, 0) 60%); }
}

@media (max-width: 640px) {
  :root { --nav-h: 62px; }
  body { font-size: 16px; }
  .nav__logo { font-size: 1.35rem; }
  .nav__switch button { padding: 0.4em 0.75em; font-size: 0.76rem; }
  .nav { gap: 0.6rem; }
  .nav__lang a[aria-current] { display: none; }
  .nav__lang a + a::before { content: none; }


  .anatomy__hint { display: none; }

  .card { flex-basis: 56vw; gap: 0.8rem; }
  .card h3 { font-size: 1.1rem; }
  .card p { font-size: 0.88rem; }
  .card--offset { transform: translateY(4vh); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moments__grid { gap: 0.8rem; }
  .moment figcaption { font-size: 0.8rem; flex-direction: column; gap: 0.1rem; }
  .packicons svg { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll i { animation: none; }
  .statement__text .w { opacity: 1; }
}

/* ---------- Touch devices: native scrolling, chapter films play as videos ----------
   No pinned sections and no scroll-driven frames on touch screens: iOS momentum scrolling stays
   untouched. Each film (square crop) plays when half visible; copy follows via JS classes. */
@media (hover: none) and (pointer: coarse) {
  .seq, .seq__stage { height: auto; }
  .seq__stage { overflow: visible; display: flex; flex-direction: column; gap: 1.4rem; padding: clamp(3.5rem, 9vh, 5.5rem) 0; }
  .seq--lid .seq__stage::after, .seq--dive .seq__stage::after, .seq--anatomy .seq__stage::after { display: none; }
  .seq__film { position: relative; inset: auto; align-self: center; width: min(100vw, 78svh); aspect-ratio: 1; }
  .seq__film::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(180deg, var(--ink) 0%, rgba(14, 13, 11, 0) 14%, rgba(14, 13, 11, 0) 86%, var(--ink) 100%),
      linear-gradient(90deg, var(--ink) 0%, rgba(14, 13, 11, 0) 10%, rgba(14, 13, 11, 0) 90%, var(--ink) 100%);
  }
  .seq__canvas, .seq__meter, .anatomy__hint { display: none; }
  .seq__video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ink); }

  /* Deckel ab: the three steps share one grid cell, the active one fades in */
  .seq__steps { position: relative; inset: auto; display: grid; padding: 0 var(--gutter); }
  .seq--lid .step, .seq--lid .step:nth-child(2) {
    grid-area: 1 / 1; position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none;
    max-width: 34rem; padding: 0; background: none; border-radius: 0; text-align: left;
    opacity: 0; transition: opacity 0.5s ease;
  }
  .seq--lid .step.is-active { opacity: 1; }

  /* Tauch ein: headline above the film */
  .seq--dive .dive__text { position: relative; inset: auto; order: -1; width: auto; max-width: none; height: auto; padding: 0 var(--gutter); background: none; justify-content: flex-start; }

  /* Anatomie: headline, film, labels as a list that fills in during the explosion */
  .anatomy__head { position: relative; top: auto; left: auto; order: -1; padding: 0 var(--gutter); }
  .anatomy__labels { position: relative; inset: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; padding: 0 var(--gutter); }
  .tag, .tag--r {
    position: static; max-width: none; padding: 0.45rem 0.65rem; border-left: 2px solid var(--accent); border-right: 0;
    border-radius: 0 10px 10px 0; text-align: left; box-shadow: none;
    opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .tag.is-shown { opacity: 1; transform: none; }
  .tag:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* Zutaten: a native horizontal swipe row with snapping instead of a pinned track */
  .ingredients__pin { height: auto; display: block; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: clamp(3.5rem, 9vh, 5.5rem) 0; scrollbar-width: none; }
  .ingredients__pin::-webkit-scrollbar { display: none; }
  .ingredients__track { width: max-content; align-items: flex-start; transform: none !important; }
  .ingredients__intro, .card { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  /* the last card snaps with its right edge, so the row can actually reach its end (progress 100 %) */
  .ingredients__track > .card:last-child { scroll-snap-align: end; scroll-margin-right: var(--gutter); }
  .card--offset { transform: none; }
  /* swipe affordance: narrower intro so the first card peeks in, hint, progress bar */
  /* fixed widths: with only a flex-basis, "max-content" sizing counts every card text as one unwrapped
     line and the row becomes ~2× wider than its cards (progress bar never reached the end) */
  .ingredients__intro { flex: 0 0 auto; width: clamp(240px, 68vw, 28rem); }
  .ingredients__track > .card { flex: 0 0 auto; width: clamp(220px, 56vw, 340px); }
  .swipe-hint {
    display: inline-flex; align-items: center; gap: 0.5em; margin-top: 0.4rem;
    font-family: var(--f-mono); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent) !important; transition: opacity 0.4s ease;
  }
  .swipe-hint__arrow { display: inline-block; font-size: 1.1rem; animation: swipe-nudge 1.4s ease-in-out infinite; }
  @keyframes swipe-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
  .ingredients.is-swiped .swipe-hint { opacity: 0; }
  .ingredients__progress { display: block; margin: -1.6rem var(--gutter) 0; height: 2px; background: var(--ink-3); border-radius: 2px; overflow: hidden; }
  .ingredients__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0.08); transition: transform 0.15s linear; }
}

/* Very narrow phones (iPhone SE): logo + language link + three flavour buttons have to fit */
@media (max-width: 360px) {
  .nav__switch button { padding: 0.4em 0.55em; }
}
