/* Wohnprojekt Zußdorf — art direction of the v6 film.
   Full-bleed painted worlds (sky, meadow, warm house wall, dusk) instead of boxes on paper;
   real photos as taped prints like the end card; DM Sans in ink, rust accents.
   Painted scenes: src/web_film.py (film4.py). Drawn pieces: src/web_art2.py, src/web_art3.py (sketch.py). */

@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

:root {
  /* a small palette sampled from the film: sky, meadow, dusk — one flat colour per section */
  --ink: #28252e;
  --ink-soft: #46424f;
  --navy: #28325a;
  --rust: #b44e36;
  --orange: #e46e42;
  --cream: #faf7f0;
  --sky: #b9d1e7;
  --meadow: #a8b771; /* = the garden scene's grass at its bottom edge, so it runs on seamlessly */
  --dusk: #3d4980;

  --f: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gut: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 400 clamp(17px, .45vw + 14.5px, 19px)/1.6 var(--f); overflow-x: hidden; }
img, video, iframe, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: #ecba54; color: var(--ink); }

h1, h2, h3 { font-family: var(--f); font-weight: 650; line-height: 1.06; margin: 0 0 .5em; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 1.5vw, 1.4rem); font-weight: 650; letter-spacing: -.01em; margin-bottom: .7em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.15rem, .9vw + .8rem, 1.4rem); line-height: 1.45; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 980px; }
.u { background: url("art2/underline.webp") 0 100% / 100% .28em no-repeat; padding-bottom: .1em; }

/* ---------------------------------------------------------------- crayon buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: 1em 1.7em .95em;
  font: 600 1rem/1 var(--f); text-decoration: none; border: 0; cursor: pointer; color: var(--ink);
  background: center / 100% 100% no-repeat; transition: transform .25s ease;
}
.btn svg { width: 1em; height: 1em; }
.btn--orange { background-image: url("art2/btn-rust.webp"); color: var(--cream); }
.btn--cream { background-image: url("art2/btn-cream.webp"); }
.btn--mustard { background-image: url("art2/btn-mustard.webp"); }
.btn:hover { transform: rotate(-1.5deg) translateY(-1px); }
.btn:focus-visible { outline: 2px dashed currentColor; outline-offset: 4px; }

/* ---------------------------------------------------------------- the painted grounds */
.sec { position: relative; padding: clamp(84px, 10vw, 150px) 0; overflow: hidden; }
.sky { background: var(--sky); }
.meadow { background: var(--meadow); }
.dusk { background: var(--dusk); color: var(--cream); }
.sec > .wrap { position: relative; z-index: 1; }

.cloud { position: absolute; z-index: 0; pointer-events: none; animation: drift 60s ease-in-out infinite alternate; opacity: .95; }
.cloud--a { width: clamp(200px, 24vw, 420px); top: 5%; right: 4%; }
.cloud--b { width: clamp(130px, 15vw, 280px); top: 52%; left: -2%; animation-duration: 75s; animation-delay: -20s; }
.cloud--c { width: clamp(160px, 18vw, 320px); top: 3%; left: 48%; animation-duration: 90s; animation-delay: -40s; }
@keyframes drift { from { transform: translateX(-4vw); } to { transform: translateX(5vw); } }
@media (max-width: 760px) { .cloud--b, .cloud--c { display: none; } .cloud--a { opacity: .7; } }

/* painted scenes run edge to edge and melt into the ground around them */
.band-wrap { margin-top: clamp(40px, 6vw, 90px); margin-bottom: calc(-1 * clamp(84px, 10vw, 150px) - 4px); background: linear-gradient(180deg, var(--sky) 50%, var(--meadow) 50%); }
.band { width: 100%; height: clamp(300px, 56vw, 820px); object-fit: cover; object-position: 50% 70%;
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 18%, #000 calc(100% - 44px), transparent 100%);
  mask: linear-gradient(180deg, transparent 0%, #000 18%, #000 calc(100% - 44px), transparent 100%); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--lage { align-items: start; margin-bottom: clamp(48px, 6vw, 80px); }
.split--lage .print { margin-top: 1rem; }
.split--text { grid-template-columns: .8fr 1.2fr; align-items: start; margin-top: clamp(56px, 7vw, 96px); }
.split--text h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
@media (max-width: 860px) { .split, .split--text { grid-template-columns: 1fr; } }
.intro { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }

/* ---------------------------------------------------------------- taped prints (the film's end card) */
.print { position: relative; margin: 0; background: var(--cream); padding: clamp(10px, 1.3vw, 18px) clamp(10px, 1.3vw, 18px) 0;
  box-shadow: 0 2px 3px rgba(60, 50, 50, .12), 0 18px 40px rgba(60, 50, 50, .22); }
.print img { width: 100%; height: auto; }
.print figcaption { padding: .8em .2em 1em; font-size: clamp(.95rem, 1.1vw, 1.1rem); color: var(--ink); line-height: 1.35; }
.print:not(:has(figcaption)) { padding-bottom: clamp(34px, 4vw, 56px); }
.print--l { transform: rotate(2deg); }
.print--r { transform: rotate(-1.6deg); max-width: 460px; }
.print::before, .print::after {
  content: ""; position: absolute; width: clamp(90px, 10vw, 150px); aspect-ratio: 360 / 96; z-index: 2; pointer-events: none;
  background: url("art3/tape-mustard.png") center / contain no-repeat;
}
.print::before { top: -18px; left: 6%; transform: rotate(-16deg); }
.print::after { top: -16px; right: 6%; transform: rotate(14deg); background-image: url("art3/tape-rose.png"); }
.reveal.print--l.is-in { transform: rotate(2deg); }
.reveal.print--r.is-in { transform: rotate(-1.6deg); }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s; }
.nav.is-solid, .nav.is-open { background: rgba(236, 238, 238, .9); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(40, 37, 46, .08); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font: 650 1.2rem/1 var(--f); letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) { font: 500 1rem/1 var(--f); text-decoration: none; color: var(--ink); padding: .3em 0; }
.nav__links a:not(.btn):hover { background: url("art2/underline.webp") 0 100% / 100% .26em no-repeat; }
.nav__links .btn { padding: .8em 1.4em .75em; font-size: .95rem; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav__toggle svg { width: 30px; height: 30px; }
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(236, 238, 238, .97); padding: .5rem var(--gut) 2rem; display: none; }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a:not(.btn) { display: block; font-size: 1.5rem; padding: .55rem 0; }
  .nav__links li:last-child { margin-top: 1rem; }
}

/* ---------------------------------------------------------------- hero: the film's village shot, full screen */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--sky); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
/* the sky of the shot, a touch calmer where the words sit */
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 58%; z-index: 1;
  background: linear-gradient(180deg, rgba(160, 196, 228, .5) 0%, rgba(190, 212, 232, .25) 55%, rgba(206, 219, 230, 0) 100%); }

.hero__in { position: relative; z-index: 2; padding-top: clamp(96px, 13vh, 140px); text-align: center; display: flex; flex-direction: column; align-items: center; }
/* like the film's end card: the words sit on a soft cream haze painted into the sky */
.hero__in::before { content: ""; position: absolute; z-index: -1; left: 50%; top: clamp(70px, 10vh, 110px); width: min(1000px, 96vw); height: calc(100% - clamp(40px, 6vh, 70px));
  transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(248, 242, 230, .9) 0%, rgba(248, 242, 230, .78) 55%, rgba(248, 242, 230, 0) 100%);
  filter: blur(18px); }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.6rem); line-height: 1; letter-spacing: -.035em; max-width: 22ch; margin-bottom: .3em; }
.hero .lead { max-width: 44ch; margin-bottom: 1.4rem; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1rem; }
@media (max-width: 600px) {
  .hero__in { padding-top: 92px; }
  .hero h1 { font-size: 2.3rem; }
  .hero .lead { font-size: 1.05rem; margin-bottom: 1.1rem; }
  .hero .actions .btn { padding: .85em 1.3em .8em; font-size: .95rem; }
  .hero__bg { object-position: 50% 100%; }
}

/* ---------------------------------------------------------------- film */
#film h2 { max-width: 16ch; }
#film { padding-bottom: clamp(40px, 5vw, 80px); }
#film + #haeuser { padding-top: clamp(40px, 5vw, 80px); }
.lights { position: absolute; top: 0; left: 0; width: 100%; height: auto; pointer-events: none; opacity: .95; }
.print--film { transform: rotate(-.6deg); padding-bottom: clamp(10px, 1.3vw, 18px); }
.reveal.print--film.is-in { transform: rotate(-.6deg); }
.film { position: relative; aspect-ratio: 16 / 9; background: var(--dusk); }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film__play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; background: none; cursor: pointer; }
.film__play[hidden] { display: none; }
.film__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__play .btn { position: relative; font-size: 1.15rem; padding: 1.1em 2em 1.05em; }
.film__play:hover .btn { transform: rotate(-1.5deg) scale(1.05); }

/* ---------------------------------------------------------------- lists with crayon dots */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.cols--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .cols, .cols--2 { grid-template-columns: 1fr; } }
.dots { list-style: none; margin: 0; padding: 0; }
.dots li { position: relative; padding: 0 0 .7em 1.9em; line-height: 1.4; }
.dots li::before { content: ""; position: absolute; left: 0; top: .12em; width: 1.1em; height: 1.1em; background: url("art2/dot-orange.webp") center / contain no-repeat; }

/* ---------------------------------------------------------------- 3D model (modell.html, full bleed in the sky) */
#haeuser { padding-bottom: clamp(84px, 10vw, 150px); }
.model { margin: 0 0 clamp(48px, 6vw, 80px); position: relative; z-index: 1; }
.model__stage { position: relative; height: clamp(440px, 78vh, 820px);
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 6%, #000 97%, transparent 100%);
  mask: linear-gradient(180deg, transparent 0%, #000 6%, #000 97%, transparent 100%); }
.model__stage iframe { width: 100%; height: 100%; border: 0; background: transparent; }
.model__cover { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: url("img/modell-preview.webp?v=2") center / cover no-repeat; }
.model__cover.is-live { background: rgba(0, 0, 0, 0); }
.model__cover[hidden] { display: none; }
.model__cover .btn { font-size: 1.1rem; box-shadow: none; }
.model figcaption { margin-top: 1rem; font-size: .95rem; color: var(--ink-soft); }
.model figcaption a { font-weight: 600; }

/* ---------------------------------------------------------------- lage */
.km { display: flex; flex-wrap: wrap; gap: 1.5rem clamp(32px, 6vw, 88px); margin-bottom: clamp(40px, 5vw, 64px); }
.km p { margin: 0; font-size: 1.1rem; font-weight: 500; }
.km b { display: block; font: 650 clamp(2.8rem, 5.4vw, 4.4rem)/1 var(--f); letter-spacing: -.035em; margin-bottom: .15rem; }

/* ---------------------------------------------------------------- zeitplan (house wall) */
.bunting { position: absolute; top: 0; left: 0; width: 100%; height: auto; pointer-events: none; }
#zeitplan { padding-top: clamp(110px, 12vw, 180px); padding-bottom: clamp(84px, 10vw, 150px); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(24px, 3vw, 40px); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.facts b { display: block; font: 650 clamp(3rem, 6vw, 5rem)/1 var(--f); letter-spacing: -.04em; color: var(--rust); }
.facts span { display: block; font-weight: 600; font-size: 1.15rem; margin-top: .35rem; }
.facts small { display: block; font-size: 1rem; color: var(--ink-soft); margin-top: .25rem; line-height: 1.45; max-width: 28ch; }

/* ---------------------------------------------------------------- kontakt */
#kontakt { padding-top: clamp(110px, 12vw, 170px); }
.people { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.people b { display: block; font-weight: 650; font-size: 1.25rem; }
.people a { color: #ffd98e; text-decoration: none; font-size: 1.08rem; font-weight: 500; word-break: break-word; }
.people a:hover { background: url("art2/underline.webp") 0 100% / 100% .28em no-repeat; }

/* ---------------------------------------------------------------- footer: the end card */
.foot { position: relative; overflow: hidden; padding-top: clamp(40px, 6vw, 90px); }
.foot__title { position: relative; z-index: 1; }
.foot__name { font: 650 clamp(2rem, 4.4vw, 3.4rem)/1.05 var(--f); letter-spacing: -.03em; margin: 0 0 .25em; }
.foot__url { color: #ffd98e; font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.35rem); margin: 0; }
.foot__village { position: relative; width: 100%; height: auto; margin-top: clamp(-40px, -2vw, -10px); }
.foot__bar { background: #4a565c; color: var(--cream); padding: 0 0 1.8rem; margin-top: -2px; font-size: .95rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-weight: 500; }
.foot nav { display: flex; gap: 1.6rem; }
.foot a { text-decoration: none; }
.foot a:hover { background: url("art2/underline.webp") 0 100% / 100% .28em no-repeat; }
@media (max-width: 700px) { .foot__village { height: 180px; object-fit: cover; object-position: 70% 100%; } }

/* legal pages */
.legal { padding: 140px 0 100px; min-height: 70vh; background: var(--sky); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.legal + .foot, .legal ~ .foot { padding-top: 0; }

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cloud { animation: none; }
  .btn { transition: none; }
}

main + .foot.dusk { margin-top: -2px; }

/* ---------------------------------------------------------------- soft seams between grounds: a painted cloud bank over a gradient, sometimes a stork */
.seam { position: relative; z-index: 2; height: clamp(170px, 18vw, 280px); margin: calc(-1 * clamp(50px, 6vw, 90px)) 0;
  background: linear-gradient(180deg, var(--from) 0%, var(--from) 12%, var(--to) 88%, var(--to) 100%); pointer-events: none; overflow: hidden; }
.seam__bank { position: absolute; left: 0; top: 50%; width: 100%; height: 72%; object-fit: cover; transform: translateY(-50%); }
.stork { position: absolute; top: 4%; left: 0; width: clamp(100px, 10vw, 170px); aspect-ratio: 440 / 300; animation: fly 30s linear infinite; }
.stork img { position: absolute; inset: 0; width: 100%; }
.stork .f0 { animation: flap-a .9s steps(1) infinite; }
.stork .f1 { animation: flap-b .9s steps(1) infinite; }
.stork--rev { top: 8%; animation-duration: 38s; animation-delay: -14s; }
@keyframes fly { 0% { transform: translate(-15vw, 12px); } 50% { transform: translate(52vw, -6px); } 100% { transform: translate(115vw, 10px); } }
@keyframes flap-a { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes flap-b { 0% { opacity: 0; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .stork { animation: none; transform: translateX(62vw); }
  .stork .f0, .stork .f1 { animation: none; } .stork .f1 { opacity: 0; }
}

/* hero sky: a painted sun and film clouds drifting at different speeds (parallax) */
.hero__sky { position: absolute; inset: 0 0 45%; z-index: 1; pointer-events: none; overflow: hidden; }
.sun { position: absolute; top: 9%; right: 10%; width: clamp(150px, 16vw, 280px); animation: sun 9s ease-in-out infinite alternate; }
@keyframes sun { from { transform: scale(1); opacity: .95; } to { transform: scale(1.04); opacity: 1; } }
.hcloud { position: absolute; left: 0; opacity: .95; animation: sail linear infinite; will-change: transform; }
.hcloud--0 { top: 6%;  width: clamp(220px, 30vw, 520px); animation-duration: 120s; animation-delay: -30s; }
.hcloud--1 { top: 26%; width: clamp(160px, 20vw, 360px); animation-duration: 95s;  animation-delay: -70s; opacity: .85; }
.hcloud--2 { top: 14%; width: clamp(120px, 13vw, 240px); animation-duration: 150s; animation-delay: -110s; opacity: .8; }
.hcloud--3 { top: 34%; width: clamp(180px, 24vw, 420px); animation-duration: 135s; animation-delay: -10s; }
@keyframes sail { from { transform: translateX(-40vw); } to { transform: translateX(110vw); } }
@media (max-width: 700px) { .hcloud--2, .hcloud--3 { display: none; } .sun { right: -4%; top: 10%; } }
@media (prefers-reduced-motion: reduce) {
  .sun, .hcloud { animation: none; }
  .hcloud--0 { transform: translateX(6vw); } .hcloud--1 { transform: translateX(58vw); }
  .hcloud--2 { transform: translateX(34vw); } .hcloud--3 { transform: translateX(74vw); }
}

/* the stork also crosses the hero sky, high up and a bit smaller (farther away) */
.stork--hero { top: 22%; width: clamp(80px, 7vw, 120px); animation-duration: 34s; animation-delay: -6s; z-index: 1; }
@media (max-width: 700px) { .stork--hero { top: 6%; } }

/* clean white veil from the top: calms the sky behind the headline */
.hero__veil { position: absolute; inset: 0 0 auto; height: 62%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .7) 30%, rgba(255, 255, 255, .3) 65%, rgba(255, 255, 255, 0) 100%); }

/* header appears only once the page is scrolled (on the hero it would just add noise) */
.nav { opacity: 0; transform: translateY(-100%); transition: opacity .35s, transform .35s, background .35s; }
.nav.is-solid, .nav.is-open { opacity: 1; transform: none; }
.legal ~ * .nav, body:has(.legal) .nav { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }

.lage__pic { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 3vw, 44px); }
.btn--small { padding: .8em 1.4em .75em; font-size: .95rem; }

/* sun and stork sit above the white veil; the sun's warm glow tints the veil around it */
.hero__front { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero__veil { background:
  radial-gradient(circle at 83% 14%, rgba(255, 222, 150, .75) 0%, rgba(255, 228, 170, .45) 14%, rgba(255, 236, 200, .15) 30%, rgba(255, 255, 255, 0) 46%),
  linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .7) 30%, rgba(255, 255, 255, .3) 65%, rgba(255, 255, 255, 0) 100%); }
.sun { top: 3%; right: 11%; }
.stork--hero { top: 50%; width: clamp(90px, 8vw, 140px); }
@media (max-width: 700px) {
  .hero__veil { background:
    radial-gradient(circle at 90% 16%, rgba(255, 222, 150, .7) 0%, rgba(255, 236, 200, .2) 28%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .7) 30%, rgba(255, 255, 255, .3) 65%, rgba(255, 255, 255, 0) 100%); }
  .sun { right: -4%; top: 8%; }
  .stork--hero { top: 44%; }
}

/* sky veil: light blue like the film's sky, warming to sunny yellow towards the sun; fades out above the houses */
.hero__veil { height: 50%; background:
  radial-gradient(ellipse 38% 70% at 84% 12%, rgba(255, 214, 128, .8) 0%, rgba(255, 224, 160, .55) 30%, rgba(255, 232, 190, .2) 60%, rgba(255, 236, 200, 0) 100%),
  linear-gradient(90deg, rgba(186, 212, 238, 0) 45%, rgba(255, 226, 170, .35) 100%),
  linear-gradient(180deg, rgba(178, 207, 236, .95) 0%, rgba(186, 212, 238, .75) 40%, rgba(196, 218, 238, .3) 75%, rgba(196, 218, 238, 0) 100%); }
.hero__in::before { background: radial-gradient(closest-side, rgba(214, 229, 243, .75) 0%, rgba(214, 229, 243, .55) 55%, rgba(214, 229, 243, 0) 100%); }
@media (max-width: 700px) {
  .hero__veil { height: 46%; background:
    radial-gradient(ellipse 60% 50% at 92% 12%, rgba(255, 214, 128, .75) 0%, rgba(255, 232, 190, .25) 55%, rgba(255, 236, 200, 0) 100%),
    linear-gradient(180deg, rgba(178, 207, 236, .95) 0%, rgba(186, 212, 238, .75) 40%, rgba(196, 218, 238, .3) 75%, rgba(196, 218, 238, 0) 100%); }
}

/* night sky: twinkling stars behind Kontakt and the footer */
.stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.star { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff6de;
  box-shadow: 0 0 calc(var(--s) * 2.5) rgba(255, 236, 190, .65); opacity: var(--lo);
  animation: twinkle var(--d) ease-in-out var(--delay) infinite; }
.star--big { background: none; box-shadow: none; }
.star--big::before, .star--big::after { content: ""; position: absolute; inset: 0; background: #fff6de;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); filter: drop-shadow(0 0 4px rgba(255, 230, 170, .9)); }
.star--big::after { transform: rotate(45deg) scale(.55); }
@keyframes twinkle {
  0%, 100% { opacity: var(--lo); transform: scale(.85); }
  18% { opacity: var(--hi); transform: scale(1.1); }
  34% { opacity: calc(var(--lo) + .15); transform: scale(.95); }
  61% { opacity: var(--hi); transform: scale(1.05); }
  78% { opacity: var(--lo); transform: scale(.9); }
}
.foot .foot__village { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .star { animation: none; opacity: var(--hi); } }

/* meadow flowers + tiny bees and butterflies in "Lage" */
.flowers { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fl { position: absolute; width: var(--s); height: var(--s); border-radius: 50% 45% 55% 48%; background: var(--c); opacity: var(--o);
  animation: sway var(--d) ease-in-out var(--delay) infinite alternate; }
@keyframes sway { from { transform: translate(-1px, 0); } to { transform: translate(1.5px, -1px); } }
.critter { position: absolute; display: block; opacity: .9; will-change: left, top; }
.critter--bf { width: clamp(20px, 1.8vw, 28px); }
.critter--bee { width: clamp(13px, 1.15vw, 17px); }
.critter svg { display: block; width: 100%; height: auto; overflow: visible; }
.critter .w { transform-origin: 50% 55%; animation: flutter .32s ease-in-out infinite alternate; }
.critter--bee .w { animation-duration: .06s; transform-origin: 50% 100%; }
@keyframes flutter { from { transform: scaleX(1); } to { transform: scaleX(.25); } }
@media (prefers-reduced-motion: reduce) { .fl, .critter .w { animation: none; } }

/* day into night: a long, gentle dusk gradient with a small glowing moon */
.seam--dusk { height: clamp(380px, 48vw, 720px); margin: calc(-1 * clamp(60px, 7vw, 110px)) 0;
  background: linear-gradient(180deg, var(--sky) 0%, #c3cde2 16%, #cfc6dc 32%, #d8b8c4 46%, #b39cba 58%, #7f78a8 72%, #5a5c93 86%, var(--dusk) 100%); }
.moon { position: absolute; right: 16%; top: 64%; width: clamp(26px, 2.6vw, 42px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fff6d6 0%, #f7e3a4 60%, #ecd08a 100%);
  box-shadow: 0 0 18px 6px rgba(255, 228, 160, .35), 0 0 60px 26px rgba(255, 224, 150, .14);
  animation: moonglow 7s ease-in-out infinite alternate; }
/* a soft shadow bite makes it a waxing moon */
.moon::after { content: ""; position: absolute; inset: -2% -2% -2% 28%; border-radius: 50%; background: rgba(90, 92, 147, .55); filter: blur(1.5px); }
@keyframes moonglow { from { box-shadow: 0 0 16px 5px rgba(255, 228, 160, .28), 0 0 50px 22px rgba(255, 224, 150, .1); }
  to { box-shadow: 0 0 22px 8px rgba(255, 228, 160, .42), 0 0 70px 30px rgba(255, 224, 150, .18); } }
@media (prefers-reduced-motion: reduce) { .moon { animation: none; } }

/* the meadow's flower dots reach up over the garden picture's soft lower edge, so flowers never fade out */
#lage { overflow: visible; }
#lage .flowers { top: -110px; z-index: 1; overflow: hidden; }

/* hero → "Wir": the film's flower strip blends softly into the meadow, and its flowers carry on */
.hero { background: linear-gradient(180deg, var(--sky) 50%, var(--meadow) 50%); }
#wir { overflow: visible; }
#wir .flowers { top: -100px; z-index: 1; bottom: auto; height: 70%; }
#wir > .wrap { z-index: 2; }

/* meadow sections carry the film's crayon grass texture, so the painted scenes run straight into them (no fades) */
/* texture only where the painted grass ends, fading into plain meadow behind the text */
.meadow { background: linear-gradient(180deg, rgba(168, 183, 113, 0) 0, var(--meadow) 380px),
  url("art3/meadow-tile.webp") 0 0 / 600px repeat, var(--meadow); }
.hero + #wir { margin-top: -3px; }
#wir .flowers { top: 0; }
#lage .flowers { top: 0; }

/* a short soft edge under each painted scene; the flower dots run across it so flowers never fade */
.hero__bg { -webkit-mask: linear-gradient(180deg, #000 calc(100% - 36px), transparent 100%); mask: linear-gradient(180deg, #000 calc(100% - 36px), transparent 100%); }
#wir .flowers { top: -34px; }
#lage .flowers { top: -44px; }

/* odometer roll-in for the big numbers */
.roll { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.roll__strip { font-style: normal; display: flex; flex-direction: column; transform: translateY(0);
  transition: transform 1.6s cubic-bezier(.2, .8, .15, 1) calc(var(--i) * 110ms); }
.roll__strip i { display: block; height: 1em; line-height: 1; font-style: normal; }
.roll, .roll-ch { font-style: normal; }
.is-rolled .roll__strip { transform: translateY(calc(var(--n) * -1em)); }

/* each rolling column is exactly as wide as its final digit (natural spacing); clipped only vertically */
.roll { position: relative; overflow: visible; clip-path: inset(0 -0.4em); }
.roll__sizer { visibility: hidden; font-style: normal; }
.roll__strip { position: absolute; top: 0; left: -0.4em; right: -0.4em; text-align: center; }

/* Kontakt: availability (crayon badge like the buttons) + the three steps of joining */
.free { margin: .4rem 0 2rem; cursor: default; font-size: 1.02rem; padding: 1em 1.8em .95em; }
.free:hover { transform: none; }
.steps { list-style: none; counter-reset: st; margin: 0 0 2.4rem; padding: 0; display: grid; gap: 1.3rem; }
.steps li { counter-increment: st; position: relative; padding-left: 3.4rem; min-height: 2.6rem; line-height: 1.45; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -.2rem; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; color: var(--ink);
  background: url("art3/step-disc.webp") center / contain no-repeat; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.2rem; top: 2.5rem; bottom: -1.2rem; width: 2px;
  background: repeating-linear-gradient(180deg, rgba(250, 246, 236, .5) 0 5px, transparent 5px 10px); border-radius: 2px; }
.steps b { display: block; font-weight: 650; font-size: 1.1rem; margin-bottom: .1rem; }
.steps span { color: rgba(250, 247, 240, .85); font-size: 1rem; }
