/* seite.css · lp-216 Kirschner Porträts (Beispiel): lebende Porträts aus 22 Bildern.
 * Fassung B (Martin, 01.11.2026): Kopf groß und frei auf einer Fläche in Kobaltblau, Schrift Geist, Überschriften eine Stufe
 * kleiner als zuerst, kein Spiegelbogen. Danach eine festgehaltene Bühne, auf der Scrollen durch die 22 Bilder blättert,
 * und ein Band mit zwölf Rollen, das beim Scrollen seitlich durchfährt. Schriften lokal: Geist (variabel), Manrope (variabel). */

@font-face { font-family: "Geist"; src: url("../fonts/geist-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root { --tinte: #14161c; --kobalt: #2b3fe8; --kobalt-hell: #c9d0ff; --schrift-display: "Geist", system-ui, sans-serif; }
h1, h2, h3 { font-family: var(--schrift-display); font-weight: 700; letter-spacing: -0.04em; }
.abschnitt h2 { font-size: clamp(1.9rem, 1.2rem + 2vw, 3.2rem); max-width: 16ch; line-height: 1.02; }
.abschnitt-satz { margin-top: 16px; max-width: 36rem; color: var(--text-2); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem); line-height: 1.5; }

/* Knopf: Kobalt mit weißer Schrift; auf der blauen Fläche umgekehrt */
.knopf { background: var(--kobalt); color: #fff; }
@media (hover: hover) and (pointer: fine) { .knopf:hover { background: var(--tinte); box-shadow: 0 12px 30px -14px var(--kobalt); } }
.knopf:focus-visible { outline: 3px solid var(--kobalt); outline-offset: 3px; }

/* Kopfzeile: weiß auf der blauen Fläche, nach dem ersten Stück Scrollen dunkel auf hellem Grund */
.marke { gap: 10px; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; }
.marke-zeichen { width: 28px; height: 28px; border-radius: 7px; }
.menue a { font-weight: 560; }
html:not(.kopf-fest) body:not(.rechtliches) .kopfzeile:not(.menue-offen) { color: #fff; }
html:not(.kopf-fest) body:not(.rechtliches) .kopfzeile:not(.menue-offen) .menue a { color: rgba(255, 255, 255, 0.84); }
html:not(.kopf-fest) body:not(.rechtliches) .kopfzeile:not(.menue-offen) .menue-knopf { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
html:not(.kopf-fest) body:not(.rechtliches) .kopfzeile .knopf { background: #fff; color: var(--kobalt); }
html:not(.kopf-fest) body:not(.rechtliches) .kopfzeile :focus-visible { outline-color: #fff; }

/* ---------- Ladeschirm: dieselbe blaue Fläche wie der Kopf, damit der Übergang nahtlos ist */
.ladeschirm { display: none; }
.js .ladeschirm { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: var(--kobalt); color: #fff; transition: opacity 0.7s var(--aus), visibility 0s linear 0.7s; animation: lade-notaus 0.6s linear 20s forwards; }
.seite-da .ladeschirm { opacity: 0; visibility: hidden; animation: none; }
@keyframes lade-notaus { to { opacity: 0; visibility: hidden; } }
.js.laedt-seite body > :not(.ladeschirm):not(script) { visibility: hidden; animation: seite-notaus 0s linear 20s forwards; }
.js.laedt-seite { overflow: hidden; }
@keyframes seite-notaus { to { visibility: visible; } }
.lade-innen { width: min(440px, 100%); display: grid; gap: 14px; }
.lade-zahl { font-family: var(--schrift-display); font-weight: 700; font-size: clamp(5rem, 3rem + 9vw, 9rem); line-height: 0.9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.lade-prozent { font-size: 0.42em; margin-left: 0.08em; color: var(--kobalt-hell); }
.lade-balken { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.lade-balken span { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--aus); }
.lade-satz { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 650; }
.lade-stand { font-size: var(--t-klein); color: rgba(255, 255, 255, 0.8); font-variant-numeric: tabular-nums; }

/* Auftritt nach dem Laden */
.seite-da .anfang-text > * { animation: auftritt 0.9s var(--aus) both; }
.seite-da .anfang-text > :nth-child(2) { animation-delay: 0.08s; }
.seite-da .anfang-text > :nth-child(3) { animation-delay: 0.16s; }
.seite-da .anfang-text > :nth-child(4) { animation-delay: 0.24s; }
.seite-da .portrait { animation: auftritt 1s var(--aus) 0.2s both; }
@keyframes auftritt { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Erster Bildschirm: blaue Fläche, Text links, der Kopf groß rechts, unten angeschnitten */
.anfang { align-items: stretch; padding-top: var(--kopf-hoehe); background: var(--kobalt); color: #fff; overflow-x: clip; }   /* die Zugfläche des Gesichts ist 170 % groß: seitlich abschneiden */
.anfang-raster { --W: min(86svh, 52vw); display: grid; gap: clamp(24px, 3vw, 56px); grid-template-columns: minmax(0, 1fr) var(--W); align-items: center; min-height: calc(100svh - var(--kopf-hoehe)); padding-bottom: 0; }
.anfang-text { align-self: center; padding-bottom: 4vh; }
.titel { font-size: clamp(2.3rem, 1rem + 3.4vw, 4.6rem); line-height: 0.98; letter-spacing: -0.045em; color: #fff; }
.titel-zweit { display: block; color: var(--kobalt-hell); }
.unterzeile { max-width: 28rem; margin-top: 20px; font-size: clamp(1.08rem, 1rem + 0.45vw, 1.4rem); color: rgba(255, 255, 255, 0.88); }
.beleg { max-width: 30rem; color: rgba(255, 255, 255, 0.86); }
.beleg strong { color: #fff; }
.beruhigung { color: rgba(255, 255, 255, 0.86); }
.anfang .knopf { background: #fff; color: var(--kobalt); }
@media (hover: hover) and (pointer: fine) { .anfang .knopf:hover { background: var(--tinte); color: #fff; } }
.anfang .knopf:focus-visible { outline-color: #fff; }

.spiegel { position: relative; width: var(--W); height: var(--W); align-self: end; }
.portrait { position: absolute; left: 0; bottom: 0; width: var(--W); height: var(--W); touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.portrait-inner { position: relative; width: 100%; height: 100%; }
#faceFallback { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
#faceGl { position: absolute; left: -35%; top: -35%; width: 170%; height: 170%; pointer-events: none; }
#faceProps { position: absolute; inset: 0; pointer-events: none; }
#faceFly, #faceHand { position: absolute; width: 6%; transform: translate(-50%, -50%); }
/* Stimmung: Schild auf der Kante zwischen Blau und Hell (der eine Regelbruch, D26: es gehört zu keinem der beiden Abschnitte) */
.stimmung { position: absolute; left: 50%; bottom: -24px; z-index: 3; transform: translateX(-50%); width: max-content; max-width: 86%; padding: 9px 18px 10px; border-radius: 14px; background: #fff; color: var(--tinte); text-align: center; box-shadow: 0 14px 34px -18px rgba(20, 22, 28, 0.55); }
.stimmung-name { font-family: var(--schrift-display); font-weight: 700; font-size: 1.02rem; line-height: 1.15; letter-spacing: -0.02em; }
.stimmung-text { font-size: 0.82rem; line-height: 1.35; color: var(--text-2); }

@media (max-width: 959px) {
  .anfang-raster { --W: min(80vw, 42svh); grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 14px; }
  .spiegel { order: -1; justify-self: center; }
  .anfang-text { padding-bottom: 40px; }
  .titel { font-size: clamp(2.1rem, 1.2rem + 4vw, 3.4rem); }
  .unterzeile { margin-top: 12px; font-size: 1.05rem; }
  .beleg { margin-top: 10px; }
  .handlung { margin-top: 18px; }
  .stimmung { bottom: 8px; padding: 6px 12px; }
  .stimmung-text { display: none; }
}
/* Breit und niedrig (Tablet quer, kleines Fenster): Text und Kopf nebeneinander, Knopf und Satz bleiben im Bild */
@media (max-width: 959px) and (orientation: landscape) {
  .anfang-raster { --W: min(44vw, 74svh); grid-template-columns: minmax(0, 1fr) var(--W); }
  .spiegel { order: 0; }
  .anfang-text { padding-bottom: 12px; }
  .titel { font-size: clamp(1.8rem, 0.8rem + 3.8vw, 3rem); }
  .unterzeile { font-size: 0.98rem; }
  .beleg, .beruhigung { font-size: 0.8rem; }
  .handlung { margin-top: 12px; }
}

/* ---------- Daumenkino: am großen Bildschirm eine festgehaltene Bühne, Scrollen blättert durch die 22 Bilder */
.kino { padding-top: calc(var(--abstand) + 24px); }
.kino-raster { display: grid; gap: clamp(24px, 3vw, 48px) clamp(32px, 5vw, 80px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "text gross" "reihe gross" "hinweis gross"; align-items: start; }
.kino-text { grid-area: text; }
.kino-gross { grid-area: gross; margin: 0; }
.kino-reihe { grid-area: reihe; align-self: end; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.kino-hinweis { grid-area: hinweis; display: none; font-size: var(--t-klein); color: var(--text-2); }
.kino-hinweis::after { content: ""; display: block; height: 3px; margin-top: 10px; border-radius: 3px; background: var(--kobalt); transform: scaleX(var(--p, 0)); transform-origin: left; }
.kino-rahmen { aspect-ratio: 1; border-radius: var(--rund-bild); background: #dfe3f0; overflow: hidden; }
.kino-rahmen img { width: 100%; height: 100%; object-fit: contain; }
.kino-gross figcaption { margin-top: 12px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.kino-name { font-family: var(--schrift-display); font-weight: 700; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); letter-spacing: -0.02em; }
.kino-nr { color: var(--text-2); font-size: var(--t-klein); font-variant-numeric: tabular-nums; }
.kino-reihe button { position: relative; aspect-ratio: 1; min-height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; overflow: hidden; transition: transform 0.25s var(--aus); }
.kino-reihe button img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; background: #dfe3f0; transform: scale(1.5); transform-origin: 50% 25%; transition: background-color 0.2s ease; }
.kino-reihe button[aria-pressed="true"] { transform: translateY(-4px); }
.kino-reihe button[aria-pressed="true"] img { background: var(--kobalt); }
.kino-reihe button:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; }
.js .kino-reihe button { opacity: var(--da, 1); }
.js .kino-reihe.wartet button { --da: 0; }
.js .kino-reihe.laeuft button { transition: opacity 0.5s ease calc(var(--i) * 28ms), transform 0.25s var(--aus); }
@media (min-width: 900px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
  .js .kino { height: 340vh; padding: 0; }
  .js .kino-buehne { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-top: var(--kopf-hoehe); }
  .js .kino-gross { width: min(100%, 64svh); justify-self: end; }
  .js .kino-hinweis { display: block; }
}
@media (max-width: 899px) {
  .kino-raster { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "gross" "reihe"; }
  .kino-gross { max-width: 420px; }
}

/* ---------- Rollen: ein Band, das am großen Bildschirm beim Scrollen seitlich fährt; sonst mit Finger oder Rad wischen */
.rollen { padding-bottom: var(--abstand); overflow-x: clip; }
.rollen-kopf { display: grid; gap: 0 clamp(32px, 5vw, 80px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; margin-bottom: clamp(28px, 3vw, 44px); }
.rollen-kopf .abschnitt-satz { margin-top: 0; }
.band { display: flex; gap: clamp(12px, 1.4vw, 20px); padding: 4px var(--kante) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--rand), calc((100vw - var(--inhalt)) / 2)); scrollbar-width: none; }
.band::-webkit-scrollbar { display: none; }
.band:focus-visible { outline: 3px solid var(--kobalt); outline-offset: -3px; }
.rolle { flex: none; width: clamp(220px, 26vw, 380px); margin: 0; scroll-snap-align: start; }
.rolle img { width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; object-position: 50% 12%; border-radius: var(--rund-bild); background: #fff; }
.rolle:nth-child(3n + 2) img { aspect-ratio: 4 / 5; }
.rolle:nth-child(3n) { margin-top: clamp(24px, 4vw, 64px); }
.rolle figcaption { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; font-weight: 650; }
/* Bildunterschrift erst, wenn die Rolle ganz im Bild ist (seite.js): sie läuft nie halb über den Rand */
.js .rolle figcaption { opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s var(--aus); }
.js .rolle figcaption.im-bild { opacity: 1; transform: none; }
@media (min-width: 900px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
  .js .rollen.faehrt { height: var(--band-hoehe, 300vh); padding: 0; }
  .js .rollen.faehrt .rollen-buehne { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--kopf-hoehe); overflow: hidden; }
  .js .rollen.faehrt .band { overflow: visible; scroll-snap-type: none; transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); will-change: transform; }
  .js .rollen.faehrt .rolle { width: clamp(220px, 23vw, 340px); }
}
@media (max-width: 899px) {
  .rollen-kopf { grid-template-columns: minmax(0, 1fr); }
  .rollen-kopf .abschnitt-satz { margin-top: 14px; }
  .rolle { width: 68vw; }
  .rolle:nth-child(3n) { margin-top: 0; }
}

/* ---------- Ablauf: drei Tage auf einer Linie, die beim Scrollen mitwächst */
.ablauf { background: #e3e6ee; }
.schritte { position: relative; list-style: none; margin: clamp(36px, 4vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.schritte::before { content: ""; position: absolute; left: 0; right: 0; top: 0.6em; height: 3px; border-radius: 3px; background: var(--kobalt); transform: scaleX(var(--p, 1)); transform-origin: left; }
.schritt { position: relative; padding-top: 34px; }
.schritt-tag { position: absolute; top: 0; left: 0; padding: 0 10px 0 0; background: #e3e6ee; font-family: var(--schrift-display); font-weight: 700; font-size: 1rem; line-height: 1.3; letter-spacing: -0.02em; }
.schritt h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); margin-top: 18px; }
.schritt p:not(.schritt-tag) { margin-top: 8px; color: var(--text-2); max-width: 30ch; }
.schritt-bild, .schritt-gesichter, .schritt-hoch { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--rund-bild); }
.schritt-bild { object-fit: cover; object-position: 50% 22%; }
.schritt-gesichter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--grund); }
.schritt-gesichter img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 10px; background: #dfe3f0; }
.schritt-hoch { display: grid; place-items: center; padding: 20px; background: var(--kobalt); color: #fff; font-family: var(--schrift-display); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); letter-spacing: -0.03em; line-height: 1.05; text-align: center; text-decoration: none; transition: transform 0.3s var(--aus); }
@media (hover: hover) and (pointer: fine) { .schritt-hoch:hover { transform: translateY(-4px); } }
.schritt-hoch:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; }
@media (max-width: 799px) {
  .schritte { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-left: 26px; }
  .schritte::before { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform: scaleY(var(--p, 1)); transform-origin: top; }
  .schritt-bild, .schritt-gesichter, .schritt-hoch { max-width: 380px; }
}

/* ---------- Preise: drei Zeilen wie auf einer Preistafel, die mittlere auf Blau */
.preisliste { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; border-top: 2px solid var(--tinte); }
.preis { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr) minmax(0, 0.8fr); gap: 8px clamp(20px, 3vw, 48px); align-items: baseline; padding: clamp(20px, 2.4vw, 32px) clamp(0px, 1.4vw, 20px); border-bottom: 2px solid var(--tinte); }
.preis--mitte { background: var(--kobalt); color: #fff; }
.preis h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); }
.preis-was { color: var(--text-2); }
.preis--mitte .preis-was { color: rgba(255, 255, 255, 0.88); }
.preis-betrag { justify-self: end; font-family: var(--schrift-display); font-weight: 700; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem); letter-spacing: -0.04em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.preise-satz { margin-top: 20px; color: var(--text-2); }
@media (max-width: 699px) {
  .preis { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 12px; }
  .preis-was { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Anfrage */
.kontakt { border-top: 1px solid var(--linie); }
.kontakt h2 { font-size: clamp(1.9rem, 1.2rem + 2vw, 3.2rem); }
.kontakt .abschnitt-satz { margin-bottom: 32px; }
.direkt a { font-weight: 600; }
.direkt a:first-child { font-family: var(--schrift-display); font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Ruhige Fassung: kein Auftritt, keine Fahrt */
@media (prefers-reduced-motion: reduce) {
  .seite-da .anfang-text > *, .seite-da .portrait { animation: none; }
}
