/* seite.css · Stockwerk Torten, Linz (Beispiel), lp-189.
 * Idee: Die Seite ist die Werkstatt. Beim Scrollen entsteht die Torte Schicht für Schicht (Fotos einer echten Torte in
 * vier Zuständen, freigestellt). Jeder Abschnitt hat eine eigene Bewegung aus der Konditorei:
 * Kopf Streusel (js/streusel.js) · Werkstatt die Torte · Preise Stücke werden herausgezogen · Ablauf 21 Streusel-Tage ·
 * Anfrage Glasur läuft herunter · Knöpfe füllen sich mit Glasur.
 * Alle Bewegung steht unter .js und prefers-reduced-motion: no-preference; ohne beides: fertige Torte, alles still. */

@font-face { font-family: "Archivo Black"; src: url("../fonts/archivo-black-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --werkbank: #f4f4f4;      /* Grund der Fotos (geglättet), Fläche der Werkstatt */
  --schoko: #3a1d16;        /* Glasur beim Überfahren der Knöpfe: dunkle Schokolade, kein zweiter Akzent */
  --t-riesig: clamp(2.6rem, 1.2rem + 5.4vw, 7.2rem);
  --t-gross: clamp(2rem, 1.2rem + 3vw, 4.4rem);
}

h1, h2, h3 { font-weight: 400; letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
body { font-weight: 400; }
strong { font-weight: 600; }
.rot { color: var(--akzent); }

/* ---------- Marke */
.marke { gap: 10px; font-size: 1.25rem; letter-spacing: -0.02em; }
.marke-zeichen { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ff6b7f 0 14%, var(--akzent) 42%, #7d0a1c 100%); box-shadow: 0 3px 8px -3px rgba(125, 10, 28, 0.6); }

/* ---------- Knöpfe: Glasur läuft beim Überfahren von oben herein (tropfen.svg als Maske) */
.knopf { position: relative; overflow: hidden; isolation: isolate; font-weight: 600; }
.knopf > span { position: relative; z-index: 1; }
.knopf::before { content: ""; position: absolute; left: -2px; right: -2px; top: 0; height: 175%; background: var(--schoko); -webkit-mask: url("../bilder/tropfen.svg") center bottom / 100% 100% no-repeat; mask: url("../bilder/tropfen.svg") center bottom / 100% 100% no-repeat; transform: translateY(-101%); transition: transform 0.55s var(--aus); pointer-events: none; }
.knopf--rahmen { color: var(--text); transition: color 0.15s ease, box-shadow 0.3s var(--aus), transform 0.18s var(--aus); }
@media (hover: hover) and (pointer: fine) { .knopf--rahmen:hover { transition-delay: 0.24s, 0s, 0s; } }
.knopf--rahmen::before { background: var(--akzent); }
@media (hover: hover) and (pointer: fine) {
  .knopf:hover::before { transform: translateY(-34%); }
  .knopf--rahmen:hover { color: #fff; box-shadow: inset 0 0 0 1.5px var(--akzent); }
  .knopf:hover { box-shadow: 0 12px 28px -14px rgba(58, 29, 22, 0.7); }
}
.knopf:focus-visible::before { transform: translateY(-34%); }
.knopf--rahmen:focus-visible { color: #fff; }

/* ---------- Kopf: Überschrift links, Tortenstück steht rechts auf derselben Kante wie die Streusel */
.anfang { overflow: hidden; background: #fff; }
.streusel { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.anfang-raster { position: relative; z-index: 1; display: grid; align-items: end; padding-bottom: 0; }
@media (min-width: 960px) { .anfang-raster { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.anfang-text { padding-bottom: clamp(36px, 8vh, 96px); }
.titel { max-width: 11.5ch; font-size: var(--t-riesig); line-height: 0.95; letter-spacing: -0.04em; }
.unterzeile { max-width: 30rem; }
.beleg strong { font-weight: 600; }
.anfang-bild { margin: 0; min-height: 0; overflow: visible; display: grid; justify-items: center; align-self: end; }
.anfang-bild img { position: static; width: auto; height: min(78svh, 760px); max-width: 100%; object-fit: contain; filter: drop-shadow(0 26px 22px rgba(40, 20, 14, 0.14)); }
.hinweis { margin: 10px 0 18px; font-size: 0.85rem; color: var(--text-3); }
.hinweis-finger { display: none; }
@media (hover: none) { .hinweis-maus { display: none; } .hinweis-finger { display: inline; } }
@media (max-width: 959px) {
  .anfang-raster { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .anfang-bild { order: -1; justify-items: end; }
  .anfang-bild img { height: 27svh; }
  .anfang .knopf--rahmen { display: none; }
  .titel { font-size: clamp(2.3rem, 1.2rem + 5vw, 3.6rem); }
  .hinweis { margin: 4px 0 0; }
  .anfang-text { padding-bottom: 40px; }
}

/* Kleine, flache Fenster (etwa 640 × 440): Stück neben den Text, alles Wichtige im ersten Bild */
@media (max-height: 560px) and (orientation: landscape) {
  .anfang { padding-top: calc(var(--kopf-hoehe) + 4px); }
  .anfang-raster { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .anfang-bild { order: 0; }
  .anfang-bild img { height: min(64svh, 340px); }
  .titel { font-size: clamp(1.8rem, 8.4vh, 3.2rem); max-width: 13ch; }
  .unterzeile { margin-top: 10px; font-size: 1rem; }
  .beleg { margin-top: 8px; }
  .handlung { margin-top: 14px; }
  .anfang-text { padding-bottom: 20px; }
  .hinweis { display: none; }
  .anfang .knopf--rahmen { display: none; }
}

/* ---------- Werkstatt (Schlüsselszene). Ohne Bewegung: Liste und fertige Torte nebeneinander bzw. untereinander. */
.werkstatt { position: relative; background: var(--werkbank); }
.werkstatt-buehne { padding-block: var(--abstand); }
.werkstatt-raster { display: grid; gap: clamp(28px, 4vw, 72px); align-items: center; }
@media (min-width: 900px) { .werkstatt-raster { grid-template-columns: minmax(0, 1fr) auto; } }
.werkstatt h2 { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.6rem); max-width: 14ch; }
.werkstatt-satz { margin-top: 14px; max-width: 32rem; color: var(--text-2); font-size: 1.1rem; }
.stufen { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; max-width: 34rem; }
.stufe { --an: 1; position: relative; padding: 12px 0 12px 22px; border-left: 3px solid color-mix(in srgb, var(--akzent) calc(var(--an) * 100%), var(--linie)); }
.stufe-nr { font-size: 0.82rem; color: var(--text-3); }
.stufe h3 { margin-top: 2px; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); }
.stufe-text { margin-top: 4px; color: var(--text-2); }
.stufe-daten { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.stufe-daten span + span { color: var(--akzent); }
.stufe-summe { margin-top: 8px; font-size: 0.98rem; }
.stufe-summe strong { color: var(--akzent); }
.leiste { display: none; }
.torte { position: relative; margin: 0 auto; height: min(80svh, 820px); aspect-ratio: 660 / 985; max-width: 100%; }
.torte img { position: absolute; display: block; max-width: none; }
.t-brett, .t-schicht, .t-ueberzug, .t-schoko { inset: 0; width: 100%; height: 100%; }
/* Brett geht weich in die Werkbank über, kein Bildrand */
.t-brett { -webkit-mask: radial-gradient(ellipse 50% 46% at 50% 62%, #000 55%, transparent 100%); mask: radial-gradient(ellipse 50% 46% at 50% 62%, #000 55%, transparent 100%); }
.t-schatten { position: absolute; left: 14%; right: 14%; top: 87%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(45, 25, 18, 0.34), rgba(45, 25, 18, 0)); }
.deko { height: auto; }
.deko-11 { left: 28.79%; top: 9.34%; width: 9.09%; --a: 0.720; }
.deko-4 { left: 53.94%; top: 4.47%; width: 18.79%; --a: 0.734; }
.deko-1 { left: 31.06%; top: 3.76%; width: 26.36%; --a: 0.748; }
.deko-12 { left: 48.79%; top: 15.23%; width: 9.55%; --a: 0.762; }
.deko-5 { left: 66.52%; top: 10.36%; width: 15.91%; --a: 0.776; }
.deko-3 { left: 20.45%; top: 9.54%; width: 22.58%; --a: 0.790; }
.deko-13 { left: 78.94%; top: 24.47%; width: 6.67%; --a: 0.804; }
.deko-2 { left: 40.91%; top: 20.20%; width: 27.73%; --a: 0.818; }
.deko-10 { left: 16.36%; top: 25.18%; width: 10.91%; --a: 0.832; }
.deko-6 { left: 66.06%; top: 23.86%; width: 19.55%; --a: 0.846; }
.deko-7 { left: 19.39%; top: 23.05%; width: 22.73%; --a: 0.860; }
.deko-9 { left: 61.67%; top: 25.69%; width: 12.73%; --a: 0.874; }
.deko-14 { left: 15.91%; top: 28.43%; width: 5.30%; --a: 0.888; }
.deko-8 { left: 29.85%; top: 27.72%; width: 19.55%; --a: 0.902; }

.abschnitt h2 { font-size: var(--t-gross); }
.abschnitt-satz { margin-top: 18px; max-width: 40rem; color: var(--text-2); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); line-height: 1.45; }

/* ---------- Preise: jede Zeile ein Stück, der Preis wird beim Scrollen aus der Zeile gezogen */
.preise h2 { max-width: 16ch; }
.preisliste { list-style: none; margin: clamp(32px, 5vw, 64px) 0 0; padding: 0; border-top: 2px solid var(--text); }
.preis { --z: 1; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 32px; align-items: center; padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--linie); }
.preis-was h3 { font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2.1rem); }
.preis-was p { margin-top: 4px; color: var(--text-2); max-width: 36rem; }
.preis-wert { position: relative; padding: 12px 22px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 var(--linie), 0 calc(var(--z) * 18px) calc(var(--z) * 30px) calc(var(--z) * -16px) rgba(58, 29, 22, 0.35); font-family: var(--schrift-display); font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.5rem); line-height: 1; letter-spacing: -0.03em; color: var(--akzent); white-space: nowrap; text-align: right; }
.preis-ab, .preis-pro { font-family: var(--schrift-text); font-size: 0.9rem; letter-spacing: 0; color: var(--text-2); font-weight: 500; }
.preis-pro { display: block; margin-top: 6px; }
/* Der eine Regelbruch (D26): das Bento-Stück liegt schräg und rot aus der Liste heraus */
.preis--bento { border-bottom: 0; }
.preis--bento .preis-wert { background: var(--akzent); color: #fff; rotate: -4deg; translate: 0 -6px; }
.preis--bento .preis-pro { color: #fff; }
.preise-fuss { margin-top: 26px; color: var(--text-2); }
@media (max-width: 620px) {
  .preis { grid-template-columns: minmax(0, 1fr); }
  .preis-wert { justify-self: start; text-align: left; }
}

/* ---------- Ablauf: 21 Tage als Streusel, die sich beim Scrollen rot färben */
.ablauf { background: #fff; }
.ablauf h2 { max-width: 15ch; }
.tage { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(21, minmax(0, 1fr)); gap: clamp(3px, 0.8vw, 12px); align-items: end; height: 64px; }
.tage li { --f: 1; justify-self: center; width: clamp(7px, 0.9vw, 12px); height: 30px; border-radius: 99px; background: color-mix(in oklab, var(--akzent) calc(var(--f) * 100%), #e4dfdc); box-shadow: inset 0 3px 2px -1px rgba(255, 255, 255, 0.55), inset 0 -3px 3px -2px rgba(0, 0, 0, 0.25); rotate: 8deg; }
.tage li:nth-child(even) { rotate: -12deg; height: 25px; }
.tage li:nth-child(3n) { rotate: 16deg; }
.tage li.merk { height: 58px; rotate: 0deg; width: clamp(9px, 1.1vw, 15px); }
.schritte { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 24px clamp(16px, 2.4vw, 36px); grid-template-columns: repeat(5, minmax(0, 1fr)); }
.schritt { --f: 1; }
.schritt-tag { font-family: var(--schrift-display); font-size: 1.05rem; color: color-mix(in oklab, var(--akzent) calc(var(--f) * 100%), var(--text-3)); }
.schritt h3 { margin-top: 6px; font-size: 1.15rem; }
.schritt p:last-child { margin-top: 6px; color: var(--text-2); font-size: 0.98rem; }
@media (max-width: 900px) { .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .schritte { grid-template-columns: minmax(0, 1fr); } .tage { height: 48px; } .tage li { height: 18px; } .tage li:nth-child(even) { height: 15px; } .tage li.merk { height: 42px; } }

/* ---------- Anfrage: rote Glasur oben, sie läuft beim Scrollen weiter über die Seite */
.anfrage { position: relative; background: #fff; padding-bottom: var(--abstand); }
.anfrage-kopf { position: relative; background: var(--akzent); color: #fff; padding: var(--abstand) 0 clamp(40px, 5vw, 64px); }
.anfrage-kopf .abschnitt-satz { color: #fff; max-width: 36rem; }
.anfrage-kopf h2 { font-size: var(--t-gross); max-width: 14ch; }
.glasur { position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: clamp(120px, 16vw, 260px); background: var(--akzent); -webkit-mask: url("../bilder/tropfen.svg") center top / 100% 100% no-repeat; mask: url("../bilder/tropfen.svg") center top / 100% 100% no-repeat; transform-origin: 50% 0; pointer-events: none; }
.anfrage .kontakt-raster { position: relative; z-index: 1; margin-top: clamp(-8px, 1vw, 16px); }
.anfrage .formular { max-width: none; padding: clamp(22px, 3vw, 40px); border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -30px rgba(58, 29, 22, 0.45), 0 0 0 1px var(--linie); }
.feld-paar { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 420px) { .feld-paar { grid-template-columns: minmax(0, 1fr); } }
.direkt { padding-top: clamp(8px, 10vw, 170px); }
.direkt-titel { font-family: var(--schrift-display); font-size: 1.3rem; }
.direkt a { font-weight: 600; }

/* ---------- Fußzeile */
.fuss { background: #fff; }

/* =====================================================================================================================
 * BEWEGUNG: nur mit JavaScript und ohne „Bewegung reduzieren“. --p kommt aus js/bewegung.js (0 bis 1).
 * Rückfall immer der Endzustand: var(--p, 1). Nur transform, opacity, mask, Farbe; nichts läuft von selbst.
 * ===================================================================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Kopf: Stück steigt leicht, Text zieht nach oben weg */
  .js .anfang-bild img { transform: translateY(calc(var(--p, 0) * -70px)) scale(calc(1 + var(--p, 0) * 0.05)); }
  .js .anfang-text { transform: translateY(calc(var(--p, 0) * -40px)); opacity: calc(1 - var(--p, 0) * 0.7); }

  /* Werkstatt: hohe Bühne, innen angeheftet */
  .js .werkstatt { height: 540vh; }
  .js .werkstatt-buehne { position: sticky; top: 0; height: 100svh; padding: calc(var(--kopf-hoehe) + 8px) 0 16px; display: grid; align-items: center; overflow: hidden; }
  .js .werkstatt-raster { height: 100%; }
  .js .torte { height: min(calc(100svh - var(--kopf-hoehe) - 40px), 860px); }
  .js .leiste { display: block; position: relative; height: 3px; margin-top: 18px; max-width: 34rem; background: var(--linie); border-radius: 3px; overflow: hidden; }
  .js .leiste span { position: absolute; inset: 0; background: var(--akzent); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }

  /* Schritt-Texte: der aktive leuchtet rot an der Kante, die anderen werden leiser */
  .js .stufe { --an: clamp(0, min(calc((var(--p, 1) - var(--a)) * 40), calc((var(--b) - var(--p, 1)) * 40)), 1); transition: none; }
  .js .stufe h3, .js .stufe-text, .js .stufe-daten, .js .stufe-summe { opacity: calc(0.42 + var(--an) * 0.58); }
  .js .stufe-1 { --a: -1; --b: 0.16; }
  .js .stufe-2 { --a: 0.16; --b: 0.32; }
  .js .stufe-3 { --a: 0.32; --b: 0.5; }
  .js .stufe-4 { --a: 0.5; --b: 0.7; }
  .js .stufe-5 { --a: 0.7; --b: 2; }
  .js .stufe-text, .js .stufe-daten, .js .stufe-summe { max-height: calc(var(--an) * 7em); overflow: hidden; }
  .js .stufe { padding-block: 8px; }

  /* Böden fallen auf das Brett (unterster zuerst), Creme breitet sich aus */
  .js .t-schicht { --t: clamp(0, calc((var(--p, 1) - var(--a)) / 0.05), 1); --s: calc(var(--t) - 1); opacity: clamp(0, calc(var(--t) * 3), 1); will-change: transform, opacity; }
  .js .t-boden { transform: translateY(calc(var(--s) * var(--s) * var(--s) * 32vh)); }
  .js .t-creme { transform: scale(calc(1 + var(--s) * 0.18), calc(1 + var(--s) * 0.85)); }
  .js .b7 { --a: 0.02; transform-origin: 50% 84%; }
  .js .b6 { --a: 0.062; transform-origin: 50% 76.6%; }
  .js .b5 { --a: 0.104; transform-origin: 50% 69%; }
  .js .b4 { --a: 0.146; transform-origin: 50% 60.5%; }
  .js .b3 { --a: 0.188; transform-origin: 50% 53.4%; }
  .js .b2 { --a: 0.23; transform-origin: 50% 45.1%; }
  .js .b1 { --a: 0.272; transform-origin: 50% 36.6%; }
  .js .t-schatten { opacity: clamp(0, calc((var(--p, 1) - 0.02) * 25), 1); }

  /* Überzug: die Palette zieht einmal rundum (weicher Wisch von links) */
  .js .t-ueberzug { --u: clamp(0, calc((var(--p, 1) - 0.33) / 0.15), 1);
    -webkit-mask-image: linear-gradient(100deg, #000 calc(var(--u) * 150% - 50%), transparent calc(var(--u) * 150% - 22%));
    mask-image: linear-gradient(100deg, #000 calc(var(--u) * 150% - 50%), transparent calc(var(--u) * 150% - 22%)); }

  /* Schokolade läuft von oben über den Rand nach unten */
  .js .t-schoko { --d: clamp(0, calc((var(--p, 1) - 0.5) / 0.18), 1); opacity: clamp(0, calc(var(--d) * 10), 1);
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(25% + var(--d) * 48%), transparent calc(28% + var(--d) * 48%));
    mask-image: linear-gradient(to bottom, #000 calc(25% + var(--d) * 48%), transparent calc(28% + var(--d) * 48%)); }

  /* Deko fällt ein und sinkt einmal weich nach (Überschwingen) */
  .js .deko { --t: clamp(0, calc((var(--p, 1) - var(--a)) / 0.06), 1); --s: calc(var(--t) - 1);
    opacity: clamp(0, calc(var(--t) * 5), 1);
    transform: translateY(calc((2.2 * var(--s) * var(--s) * var(--s) + 1.2 * var(--s) * var(--s)) * 24vh)); will-change: transform, opacity; }

  /* Preise: das Preisfeld liegt erst in der Zeile, dann wird es wie ein Stück herausgezogen */
  .js .preis { --z: clamp(0, calc((var(--p, 1) - 0.14) / 0.26), 1); }
  .js .preis-wert { transform: translateX(calc((1 - var(--z)) * -64px)) rotate(calc((1 - var(--z)) * -5deg)); opacity: calc(0.35 + var(--z) * 0.65); }

  /* Ablauf: jeder Tag ein Streusel, der sich rot färbt und einrastet */
  .js .tage li { --f: clamp(0, calc((var(--p, 1) - 0.2 - var(--k) * 0.016) * 30), 1); transform: translateY(calc((1 - var(--f)) * -14px)) scale(calc(0.7 + var(--f) * 0.3)); }
  .js .schritt { --f: clamp(0, calc((var(--p, 1) - var(--a)) * 30), 1); }
  .js .schritt h3 { transform: translateX(calc((1 - var(--f)) * -10px)); }
  .js .s1 { --a: 0.2; } .js .s2 { --a: 0.22; } .js .s3 { --a: 0.25; } .js .s4 { --a: 0.5; } .js .s5 { --a: 0.52; }

  /* Anfrage: die Glasur läuft mit dem Scrollen länger */
  .js .glasur { transform: scaleY(calc(0.3 + clamp(0, var(--p, 1) * 1.9, 1) * 0.9)); }
}
.tage li:nth-child(1) { --k: 0; } .tage li:nth-child(2) { --k: 1; } .tage li:nth-child(3) { --k: 2; } .tage li:nth-child(4) { --k: 3; }
.tage li:nth-child(5) { --k: 4; } .tage li:nth-child(6) { --k: 5; } .tage li:nth-child(7) { --k: 6; } .tage li:nth-child(8) { --k: 7; }
.tage li:nth-child(9) { --k: 8; } .tage li:nth-child(10) { --k: 9; } .tage li:nth-child(11) { --k: 10; } .tage li:nth-child(12) { --k: 11; }
.tage li:nth-child(13) { --k: 12; } .tage li:nth-child(14) { --k: 13; } .tage li:nth-child(15) { --k: 14; } .tage li:nth-child(16) { --k: 15; }
.tage li:nth-child(17) { --k: 16; } .tage li:nth-child(18) { --k: 17; } .tage li:nth-child(19) { --k: 18; } .tage li:nth-child(20) { --k: 19; }
.tage li:nth-child(21) { --k: 20; }

/* Werkstatt auf kleinen oder flachen Bildschirmen: Torte und EIN Schritt-Text, die Schritte blenden ineinander */
@media (prefers-reduced-motion: no-preference) and ((max-width: 899px) or (max-height: 760px)) {
  .js .werkstatt { height: 480vh; }
  .js .werkstatt-raster { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
  .js .werkstatt-text { display: contents; }
  .js .werkstatt h2 { grid-row: 1; font-size: clamp(1.35rem, 1rem + 2vw, 2rem); max-width: none; }
  .js .werkstatt-satz { display: none; }
  .js .torte { grid-row: 2; height: 100%; max-height: 100%; min-height: 0; }
  .js .stufen { grid-row: 3; margin: 0; display: grid; max-width: none; }
  .js .stufe { grid-area: 1 / 1; padding: 10px 0 0 14px; opacity: var(--an); background: var(--werkbank); }
  .js .stufe h3, .js .stufe-text, .js .stufe-daten, .js .stufe-summe { opacity: 1; max-height: none; }
  .js .stufe-text { font-size: 0.95rem; }
  .js .leiste { grid-row: 4; margin-top: 4px; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 600px) and (max-height: 760px) and (orientation: landscape) {
  .js .werkstatt-raster { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: clamp(20px, 4vw, 56px); }
  .js .werkstatt h2 { grid-column: 2; grid-row: 1; align-self: end; }
  .js .torte { grid-column: 1; grid-row: 1 / 4; }
  .js .stufen { grid-column: 2; grid-row: 2; align-self: start; }
  .js .leiste { grid-column: 2; grid-row: 3; }
}
