/* ==========================================================================
   Die Kochwerkstatt — Designsystem v3 "Papier & Mokka"
   Editorial, hell, serifenbetont. Keine Karten, keine Radien, keine Schatten.
   Referenz: latabledejoakim.fr — Instrument Serif als Display, Geist Mono
   als einzige Textschrift. Alles andere ist Papier, Haarlinie und Bild.
   ========================================================================== */

/* ---- Schrift (selbst gehostet — kein Google-CDN, siehe Datenschutz) ------- */
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrumentserif-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrumentserif-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrumentserif-italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrumentserif-italic-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geistmono-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geistmono-latin-ext.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Token ---------------------------------------------------------------
   Kontrastwerte gegen --paper: ink 15.9:1, ink-muted 5.9:1, blue 6.1:1.
   --mocha ist bewusst dunkler als der Referenzton, damit Papiertext darauf
   noch 5.4:1 erreicht; --mocha-tint bleibt der helle Ton für Linien und
   grossen Displaysatz. -------------------------------------------------- */
:root {
  --paper: #f6f4f3;
  --paper-warm: #efeae4;
  --ink: #1c1614;
  --ink-muted: #6b5b52;
  --mocha: #7a5d50;
  --mocha-tint: #9a7d70;
  --blue: #4e5d6e;
  --blue-tint: #6d7e90;
  --rule: rgba(28, 22, 20, 0.16);
  --rule-strong: rgba(28, 22, 20, 0.34);

  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --container-max: 1440px;
  --container: min(var(--container-max), 100% - 2 * var(--gutter));
  /* Abstand von der Fensterkante zur Containerkante — für randlose Elemente,
     die trotzdem am Satzspiegel beginnen sollen (Bildstrecke). */
  --container-inset: max(var(--gutter), (100% - var(--container-max)) / 2);
  --measure: 62ch;
  --section-pad: clamp(4rem, 9vh, 7rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Basis --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.4em; max-width: var(--measure); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

.container { width: var(--container); margin-inline: auto; }
.section { padding-block: var(--section-pad); }
.section--tight { padding-block: clamp(3rem, 7vh, 5rem); }

/* Vollflächige Mokka-Bahn: bricht bewusst aus dem Container aus. */
.section--mocha {
  background: var(--mocha);
  color: var(--paper);
}
.section--mocha ::selection { background: var(--paper); color: var(--mocha); }
.section--warm { background: var(--paper-warm); }

/* ---- Typografie ----------------------------------------------------------
   Display ist immer Instrument Serif 400. Es gibt kein Bold auf dieser Seite —
   Hierarchie entsteht über Grösse, Schriftwechsel und Weissraum. ---------- */
.display,
.headline,
.title,
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
.display { font-size: clamp(2.9rem, 9vw, 8rem); line-height: 0.92; letter-spacing: -0.005em; }
.headline { font-size: clamp(2rem, 5vw, 4rem); }
.title    { font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.08; }

/* Kursiv-Serifen-Marker — ersetzt die alten Monospace-Eyebrows. */
.marker {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: none;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1;
  color: var(--ink-muted);
  margin: 0 0 1.6rem;
}
.section--mocha .marker { color: rgba(246, 244, 243, 0.72); }

/* Kleinteiliges: Navigation, Meta, Fusszeilen. Immer Mono, immer klein. */
.meta {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.7;
}
.section--mocha .meta { color: rgba(246, 244, 243, 0.78); }
.lead { font-size: 1rem; max-width: 46ch; }
.muted { color: var(--ink-muted); }

/* ---- Linien & Links ------------------------------------------------------- */
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
/* Nachgestellter Verweis unter einem Block („Alle Rezepte ansehen"). */
.after { margin-top: clamp(2rem, 4vw, 3rem); }
.section--mocha .rule { border-top-color: rgba(246, 244, 243, 0.3); }

/* Textlink mit Unterstreichung, die beim Hover kräftiger wird — kein Pill,
   kein Icon, kein Versatz. */
.link {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.link:hover { border-bottom-color: currentColor; color: var(--blue); }
/* Gleiche Optik für <button> — z. B. „Liste zurücksetzen". */
button.link { background: none; border-top: 0; border-inline: 0; padding-inline: 0; font-family: inherit; cursor: pointer; }
.section--mocha .link { border-bottom-color: rgba(246, 244, 243, 0.5); }
.section--mocha .link:hover { border-bottom-color: var(--paper); color: var(--paper); }

/* Rechteckiger Button — gefüllt oder als Kontur. Kein Radius, kein Schatten. */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 400 0.74rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.section--mocha .btn { border-color: var(--paper); color: var(--paper); }
.section--mocha .btn:hover { background: var(--paper); color: var(--mocha); }
.section--mocha .btn--solid { background: var(--paper); color: var(--mocha); }
.section--mocha .btn--solid:hover { background: transparent; color: var(--paper); }

.inline-link { color: var(--blue); text-decoration: none; border-bottom: 1px solid currentColor; }
.inline-link:hover { color: var(--ink); }

/* ---- Ankündigungsleiste ----------------------------------------------------
   Ganz oben, scrollt weg. Sagt in einer Zeile, worum es auf der Seite geht:
   live, auf Twitch. Die Mokka-Fläche verbindet sie optisch mit der
   Livestream-Sektion — gleiche Farbe, gleiche Bedeutung. */
.topbar { background: var(--mocha); color: var(--paper); }
.topbar__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.6rem;
  padding-block: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topbar a {
  text-decoration: none;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(246, 244, 243, 0.5);
  transition: border-color 0.25s var(--ease);
}
.topbar a:hover { border-bottom-color: var(--paper); }
.topbar__cta { margin-left: auto; }
@media (max-width: 700px) {
  /* Auf dem Telefon bleibt nur die Aussage und der Verweis. */
  .topbar__handle { display: none; }
  .topbar__cta { margin-left: 0; }
}

/* ---- Navigation ----------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 0.9rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.nav__brand img { width: 28px; height: 28px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: auto;
  margin-block: 0;
  padding: 0;
  list-style: none;
}
.nav__links a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-muted);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav__links a[aria-current] { color: var(--ink); border-bottom-color: var(--rule-strong); }
/* Der Twitch-Verweis ist die einzige Handlung in der Navigation und bleibt
   beim Scrollen sichtbar — deshalb Rahmen statt Textlink. */
.nav__links .nav__cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav__links .nav__cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav__toggle {
  display: none;
  margin-left: auto;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  font: 400 0.68rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0 var(--gutter) 1.5rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; border-top: 1px solid var(--rule); }
  .nav__links a { display: block; padding: 1rem 0; border-bottom: 0; }
  /* Im Schubfach bleibt der Twitch-Verweis ein Knopf, kein Listeneintrag. */
  .nav__links li:has(.nav__cta) { border-top: 0; padding-top: 1rem; }
  .nav__links .nav__cta { display: inline-block; padding: 0.75rem 1.2rem; border: 1px solid var(--ink); }
}

/* ---- Hero ----------------------------------------------------------------
   Typografie zuerst, Bild als klar begrenztes Rechteck daneben — kein
   dunkler Vollbild-Verlauf mehr. --------------------------------------- */
.hero { padding-block: clamp(3.5rem, 10vh, 7rem) clamp(2rem, 5vh, 4rem); }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: end;
}
.hero__type { grid-column: 1 / span 7; }
.hero__media { grid-column: 8 / span 5; overflow: hidden; }
/* Hochformat, fast doppelt so breit wie zuvor — das Bild ist der zweite
   Hauptdarsteller neben dem Titel, kein Beiwerk.
   Die Quelle ist 16:9, der Rahmen 4:5 — sichtbar bleibt also nur ein rund
   45 % breiter Ausschnitt. Mittig gesetzt schneidet der den Teller an; 80 %
   schiebt das Fenster nach rechts, bis das Gericht darin zentriert steht. */
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 80% 50%;
}
.hero__media figcaption { margin-top: 0.9rem; }
/* Deckelt den Displaysatz so, dass „Kochwerkstatt" in der schmaleren
   Typospalte auf einer Zeile bleibt. */
.hero .display { font-size: clamp(2.8rem, 6vw, 7rem); margin-bottom: 0.5rem; }
.hero__sub { max-width: 44ch; margin-top: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; margin-top: 2.5rem; }
/* Kanal und nächster Termin direkt unter den Knöpfen — beantwortet „wo" und
   „wann", ohne dass man scrollen muss. */
.hero__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  /* Breit genug, dass Kanal und Termin auf einer Zeile bleiben. */
  max-width: 32rem;
}
.hero__status a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.hero__status a:hover { border-bottom-color: var(--ink); }
@media (max-width: 900px) {
  .hero__type, .hero__media { grid-column: 1 / -1; }
  .hero__media { max-width: 28rem; }
}

/* Vollbreite Bildbahn — randlos, ohne Radius, ohne Overlay.
   Das Bild ist absichtlich höher als sein Rahmen: der Überschuss ist der
   Spielraum für die Parallaxe weiter unten. */
.band { width: 100%; height: clamp(16rem, 46vh, 30rem); overflow: hidden; }
.band img { width: 100%; height: 118%; object-fit: cover; }

/* ---- Sektionskopf ---------------------------------------------------------- */
.head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  padding-top: 1.8rem;
  border-top: 1px solid var(--rule);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section--mocha .head { border-top-color: rgba(246, 244, 243, 0.3); }
.head__title { grid-column: 1 / span 7; }
.head__note { grid-column: 9 / span 4; }
.head__note p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .head__title, .head__note { grid-column: 1 / -1; }
}

/* ---- Schritte (Die Werkstatt) ---------------------------------------------
   Ersetzt den scroll-gesteuerten Stepper durch drei ruhige Zeilen. Das Bild
   wechselt die Seite, sonst passiert nichts. ---------------------------- */
.steps { display: grid; gap: clamp(3rem, 7vh, 5.5rem); }
.step {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.step__media { grid-column: 1 / span 6; }
.step__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.step__body { grid-column: 8 / span 5; }
.step:nth-child(even) .step__media { grid-column: 7 / span 6; grid-row: 1; }
.step:nth-child(even) .step__body { grid-column: 1 / span 5; grid-row: 1; }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--mocha-tint);
  margin-bottom: 0.8rem;
}
.step__body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .step__media,
  .step__body,
  .step:nth-child(even) .step__media,
  .step:nth-child(even) .step__body { grid-column: 1 / -1; grid-row: auto; }
  .step { gap: 1.5rem; }
}

/* ---- Nächster Stream ------------------------------------------------------- */
.next {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.next__when { grid-column: 1 / span 5; }
.next__what { grid-column: 6 / span 7; }
.next__date {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0.4rem 0 0;
}
.next__what p:last-of-type { margin-bottom: 1.6rem; }
@media (max-width: 760px) {
  .next__when, .next__what { grid-column: 1 / -1; }
}

/* ---- Live-Stream ----------------------------------------------------------- */
.stream {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.stream__player { grid-column: 1 / span 8; }
.stream__aside { grid-column: 10 / span 3; }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: rgba(0, 0, 0, 0.35); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facts { margin: 0 0 1.8rem; padding: 0; list-style: none; }
.facts li {
  padding-block: 0.7rem;
  border-top: 1px solid rgba(246, 244, 243, 0.3);
  font-size: 0.8rem;
  line-height: 1.6;
}
.facts li:last-child { border-bottom: 1px solid rgba(246, 244, 243, 0.3); }
@media (max-width: 980px) {
  .stream__player, .stream__aside { grid-column: 1 / -1; }
}

/* ---- Rezept-Einträge (keine Karten) ---------------------------------------- */
.entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 900px) { .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .entries { grid-template-columns: 1fr; } }
.entry { display: flex; flex-direction: column; }
.entry a { text-decoration: none; }
.entry__media { overflow: hidden; margin-bottom: 1.1rem; }
.entry__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: scale 1.1s var(--ease);
}
/* `scale` statt `transform`, damit der Hover sich nicht mit der
   Auftritts-Animation um dieselbe Eigenschaft streitet. */
.entry:hover .entry__media img { scale: 1.03; }
.entry__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.08;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.entry:hover .entry__title { color: var(--blue); }
.entry p { font-size: 0.85rem; margin-bottom: 0.8rem; }
.entry .meta { margin-top: auto; padding-top: 0.8rem; border-top: 1px solid var(--rule); }

/* ---- Mediathek: Filter ------------------------------------------------------
   Textschalter zwischen zwei Haarlinien — keine Pillen, keine Rahmen. Der
   aktive Filter ist unterstrichen. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.8rem;
  padding-block: 1.1rem;
  border-block: 1px solid var(--rule);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.chip {
  padding: 0.2rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--ink-muted);
  font: 400 0.72rem/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chip:hover { color: var(--ink); }
.chip.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.entry.is-hidden { display: none; }
/* Hinweis auf einem Eintrag ohne Rezept oder Aufzeichnung. */
.entry__note { color: var(--mocha-tint); }

/* ---- Galerie: randlose Bildstrecke zum Ziehen -------------------------------
   Beginnt an der Containerkante und läuft rechts aus dem Bild — kein Snapping,
   damit sich die Strecke frei ziehen lässt. */
.strip {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-inline: var(--container-inset);
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip a { flex: 0 0 clamp(13rem, 22vw, 20rem); }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: opacity 0.4s var(--ease); }
.strip a:hover img { opacity: 0.82; }

/* ---- Kontakt: Felder als Linien, nicht als Kästen --------------------------- */
.form { display: grid; gap: 1.8rem; max-width: 34rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.field input,
.field textarea {
  width: 100%;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.25s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--ink); }

/* ---- Rezeptseite ------------------------------------------------------------ */
.recipe-head { padding-block: clamp(3rem, 8vh, 5rem) 0; }
.recipe-head .display { font-size: clamp(2.2rem, 6vw, 5rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.crumbs a { text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { border-bottom-color: currentColor; }
.crumbs [aria-current] { color: var(--ink); }

.recipe-body { width: min(64rem, 100%); }
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.recipe-main { grid-column: 1 / span 7; }
.recipe-side { grid-column: 9 / span 4; position: sticky; top: 5rem; }
@media (max-width: 900px) {
  .recipe-main, .recipe-side { grid-column: 1 / -1; }
  .recipe-side { position: static; }
}

/* Einkaufsliste — Haken statt Kasten. */
.shopping { padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.shopping ul { list-style: none; margin: 1.2rem 0; padding: 0; }
.shopping li { border-bottom: 1px solid var(--rule); }
.shopping label {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.55rem 0;
  font-size: 0.82rem;
  line-height: 1.5;
  cursor: pointer;
}
.shopping input[type='checkbox'] {
  appearance: none;
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  translate: 0 2px;
  border: 1px solid var(--rule-strong);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.shopping input[type='checkbox']:checked { background: var(--ink); border-color: var(--ink); }
.shopping input[type='checkbox']:checked::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  background: var(--paper);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.shopping input[type='checkbox']:checked + span { color: var(--ink-muted); text-decoration: line-through; }

/* Eckdaten in der Randspalte: Zeit, Portionen, Kategorie, Stream-Datum. */
.spec { margin: 0; }
.spec > div { padding-block: 0.7rem; border-top: 1px solid var(--rule); }
.spec > div:last-child { border-bottom: 1px solid var(--rule); }
.spec dt { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.spec dd { margin: 0; color: var(--ink); }

/* Rezeptbausteine — Zutaten links, Schritte rechts, getrennt von Haarlinien. */
.component { padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--rule); }
.component__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
}
.component__ing { list-style: none; margin: 0 0 1.8rem; padding: 0; font-size: 0.82rem; color: var(--ink-muted); }
.component__ing li { padding-block: 0.2rem; border-bottom: 1px dotted var(--rule); }
.component ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1.4rem; }
.component ol li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.8rem; counter-increment: step; }
.component ol li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--mocha-tint);
}
.component ol li p { margin: 0; }

.tip {
  margin-block: clamp(2rem, 5vw, 3rem);
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-style: italic;
  line-height: 1.35;
  max-width: 46ch;
}
.recipe-actions { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin-block: 2.5rem 1.5rem; }

/* ---- Abschluss-Aufruf -------------------------------------------------------
   Letzte Fläche vor der Fusszeile. Die Seite endete vorher auf dem
   Kontaktformular — hier steht jetzt noch einmal, worum es geht. */
.cta-band__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}
.cta-band__type { grid-column: 1 / span 7; }
.cta-band__side { grid-column: 9 / span 4; }
.cta-band .display { font-size: clamp(2.2rem, 6vw, 4.5rem); margin-bottom: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; align-items: center; margin-top: 1.8rem; }
.cta-band__side p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .cta-band__type, .cta-band__side { grid-column: 1 / -1; }
}

/* ---- Fusszeile ------------------------------------------------------------- */
.footer { padding-top: clamp(3rem, 8vh, 5rem); border-top: 1px solid var(--rule); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
}
.footer__about { grid-column: 1 / span 4; }
.footer__nav { grid-column: 7 / span 2; }
.footer__social { grid-column: 9 / span 2; }
.footer__contact { grid-column: 11 / span 2; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
/* Die E-Mail-Adresse ist länger als die schmalste Fusszeilenspalte. */
.footer__grid a { text-decoration: none; border-bottom: 1px solid transparent; overflow-wrap: anywhere; }
.footer__grid a:hover { border-bottom-color: currentColor; color: var(--ink); }
.footer__mark { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; line-height: 1; margin: 0 0 1.2rem; }
@media (max-width: 900px) {
  .footer__about { grid-column: 1 / -1; }
  .footer__nav, .footer__social, .footer__contact { grid-column: span 4; }
}
@media (max-width: 560px) {
  /* Drei Spalten sind auf dem Telefon zu schmal — auf zwei umbrechen. */
  .footer__nav, .footer__social, .footer__contact { grid-column: span 6; }
}
/* Abschlussleiste mit senkrechten Trennern — wie am Fuss der Referenzseite. */
.footer__bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  border-top: 1px solid var(--rule);
}
.footer__bar > * {
  padding: 0.9rem clamp(0.75rem, 3vw, 3.5rem);
  text-align: center;
  border-left: 1px solid var(--rule);
  margin: 0;
}
.footer__bar > *:first-child { border-left: 0; }
@media (max-width: 560px) {
  /* Einspaltig — sonst kollidieren die Zellen mit dem Cookiebot-Badge. */
  .footer__bar { grid-template-columns: 1fr; }
  .footer__bar > * { border-left: 0; border-top: 1px solid var(--rule); }
  .footer__bar > *:first-child { border-top: 0; }
}
.footer__bar a { text-decoration: none; }
.footer__bar a:hover { color: var(--ink); }

/* ---- Rechtstexte ------------------------------------------------------------ */
.legal-body { width: min(46rem, 100%); }
.legal-body h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 2.8rem; }
.legal-body h3 { font-size: 1.1rem; margin-top: 2rem; }
.legal-body ul { padding-left: 1.1rem; display: grid; gap: 0.4rem; max-width: var(--measure); }
.legal-body a { color: var(--blue); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---- Auftritt ----------------------------------------------------------------
   Drei Bewegungen, mehr nicht:
     1. Bilder werden von unten aufgedeckt und setzen sich aus einer leichten
        Vergrösserung — kein Einblenden, sondern ein Vorhang.
     2. Die Haarlinie über einem Sektionskopf zeichnet sich von links nach
        rechts.
     3. Marker, Überschrift und Randnotiz steigen versetzt nach.
   Fliesstext bewegt sich nie — er soll lesbar sein, nicht auftreten.

   Jeder Startzustand hängt an `.js`, gesetzt von einem Einzeiler im <head>.
   Ohne JavaScript entsteht damit gar kein Vorhang und die Seite ist statisch
   vollständig sichtbar — statt dauerhaft leer, wenn das Skript einmal nicht
   lädt. ------------------------------------------------------------------- */

/* 1. Bildvorhang.
      Die Maske MUSS auf dem <img> sitzen, nicht auf dem Rahmen: ein Element,
      das per clip-path auf null Fläche geklappt ist, meldet dem
      IntersectionObserver dauerhaft isIntersecting=false. Läge die Maske auf
      dem beobachteten Rahmen, würde er sich also nie aufdecken und das Bild
      bliebe für immer unsichtbar. Beobachtet wird der Rahmen, geklappt das
      Bild darin. */
.js [data-fade] img {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.07);
  transition: clip-path 1.15s var(--ease), transform 1.9s var(--ease);
}
.js [data-fade].is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* 2. Linie über dem Sektionskopf. Ersetzt den border-top, damit sie sich
      zeichnen lässt. */
.head { position: relative; border-top: 0; }
.head::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--rule);
}
.section--mocha .head::before { background: rgba(246, 244, 243, 0.3); }
.js .head::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease);
}
.js .head.is-in::before { transform: scaleX(1); }

/* 3. Versetzter Textauftritt im Sektionskopf. */
.js .head__title > *, .js .head__note > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .head.is-in .head__title > *, .js .head.is-in .head__note > * { opacity: 1; transform: none; }
.js .head.is-in .head__title > *:nth-child(1) { transition-delay: 0.15s; }
.js .head.is-in .head__title > *:nth-child(2) { transition-delay: 0.25s; }
.js .head.is-in .head__note > * { transition-delay: 0.35s; }

/* Titelbild: setzt sich beim Laden langsam, statt beim Scrollen aufzutauchen —
   ein Vorhang über dem LCP-Bild würde den ersten Eindruck nur verzögern. */
.hero__media img { animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* Scroll-gekoppelte Parallaxe in den Bildbahnen. Läuft ohne JavaScript auf
   dem Compositor; Browser ohne Unterstützung zeigen einfach das ruhige Bild. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band img {
      animation: band-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    /* Bewegt sich innerhalb der 18 % Überhöhe. Bewusst nur 12 %, damit auch
       nach Rundung immer ein Rest Bild unter der Rahmenkante steht.
       Über `translate` statt `transform`, damit die Parallaxe und die
       Vergrösserung des Bildvorhangs sich nicht überschreiben. */
    @keyframes band-drift {
      from { translate: 0 0; }
      to { translate: 0 -12%; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-fade] img { clip-path: none; transform: none; translate: none; }
  .js .head::before { transform: scaleX(1); }
  .js .head__title > *, .js .head__note > * { opacity: 1; transform: none; }
}
