/* Onepager — im Erscheinungsbild von Jugendweihe Mecklenburg-Vorpommern e. V.
   Farben und Schriften wie in app/globals.css des Hauptprojekts. Schriften
   liegen hier (OFL 1.1, Lizenztexte daneben); nur der Latein-Ausschnitt,
   der alle deutschen Zeichen und die Anführungszeichen enthält. */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/schriften/instrument-serif-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("/schriften/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Corinthia: dekorative Akzentschrift, nur für kurze emotionale Zeilen
   (derzeit „Danke“ in der h1 der Startseite). Teilsatz der Google-Fonts-API
   mit deutschem Alphabet, Umlauten, ß, Ziffern und Satzzeichen. `block`:
   Während der kurzen Ladezeit bleibt das Wort unsichtbar statt in einer
   fremden Schreibschrift aufzublitzen; die Zeile hat eine feste Höhe. */
@font-face {
  font-family: "Corinthia";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/schriften/corinthia-400-de.woff2") format("woff2");
  unicode-range: U+20-21, U+26-29, U+2C-2E, U+30-3B, U+3F, U+41-5A, U+61-7A, U+C4, U+CB, U+CF, U+D6, U+DC, U+DF, U+E4, U+EB, U+EF, U+F6, U+FC, U+FF, U+178, U+308, U+1E26-1E27, U+1E84-1E85, U+1E8C-1E8D, U+1E97, U+2013, U+2018-201A, U+201C, U+201E;
}
/* Ersatzschriften mit angeglichenen Maßen (Werte von next/font): kaum Versatz beim Nachladen. */
@font-face {
  font-family: "Instrument Serif Ersatz";
  src: local("Times New Roman");
  ascent-override: 117.94%;
  descent-override: 36.93%;
  line-gap-override: 0%;
  size-adjust: 83.94%;
}
@font-face {
  font-family: "Instrument Sans Ersatz";
  src: local("Arial");
  ascent-override: 94.42%;
  descent-override: 24.33%;
  line-gap-override: 0%;
  size-adjust: 102.74%;
}

/* ==========================================================================
   GESTALTUNG — „Bühne in Ebenen“
   Wie auf der Hauptseite trägt das Primärgrün die großen Flächen (dort
   Ladevorhang, Hero-Kachel, Schlussband) und erscheint als Wellenfläche;
   tiefes Grün nur im Fuß, ebenfalls mit Wellenstruktur (wie der Fuß der
   Hauptseite). Darauf liegen Ebenen: das Motiv als Blatt, eine Sandkarte mit
   der Mitteilung, ein Cremeblatt dahinter (Kartenstapel der Hauptseite).
   Je Region gespiegelt: `.k-bild-rechts` (NRW), `.k-bild-links` (RLP).

   BEWEGUNG — nur `transform`/`translate`/`scale`/`opacity`, alles endet:
   Laden (CSS): Wellenfläche zieht ein, Foto setzt sich, Karte und Blatt
   fächern auf — der erste Frame ist schon vollständig, nichts ist verdeckt.
   Scrollen (bewegung.js setzt `--b`, `--s`, `--h`, `--w` und Klassen): Tiefe
   in der Bühne, der Dank leuchtet Wort für Wort auf, die Hinweiskarte schiebt
   sich darüber, die Schlusszeilen laufen gegeneinander ein; der Fuß mit dem
   Urheberhinweis steht ruhig. Ohne Skript gelten die Ruhewerte (fertiger Zustand); bei
   `prefers-reduced-motion: reduce` gibt es keine Bewegung.
   ========================================================================== */

:root {
  /* Tokens aus app/globals.css der Hauptseite */
  --creme: #fff7ea;
  --sand: #f0e5cf;
  --ink: #141210;
  --sekundaer: #514e4a;
  --linie: #dacab6;
  --gruen: #80c341;
  --gruen-hell: #98ce65;
  --gruen-licht: #afd888;
  --gruen-tief: #2d4a12;
  --pink: #cf118c;
  --pink-tief: #b70f7b;
  --stein: #1c1917;
  --auf-tief: #fff7ea;
  --auf-tief-leise: rgb(255 247 234 / 0.82);
  --linie-tief: rgb(255 247 234 / 0.24);

  --serife: "Instrument Serif", "Instrument Serif Ersatz", Georgia, serif;
  --grotesk: "Instrument Sans", "Instrument Sans Ersatz", system-ui, sans-serif;
  --akzent: "Corinthia", "Instrument Serif", "Instrument Serif Ersatz", Georgia, serif;

  /* Eine Kurve (die der Hauptseite), drei Dauern. */
  --signatur: cubic-bezier(0.16, 1.08, 0.38, 0.98);
  --sanft: cubic-bezier(0.65, 0, 0.35, 1);
  --dauer-kurz: 0.25s;
  --dauer: 1.2s;
  --dauer-lang: 2.2s;

  /* Schatten im Steinton der Hauptseite (Hero, Kartenstapel). */
  --schatten: 0 46px 80px -42px rgb(28 25 23 / 0.6), 0 2px 6px -2px rgb(28 25 23 / 0.12);
  --schatten-klein: 0 16px 34px -18px rgb(28 25 23 / 0.5);
  --radius: 1.1rem;
  --blatt: clamp(4.5rem, 13vw, 13rem);
  --rand: clamp(1rem, 4.5vw, 4.5rem);
  --breite: 82rem;
  --kante: clamp(2rem, 5vw, 5rem);
  /* Logo: Abstand zur Oberkante, Breite, Sand unter dem Logo (Höhe = Breite × 1309 / 2139). */
  --kopf-oben: clamp(0.75rem, 2vw, 1.4rem);
  --logo-b: 9.5rem;
  --marke-unten: 0.75rem;
  /* Höhe des Kopfs = Logo samt Sandecke und 1,25 rem Luft: darunter beginnen Bühne und Band. */
  --kopf: calc(var(--kopf-oben) + var(--logo-b) * 0.612 + var(--marke-unten) + 1.25rem);
  /* Richtung je Region: 1 = NRW, -1 = RLP (gespiegelt). */
  --spiegel: 1;
}
.k-bild-links {
  --spiegel: -1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--grotesk);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  overflow-x: clip;
  hyphens: manual;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}
main:focus {
  outline: none;
}

h1,
h2,
p,
ul,
address,
figure {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--dauer-kurz) ease, color var(--dauer-kurz) ease;
}
:focus-visible {
  outline: 3px solid var(--pink-tief);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Auf Grün steht der Ring in Ink, auf Tiefgrün in Creme (Schriftregel der Hauptseite). */
.kopf :focus-visible,
.weiter :focus-visible,
.band :focus-visible {
  outline-color: var(--ink);
}
.abspann :focus-visible {
  outline-color: var(--creme);
}

.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprung {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--creme);
  border-radius: 0.4rem;
  text-decoration: none;
  transform: translateY(-200%);
}
.sprung:focus-visible {
  transform: none;
  outline-color: var(--pink);
}

.rahmen {
  width: 100%;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

/* Wellenfläche und Kanten: gezeichnet in lib/seiten.mjs, gespiegelt per --spiegel. */
.welle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--spiegel));
}
.kante {
  position: relative;
  z-index: 1;
  width: 100%;
  height: var(--kante);
  margin-bottom: -1px;
  transform: scaleX(var(--spiegel));
}

/* Kleine Großbuchstaben-Zeilen. */
.eyebrow,
.urheber-vor {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* ---- Kopf: liegt über der ersten Fläche ---- */
.kopf {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--kopf-oben) var(--rand) 0;
}
.kopf-reihe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--breite);
  margin-inline: auto;
}
/* Das Logo steht ohne eigene Plakette auf einer Sandfläche, die aus der oberen
   Ecke kommt: oben und zur Seite randlos angeschnitten, unten im Bogen der
   Bühnenkarte auslaufend. Sand statt Grün, weil der Pinselstrich des Logos
   genau das Primärgrün der Bühne trägt und darauf verschwände. */
.kopf-marke {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 0 clamp(2rem, 4vw, 3rem) var(--marke-unten) 0;
}
.kopf-marke::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--kopf-oben));
  right: 0;
  bottom: 0;
  left: -100vw;
  background: var(--sand);
  border-bottom-right-radius: clamp(5rem, 9vw, 9rem) 100%;
}
.logo {
  width: var(--logo-b);
  height: auto;
}

/* ---- Bühne ---- */
.buehne {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: var(--rand) repeat(12, minmax(0, 1fr)) var(--rand);
  grid-template-rows: var(--kopf) minmax(0, 1fr) auto;
  min-height: max(100svh, 42rem);
  padding-bottom: calc(var(--kante) + clamp(1.5rem, 4vw, 3.5rem));
}
.buehne-grund {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background: var(--gruen);
}
/* Breiter als die Fläche, damit das Verschieben nie eine Kante zeigt (max-width: none hebt die Grundregel für svg auf). */
.buehne-welle {
  inset: 0 -8%;
  width: 116%;
  max-width: none;
  transform: translateX(calc(var(--b, 0) * -6% * var(--spiegel))) scaleX(var(--spiegel));
}
.buehne-bild {
  position: relative;
  z-index: 2;
  grid-column: 6 / 14;
  grid-row: 2 / 4;
  min-height: clamp(22rem, 64vh, 52rem);
  overflow: hidden;
  border-radius: var(--blatt) var(--radius) var(--blatt) var(--radius);
  background: var(--gruen-tief);
  box-shadow: var(--schatten);
}
.buehne-bild-innen {
  position: absolute;
  inset: -6% 0;
  transform: translate3d(0, calc(var(--b, 0) * 5%), 0);
}
.buehne-bild picture {
  display: block;
  height: 100%;
}
.buehne-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fokus-rechts img {
  object-position: 64% 50%;
}
.fokus-links img {
  object-position: 36% 50%;
}
.buehne-karte,
.buehne-blatt {
  grid-column: 2 / 8;
  grid-row: 2 / 4;
  align-self: end;
  border-radius: var(--radius) clamp(5rem, 9vw, 9rem) var(--radius) var(--radius);
}
.buehne-karte {
  position: relative;
  z-index: 3;
  margin-bottom: clamp(-2.5rem, -3vw, -1rem);
  padding: clamp(1.75rem, 3.6vw, 3.5rem) clamp(1.5rem, 3.6vw, 3.75rem) clamp(1.75rem, 3.4vw, 3.25rem);
  background: var(--sand);
  box-shadow: var(--schatten);
  transform: translate3d(0, calc(var(--b, 0) * -4.5rem), 0);
}
.buehne-blatt {
  z-index: 2;
  height: 70%;
  background: var(--creme);
  box-shadow: var(--schatten-klein);
  transform-origin: 20% 100%;
  rotate: calc(-2.5deg * var(--spiegel));
  translate: calc(1.2rem * var(--spiegel)) 0.9rem;
}
.kante-buehne {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  color: var(--sand);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--pink-tief);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--gruen);
}
.titel {
  margin-top: clamp(0.75rem, 1.6vw, 1.25rem);
  max-width: 15ch;
  font-family: var(--serife);
  font-weight: 400;
  font-size: clamp(2.6rem, 4.4vw + 0.4rem, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
/* „Danke“: eigene Zeile, groß, mit Luft für Schwünge und Unterlängen. */
.titel .akzent {
  display: block;
  width: fit-content;
  padding-inline-end: 0.15em;
  margin-bottom: -0.06em;
  color: var(--pink-tief);
  font-family: var(--akzent);
  font-size: 1.75em;
  line-height: 1;
  letter-spacing: 0;
}
.einstieg {
  max-width: 38ch;
  margin-top: clamp(1rem, 2.2vw, 1.75rem);
  font-size: clamp(1.125rem, 0.6vw + 0.95rem, 1.45rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.einstieg a {
  text-decoration-color: var(--pink);
}
.buehne-weiter {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(1.25rem, 2.4vw, 2rem);
  padding-block: 0.4rem;
  font-weight: 600;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
}
.buehne-pfeil {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  rotate: 90deg;
  color: var(--pink-tief);
  transition: translate var(--dauer-kurz) var(--signatur);
}

/* ---- Der Dank und die Hinweiskarte darüber ---- */
.stapel {
  position: relative;
}
.dank {
  display: flex;
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4rem);
}
.dank-innen {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
.dank-kachel {
  position: relative;
  overflow: hidden;
  min-height: clamp(9rem, 24svh, 14rem);
  border-radius: var(--radius) clamp(3rem, 8vw, 8rem) var(--radius) clamp(3rem, 8vw, 8rem);
  box-shadow: var(--schatten-klein);
  transform: translate3d(0, calc((0.5 - var(--s, 0.5)) * 7rem), 0);
}
.kachel-welle {
  inset: -12% 0;
  height: 124%;
  transform: translate3d(0, calc((var(--s, 0.5) - 0.5) * 10%), 0) scaleX(var(--spiegel));
}
.dank-titel {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--pink-tief);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}
.dank-titel::before {
  content: "";
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--gruen);
}
.dank-text {
  max-width: 23ch;
  margin-top: clamp(1.25rem, 2.6vw, 2rem);
  font-family: var(--serife);
  font-size: clamp(2.1rem, min(4.5vw, 6.6svh) + 0.4rem, 4.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.w {
  transition: color var(--dauer-kurz) ease;
}
.hinweis {
  position: relative;
  z-index: 2;
  padding-bottom: calc(var(--kante) + clamp(3rem, 8vw, 6rem));
}
.hinweis-karte {
  position: relative;
  display: grid;
  gap: 0.9rem clamp(2rem, 4vw, 3.5rem);
  max-width: 56rem;
  margin-left: auto;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border-radius: var(--radius) var(--radius) clamp(4rem, 8vw, 7rem) var(--radius);
  background: var(--creme);
  box-shadow: var(--schatten);
  transform: translate3d(0, calc((1 - var(--h, 1)) * 3rem), 0) rotate(calc((1 - var(--h, 1)) * 2.5deg * var(--spiegel)));
  transform-origin: 50% 0;
}
.hinweis-karte::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.75rem, 4vw, 3.5rem);
  width: 3.5rem;
  height: 4px;
  border-radius: 0 0 3px 3px;
  background: var(--pink);
}
.hinweis-titel {
  font-family: var(--serife);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.8vw + 1.1rem, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.hinweis-text {
  font-size: clamp(1.125rem, 0.4vw + 1rem, 1.35rem);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---- Schlussband nach Mecklenburg-Vorpommern ---- */
.weiter {
  position: relative;
  margin-top: calc(-1 * var(--kante));
}
.kante-weiter {
  color: var(--gruen);
}
.weiter-flaeche {
  position: relative;
  overflow: hidden;
  background: var(--gruen);
  color: var(--ink);
  padding-block: clamp(2.5rem, 6vw, 5rem) calc(var(--kante) + clamp(3.5rem, 8vw, 7rem));
}
.weiter-welle {
  inset: 0 -10%;
  width: 120%;
  max-width: none;
  transform: translateX(calc((1 - var(--w, 1)) * 8% * var(--spiegel))) scaleX(var(--spiegel));
}
.weiter-innen {
  position: relative;
}
.weiter-titel {
  font-family: var(--serife);
  font-weight: 400;
  font-size: clamp(2.9rem, 7.4vw, 9rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.zug {
  display: block;
  width: fit-content;
}
.zug-a {
  transform: translate3d(calc((1 - var(--w, 1)) * -24vw * var(--spiegel)), 0, 0);
}
.zug-b {
  margin-left: clamp(0rem, 14vw, 16rem);
  transform: translate3d(calc((1 - var(--w, 1)) * 24vw * var(--spiegel)), 0, 0);
}
.weiter-unten {
  display: grid;
  gap: 1.75rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-top: clamp(2.25rem, 5vw, 4.5rem);
}
.weiter-text {
  max-width: 42ch;
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.4rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 1rem;
  max-width: 100%;
  min-height: 3.75rem;
  padding: 1rem 1.25rem 1rem 1.5rem;
  border-radius: 0.5rem;
  /* Primärpink der Marke als Fläche, darauf Creme: 4,80 : 1. Pinke Schrift auf dem Grün käme nur auf 2,38 : 1. */
  background: var(--pink);
  color: var(--creme);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.14), 0 18px 32px -18px rgb(28 25 23 / 0.75);
  transition: transform var(--dauer-kurz) var(--signatur), box-shadow var(--dauer-kurz) var(--signatur);
}
.knopf:active {
  transform: scale(0.99);
}
.knopf-text {
  display: flex;
  flex-direction: column;
}
.knopf-ziel {
  font-weight: 400;
  font-size: 0.9375rem;
}
.knopf-pfeil {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  transition: transform var(--dauer-kurz) var(--signatur);
}

/* ---- Fuß: Betreiber, Rechtliches und ein leiser Urheberhinweis ---- */
.abspann {
  position: relative;
  margin-top: calc(-1 * var(--kante));
  color: var(--auf-tief);
}
.kante-abspann {
  color: var(--gruen-tief);
}
.abspann-flaeche {
  position: relative;
  overflow: hidden;
  background: var(--gruen-tief);
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem) clamp(1.25rem, 2.5vw, 2rem);
}
.abspann-raster {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.abspann-betrieb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  color: var(--auf-tief-leise);
  font-size: 1rem;
}
/* NorthFrame: eine Zeile unter einer Haarlinie, kleiner als Logo und Rechtslinks darüber. */
.urheber {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.9rem;
  padding-top: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--linie-tief);
}
.urheber-vor {
  color: var(--auf-tief-leise);
}
.urheber-link {
  display: inline-block;
  border-radius: 7px;
  transition: opacity var(--dauer-kurz) ease, transform var(--dauer-kurz) var(--signatur);
}
/* Originaldatei mit eigenem dunklem Grund: nur skaliert, Ecken des Grundes gerundet wie im Partnerband der Hauptseite. */
.urheber-logo {
  display: block;
  width: auto;
  height: 2.25rem;
  border-radius: 7px;
}
.abspann-marke {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  border-radius: 0.6rem;
  background: #fff;
}
.abspann-marke .logo {
  width: 8.5rem;
}
.abspann-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  margin-left: auto;
  padding: 0;
  list-style: none;
}
.abspann-links a {
  display: inline-block;
  padding-block: 0.625rem;
  color: var(--auf-tief);
  text-decoration-color: var(--linie-tief);
}
.abspann-links a[aria-current="page"] {
  text-decoration-color: var(--gruen-licht);
  text-decoration-thickness: 2px;
}

/* ---- Grünes Kopfband der Rechtsseiten und der Fehlerseite ---- */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--gruen);
  padding-block: calc(var(--kopf) + clamp(1rem, 3vw, 2.5rem)) clamp(7rem, 13vw, 11rem);
}
.band-welle {
  z-index: -1;
}
.band-innen {
  position: relative;
}
.eyebrow-auf-gruen {
  color: var(--ink);
}
.eyebrow-auf-gruen::before {
  background: var(--ink);
}
.band-titel {
  margin-top: 0.75rem;
  font-family: var(--serife);
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

/* ---- Rechtsseiten: Blatt über dem Band, ruhiger Satz ---- */
.recht-blatt {
  position: relative;
  z-index: 2;
  max-width: 60rem;
  margin-left: auto;
  margin-top: clamp(-7rem, -9vw, -4rem);
  margin-bottom: calc(var(--kante) + clamp(3rem, 7vw, 6rem));
  padding: clamp(1.75rem, 5vw, 4.5rem);
  border-radius: var(--radius) clamp(4rem, 10vw, 9rem) var(--radius) var(--radius);
  background: var(--creme);
  box-shadow: var(--schatten);
}
.recht-text {
  max-width: 46rem;
}
.recht h2 {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--linie);
  font-family: var(--serife);
  font-weight: 400;
  font-size: clamp(1.5rem, 0.8vw + 1.2rem, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.recht h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}
.recht h4 {
  margin: 1.25rem 0 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
.recht p,
.recht ul,
.recht address {
  max-width: 64ch;
}
.recht p + p {
  margin-top: 0.875rem;
}
.recht address {
  font-style: normal;
}
.recht ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}
.recht li::marker {
  color: var(--pink-tief);
}
/* Foto der Vereinsführung im Impressum (seit 28.10.2026): festes Seitenverhältnis, kein Sprung beim Laden. */
.recht-foto {
  max-width: 34rem;
  margin: 1rem 0 1.25rem;
}
.recht-foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 714;
  border-radius: var(--radius);
  background: var(--linie);
}
.recht-foto figcaption {
  margin-top: 0.6rem;
  color: var(--sekundaer);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.vorspann {
  color: var(--sekundaer);
  font-size: 1.1875rem;
}
.stand {
  margin-top: 2.5rem;
  color: var(--sekundaer);
}
.zurueck {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
}
.adresse {
  overflow-wrap: anywhere;
}

/* ---- Fehlerseite ---- */
.band-fehlt {
  display: flex;
  align-items: flex-end;
  min-height: max(100svh, 38rem);
  padding-bottom: calc(var(--kante) + clamp(3rem, 7vw, 6rem));
}
.band-fehlt .band-innen {
  width: 100%;
}
.fehlt-zahl {
  position: absolute;
  z-index: 0;
  top: calc(var(--kopf) + 1rem);
  right: var(--rand);
  color: var(--gruen-hell);
  font-family: var(--serife);
  font-size: clamp(9rem, 34vw, 30rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1px rgb(20 18 16 / 0.18);
  user-select: none;
}
.fehlt-karte {
  position: relative;
  max-width: 40rem;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border-radius: var(--radius) clamp(4rem, 9vw, 8rem) var(--radius) var(--radius);
  background: var(--sand);
  box-shadow: var(--schatten);
}
.fehlt-karte .titel {
  max-width: 16ch;
  font-size: clamp(2.5rem, 3.6vw + 0.6rem, 4.5rem);
}

/* ---- Region B (RLP): gespiegelt ---- */
.k-bild-links .buehne-bild {
  grid-column: 2 / 10;
  border-radius: var(--radius) var(--blatt) var(--radius) var(--blatt);
}
.k-bild-links .buehne-karte,
.k-bild-links .buehne-blatt {
  grid-column: 8 / 14;
  border-radius: clamp(5rem, 9vw, 9rem) var(--radius) var(--radius) var(--radius);
}
.k-bild-links .buehne-blatt {
  transform-origin: 80% 100%;
}
.k-bild-links .hinweis-karte {
  margin-left: 0;
  margin-right: auto;
  border-radius: var(--radius) var(--radius) var(--radius) clamp(4rem, 8vw, 7rem);
}
.k-bild-links .zug-b {
  margin-left: clamp(0rem, 6vw, 7rem);
}
.k-bild-links .recht-blatt,
.k-bild-links .fehlt-karte {
  border-radius: clamp(4rem, 10vw, 9rem) var(--radius) var(--radius) var(--radius);
}
.k-bild-links .fehlt-zahl {
  right: auto;
  left: var(--rand);
}
.k-bild-links .recht-blatt {
  margin-left: 0;
  margin-right: auto;
}
.k-bild-links .band-fehlt .fehlt-karte {
  margin-left: auto;
}

/* ---- Schmale Bildschirme: Foto oben groß, Karte schiebt sich darüber ---- */
@media (max-width: 767px) {
  .buehne {
    grid-template-columns: var(--rand) minmax(0, 1fr) var(--rand);
    /* Erste Reihe = Kopf: Das Foto beginnt unter der Sandecke, nichts überlappt. */
    grid-template-rows: var(--kopf) auto auto;
    min-height: 0;
  }
  .buehne-bild,
  .k-bild-links .buehne-bild {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    height: clamp(17rem, 50svh, 32rem);
  }
  .buehne-bild {
    border-radius: clamp(4rem, 24vw, 7.5rem) 0.9rem clamp(4rem, 24vw, 7.5rem) 0.9rem;
  }
  .k-bild-links .buehne-bild {
    border-radius: 0.9rem clamp(4rem, 24vw, 7.5rem) 0.9rem clamp(4rem, 24vw, 7.5rem);
  }
  .buehne-karte,
  .buehne-blatt,
  .k-bild-links .buehne-karte,
  .k-bild-links .buehne-blatt {
    grid-column: 2;
    grid-row: 3;
  }
  .buehne-karte {
    margin: -4.5rem 0.4rem 0 0;
    border-radius: var(--radius) clamp(3.5rem, 18vw, 5rem) var(--radius) var(--radius);
  }
  .k-bild-links .buehne-karte {
    margin: -4.5rem 0 0 0.4rem;
    border-radius: clamp(3.5rem, 18vw, 5rem) var(--radius) var(--radius) var(--radius);
  }
  .buehne-blatt {
    height: 50%;
  }
  .urheber {
    justify-content: flex-start;
  }
  .zug-b,
  .k-bild-links .zug-b {
    margin-left: 0;
  }
  .zug-a {
    transform: translate3d(calc((1 - var(--w, 1)) * -12vw * var(--spiegel)), 0, 0);
  }
  .zug-b {
    transform: translate3d(calc((1 - var(--w, 1)) * 12vw * var(--spiegel)), 0, 0);
  }
  .abspann-links {
    margin-left: 0;
  }
}
@media (min-width: 768px) {
  body {
    font-size: 1.1875rem;
  }
  .hinweis-karte {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}
@media (min-width: 1024px) {
  body {
    font-size: 1.25rem;
  }
  :root {
    --kopf: 10.75rem;
    --logo-b: 11.5rem;
  }
  .dank-innen {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }
  .dank-kachel {
    align-self: stretch;
    min-height: clamp(20rem, 62svh, 40rem);
  }
  .k-bild-links .dank-innen {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .k-bild-links .dank-kachel {
    grid-row: 1;
    grid-column: 1;
  }
  .k-bild-links .dank-satz {
    grid-column: 2;
  }
  /* Text und Knopf nebeneinander; der Text behält immer seine Breite, der Knopf bricht notfalls um. */
  .weiter-unten {
    grid-template-columns: minmax(20rem, 1fr) auto;
  }
  /* Die Karte schiebt sich über die Kachel, nicht über den Dank. */
  .hinweis-karte {
    grid-template-columns: minmax(0, 1fr);
    max-width: calc((100% - 2rem) * 5 / 12 + 2rem);
  }
}
/* Quer und niedrig (z. B. 1024 × 768, Tablet quer): Karte etwas knapper, damit sie samt Sprungmarke im ersten Bild bleibt. */
@media (min-width: 768px) and (max-height: 860px) and (orientation: landscape) {
  .buehne .titel {
    font-size: clamp(2.2rem, 5.6svh + 0.4rem, 4.6rem);
  }
  .buehne .einstieg {
    margin-top: 0.9rem;
    font-size: 1.125rem;
  }
  .buehne-weiter {
    margin-top: 1rem;
  }
}
/* Tablet hochkant: Foto breiter, Karte über die untere Hälfte. Quer gilt die Anordnung nebeneinander. */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .buehne-bild {
    grid-column: 5 / 14;
  }
  .k-bild-links .buehne-bild {
    grid-column: 2 / 11;
  }
  /* Das Hochformat wird hier seitlich beschnitten: den Ausschnitt von der Karte wegschieben, damit die Rose frei bleibt. */
  .buehne-bild img {
    object-position: 0% 50%;
  }
  .k-bild-links .buehne-bild img {
    object-position: 100% 50%;
  }
  .buehne-karte,
  .buehne-blatt {
    grid-column: 2 / 11;
  }
  .k-bild-links .buehne-karte,
  .k-bild-links .buehne-blatt {
    grid-column: 5 / 14;
  }
}

/* ---- Hover: nur mit echtem Zeiger ---- */
@media (hover: hover) and (pointer: fine) {
  a:hover {
    text-decoration-color: var(--pink);
  }
  .buehne-weiter:hover .buehne-pfeil {
    translate: 0 3px;
  }
  .abspann-links a:hover {
    text-decoration-color: var(--gruen-licht);
  }
  /* Fläche bleibt Pink und an ihrem Platz; nur der Schatten wird etwas tiefer, der Pfeil rückt. */
  .knopf:hover {
    box-shadow: 0 1px 0 rgb(0 0 0 / 0.14), 0 24px 36px -18px rgb(28 25 23 / 0.8);
  }
  .knopf:hover .knopf-pfeil {
    transform: translate(3px, -3px);
  }
  .urheber-link:hover {
    opacity: 0.82;
    transform: translateY(-1px);
  }
}

/* ---- Bewegung ---- */
@keyframes wellenzug {
  from {
    translate: calc(-7% * var(--spiegel)) 0;
  }
}
@keyframes setzen {
  from {
    scale: 1.14;
  }
}
@keyframes heben {
  from {
    translate: 0 3.5rem;
  }
}
@keyframes faechern {
  from {
    rotate: 0deg;
    translate: 0 3.5rem;
  }
}
/* Genau um den oberen Abstand: Das Logo stößt dabei an die Oberkante, verlässt das Bild aber nie. */
@keyframes sinken {
  from {
    translate: 0 calc(-1 * var(--kopf-oben));
  }
}
@keyframes einblenden {
  from {
    opacity: 0;
  }
}

/* Beim Laden — der erste Frame ist vollständig; die Ebenen setzen sich nur. */
.buehne-welle {
  animation: wellenzug var(--dauer-lang) var(--signatur) both;
}
.buehne-bild img {
  animation: setzen var(--dauer-lang) var(--signatur) both;
}
.buehne-karte {
  animation: heben var(--dauer) var(--signatur) 0.1s both;
}
.buehne-blatt {
  animation: faechern var(--dauer) var(--signatur) 0.25s both;
}
/* Die Sandecke samt Logo setzt sich von der Oberkante her, gegenläufig zur Karte; das Logo ist dabei stets ganz zu sehen. */
.kopf-marke {
  animation: sinken var(--dauer) var(--signatur) 0.1s both;
}
.band-welle {
  animation: wellenzug var(--dauer-lang) var(--signatur) both;
}
.band .fehlt-karte,
.recht-blatt {
  animation: heben var(--dauer) var(--signatur) 0.1s both;
}
.fehlt-zahl {
  animation: einblenden var(--dauer-lang) ease both;
}

/* Beim Scrollen (Klassen und Werte aus bewegung.js; ohne Skript gilt der Ruhezustand). */
.bewegt .dank .w:not(.an) {
  /* 62 % Deckkraft: 4,8 : 1 auf Sand, also auch vor dem Aufleuchten gut lesbar; zum vollen Ink bleibt ein Sprung von 3,1 : 1. */
  color: rgb(20 18 16 / 0.62);
}
/* Den Dank anhalten, während er aufleuchtet; die Hinweiskarte schiebt sich darüber.
   Nur mit Skript (Klasse `bewegt`) und nur, wenn der Bildschirm hoch genug ist. */
@media (min-height: 540px) {
  .bewegt .dank {
    position: sticky;
    top: 0;
    min-height: 100svh;
  }
  .bewegt .hinweis {
    margin-top: 45svh;
  }
}
@media (min-height: 540px) and (max-width: 767px) {
  .bewegt .hinweis {
    margin-top: 25svh;
  }
}
/* Untereinander: Die Kachel wandert weniger als der Abstand zum Text, damit sie nie über die letzte Zeile rutscht. */
@media (max-width: 1023px) {
  .dank-kachel {
    transform: translate3d(0, calc((0.5 - var(--s, 0.5)) * 3rem), 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .knopf:hover .knopf-pfeil,
  .urheber-link:hover {
    transform: none;
  }
}

/* Erzwungene Farben (z. B. Windows-Kontrastmodus): Knopf und Karten behalten Kanten. */
@media (forced-colors: active) {
  .knopf,
  .buehne-karte,
  .hinweis-karte,
  .recht-blatt,
  .fehlt-karte {
    border: 2px solid CanvasText;
  }
  .eyebrow::before,
  .dank-titel::before {
    forced-color-adjust: none;
  }
}

@media print {
  .kopf,
  .welle,
  .kante,
  .buehne-blatt {
    display: none;
  }
  .buehne,
  .weiter-flaeche,
  .abspann-flaeche,
  .band {
    background: none;
    color: var(--ink);
  }
  .urheber-vor,
  .abspann-links a,
  .abspann-betrieb {
    color: var(--ink);
  }
}
