/* KNIPS Sofortbildkamera (Beispiel) · lp-252
   Idee: Die Seite ist die Kamera. Beim Scrollen kommt das Bild heraus, entwickelt sich und wird zum nächsten Abschnitt.
   Ohne JavaScript und bei „weniger Bewegung“ steht alles fertig untereinander (Klassen .film / .ruhig setzt js/frueh.js). */

@font-face { font-family: "Nunito"; src: url("../schrift/nunito-var.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat Brush"; src: url("../schrift/caveat-brush-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

@property --grund { syntax: "<color>"; inherits: true; initial-value: #1b43e3; }
@property --grund-tief { syntax: "<color>"; inherits: true; initial-value: #1233bd; }
@property --kamera { syntax: "<color>"; inherits: true; initial-value: #e2463a; }

:root {
  --tinte: #0b1030;
  --papier: #fff6e6;
  --foto: #fbf7ee;
  --flaeche: #f6eedf;
  --stift: #1b2452;
  --rand: max(clamp(20px, 5vw, 84px), calc((100vw - 1204px) / 2));
  --g-1: clamp(2.3rem, min(5.8vw, 13.5vh), 5.8rem);
  --g-2: clamp(1.9rem, min(3.9vw, 8.4vh), 3.6rem);
  --g-3: clamp(1.25rem, min(1.9vw, 4.4vh), 1.6rem);
  --g-4: clamp(1rem, min(1.25vw, 3.6vh), 1.125rem);
  --g-5: 0.92rem;
  --weich: cubic-bezier(0.2, 0.8, 0.2, 1);
}
html[data-farbe="paradeiser"] { --grund: #1b43e3; --grund-tief: #1233bd; --kamera: #e2463a; }
html[data-farbe="enzian"] { --grund: #d0351f; --grund-tief: #ad2814; --kamera: #3a57c9; }
html[data-farbe="marille"] { --grund: #0d6b52; --grund-tief: #08543f; --kamera: #f3a14e; }
html { transition: --grund 0.7s ease, --grund-tief 0.7s ease, --kamera 0.7s ease; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--grund); color: var(--papier); font: 600 var(--g-4)/1.5 "Nunito", "Segoe UI", system-ui, sans-serif; overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 1000; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: var(--g-1); line-height: 0.98; }
h2 { font-size: var(--g-2); line-height: 1.02; }
h3 { font-size: var(--g-3); line-height: 1.12; letter-spacing: -0.015em; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

.sprung { position: fixed; left: 12px; top: -80px; z-index: 99; background: var(--papier); color: var(--tinte); padding: 12px 18px; border-radius: 999px; font-weight: 800; }
.sprung:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; box-shadow: 0 0 0 7px var(--papier); border-radius: 8px; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 0.3em; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--papier); color: var(--tinte); font-weight: 900; font-size: var(--g-4); line-height: 1.1; text-decoration: none; cursor: pointer; transition: translate 0.25s var(--weich), scale 0.25s var(--weich), background-color 0.2s; white-space: nowrap; }
.knopf:hover { translate: 0 -2px; scale: 1.03; }
.knopf:active { translate: 0 1px; scale: 0.98; }
.knopf.klein { min-height: 44px; padding: 0 18px; font-size: var(--g-5); }
.knopf.rahmen { background: transparent; color: var(--papier); box-shadow: inset 0 0 0 2px currentColor; }
.knopf:focus-visible, .farbe:focus-visible { border-radius: 999px; }

/* ---------- Kopfzeile: schwebende Leiste ---------- */
.nav { position: fixed; z-index: 60; top: 12px; left: 50%; translate: -50% 0; width: calc(100% - 2 * var(--rand) + 36px); display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); padding: 7px 7px 7px 18px; background: var(--tinte); color: var(--papier); border-radius: 999px; transition: translate 0.4s var(--weich); }
.nav.weg { translate: -50% -150%; }
.logo { font-weight: 1000; font-size: 1.35rem; letter-spacing: -0.03em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links { display: flex; gap: clamp(12px, 2vw, 28px); margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 800; font-size: var(--g-5); min-height: 44px; display: inline-flex; align-items: center; opacity: 0.86; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav .knopf { margin-left: auto; } }

/* =====================================================================
   1 · Bühne: Kopf, erstes Bild, drei Gründe
   Grundfassung (ohne Film): alles im Raster untereinander
   ===================================================================== */
.buehne { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); align-items: center; padding: 120px var(--rand) 90px; }
.kopf-text { grid-column: 1 / 4; }
.lead { font-size: clamp(1.05rem, min(1.55vw, 3.9vh), 1.4rem); line-height: 1.38; margin-top: 0.9em; max-width: 27em; font-weight: 700; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5em; }
.klein-satz { font-size: var(--g-5); margin-top: 1.1em; max-width: 36em; opacity: 0.92; text-wrap: balance; }
.kamera { grid-column: 4 / 7; position: relative; }
.kamera img, .farb-kamera img { width: 100%; height: auto; position: relative; }
.kamera-schatten { position: absolute; left: 6%; right: 6%; bottom: -8%; height: 16%; background: radial-gradient(closest-side, rgba(4, 8, 40, 0.5), rgba(4, 8, 40, 0)); }
.szene-text { grid-column: 1 / -1; order: 2; margin-top: 30px; }
.szene-text p { margin-top: 0.8em; max-width: 30em; font-size: clamp(1.05rem, min(1.5vw, 3.8vh), 1.3rem); }
.szene-text h2 { max-width: 14em; }

.abzug { grid-column: span 2; order: 3; background: var(--foto); padding: 4.5% 4.5% 0; border-radius: 6px; box-shadow: 0 22px 50px rgba(5, 10, 40, 0.38); rotate: -2deg; }
.abzug:nth-of-type(2) { rotate: 1.6deg; }
.abzug-bild { position: relative; aspect-ratio: 99 / 62; overflow: hidden; background: #aab6b2; }
.abzug-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#abzug-0 .scharf { object-position: 76% 50%; }
#abzug-2 .scharf { object-position: 74% 45%; }
.abzug .roh, .abzug .milch { display: none; }
.abzug-zeile { font: 400 clamp(1.3rem, 2.2vw, 1.9rem)/1 "Caveat Brush", cursive; color: var(--stift); padding: 0.55em 0.15em 0.6em; }

.gruende { grid-column: 1 / -1; order: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: 20px; }
.gruende-titel { grid-column: 1 / -1; }
.grund p { margin-top: 0.5em; font-size: clamp(0.95rem, min(1.2vw, 3.3vh), 1.12rem); line-height: 1.45; }
.wink, .streu, .kopf-wort, .glanz, .blitz, .teil, .zeiger { display: none; }
h1 span { display: block; white-space: nowrap; }

@media (max-width: 760px) {
  .kopf-text, .kamera, .abzug, .gruende-titel { grid-column: 1 / -1; }
  .gruende { grid-template-columns: 1fr; }
  .kamera { max-width: 320px; justify-self: center; }
}

/* ---------- Film: eine angeheftete Bühne ---------- */
.film .film-teil { height: 640vh; }
.film .buehne { position: sticky; top: 0; height: 100vh; height: 100svh; display: block; padding: 0; overflow: hidden; overflow: clip; }
.film .kopf-text { position: absolute; left: var(--rand); top: 50%; width: min(47vw, 680px); translate: 0 calc(-47% - var(--tf, 0) * 7vh); opacity: calc(1 - var(--tf, 0)); z-index: 2; }
.film .kopf-text.fort { visibility: hidden; }
.film .kamera { --kw: min(38vw, 64vh); position: absolute; width: var(--kw); height: var(--kw); right: max(var(--rand), 7vw); top: calc(50% - var(--kw) * 0.56); transform: translate3d(var(--kx, 0px), var(--ky, 0px), 0); z-index: 3; }
.film .kamera.fort { visibility: hidden; }

.film .abzug { position: absolute; left: calc(var(--px) - var(--a)); top: calc(var(--py) - var(--a)); width: calc(var(--pw) + 2 * var(--a)); height: calc(var(--ph) + var(--a) + var(--b)); padding: 0; rotate: none; border-radius: calc(var(--a) * 0.14); box-shadow: 0 calc(var(--a) * 0.5) calc(var(--a) * 1.7) rgba(5, 10, 40, 0.4); transform-origin: calc(var(--a) + var(--pw) / 2) calc(var(--a) + var(--ph) / 2); will-change: transform; z-index: 4; }
.film .abzug-bild { position: absolute; left: var(--a); top: var(--a); width: var(--pw); height: var(--ph); aspect-ratio: auto; }
.film .abzug .scharf { transform: scale(var(--kb, 1)); }
.film .abzug .roh { display: block; opacity: var(--o1, 1); }
.film .abzug .milch { display: block; position: absolute; inset: 0; background: linear-gradient(160deg, #bcc8c2, #9fb0ad); opacity: var(--o0, 1); }
.film .abzug-zeile { position: absolute; left: calc(var(--a) * 1.3); bottom: calc(var(--b) * 0.2); padding: 0; font-size: calc(var(--b) * 0.58); opacity: var(--oz, 0); }

.film .szene-text { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 24vh var(--rand) 8vh; background: linear-gradient(to top, rgba(4, 12, 34, 0.78), rgba(4, 12, 34, 0.42) 52%, rgba(4, 12, 34, 0)); opacity: var(--os, 0); translate: 0 calc((1 - var(--os, 0)) * 34px); z-index: 5; pointer-events: none; }

.film .gruende { position: absolute; inset: 0; display: block; margin: 0; z-index: 5; pointer-events: none; }
.film .gruende-titel { position: absolute; left: var(--rand); right: var(--rand); top: max(84px, 10.5vh); opacity: var(--og, 0); translate: 0 calc((1 - var(--og, 0)) * 26px); }
.film .grund { position: absolute; left: 0; top: 0; width: var(--gw, 300px); opacity: var(--o, 0); }

.film .wink { display: block; position: absolute; left: 0; right: 0; bottom: max(14px, 2.6vh); text-align: center; font: 400 clamp(1.15rem, 1.6vw, 1.5rem)/1 "Caveat Brush", cursive; opacity: calc(0.95 - var(--tf, 0) * 4); z-index: 2; pointer-events: none; }
.film .wink::after { content: ""; display: block; width: 2px; height: 16px; margin: 7px auto 0; background: currentColor; border-radius: 2px; }

/* Tiefe im ersten Bildschirm: zwei fertige Abzüge, einer hinten scharf, einer vorn unscharf */
.film .streu { display: block; position: absolute; background: var(--foto); padding: 0.75vw 0.75vw 2.5vw; border-radius: 3px; box-shadow: 0 1.2vw 3vw rgba(5, 10, 40, 0.4); transform: translate3d(var(--sx, 0px), var(--sy, 0px), 0); }
.film .streu i { display: block; aspect-ratio: 99 / 62; background-size: cover; }
.film .streu-1 { right: -3.2vw; top: 13vh; rotate: 13deg; z-index: 1; }
.film .streu-1 i { width: 15vw; background-image: url("../bilder/hund-640.webp"); background-position: 74% 45%; }
.film .streu-2 { left: -5vw; bottom: -11vh; rotate: -15deg; z-index: 6; filter: blur(5px); padding: 1.2vw 1.2vw 4vw; }
.film .streu-2 i { width: 25vw; background-image: url("../bilder/torte-640.webp"); }
.film .streu-3 { left: 47vw; top: 9vh; rotate: -9deg; z-index: 1; }
.film .streu-3 i { width: 11vw; background-image: url("../bilder/see-800.webp"); background-position: 76% 50%; }
.film .streu-4 { right: -8vw; bottom: -19vh; rotate: 17deg; z-index: 6; filter: blur(6px); padding: 1.2vw 1.2vw 4vw; }
.film .streu-4 i { width: 24vw; background-image: url("../bilder/picknick-800.webp"); background-position: 30% 40%; }
.film .streu-5 { left: 29vw; bottom: 4vh; rotate: 7deg; z-index: 1; }
.film .streu-5 i { width: 9vw; background-image: url("../bilder/picknick-800.webp"); background-position: 62% 70%; }
.film .kopf-wort { display: block; position: absolute; left: -1.6vw; bottom: -0.17em; margin: 0; font-size: min(36vw, 64vh); font-weight: 1000; letter-spacing: -0.06em; line-height: 0.8; white-space: nowrap; color: var(--grund-tief); z-index: 0; transform: translate3d(var(--wx, 0px), var(--wy, 0px), 0); opacity: calc(1 - var(--tf, 0)); pointer-events: none; }
.film .kamera .glanz { display: block; position: absolute; left: 46.6%; top: 28.6%; width: 10%; height: 6%; margin: -3% 0 0 -5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)); transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0) rotate(-24deg); pointer-events: none; }
.film .kamera .blitz { display: block; position: absolute; left: 82%; top: 13.5%; width: 150%; height: 150%; margin: -75% 0 0 -75%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 250, 228, 0.85), rgba(255, 244, 200, 0.3) 30%, rgba(255, 244, 200, 0) 70%); opacity: 0; pointer-events: none; }
.film .kamera .blitz.an { animation: aufleuchten 0.95s ease-out both; }
@keyframes aufleuchten { 0% { opacity: 0; scale: 0.5; } 28% { opacity: 0.62; scale: 1; } 100% { opacity: 0; scale: 1.08; } }
.film .streu.fort { visibility: hidden; }
@media (max-width: 760px) and (orientation: portrait), (max-height: 600px) { .film .streu { display: none; } .film .kopf-wort { font-size: min(36vw, 40vh); } }
@media (max-width: 760px) and (orientation: portrait) { .film .kopf-wort { bottom: auto; top: 54vh; font-size: 37vw; } }

/* bis das Skript zum ersten Mal gezeichnet hat, ist nur der erste Bildschirm zu sehen */
html.film:not(.bereit) .abzug, html.film:not(.bereit) .szene-text, html.film:not(.bereit) .gruende { visibility: hidden; }

/* Überschriften der unteren Abschnitte decken sich von unten auf */
.film .zeig-innen { display: block; clip-path: inset(0 0 100% 0); translate: 0 0.5em; transition: clip-path 0.9s var(--weich), translate 0.9s var(--weich); }
.film .zeig.da .zeig-innen { clip-path: inset(-0.15em -0.1em -0.25em -0.1em); translate: 0 0; }

/* Auftritt des ersten Bildschirms */
@keyframes rein { from { opacity: 0; translate: 0 28px; } }
@keyframes kamera-rein { from { opacity: 0; scale: 0.88; rotate: -7deg; } }
@keyframes streu-rein { from { opacity: 0; scale: 0.8; } }
.film .streu { animation: streu-rein 1s 0.35s var(--weich) both; }
.film .kopf-text > * { animation: rein 0.8s var(--weich) both; }
.film .kopf-text > :nth-child(2) { animation-delay: 0.08s; }
.film .kopf-text > :nth-child(3) { animation-delay: 0.16s; }
.film .kopf-text > :nth-child(4) { animation-delay: 0.24s; }
.film .kamera img { animation: kamera-rein 0.9s 0.1s var(--weich) both; }

@media (max-width: 760px) and (orientation: portrait) {
  .film .kopf-text { top: 82px; right: var(--rand); width: auto; translate: 0 calc(var(--tf, 0) * -7vh); }
  .film .kamera { --kw: min(60vw, 33vh); right: auto; left: calc(50% - var(--kw) / 2); top: calc(100% - var(--kw) - 16vh); }
  .film .knoepfe .knopf { min-height: 46px; padding: 0 18px; font-size: var(--g-5); }
  .film .szene-text { padding: 20vh var(--rand) 7vh; }
  .film .grund { text-align: center; }
  .film .gruende-titel { top: 80px; }
}
@media (max-width: 760px) and (orientation: portrait) and (max-height: 720px) {
  .film .klein-satz, .film .knoepfe .rahmen { display: none; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .film .klein-satz, .film .wink { display: none; }
  .film .grund h3 { font-size: 1.02rem; }
  .film .grund p { font-size: 0.82rem; line-height: 1.34; margin-top: 0.3em; }
  .film .kopf-text { translate: 0 calc(-40% - var(--tf, 0) * 7vh); }
  .film .gruende-titel { top: 66px; }
}

/* =====================================================================
   2 · Ausprobieren
   ===================================================================== */
.sucher { position: relative; background: var(--grund); }
.film .sucher { height: 220vh; }
.sucher-buehne { position: relative; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; cursor: crosshair; }
.film .sucher-buehne { position: sticky; top: 0; }
.sucher-szene { position: absolute; inset: 0; clip-path: inset(calc((1 - var(--o, 1)) * 26%) calc((1 - var(--o, 1)) * 31%) round calc((1 - var(--o, 1)) * 30px)); }
.sucher-szene img { width: 100%; height: 100%; object-fit: cover; scale: calc(1.14 - var(--o, 1) * 0.14); }
.sucher-rahmen { --fw: clamp(190px, 25vw, 400px); position: absolute; left: 0; top: 0; width: var(--fw); aspect-ratio: 99 / 62; transform: translate3d(var(--fx, 40vw), var(--fy, 46vh), 0); opacity: var(--o, 1); pointer-events: none; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.75), 0 0 0 1.5px rgba(8, 12, 40, 0.25); }
.lupe { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; background-repeat: no-repeat; background-color: transparent; }
.lupe s { position: absolute; left: 0; right: 0; height: 51%; background: var(--tinte); transform: scaleY(0); }
.lupe s:first-child { top: 0; transform-origin: 50% 0; }
.lupe s:last-child { bottom: 0; transform-origin: 50% 100%; }
.sucher-rahmen i { position: absolute; width: 22%; height: 32%; border: 5px solid #fff; filter: none; }
.sucher-rahmen i:nth-of-type(1) { left: -3px; top: -3px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.sucher-rahmen i:nth-of-type(2) { right: -3px; top: -3px; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.sucher-rahmen i:nth-of-type(3) { left: -3px; bottom: -3px; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.sucher-rahmen i:nth-of-type(4) { right: -3px; bottom: -3px; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.sucher-rahmen b { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; translate: -50% -50%; background: linear-gradient(#fff, #fff) 50% 50% / 100% 2px no-repeat, linear-gradient(#fff, #fff) 50% 50% / 2px 100% no-repeat; }
.sucher-rahmen.leer { opacity: 0.35; }

.sucher-tafel { position: absolute; left: var(--rand); top: max(86px, 12vh); width: min(340px, calc(100% - 2 * var(--rand))); background: var(--flaeche); color: var(--tinte); border-radius: 24px; padding: 22px 24px 22px; cursor: default; box-shadow: 0 20px 54px rgba(5, 10, 40, 0.34); z-index: 3; }
.sucher-tafel h2 { font-size: clamp(1.8rem, min(3vw, 7vh), 2.7rem); }
.sucher-tafel p { margin-top: 0.5em; font-size: var(--g-5); line-height: 1.4; }
.zaehler { display: flex; align-items: baseline; gap: 10px; }
.sucher-tafel .zaehler { margin-top: 0.3em; }
.zaehler-wort { font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.zaehler-zahl { font-size: clamp(2.6rem, min(4.6vw, 11vh), 4.2rem); font-weight: 1000; line-height: 1; letter-spacing: -0.04em; color: var(--grund); font-variant-numeric: tabular-nums; }
.sucher-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.sucher-tafel .knopf { background: var(--tinte); color: var(--papier); }
.sucher-tafel .knopf.rahmen { background: transparent; color: var(--tinte); }
.sucher-tafel .knopf[disabled] { opacity: 0.45; cursor: default; translate: none; scale: none; }

.ablage { --sw: 150px; --schritt: 106px; position: absolute; left: var(--rand); right: var(--rand); bottom: 30px; height: 0; z-index: 2; cursor: default; pointer-events: none; }
.schuss { --sw: 150px; position: absolute; bottom: 0; right: calc(var(--i, 0) * var(--schritt)); width: var(--sw); padding: calc(var(--sw) * 0.055) calc(var(--sw) * 0.055) 0; background: var(--foto); border-radius: 4px; box-shadow: 0 10px 24px rgba(5, 10, 40, 0.4); transform-origin: 0 0; }
.schuss::after { content: ""; display: block; height: calc(var(--sw) * 0.19); }
.schuss-bild { position: relative; aspect-ratio: 99 / 62; overflow: hidden; background-color: #aab6b2; background-repeat: no-repeat; }
.schuss-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, #bcc8c2, #9fb0ad); animation: entwickeln 3.4s 0.35s both ease-in-out; }
.schuss.fertig .schuss-bild::after { display: none; }
@keyframes entwickeln { 0% { opacity: 1; } 30% { opacity: 0.86; } 100% { opacity: 0; } }

@media (max-width: 760px) {
  .sucher-tafel { top: 74px; padding: 16px 18px 16px; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; width: auto; right: var(--rand); }
  .sucher-tafel h2, .sucher-tafel #sucher-satz, .sucher-knoepfe { grid-column: 1; }
  .sucher-tafel .zaehler { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; align-items: center; gap: 0; margin: 0; }
  .sucher-rahmen { --fw: min(58vw, 60vh); }
  .ablage { --sw: 92px; --schritt: 33px; bottom: 22px; }
  .schuss { --sw: 92px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .sucher-tafel { top: 66px; padding: 12px 16px; width: 250px; }
  .sucher-tafel #sucher-satz { display: none; }
  .ablage { --sw: 96px; --schritt: 62px; bottom: 16px; }
  .schuss { --sw: 96px; }
}

/* ---------- Band: zwei Zeilen kreuzen sich und laufen gegeneinander ---------- */
.band { position: relative; z-index: 4; overflow: hidden; overflow: clip; padding: 40px 0; margin: -58px 0; pointer-events: none; }
.band-zeile { position: relative; z-index: 2; background: var(--tinte); color: var(--papier); padding: 14px 0 16px; rotate: -1.7deg; margin: 0 -5vw; white-space: nowrap; font-weight: 1000; font-size: clamp(1.5rem, 4.2vw, 3.4rem); text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; }
.band-zeile span { display: inline-block; transform: translate3d(var(--bx, -6vw), 0, 0); }
.band-zeile i { display: inline-block; width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--kamera); margin: 0 0.5em 0.1em; vertical-align: middle; }
.band-zeile.zwei { z-index: 1; background: var(--kamera); color: var(--tinte); rotate: 1.5deg; margin-top: calc(-1em - 30px); }
.band-zeile.zwei i { background: var(--tinte); }

/* =====================================================================
   3 · Farben
   ===================================================================== */
.farben { position: relative; background: var(--grund); min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: max(110px, 15vh) 0 max(80px, 11vh); overflow: hidden; overflow: clip; }
.farb-wort { position: absolute; left: 0; top: 50%; z-index: 1; font-size: min(23vw, 48vh); font-weight: 1000; text-transform: uppercase; letter-spacing: -0.045em; line-height: 0.8; white-space: nowrap; color: var(--grund-tief); translate: var(--wx, 4vw) -50%; pointer-events: none; }
.farb-blende { position: absolute; inset: 0; z-index: 0; background: var(--neu, transparent); clip-path: circle(0px at 50% 50%); pointer-events: none; }
.farben-innen { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 4vw; align-items: center; padding: 0 var(--rand); }
.farben-text p { margin-top: 0.8em; max-width: 24em; font-size: clamp(1.05rem, min(1.5vw, 3.8vh), 1.3rem); }
.farbwahl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6em; }
.farbe { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--papier); box-shadow: inset 0 0 0 2px rgba(255, 246, 230, 0.55); font-weight: 900; cursor: pointer; transition: background-color 0.25s, color 0.25s, translate 0.25s var(--weich); }
.farbe:hover { translate: 0 -2px; }
.farbe[aria-pressed="true"] { background: var(--papier); color: var(--tinte); box-shadow: none; }
.tupfer { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--papier), 0 0 0 1.5px rgba(11, 16, 48, 0.25); }
.farbe[data-farbe="paradeiser"] .tupfer { background: #e2463a; }
.farbe[data-farbe="enzian"] .tupfer { background: #3a57c9; }
.farbe[data-farbe="marille"] .tupfer { background: #f3a14e; }
.farben-weiter { margin-top: 1.4em; }
.farb-kamera { position: relative; width: min(100%, 64vh); justify-self: center; transform: perspective(1100px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translate3d(0, var(--fy, 0px), 0); }
@media (max-width: 760px) {
  .farben-innen { grid-template-columns: 1fr; gap: 34px; }
  .farb-kamera { width: min(72vw, 40vh); order: -1; }
  .farb-wort { top: 26%; font-size: 30vw; }
}

/* =====================================================================
   4 · Im Karton: beim Scrollen wird ausgepackt
   ===================================================================== */
.karton { background: var(--flaeche); color: var(--tinte); }
.karton-buehne { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 84px); align-items: center; padding: clamp(84px, 15vh, 160px) var(--rand) clamp(70px, 12vh, 140px); }
.kiste { position: relative; border-radius: 28px; overflow: hidden; clip-path: inset(calc((1 - var(--auf, 1)) * 52%) 0 0 0 round 28px); }
.kiste img { width: 100%; height: auto; }
.kiste-leer { position: absolute; inset: 0; opacity: var(--leer, 0); }
.zahlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 34px) clamp(16px, 2.4vw, 30px); margin-top: clamp(22px, 3.4vh, 40px); }
.zahlen li { border-top: 3px solid var(--tinte); padding-top: 12px; }
.zahl { display: flex; height: 1em; overflow: hidden; font-size: clamp(3.2rem, min(6.6vw, 14vh), 5.6rem); font-weight: 1000; line-height: 1; letter-spacing: -0.05em; color: var(--grund); font-variant-numeric: tabular-nums; }
.ziffer { display: block; transition: transform 1.3s var(--weich); transform: translateY(0); }
.ziffer span { display: block; height: 1em; }
.zahl.da .ziffer { transform: translateY(calc(var(--n) * -1em)); }
.zahl-wort { display: block; margin-top: 6px; font-weight: 800; line-height: 1.3; }
.daten-zeile { margin-top: clamp(22px, 3.4vh, 38px); font-size: var(--g-5); max-width: 34em; }
.preis-zeile { margin-top: 0.9em; font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 30em; }
.preis-zeile strong { font-weight: 1000; font-size: 1.5em; letter-spacing: -0.03em; color: var(--grund); margin-right: 0.15em; }
@media (max-width: 900px) { .karton-buehne { grid-template-columns: 1fr; } }

.film .karton { height: 300vh; }
.film .karton-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; display: block; padding: 0; overflow: hidden; overflow: clip; }
.film .kiste { position: absolute; left: 0; top: 0; width: var(--bw, 46vw); transform: translate3d(var(--bx, 0px), var(--by, 0px), 0) scale(var(--bs, 1)); border-radius: 0;
  /* die Ränder des Fotos laufen in die Fläche aus, damit der Karton auf der Seite steht und nicht in einem Bildkasten */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, #000 0, #000 88%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, #000 0, #000 88%, transparent 100%); mask-composite: intersect; }
.film .teil { display: block; position: absolute; left: 0; top: 0; height: auto; max-width: none; opacity: var(--to, 0); will-change: transform; z-index: 2; pointer-events: none; }
.film .karton-text { position: absolute; left: 58vw; right: var(--rand); top: 50%; translate: 0 -50%; z-index: 3; }
.film .zahlen li { opacity: 0.25; transition: opacity 0.5s; }
.film .zahlen li.an { opacity: 1; }
@media (max-width: 760px) and (orientation: portrait) {
  .film .karton-text { left: var(--rand); top: auto; bottom: 3vh; translate: none; }
  .film .karton .zahl { font-size: 2.3rem; }
  .film .karton .zahlen { gap: 10px 14px; margin-top: 12px; }
  .film .karton .zahlen li { padding-top: 6px; border-top-width: 2px; }
  .film .karton .zahl-wort { font-size: 0.86rem; margin-top: 2px; }
  .film .karton .daten-zeile { display: none; }
  .film .karton .preis-zeile { font-size: 0.92rem; margin-top: 10px; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .film .karton .daten-zeile { display: none; }
  .film .karton .zahl { font-size: 2.2rem; }
  .film .karton .zahlen { gap: 8px 14px; margin-top: 10px; }
  .film .karton .zahlen li { padding-top: 5px; border-top-width: 2px; }
  .film .karton .zahl-wort { font-size: 0.82rem; margin-top: 2px; }
  .film .karton .preis-zeile { font-size: 0.88rem; margin-top: 8px; }
}

/* =====================================================================
   5 · Bestellen
   ===================================================================== */
.bestellen { position: relative; background: var(--grund); padding: clamp(90px, 15vh, 160px) var(--rand) clamp(70px, 11vh, 130px); overflow: hidden; overflow: clip; }
.bestellen-innen { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.auswurf { position: relative; justify-self: center; width: min(100%, 430px); transform: perspective(1000px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }
.auswurf-kamera { position: relative; z-index: 1; }
.auswurf-kamera img { width: 100%; height: auto; }
.schacht { position: relative; z-index: 2; width: 72%; margin: -15.4% auto 0; clip-path: inset(0 -60px -80px -60px); }
.karte { background: var(--foto); padding: 6% 6% 0; border-radius: 6px; box-shadow: 0 26px 60px rgba(5, 10, 40, 0.45); translate: 0 calc((1 - var(--q, 1)) * -101%); rotate: calc(var(--q, 1) * -2deg); transform-origin: 50% 0; }
.karte-bild { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #aab6b2; }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; }
.karte-bild .milch { position: absolute; inset: 0; background: linear-gradient(160deg, #bcc8c2, #9fb0ad); opacity: var(--km, 0); }
.karte-zeile { font: 400 clamp(1.25rem, 2.1vw, 1.8rem)/1 "Caveat Brush", cursive; color: var(--stift); padding: 0.6em 0.1em 0.7em; }
.bestell-lead { margin-top: 0.7em; font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 700; }
.formular { margin-top: clamp(20px, 3vh, 34px); display: grid; gap: 18px; max-width: 560px; }
.feld { border: 0; padding: 0; margin: 0; min-width: 0; }
.feld > label, .feld legend { display: block; font-weight: 900; font-size: var(--g-5); margin-bottom: 8px; padding: 0; }
.feld input[type="email"], .stepper { width: 100%; min-height: 54px; border-radius: 16px; border: 0; background: var(--papier); color: var(--tinte); padding: 0 18px; font-weight: 700; }
.feld input::placeholder { color: rgba(11, 16, 48, 0.5); }
.feld input.fehlt { box-shadow: 0 0 0 3px var(--tinte), 0 0 0 6px var(--papier); }
.feld-reihe { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; }
.stepper { display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; padding: 0 4px; }
.stepper input { width: 100%; min-height: 46px; border: 0; background: transparent; text-align: center; font-weight: 1000; font-size: 1.2rem; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--tinte); color: var(--papier); font-weight: 1000; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl legend { float: left; width: 100%; }
.wahl label { position: relative; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wahl span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(255, 246, 230, 0.55); font-weight: 900; transition: background-color 0.2s, color 0.2s; }
.wahl input:checked + span { background: var(--papier); color: var(--tinte); box-shadow: none; }
.wahl input:focus-visible + span { outline: 3px solid var(--tinte); outline-offset: 2px; box-shadow: 0 0 0 7px var(--papier); }
.summe { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 800; }
.summe strong { font-weight: 1000; font-size: 1.7em; letter-spacing: -0.03em; margin-left: 0.3em; }
.formular-satz { font-size: var(--g-5); opacity: 0.94; }
.formular-meldung { font-weight: 800; min-height: 1.5em; }
.formular-meldung.gut { background: var(--papier); color: var(--tinte); padding: 14px 18px; border-radius: 16px; }
.deine { margin-top: clamp(50px, 8vh, 90px); }
.deine-satz { font: 400 clamp(1.4rem, 2.2vw, 2rem)/1.1 "Caveat Brush", cursive; }
.deine-reihe { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.deine-reihe .schuss { position: relative; right: auto; bottom: auto; flex: none; }
.deine-reihe .schuss:nth-child(odd) { rotate: -3deg; }
.deine-reihe .schuss:nth-child(even) { rotate: 2.4deg; }
@media (max-width: 760px) {
  .bestellen-innen { grid-template-columns: 1fr; }
  .auswurf { width: min(74%, 320px); }
  .feld-reihe { grid-template-columns: 1fr; }
}

/* ---------- Fuß ---------- */
.fuss { background: var(--tinte); color: var(--papier); padding: clamp(40px, 7vh, 80px) 0 34px; overflow: hidden; overflow: clip; }
.fuss-wort { font-size: 31vw; font-weight: 1000; line-height: 0.74; letter-spacing: -0.055em; text-align: center; color: var(--grund); scale: var(--fs, 1); transform-origin: 50% 100%; white-space: nowrap; padding-bottom: 0.06em; }
.fuss-innen { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end; padding: 34px var(--rand) 0; font-size: var(--g-5); }
.fuss-wer { line-height: 1.6; }
.netze { display: flex; gap: 6px; }
.zeichen-link { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; transition: background-color 0.2s, color 0.2s; }
.zeichen-link:hover { background: var(--papier); color: var(--tinte); }
.zeichen { width: 21px; height: 21px; }
.fuss-recht { text-align: right; display: grid; gap: 6px; }
.fuss a { text-underline-offset: 4px; }
.fuss :focus-visible { outline-color: var(--papier); box-shadow: none; }
@media (max-width: 760px) { .fuss-innen { grid-template-columns: 1fr; } .fuss-recht { text-align: left; } }

/* ---------- kleiner Sucher am Mauszeiger ---------- */
@media (hover: hover) and (pointer: fine) {
  .film .zeiger { display: block; position: fixed; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; z-index: 80; pointer-events: none; opacity: var(--zo, 0); transform: translate3d(var(--zx, -80px), var(--zy, -80px), 0) scale(var(--zs, 1)); mix-blend-mode: difference;
    background:
      linear-gradient(#fff, #fff) 0 0 / 11px 2.5px no-repeat, linear-gradient(#fff, #fff) 0 0 / 2.5px 11px no-repeat,
      linear-gradient(#fff, #fff) 100% 0 / 11px 2.5px no-repeat, linear-gradient(#fff, #fff) 100% 0 / 2.5px 11px no-repeat,
      linear-gradient(#fff, #fff) 0 100% / 11px 2.5px no-repeat, linear-gradient(#fff, #fff) 0 100% / 2.5px 11px no-repeat,
      linear-gradient(#fff, #fff) 100% 100% / 11px 2.5px no-repeat, linear-gradient(#fff, #fff) 100% 100% / 2.5px 11px no-repeat; }
}

/* ---------- ruhige Fassung ---------- */
/* js/frueh.js setzt bei „weniger Bewegung“ die Klasse .ruhig (alles steht fertig untereinander); das hier ist der Rückfall ohne Skript */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; } }
.ruhig *, .ruhig *::before, .ruhig *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
.ruhig .band-zeile span { transform: none; }
