/* seite.css · lp-221 Bestattung Am Nussberg (Beispiel), Leibnitz.
 * Geschichte C „Unter dem Nussbaum“: der Ort ist der Held. Erzählform ort-als-held, Mechanik zoom-kamerafahrt,
 * Kopf bild-voll-text-unten, Bildsprache landschaft-licht (vielfalt.json).
 * Farben aus dem Abendlicht im Hain: Leinen, Walnuss, ein Akzent Rost. Kein Grün als Farbe, kein Blau.
 * Bewegung nur über --p aus bewegung.js (transform, opacity, mask), ohne JavaScript und in der ruhigen Fassung steht alles im Endzustand.
 * Der eine Regelbruch: die Leinenkarte mit „Ein Name. Ein Baum.“ ragt über die Unterkante des Tafel-Fotos. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --creme: #fbf3e6;
  --gold: #f2b779;          /* helles Laubgold für Schrift auf dunklem Foto */
  --walnuss: #2b1c12;
  --t-riesig: clamp(2.5rem, 0.9rem + 5vw, 6rem);
}
h1, h2, h3 { font-weight: 640; font-stretch: 92%; letter-spacing: -0.03em; }
.marke { gap: 10px; font-weight: 700; }
.marke-zeichen { width: 22px; height: 22px; color: var(--akzent); }
/* Kopfzeile: fester ruhiger Grund ohne Unschärfe (backdrop-filter kostet auf Intel-Grafik, Memory intel-backdrop-blend-kosten) */
.kopf-fest .kopfzeile { backdrop-filter: none; }

/* ---------- Kopf: Foto vollflächig, Riesenzeile unten, drei Ebenen ---------- */
.anfang { overflow: hidden; color: var(--creme); padding-bottom: clamp(28px, 6svh, 64px); isolation: isolate; }
.anfang-buehne { position: absolute; inset: 0; z-index: -1; }
.ebene { position: absolute; inset: 0; width: 100%; height: 100%; }
.ebene-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 42%; transform: translateY(calc(var(--p, 0) * 16%)) scale(calc(1.05 + var(--p, 0) * 0.07)); will-change: transform; }
.ebene-voegel { pointer-events: none; }
.ebene-schatten { background:
  linear-gradient(to top, rgba(33, 20, 11, 0.88) 0%, rgba(33, 20, 11, 0.6) 40%, rgba(33, 20, 11, 0) 72%),
  linear-gradient(to bottom, rgba(244, 234, 217, 0.62) 0, rgba(244, 234, 217, 0) 150px); }
.anfang-text { position: relative; z-index: 3; transform: translateY(calc(var(--p, 0) * -14svh)); }
.ort-zeile { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: var(--t-klein); color: var(--gold); }
.ort-zeile::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.anfang .titel { max-width: 13ch; color: var(--creme); font-weight: 620; font-stretch: 88%; }
.titel-zwei { display: block; color: var(--gold); }
.anfang-unten { display: grid; gap: 22px 64px; margin-top: 26px; align-items: end; }
@media (min-width: 960px) { .anfang-unten { grid-template-columns: minmax(0, 33rem) minmax(0, 26rem); justify-content: space-between; } }
.anfang .unterzeile { margin-top: 0; color: rgba(251, 243, 230, 0.9); }
.anfang .beleg { color: rgba(251, 243, 230, 0.78); }
.anfang .beleg strong { color: var(--creme); }
.anfang .handlung { margin-top: 0; }
.anfang .beruhigung { color: rgba(251, 243, 230, 0.82); max-width: 30rem; }
.anfang .beruhigung a { color: var(--creme); font-weight: 600; white-space: nowrap; }
/* Vorn: Gras aus demselben Foto, steigt beim Scrollen schneller als alles andere und schiebt sich über die Zeile */
.ebene-gras { position: absolute; left: -4%; bottom: -1px; z-index: 2; width: 108%; max-width: none; height: auto; pointer-events: none; transform: translateY(calc(var(--p, 0) * -38%)); will-change: transform; }

/* ---------- Kamerafahrt: Baum, Stamm, Rinde ---------- */
.naeher { background: var(--walnuss); color: var(--creme); }
.naeher-buehne { display: grid; }
.naeher-bild { position: relative; margin: 0; overflow: hidden; }
.naeher-bild img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
/* Abdunklung als Grund der Bildunterschrift, nicht als eigene Fläche über dem Foto: jede zusätzliche Vollbild-Fläche
   und will-change kosteten beim ersten Durchfahren auf Intel-Grafik rund 60 lange Bilder (gemessen 02.11.2026) */
.naeher-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 30svh var(--kante) clamp(28px, 7svh, 72px); background: linear-gradient(to top, rgba(33, 20, 11, 0.84), rgba(33, 20, 11, 0.5) 45%, rgba(33, 20, 11, 0)); }
.naeher-satz { display: block; max-width: 24ch; }
.naeher-text { font-family: var(--schrift-display); font-family: var(--schrift-display); font-size: var(--t-mittel); font-weight: 520; line-height: 1.25; letter-spacing: -0.01em; }
.naeher-nr { display: block; margin-bottom: 8px; font-size: clamp(2.6rem, 1.2rem + 5vw, 6.2rem); font-weight: 650; font-stretch: 86%; line-height: 0.95; letter-spacing: -0.04em; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .js .naeher { height: 380svh; }
  .js .naeher-buehne { position: sticky; top: 0; height: 100svh; display: block; overflow: hidden; }
  .js .naeher-bild { position: absolute; inset: 0; }
  .js .naeher-bild img { height: 100%; aspect-ratio: auto; }
  .js .n1 { z-index: 1; opacity: clamp(0, (0.47 - var(--p, 0)) / 0.02, 1); }   /* verdeckt: nicht mehr mitzeichnen */
  .js .n1 img { transform-origin: 61% 70%; transform: scale(calc(1 + min(var(--p, 0), 0.44) * 1.4)); }
  .js .n2 { z-index: 2; opacity: min(clamp(0, (var(--p, 0) - 0.34) / 0.1, 1), clamp(0, (0.85 - var(--p, 0)) / 0.02, 1)); }
  .js .n2 img { transform-origin: 50% 52%; transform: scale(calc(1.02 + clamp(0, var(--p, 0) - 0.34, 0.42) * 1.1)); }
  .js .n3 { z-index: 3; opacity: clamp(0, (var(--p, 0) - 0.72) / 0.1, 1); }
  .js .n3 img { transform-origin: 70% 40%; transform: scale(calc(1.02 + clamp(0, var(--p, 0) - 0.72, 0.28) * 0.5)); }
  .js .n1 .naeher-text { opacity: clamp(0, (0.32 - var(--p, 0)) / 0.08, 1); }
  .js .n2 .naeher-text { transform: translateY(calc((1 - clamp(0, (var(--p, 0) - 0.4) / 0.12, 1)) * 30px)); }
  .js .n3 .naeher-text { transform: translateY(calc((1 - clamp(0, (var(--p, 0) - 0.78) / 0.1, 1)) * 30px)); }
}

/* ---------- Der Ort: drei Papierschichten aus einem Foto ---------- */
.ort-raster { display: grid; gap: 36px clamp(32px, 5vw, 80px); }
@media (min-width: 960px) {
  .ort-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); align-items: start; }
  .ort-kopf { grid-column: 1; grid-row: 1; }
  .schichten { grid-column: 2; grid-row: 1 / span 2; }
  .ort-fakten { grid-column: 1; grid-row: 2; }
}
.ort h2 { font-size: var(--t-gross); max-width: 13ch; }
.schichten { position: relative; margin: 0; aspect-ratio: 16 / 11; overflow: hidden; background: var(--walnuss); border-radius: 4px; }
.schicht { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.s1 { clip-path: inset(0 0 63% 0); transform: translateX(calc(max(0, 0.55 - var(--p, 1)) * -150px)) scale(1.18); }
.s2 { clip-path: inset(36.6% 0 31.6% 0); transform: translateX(calc(max(0, 0.55 - var(--p, 1)) * 110px)) scale(1.18); }
.s3 { clip-path: inset(68.2% 0 0 0); transform: translateX(calc(max(0, 0.55 - var(--p, 1)) * -70px)) scale(1.18); }
.ort-fakten { margin: 0; display: grid; gap: 0; }
.ort-fakten div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 4px 18px; padding: 16px 0; border-top: 1px solid var(--linie); }
.ort-fakten dt { font-family: var(--schrift-display); font-weight: 650; color: var(--akzent); }
.ort-fakten dd { margin: 0; color: var(--text-2); }

/* ---------- Wendepunkt: die Tafel ---------- */
.tafel { position: relative; padding-bottom: var(--abstand); }
.tafel-bild { margin: 0; height: min(88svh, 62vw); min-height: 360px; overflow: hidden; }
.tafel-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: translateY(calc((var(--p, 0.5) - 0.5) * -6%)) scale(1.08); will-change: transform; }
.tafel-text { position: relative; z-index: 1; margin-top: calc(-1 * clamp(90px, 16svh, 190px)); }
.tafel-text > * { max-width: 46rem; }
.tafel-text { padding: clamp(26px, 4vw, 52px) clamp(22px, 4vw, 56px) 0 0; }
.tafel-text::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: -16px; right: 0; left: calc(-1 * var(--rand)); max-width: 56rem; background: var(--grund); border-radius: 0 6px 0 0; }
@media (min-width: 1200px) { .tafel-text::before { left: calc(-1 * (100vw - min(100vw - 2 * var(--rand), var(--inhalt))) / 2); } }
.tafel-titel { font-size: clamp(2.3rem, 1rem + 5vw, 6rem); max-width: 12ch;
  -webkit-mask-image: linear-gradient(100deg, #000 calc(var(--p, 1) * 320% - 60%), rgba(0, 0, 0, 0.16) calc(var(--p, 1) * 320% - 20%));
          mask-image: linear-gradient(100deg, #000 calc(var(--p, 1) * 320% - 60%), rgba(0, 0, 0, 0.16) calc(var(--p, 1) * 320% - 20%)); }

/* ---------- Der Abschied: Foto fährt seitwärts, Fließtext daneben ---------- */
.abschied-raster { display: grid; gap: 36px; }
@media (min-width: 960px) { .abschied-raster { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 5vw, 88px); padding-right: var(--kante); } }
.abschied-bild { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 0 4px 4px 0; }
.abschied-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: translateX(calc((var(--p, 0.5) - 0.5) * -7%)) scale(1.12); will-change: transform; }
.abschied-text { padding-inline: var(--rand); }
@media (min-width: 960px) { .abschied-text { padding-inline: 0; } }
.abschied h2 { font-size: var(--t-gross); max-width: 11ch; margin-bottom: 26px; }
.abschied-text p + p { margin-top: 1em; }
.abschied-text p { max-width: 36rem; color: var(--text-2); }
.abschied-klein { padding-top: 18px; border-top: 1px solid var(--linie); font-size: var(--t-klein); }

/* ---------- Kosten: vier Stämme, Höhe = Preis ---------- */
.kosten { background: var(--grund-2); }
.kosten .innen { display: grid; gap: 40px clamp(32px, 5vw, 80px); }
@media (min-width: 960px) {
  .kosten .innen { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
  .kosten-urne { grid-column: 2; grid-row: 1; }
  .staemme, .kosten-fuss { grid-column: 1 / -1; }
}
.kosten h2 { font-size: var(--t-gross); max-width: 12ch; }
.kosten-urne { margin: 0; overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 10; }
.kosten-urne img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 60%; }
.staemme { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 3vw, 44px); align-items: stretch; height: clamp(420px, 44vw, 560px); border-bottom: 2px solid var(--walnuss); }
.staemme li { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.st1 { --h: 0.28; } .st2 { --h: 0.40; } .st3 { --h: 0.50; } .st4 { --h: 1; }
.stamm { order: 4; display: block; width: clamp(34px, 38%, 92px); height: calc(var(--h) * 52%); margin-top: 18px; border-radius: 40% 40% 0 0 / 12px 12px 0 0;
  background: repeating-linear-gradient(90deg, #4b3221 0 7px, #5e412c 7px 11px, #3e281a 11px 16px); transform-origin: 50% 100%;
  transform: scaleY(clamp(0.1, (var(--p, 1) - 0.04) * 3.2, 1)); transition: none; }
.st4 .stamm { background: repeating-linear-gradient(90deg, #8a3a17 0 7px, #a3411b 7px 11px, #7a3214 11px 16px); }
.stamm-preis { font-family: var(--schrift-display); font-size: clamp(1.35rem, 0.9rem + 1.6vw, 2.3rem); font-weight: 650; font-stretch: 88%; letter-spacing: -0.02em; line-height: 1.05; }
.stamm-name { margin-top: 6px; font-weight: 650; }
.stamm-info { margin-top: 2px; color: var(--text-2); font-size: var(--t-klein); line-height: 1.4; }
.kosten-fuss { color: var(--text-3); font-size: var(--t-klein); }
@media (max-width: 700px) {
  .staemme { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; row-gap: 36px; border-bottom: 0; }
  .staemme li { border-bottom: 2px solid var(--walnuss); }
  .stamm { height: calc(var(--h) * 150px); }
}

/* ---------- Plätze: Formular neben dem Plan des Hains ---------- */
.plaetze { position: relative; }
.plaetze-plan { margin-top: calc(-1 * var(--abstand)); margin-bottom: 48px; height: 42svh; overflow: hidden; }
.plaetze-plan img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.plaetze h2 { font-size: var(--t-gross); max-width: 14ch; }
.plaetze .abschnitt-satz { margin-bottom: 32px; }
@media (min-width: 960px) {
  .plaetze-plan { position: absolute; top: 0; right: 0; bottom: 0; width: 44%; height: auto; margin: 0; }
  .plaetze-plan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--grund) 0, rgba(244, 234, 217, 0) 22%); }
  .plaetze-innen > * { max-width: min(560px, 50vw); }
  .plaetze .kontakt-raster { grid-template-columns: minmax(0, 1fr); }
}
.direkt-titel { font-weight: 650; color: var(--akzent); }
.direkt a[href^="tel"] { font-family: var(--schrift-display); font-size: var(--t-gross); font-weight: 650; letter-spacing: -0.03em; }

/* ---------- Rechtliches */
.seite-kopf { padding-top: calc(var(--kopf-hoehe) + clamp(48px, 8vw, 120px)); padding-bottom: clamp(32px, 5vw, 64px); }
.seite-kopf h1 { font-size: var(--t-gross); }
.lesetext { max-width: 68ch; }
.lesetext h2 { font-size: var(--t-mittel); margin: 2.2em 0 0.6em; }
.lesetext p + p { margin-top: 1em; }
.lesetext dl div { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 4px 20px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.lesetext dt { color: var(--text-2); }
.lesetext dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .lesetext dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------- Handy: eine Stufe kleiner, Baum ganz im Bild */
@media (max-width: 600px) {
  .tafel-text { margin-top: -56px; }
  .tafel-bild { height: 56svh; min-height: 300px; }
  .anfang .titel { font-size: clamp(2.3rem, 1.2rem + 6vw, 3rem); }
  .ebene-foto img { object-position: 64% 42%; }
  .naeher-nr { font-size: clamp(2.3rem, 1.2rem + 6vw, 3rem); }
}

/* ---------- Niedrige Fenster (Laptop mit Zoom, 640 × 440): Überschrift und Knopf bleiben im ersten Bildschirm */
@media (max-height: 620px) and (min-width: 601px) {
  .anfang .titel { font-size: clamp(2rem, 1rem + 6.5svh, 3.4rem); max-width: 18ch; }
  .anfang-unten { margin-top: 14px; gap: 12px 40px; }
  .anfang .unterzeile { font-size: 1rem; }
  .anfang .beleg { margin-top: 8px; }
  .anfang .beruhigung { font-size: 0.85rem; }
}

/* ---------- Ruhige Fassung: keine Bewegung, alles sofort an seinem Platz */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
