/* Basis für Kundenseiten: Tokens, Grundlayout, Bausteine für Banner, Einbettung und Bewegung.
   Pro Projekt zuerst die Tokens in :root auf die CI des Kunden setzen, dann die Abschnitte gestalten.
   Schriften immer lokal: Dateien nach assets/fonts/ legen und unten bei @font-face eintragen. Nichts von fremden Servern laden. */

/* Beispiel für eine lokale Schrift (woff2 nach assets/fonts/ kopieren, Lizenz der Schrift prüfen):
@font-face {
  font-family: "Hausschrift";
  src: url("../fonts/hausschrift-variable.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
*/

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-variable.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  /* Farben: CI Nordkant Immobilien (monochrom Petrol auf Papier) */
  --flaeche: #f4f3ef;
  --flaeche-2: #e4ebed;
  --tinte: #16191d;
  --tinte-2: #555b61;
  --linie: #d6d4cd;
  --akzent: #1f4e5f;
  --akzent-tinte: #f4f3ef;
  --dunkel: #0e2831;
  --dunkel-tinte: #f4f3ef;

  /* Schrift */
  --schrift: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-titel: "Archivo", system-ui, sans-serif;
  --gr-xs: clamp(0.8rem, 0.77rem + 0.12vw, 0.875rem);
  --gr-s: clamp(0.94rem, 0.9rem + 0.15vw, 1.05rem);
  --gr-m: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --gr-l: clamp(1.4rem, 1.2rem + 0.9vw, 2rem);
  --gr-xl: clamp(2rem, 1.4rem + 2.6vw, 3.6rem);
  --gr-xxl: clamp(2.6rem, 1.3rem + 5.4vw, 6rem);

  /* Abstände und Form */
  --rand: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);
  --breite: 78rem;
  --abschnitt: clamp(4.5rem, 3rem + 7vw, 10rem);
  --radius: 4px;
  --radius-knopf: 4px;
  --ruhe: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--flaeche);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: var(--gr-m);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--schrift-titel); font-weight: 600; line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: var(--gr-xxl); }
h2 { font-size: var(--gr-xl); }
h3 { font-size: var(--gr-l); line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--akzent); color: var(--akzent-tinte); }

.sprung { position: absolute; left: var(--rand); top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--tinte); color: var(--flaeche); border-radius: 0.5rem; }
.sprung:focus { top: 0.75rem; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Layout */
.rahmen { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.abschnitt { padding-block: var(--abschnitt); }
.abschnitt--dunkel { background: var(--dunkel); color: var(--dunkel-tinte); --linie: rgba(246, 244, 239, 0.18); --tinte-2: rgba(246, 244, 239, 0.7); }
.abschnitt--ton { background: var(--flaeche-2); }
.vorspann { display: block; margin-bottom: 1.25rem; font-size: var(--gr-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tinte-2); }
.einleitung { max-width: 38em; font-size: var(--gr-l); line-height: 1.3; color: var(--tinte-2); }
.leise { color: var(--tinte-2); }
.raster { display: grid; gap: clamp(1.25rem, 0.8rem + 2vw, 2.5rem); }
@media (min-width: 720px) {
  .raster--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raster--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.stapel > * + * { margin-top: var(--stapel, 1.5rem); }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3rem; padding: 0.7rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--radius-knopf);
  background: var(--akzent); color: var(--akzent-tinte);
  font-size: var(--gr-s); font-weight: 600; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform 0.4s var(--ruhe), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.knopf:hover { transform: translateY(-2px); }
.knopf:active { transform: translateY(0); }
.knopf--hell { background: var(--tinte); color: var(--flaeche); }
.knopf--linie { background: transparent; color: inherit; border-color: currentColor; }
.knopf--text { min-height: 0; padding: 0.4rem 0.2rem; background: transparent; color: inherit; text-decoration: underline; }

/* Seitenkopf */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: transform 0.5s var(--ruhe), background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.kopf__innen { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.kopf--gerollt { background: color-mix(in srgb, var(--flaeche) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--linie); }
.kopf--versteckt { transform: translateY(-100%); }
.kopf:focus-within { transform: none; }
.kopf .knopf { white-space: nowrap; }
@media (max-width: 520px) { .kopf .knopf { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: var(--gr-xs); } }
.marke { font-weight: 700; letter-spacing: -0.02em; text-decoration: none; font-size: var(--gr-m); }
.menue { display: none; gap: 2rem; align-items: center; font-size: var(--gr-s); }
.menue a { text-decoration: none; }
.menue a:hover, .menue a[aria-current="page"], .menue__gruppe--aktiv > a { text-decoration: underline; }
.menue__gruppe { position: relative; }
.menue__unter { display: grid; gap: 0.35rem; }
.menue-knopf { display: none; place-content: center; gap: 0.4rem; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.menue-knopf i { display: block; width: 1.4rem; height: 2px; background: currentColor; transition: transform 0.4s var(--ruhe); }
.menue-offen .menue-knopf i:first-of-type { transform: translateY(0.25rem) rotate(45deg); }
.menue-offen .menue-knopf i:last-of-type { transform: translateY(-0.25rem) rotate(-45deg); }
@media (min-width: 860px) {
  .menue { display: flex; }
  .menue__unter {
    position: absolute; top: 100%; left: -1.1rem; min-width: 15rem; margin-top: 0.6rem; padding: 0.9rem 1.1rem;
    background: var(--flaeche); color: var(--tinte); border: 1px solid var(--linie); border-radius: 0.85rem;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.25s, transform 0.4s var(--ruhe), visibility 0.25s;
  }
  .menue__gruppe::after { content: ""; position: absolute; inset: 100% -1rem auto -1rem; height: 0.8rem; }
  .menue__gruppe:hover .menue__unter, .menue__gruppe:focus-within .menue__unter { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 859.98px) {
  .kopf .marke { margin-right: auto; white-space: nowrap; }
  .kopf__innen { gap: 0.6rem; }
  .menue-bereit .menue-knopf { display: inline-grid; }
  .menue-bereit .menue {
    position: absolute; inset: 100% 0 auto 0; height: calc(100dvh - 4.5rem); overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--rand) 4rem;
    background: var(--flaeche); color: var(--tinte); font-size: var(--gr-l); font-weight: 600; letter-spacing: -0.02em;
    opacity: 0; visibility: hidden; transform: translateY(-0.75rem); transition: opacity 0.3s, transform 0.5s var(--ruhe), visibility 0.3s;
  }
  .menue-offen .menue { opacity: 1; visibility: visible; transform: none; }
  .menue-bereit .menue > a, .menue-bereit .menue__gruppe > a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--linie); }
  .menue-bereit .menue__unter { padding: 0.9rem 0 1.1rem 1rem; gap: 0.7rem; border-bottom: 1px solid var(--linie); font-size: var(--gr-m); font-weight: 400; letter-spacing: 0; }
  .menue-offen, .menue-offen body { overflow: hidden; }
  .menue-offen .kopf { transform: none; background: var(--flaeche); color: var(--tinte); border-color: var(--linie); }
}

/* Unterseiten: Seitenkopf, Pfad, Kacheln zu Detailseiten, Team, Stellen, Weg zur nächsten Seite */
.seitenkopf { position: relative; isolation: isolate; display: grid; align-items: end; min-height: 62svh; padding-block: 10rem clamp(3rem, 2rem + 4vw, 6rem); overflow: clip; }
.seitenkopf h1 { max-width: 16ch; }
.seitenkopf--bild { min-height: 92svh; color: #fff; --tinte-2: rgba(255, 255, 255, 0.78); --linie: rgba(255, 255, 255, 0.3); }
.seitenkopf__bild { position: absolute; inset: -8% 0; z-index: -2; width: 100%; height: 116%; object-fit: cover; }
.seitenkopf--bild::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42) 55%, rgba(0, 0, 0, 0.62)); }
.pfad { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; margin-bottom: 1.5rem; font-size: var(--gr-xs); color: var(--tinte-2); }
.pfad a { text-decoration: none; }
.pfad a:hover { text-decoration: underline; }
.pfad a::after { content: "/"; margin-left: 0.6rem; opacity: 0.6; }
.kacheln { display: grid; gap: clamp(1rem, 0.6rem + 1.6vw, 2rem); }
@media (min-width: 720px) { .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kacheln > li:first-child { grid-column: 1 / -1; } .kacheln > li:first-child .kachel { aspect-ratio: 21 / 9; } }
.kachel { position: relative; display: grid; align-items: end; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; isolation: isolate; }
.kachel img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ruhe); }
.kachel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0) 75%); }
.kachel:hover img { transform: scale(1.05); }
.kachel__text { display: grid; gap: 0.3rem; padding: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem); --tinte-2: rgba(255, 255, 255, 0.8); }
.kachel__text strong { font-family: var(--schrift-titel); font-size: var(--gr-l); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.merkmale { display: grid; margin: 0; }
.merkmale > div { display: grid; gap: 0.4rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--linie); }
.merkmale dt { font-family: var(--schrift-titel); font-size: var(--gr-l); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.merkmale dd { margin: 0; color: var(--tinte-2); }
@media (min-width: 720px) { .merkmale > div { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: baseline; } }
.merkmale--schmal > div { grid-template-columns: minmax(0, 1fr); }
.merkmale--schmal dt { font-size: var(--gr-xs); font-weight: 600; letter-spacing: 0.02em; color: var(--tinte-2); }
.merkmale--schmal dd { font-size: var(--gr-l); color: inherit; }
.personen { display: grid; gap: clamp(2rem, 1.2rem + 3vw, 4rem) clamp(1.25rem, 0.8rem + 2vw, 2.5rem); }
@media (min-width: 620px) { .personen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .personen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person { display: grid; gap: 0.5rem; align-content: start; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 0.75rem; }
.person__zeichen { display: grid; place-items: center; aspect-ratio: 4 / 5; margin-bottom: 0.75rem; border: 1px solid var(--linie); border-radius: var(--radius); font-family: var(--schrift-titel); font-size: var(--gr-xxl); font-weight: 400; line-height: 1; letter-spacing: -0.04em; color: var(--tinte-2); }
.person h2 { font-size: var(--gr-l); }
.stellen { border-bottom: 1px solid var(--linie); }
.stelle { border-top: 1px solid var(--linie); }
.stelle summary { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; align-items: baseline; justify-content: space-between; padding-block: 1.4rem; cursor: pointer; list-style: none; }
.stelle summary::-webkit-details-marker { display: none; }
.stelle summary strong { font-family: var(--schrift-titel); font-size: var(--gr-l); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.stelle[open] summary strong { text-decoration: underline; text-decoration-thickness: 1px; }
.stelle > div { padding-bottom: 2rem; max-width: 38em; }
.weiter { padding-block: 0; }
.weiter__link { display: grid; gap: 0.5rem; padding-block: clamp(3.5rem, 2rem + 7vw, 8rem); text-decoration: none; }
.weiter__link strong { font-family: var(--schrift-titel); font-size: var(--gr-xxl); font-weight: 600; line-height: 1; letter-spacing: -0.035em; transition: transform 0.7s var(--ruhe); }
.weiter__link:hover strong { transform: translateX(0.12em); }

/* Seitenfuß */
.fuss { padding-block: 3rem; border-top: 1px solid var(--linie); font-size: var(--gr-s); color: var(--tinte-2); }
.fuss__innen { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; }
.fuss button { padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; color: inherit; }

/* Cookie-Banner */
.cookie {
  position: fixed; z-index: 90; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 34rem; max-height: calc(100dvh - 2rem); overflow: auto; margin-left: auto;
  padding: 1.5rem; border-radius: var(--radius);
  background: var(--flaeche); color: var(--tinte); border: 1px solid var(--linie);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.35);
  font-size: var(--gr-s); line-height: 1.5;
}
.cookie__titel { font-size: var(--gr-m); letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.cookie__einleitung { color: var(--tinte-2); }
.cookie__details { margin-top: 1rem; border-top: 1px solid var(--linie); }
.cookie__zeile { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.8rem 0; border-bottom: 1px solid var(--linie); cursor: pointer; }
.cookie__zeile input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--tinte); flex: none; }
.cookie__text { display: grid; gap: 0.1rem; }
.cookie__text span { color: var(--tinte-2); }
.cookie__knoepfe { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; align-items: center; }
.cookie__knoepfe .knopf--linie { flex: 1 1 9rem; }
.cookie [hidden] { display: none; }

/* Einbettung (Terminbuchung, Video, Formular): Platzhalter bis zur Zustimmung */
.einbettung { position: relative; min-height: var(--hoehe, 28rem); border-radius: var(--radius); overflow: hidden; background: var(--flaeche-2); border: 1px solid var(--linie); }
.einbettung iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.einbettung__hinweis { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; padding: 2rem; text-align: center; font-size: var(--gr-s); }
.einbettung__hinweis p { max-width: 30em; color: var(--tinte-2); }

/* Lücke in Rechtstexten und Entwürfen: sichtbar, bis der Kunde geliefert hat */
.luecke { padding: 0.1em 0.35em; border-radius: 0.3em; background: #ffe27a; color: #2a2300; }

/* Bewegung: Grundzustände. Alles Weitere macht assets/js/bewegung.js */
.bewegung-wartet [data-bewegung="auftakt"], .bewegung-wartet [data-bewegung="zeilen"] { visibility: hidden; }
.zeile { padding-bottom: 0.08em; }
[data-bewegung="parallax"] { will-change: transform; }
[data-bewegung="fortschritt"] { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 3px; background: var(--akzent); transform-origin: 0 50%; transform: scaleX(0); }

[data-bewegung="laufband"] { display: flex; overflow: hidden; gap: var(--luecke-band, 3rem); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
[data-bewegung="laufband"] > * { display: flex; flex: none; align-items: center; gap: var(--luecke-band, 3rem); min-width: 100%; justify-content: space-around; animation: laufband var(--dauer, 30s) linear infinite; }
[data-bewegung="laufband"]:hover > * { animation-play-state: paused; }
.laufband--steht > * { animation: none; }
.laufband--steht > [aria-hidden="true"] { display: none; }
@keyframes laufband { to { transform: translateX(calc(-100% - var(--luecke-band, 3rem))); } }

/* Szene: Abschnitt bleibt stehen, der Ablauf folgt dem Scrollen. Ohne JavaScript, bei "weniger Bewegung" und im Prüfmodus
   stehen Bild und Texte einfach untereinander. Aufbau: .szene > .szene__hinten (Bild, Bildfolge, Video) + .szene__vorn (Texte) */
.szene { position: relative; background: var(--dunkel); color: var(--dunkel-tinte); --linie: rgba(246, 244, 239, 0.18); --tinte-2: rgba(246, 244, 239, 0.72); }
.szene__hinten { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.szene__hinten > img, .szene__hinten > video, .szene__hinten > .bildfolge { width: 100%; height: 100%; object-fit: cover; }
.szene__schleier { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.82)); opacity: 0.6; pointer-events: none; }
.szene__vorn { display: grid; gap: 3rem; padding-block: var(--abschnitt); }
.szene--aktiv { height: 100vh; height: 100svh; overflow: hidden; }
.szene--aktiv .szene__hinten { position: absolute; inset: 0; aspect-ratio: auto; will-change: clip-path; }
.szene--aktiv .szene__vorn { position: absolute; inset: 0; gap: 0; padding-block: clamp(5rem, 12vh, 9rem) clamp(3rem, 9vh, 7rem); align-items: end; }
.szene--aktiv .szene__vorn--mitte { align-items: center; }
.szene--aktiv .szene__vorn > [data-schritt] { grid-area: 1 / 1; }
.szene--aktiv [data-szene-zoom] { will-change: transform; }

/* Bildfolge: das erste Bild steht als <img> im HTML, die Zeichenfläche legt sich darüber, sobald Bilder geladen sind */
.bildfolge { position: relative; display: block; overflow: hidden; background: var(--dunkel); }
.bildfolge > img { width: 100%; height: 100%; object-fit: cover; }
.bildfolge > canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.bildfolge--bereit > canvas { opacity: 1; }

/* Große Schrift: zwei sehr große Zeilen, die beim Scrollen gegeneinander wandern */
.schriftpaar { overflow: hidden; overflow: clip; padding-block: clamp(2rem, 6vw, 5rem); }
.schriftzug { margin: 0; width: max-content; min-width: 100%; white-space: nowrap; font-family: var(--schrift-titel); font-size: var(--gr-riesig, clamp(4rem, 15vw, 15rem)); font-weight: 600; line-height: 0.95; letter-spacing: -0.04em; will-change: transform; }
.schriftzug--linie { color: transparent; -webkit-text-stroke: 1.5px currentColor; -webkit-text-stroke-color: var(--tinte); }
.abschnitt--dunkel .schriftzug--linie, .szene .schriftzug--linie { -webkit-text-stroke-color: var(--dunkel-tinte); }
.schriftpaar > .schriftzug:nth-child(even) { margin-left: auto; }
.lesetext { max-width: 22em; font-family: var(--schrift-titel); font-size: var(--gr-xl); line-height: 1.12; letter-spacing: -0.02em; }

/* 3D-Bühne: feste Fläche hinter der Seite (assets/js/buehne3d.js). Der Hintergrund hier bleibt stehen, wenn 3D nicht geht */
.buehne3d { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--buehne-grund, none); }
.buehne3d canvas { display: block; width: 100%; height: 100%; }
.buehne3d ~ main, .buehne3d ~ footer { position: relative; z-index: 1; }
@media (max-width: 759px) { .buehne3d canvas { opacity: 0.7; } }

[data-bewegung="horizontal"] { overflow: hidden; }
[data-bewegung="horizontal"] .spur { display: flex; gap: clamp(1rem, 2vw, 2rem); padding-inline: max(var(--rand), (100vw - var(--breite)) / 2); width: max-content; }
[data-bewegung="horizontal"] .spur > * { flex: none; width: min(80vw, 30rem); }
@media (max-width: 899px) {
  [data-bewegung="horizontal"] { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  [data-bewegung="horizontal"] .spur > * { scroll-snap-align: center; }
}
.pruefmodus [data-bewegung="horizontal"] { overflow-x: auto; }
.pruefmodus .schriftzug { width: auto; min-width: 0; white-space: normal; }
/* Prüfmodus zeigt den Endzustand: keine Übergänge, sonst landen halbe Zustände im Bild */
.pruefmodus *, .pruefmodus *::before, .pruefmodus *::after { transition: none !important; animation: none !important; }

/* Weicher Seitenwechsel zwischen den Unterseiten (Browser ohne Unterstützung wechseln normal) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; animation-timing-function: var(--ruhe); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
  [data-bewegung="fortschritt"] { display: none; }
}

@media print {
  .kopf, .cookie, .buehne3d, [data-bewegung="fortschritt"] { display: none; }
}
