/* Fotoschablone — ruhige Eleganz (Papierton, Serifen), darüber die Bewegung.
   Nur lokale Windows-Schriften; auf anderen Geräten greifen Georgia/Serif. */
:root {
  --papier: #faf8f3;
  --papier-2: #f2eee5;
  --tinte: #23211d;
  --grau: #7c766b;
  --linie: #e3ded3;
  --akzent: #6f6449;
  --nacht: #141412;
  --serif: "Sitka Text", "Sitka Small", Georgia, "Times New Roman", serif;
  --titel: "Sitka Banner", "Sitka Display", Georgia, "Times New Roman", serif;
  --sanft: cubic-bezier(.2, .8, .2, 1);
  --kopf-h: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--tinte); font-family: var(--serif);
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { -webkit-user-drag: none; user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
.zier { color: var(--akzent); letter-spacing: .6em; font-size: 13px; }
.klein-kaps { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--grau); }
.sprung { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--tinte); color: var(--papier); padding: 8px 14px; }
.sprung:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

/* ---------- Vorhang (Ladebild) ---------- */
#vorhang {
  position: fixed; inset: 0; z-index: 60; background: var(--papier);
  display: grid; place-items: center; align-content: center; gap: 22px;
  animation: vorhang-weg .6s ease 5s forwards;   /* Sicherung, falls JS hängt */
}
#vorhang .v-wort { font-family: var(--titel); font-size: clamp(44px, 7vw, 84px); letter-spacing: .04em; }
#vorhang .v-linie { width: min(240px, 50vw); height: 1px; background: var(--linie); overflow: hidden; }
#vorhang .v-linie i { display: block; height: 100%; background: var(--akzent); transform-origin: left; transform: scaleX(0); transition: transform .5s ease; }
@keyframes vorhang-weg { to { opacity: 0; visibility: hidden; } }
html.ruhig #vorhang, html.ohne-vorhang #vorhang { display: none; }

/* ---------- Kopfleiste ---------- */
.kopf {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--kopf-h);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 clamp(16px, 4vw, 48px);
  font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
  color: #fff; transition: color .4s ease, background-color .4s ease, transform .5s var(--sanft), border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.kopf .marke { text-decoration: none; font-family: var(--titel); font-size: 20px; letter-spacing: .14em; text-transform: none; }
.kopf nav a { text-decoration: none; margin-left: 30px; opacity: .85; position: relative; }
.kopf nav a::after { content: ""; position: absolute; left: 0; right: .24em; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--sanft); }
.kopf nav a:hover { opacity: 1; }
.kopf nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.kopf.auf-papier { color: var(--tinte); background: rgba(250, 248, 243, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: var(--linie); }
.kopf.versteckt { transform: translateY(-100%); }

/* ---------- Szene 1: Titelbild ---------- */
.szene-titel { position: relative; height: 100svh; min-height: 520px; background: var(--papier); overflow: hidden; }
.rahmen {
  position: absolute; inset: 0; overflow: hidden; background: var(--nacht);
  transform-origin: 50% 50%; will-change: transform; border-radius: 0;
}
.rahmen canvas, .titel-css, .titel-css img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.titel-css img { object-fit: cover; opacity: 0; transition: opacity 2s ease; transform: scale(1.14); }
.titel-css img.an { opacity: 1; }
.titel-css img.zoom { animation: titel-zoom 12s linear forwards; }
@keyframes titel-zoom { from { transform: scale(1.14); } to { transform: scale(1.04); } }
.rahmen canvas { opacity: 0; transition: opacity 1.2s ease; }
.rahmen.gl canvas { opacity: 1; }
.rahmen.gl .titel-css { display: none; }
.schleier {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 60%, rgba(0,0,0,0) 40%, rgba(0,0,0,.28) 100%),
    linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,0) 26%, rgba(0,0,0,0) 52%, rgba(0,0,0,.58));
}
.titel-text {
  position: absolute; left: 0; right: 0; bottom: clamp(112px, 15vh, 170px);
  text-align: center; color: #fff; padding: 0 16px; pointer-events: none;
}
.titel-text h1 {
  margin: 0; font-family: var(--titel); font-weight: 400;
  font-size: clamp(64px, 13vw, 190px); line-height: .9; letter-spacing: .02em;
  text-shadow: 0 2px 40px rgba(0,0,0,.25);
}
.titel-text h1 .zeichen { display: inline-block; }
.titel-text p { margin: 18px 0 0; font-size: clamp(12px, 1.4vw, 15px); letter-spacing: .38em; text-transform: uppercase; opacity: .92; }
.titel-info {
  position: absolute; left: clamp(16px, 4vw, 48px); right: clamp(16px, 4vw, 48px); bottom: 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: rgba(255,255,255,.82); font-size: 13px; letter-spacing: .08em; pointer-events: none;
}
.titel-info .datum { transition: opacity .8s ease; min-height: 1em; }
.titel-info .lauf { display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .2em; }
.titel-info .lauf i { width: 64px; height: 1px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.titel-info .lauf i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(var(--lauf, 0)); transform-origin: left; }
.rahmen-um { position: absolute; inset: 0; pointer-events: none; }
.rahmen-um > * { position: absolute; left: 0; right: 0; text-align: center; opacity: 0; }
.rahmen-um .um-oben { top: 0; height: 20svh; display: grid; place-content: center; padding-top: calc(var(--kopf-h) * .5); }
.rahmen-um .um-oben b { font-family: var(--titel); font-weight: 400; font-size: clamp(30px, 4vw, 50px); letter-spacing: .03em; }
.rahmen-um .um-unten { bottom: 0; height: 20svh; display: grid; place-content: center; }
.scroll-hinweis {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: #fff; opacity: .78;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase; display: grid; justify-items: center; gap: 10px; pointer-events: none;
}
.scroll-hinweis i { width: 1px; height: 38px; background: linear-gradient(#fff, rgba(255,255,255,0)); transform-origin: top; animation: tropfen 2.2s ease-in-out infinite; }
@keyframes tropfen { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Einleitung ---------- */
.einleitung { max-width: 680px; margin: 0 auto; padding: clamp(80px, 12vw, 150px) 16px clamp(70px, 10vw, 130px); text-align: center; }
.einleitung h2 { font-family: var(--titel); font-weight: 400; font-size: clamp(34px, 5vw, 58px); line-height: 1.08; margin: 18px 0 22px; }
.einleitung p { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.8; color: #4a463e; margin: 0; text-wrap: pretty; }
.zahlen { display: flex; justify-content: center; gap: clamp(26px, 7vw, 76px); margin-top: 48px; }
.zahlen div { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--grau); }
.zahlen b { display: block; font-family: var(--titel); font-weight: 400; font-size: clamp(36px, 4.4vw, 52px); letter-spacing: 0; color: var(--tinte); margin-bottom: 6px; font-variant-numeric: tabular-nums; }

/* ---------- Szene 2: Wort als Fenster ---------- */
.szene-wort { position: relative; height: 100svh; overflow: hidden; background: var(--papier); }
.wort-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
.wort-maske { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform-origin: 50% 50%; }
.wort-maske .flaeche { fill: var(--papier); }
.wort-maske text { font-family: var(--titel); font-weight: 400; }
.wort-zeile { position: absolute; left: 0; right: 0; bottom: clamp(36px, 9vh, 90px); text-align: center; padding: 0 16px; }
.wort-zeile p { margin: 0; font-size: clamp(15px, 1.5vw, 18px); color: var(--grau); font-style: italic; }
.wort-zeile .klein-kaps { display: block; margin-bottom: 12px; }
.wort-oben { position: absolute; left: 0; right: 0; top: calc(var(--kopf-h) + clamp(16px, 6vh, 60px)); text-align: center; }
.wort-unter {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 120px clamp(16px, 5vw, 64px) clamp(32px, 7vh, 72px);
  color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.wort-unter h2 { margin: 0; font-family: var(--titel); font-weight: 400; font-size: clamp(38px, 6vw, 84px); line-height: 1; }
.wort-unter p { margin: 0; max-width: 380px; font-size: 16px; line-height: 1.7; opacity: .9; }
.wort-unter small { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }

/* ---------- Szene 3: Augenblicke (waagerechte Strecke) ---------- */
.szene-strecke { position: relative; background: var(--papier); overflow: hidden; }
.strecke-pin { height: 100svh; display: flex; align-items: center; position: relative; }
.strecke-bahn { flex: none; width: max-content; display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); padding: 0 clamp(16px, 6vw, 96px); will-change: transform; }
.strecke-kopf { flex: none; width: min(520px, 80vw); padding-right: clamp(8px, 3vw, 40px); }
.strecke-kopf h2 { font-family: var(--titel); font-weight: 400; font-size: clamp(44px, 5.4vw, 84px); line-height: .95; margin: 18px 0 22px; }
.strecke-kopf p { font-size: 17px; line-height: 1.75; color: #4a463e; margin: 0; }
.strecke-kopf .weiter { display: inline-flex; gap: 12px; align-items: center; margin-top: 28px; }
.strecke-kopf .weiter i { width: 56px; height: 1px; background: var(--akzent); }
.strecke-bild { flex: none; margin: 0; }
.strecke-bild button { display: block; position: relative; overflow: hidden; background: var(--papier-2); border-radius: 2px; }
.strecke-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.strecke-bild figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 13px; color: var(--grau); letter-spacing: .06em; }
.strecke-bild figcaption b { font-weight: 400; color: var(--tinte); font-variant-numeric: tabular-nums; }
.strecke-ende { flex: none; width: min(360px, 70vw); text-align: center; }
.strecke-ende b { display: block; font-family: var(--titel); font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); margin: 14px 0; }
.strecke-zahl { position: absolute; right: clamp(16px, 4vw, 48px); bottom: 28px; font-size: 12px; letter-spacing: .24em; color: var(--grau); font-variant-numeric: tabular-nums; }
.strecke-leiste { position: absolute; left: clamp(16px, 4vw, 48px); right: clamp(120px, 14vw, 200px); bottom: 34px; height: 1px; background: var(--linie); }
.strecke-leiste i { position: absolute; inset: 0; background: var(--akzent); transform: scaleX(0); transform-origin: left; }

/* ---------- Szene 4: Jahre als Kartenstapel ---------- */
.szene-jahre { position: relative; background: var(--papier-2); overflow: hidden; }
.jahre-pin { height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(16px, 5vw, 80px); padding: var(--kopf-h) clamp(16px, 6vw, 96px) 24px; }
.jahre-text h2 { font-family: var(--titel); font-weight: 400; font-size: clamp(42px, 6vw, 88px); line-height: .95; margin: 18px 0 22px; }
.jahre-text p { font-size: 17px; line-height: 1.75; color: #4a463e; margin: 0 0 26px; max-width: 420px; }
.jahre-text .jahr-gross { font-family: var(--titel); font-size: clamp(64px, 9vw, 140px); line-height: 1; color: var(--akzent); opacity: .22; font-variant-numeric: lining-nums tabular-nums; }
.stapel { position: relative; height: min(70svh, 640px); }
.jahr-karte {
  position: absolute; left: 50%; top: 50%; width: min(440px, 80vw); aspect-ratio: 4 / 5; max-height: 100%;
  transform: translate(-50%, -50%); overflow: hidden; border-radius: 6px; background: var(--nacht); color: #fff; text-align: left;
  box-shadow: 0 30px 60px -20px rgba(35, 33, 29, .45), 0 2px 6px rgba(35, 33, 29, .12);
  will-change: transform;
}
.jahr-karte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jahr-karte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.62)); }
.jahr-karte .jk { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 1; }
.jahr-karte .jk b { display: block; font-family: var(--titel); font-weight: 400; font-size: clamp(56px, 7vw, 92px); line-height: .9; }
.jahr-karte .jk span { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; margin-top: 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
.jahr-karte:hover .jk span u { text-decoration-thickness: 1px; }
.jahr-karte .jk u { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 2px; }

/* ---------- Galerie ---------- */
.jahresleiste {
  position: sticky; top: var(--kopf-h); z-index: 15; background: rgba(250, 248, 243, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
  display: flex; justify-content: center; gap: 4px 28px; padding: 14px 16px; flex-wrap: wrap;
}
.jahresleiste button { font-size: 15px; letter-spacing: .12em; color: var(--grau); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .3s ease, border-color .3s ease; }
.jahresleiste button:hover { color: var(--tinte); }
.jahresleiste button[aria-pressed="true"] { color: var(--tinte); border-bottom-color: var(--akzent); }
.galerie-kopf { text-align: center; padding: clamp(70px, 10vw, 120px) 16px 10px; }
.galerie-kopf h2 { font-family: var(--titel); font-weight: 400; font-size: clamp(40px, 5.4vw, 72px); margin: 16px 0 0; }
.galerie { padding: 20px clamp(16px, 4vw, 48px) 60px; min-height: 60vh; }
.jahrkopf { display: flex; align-items: baseline; gap: 18px; margin: 40px 0 18px; font-family: var(--titel); font-size: clamp(30px, 3.6vw, 44px); }
.jahrkopf::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.jahrkopf small { font-family: var(--serif); font-size: 12px; letter-spacing: .2em; color: var(--grau); text-transform: uppercase; }
.zeile { display: flex; gap: 8px; margin-bottom: 8px; }
.kachel { position: relative; overflow: hidden; background: var(--papier-2); flex: none; display: block; }
.kachel img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .9s ease, transform 1.4s var(--sanft); }
.kachel.da img.geladen { opacity: 1; transform: scale(1); }
html.ruhig .kachel img.geladen, html.statisch .kachel img.geladen { opacity: 1; transform: none; }
.kachel span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: 13px; letter-spacing: .05em;
  background: linear-gradient(transparent, rgba(0,0,0,.5)); opacity: 0; transition: opacity .4s ease;
}
@media (hover: hover) {
  .kachel:hover span { opacity: 1; }
  .kachel.da:hover img.geladen { transform: scale(1.04); transition: transform .9s var(--sanft); }
}
.kachel:focus-visible span { opacity: 1; }
footer.fuss { text-align: center; padding: 70px 16px 80px; color: var(--grau); font-size: 14px; border-top: 1px solid var(--linie); margin: 0 clamp(16px, 4vw, 48px); line-height: 1.8; }
footer.fuss .zier { display: block; margin-bottom: 14px; }
footer.fuss small { display: block; font-size: 12px; opacity: .8; }
footer.fuss .kontakt { display: block; color: inherit; text-underline-offset: 3px; }
footer.fuss .kontakt:hover { color: var(--tinte); }

/* View Transition: Kachel → Großansicht */
::view-transition-group(foto) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(foto), ::view-transition-new(foto) { height: 100%; width: 100%; object-fit: cover; overflow: clip; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
::view-transition-group(*) { animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

/* ---------- Großansicht ---------- */
#gross { position: fixed; inset: 0; z-index: 40; color: #e9e5dc; touch-action: none; }
#gross[hidden] { display: none; }
.g-grund { position: absolute; inset: 0; background: var(--nacht); }
.g-buehne { position: absolute; left: 96px; right: 96px; top: 64px; bottom: 92px; }
#g-bild { position: absolute; left: 0; top: 0; display: block; box-shadow: 0 24px 70px rgba(0,0,0,.5); will-change: transform; }
#g-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; }
.g-kopf, .g-fuss { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 3vw, 32px); transition: opacity .4s ease; }
.g-kopf { top: 0; height: 64px; font-size: 12px; letter-spacing: .24em; font-variant-numeric: tabular-nums; }
.g-fuss { bottom: 0; height: 92px; flex-direction: column; justify-content: center; text-align: center; padding-bottom: env(safe-area-inset-bottom); }
.g-fuss .g-datum { font-size: 16px; letter-spacing: .06em; }
.g-fuss small { margin-top: 6px; color: #8f897d; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
#gross.ruhe .g-kopf, #gross.ruhe .g-fuss, #gross.ruhe .gk { opacity: 0; pointer-events: none; }
.g-zu { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; padding: 12px 0 12px 12px; }
.g-zu b { font-size: 26px; font-weight: 400; line-height: 0; }
.gk { position: absolute; top: 50%; z-index: 2; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; display: grid; place-items: center; color: #e9e5dc; border: 1px solid rgba(233,229,220,.25); transition: background-color .3s ease, opacity .4s ease; }
.gk:hover { background: rgba(233,229,220,.1); }
.gk.zurueck { left: clamp(10px, 2vw, 28px); }
.gk.vor { right: clamp(10px, 2vw, 28px); }
.gk svg { width: 20px; height: 20px; }

/* ---------- Eigener Mauszeiger (nur Desktop) ---------- */
.zeiger { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; display: none; }
html.eigener-zeiger .zeiger { display: block; }
html.eigener-zeiger, html.eigener-zeiger * { cursor: none !important; }
.zeiger .ring {
  position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 1px solid rgba(35,33,29,.55); display: grid; place-items: center;
  transition: width .35s var(--sanft), height .35s var(--sanft), margin .35s var(--sanft), background-color .35s ease, border-color .35s ease;
  mix-blend-mode: normal;
}
.zeiger .punkt { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--tinte); transition: opacity .2s ease; }
.zeiger .ring span { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--tinte); opacity: 0; transition: opacity .25s ease; white-space: nowrap; padding-left: .24em; }
.zeiger.hell .ring { border-color: rgba(255,255,255,.7); }
.zeiger.hell .punkt { background: #fff; }
.zeiger.ansehen .ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: rgba(250,248,243,.92); border-color: transparent; }
.zeiger.ansehen .ring span { opacity: 1; }
.zeiger.ansehen .punkt { opacity: 0; }
.zeiger.knopf .ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--akzent); }
.zeiger.weg { opacity: 0; }

/* ---------- Handy: untere Leiste + Unterblatt ---------- */
.unten-leiste, .blatt, .blatt-grund { display: none; }
@media (max-width: 760px) {
  :root { --kopf-h: 56px; }
  .kopf nav { display: none; }
  .titel-info .lauf i { width: 36px; }
  .rahmen-um .um-oben { height: 15svh; padding-top: calc(var(--kopf-h) * .6); }
  .rahmen-um .um-oben b { font-size: 28px; }
  .rahmen-um .um-unten { display: none; }
  .wort-unter { padding-bottom: 96px; }
  .wort-unter p { font-size: 15px; }
  .scroll-hinweis { display: none; }
  .jahre-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding-top: calc(var(--kopf-h) + 12px); padding-bottom: 96px; gap: 8px; }
  .jahre-text h2 { margin: 10px 0 8px; }
  .jahre-text p { font-size: 15px; margin-bottom: 0; }
  .jahre-text .jahr-gross { display: none; }
  .stapel { height: auto; min-height: 0; align-self: stretch; }
  .jahr-karte { width: min(300px, 74vw); max-height: 100%; }
  .jahr-karte .jk { left: 18px; right: 18px; bottom: 18px; }
  .jahr-karte .jk span { letter-spacing: .14em; }
  .jahr-karte .jk u { display: none; }
  .strecke-kopf h2 { margin: 12px 0 14px; }
  .strecke-kopf p { font-size: 15px; }
  .zeile { gap: 4px; margin-bottom: 4px; }
  .jahresleiste { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 22px; padding: 12px 16px; }
  .jahresleiste::-webkit-scrollbar { display: none; }
  .jahresleiste button { flex: none; }
  .gk { display: none; }
  .g-buehne { left: 0; right: 0; top: 56px; bottom: 84px; }
  .g-kopf { height: 56px; }
  .g-fuss { height: 84px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  .unten-leiste {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; height: 60px; border-radius: 20px;
    background: rgba(250, 248, 243, .9); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 10px 30px -8px rgba(35,33,29,.35), 0 0 0 1px rgba(35,33,29,.06);
    transform: translateY(140%); transition: transform .55s var(--sanft);
  }
  .unten-leiste.da { transform: none; }
  .unten-leiste button, .unten-leiste a { display: grid; place-items: center; align-content: center; gap: 3px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--grau); text-decoration: none; }
  .unten-leiste svg { width: 20px; height: 20px; color: var(--tinte); }
  .blatt-grund { display: block; position: fixed; inset: 0; z-index: 34; background: rgba(20,20,18,.4); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
  .blatt-grund.offen { opacity: 1; pointer-events: auto; }
  .blatt {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; max-height: 78svh; overflow-y: auto;
    background: var(--papier); border-radius: 22px 22px 0 0; padding: 10px 16px calc(24px + env(safe-area-inset-bottom));
    box-shadow: 0 -20px 50px -10px rgba(20,20,18,.35);
    transform: translateY(105%); transition: transform .5s var(--sanft); touch-action: pan-y; overscroll-behavior: contain;
  }
  .blatt.offen { transform: none; }
  .blatt.zieht { transition: none; }
  .blatt .griff { width: 40px; height: 4px; border-radius: 2px; background: var(--linie); margin: 4px auto 14px; }
  .blatt h3 { font-family: var(--titel); font-weight: 400; font-size: 28px; margin: 0 4px 12px; }
  .blatt-liste { display: grid; gap: 8px; }
  .blatt-liste button { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; text-align: left; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--linie); }
  .blatt-liste button[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--akzent); }
  .blatt-liste img, .blatt-liste .alle-symbol { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--papier-2); display: grid; place-items: center; color: var(--akzent); }
  .blatt-liste b { font-family: var(--titel); font-weight: 400; font-size: 24px; }
  .blatt-liste small { color: var(--grau); font-size: 12px; letter-spacing: .1em; }
}

/* ---------- Ruhig (prefers-reduced-motion) oder ohne GSAP: statische, vollständige Seite ---------- */
html.statisch .szene-wort .wort-maske, html.statisch .wort-oben, html.statisch .wort-zeile { display: none; }
html.statisch .wort-foto { transform: none; }
html.statisch .wort-unter { opacity: 1; }
html.statisch .strecke-pin { height: auto; padding: 90px 0 60px; display: block; }
html.statisch .strecke-bahn { width: auto; max-width: 100%; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 20px; }
html.statisch .strecke-bild { scroll-snap-align: center; }
html.statisch .strecke-bild img { transform: none; }
html.statisch .strecke-zahl, html.statisch .strecke-leiste { display: none; }
html.statisch .jahre-pin { height: auto; display: block; padding: 100px clamp(16px, 6vw, 96px) 80px; }
html.statisch .stapel { height: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 30px; }
html.statisch .jahr-karte { position: relative; left: auto; top: auto; transform: none; width: 100%; }
html.statisch .scroll-hinweis i { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
