/* pepperle.de — portiert aus dem Claude-Design-Entwurf (Quellen/Claude Design) */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #05325c;
}

a { color: #ea4f43; text-decoration: none; }
a:hover { color: #f5837a; }

button { -webkit-appearance: none; appearance: none; }

/* ---------- Keyframes ---------- */
@keyframes sigFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hintCycle { from { opacity: 0; } to { opacity: 1; } }
@keyframes hintPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes drift {
  0%   { transform: translateY(116vh) scale(0.97); opacity: 0; }
  9%   { opacity: 1; }
  86%  { opacity: 1; }
  100% { transform: translateY(-132vh) scale(1.05); opacity: 0; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbZoom { from { opacity: 0; transform: scale(0.62); } to { opacity: 1; transform: scale(1); } }

/* ---------- Bühne ---------- */
#stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(125% 105% at 50% 38%, #0c4d84 0%, #05365f 46%, #021f3b 100%);
  color: #eef3f8;
  font-family: Archivo, Helvetica, Arial, sans-serif;
}

.glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(80% 60% at 50% 46%, rgba(11,77,132,0.35) 0%, rgba(2,31,59,0) 70%);
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(2,26,50,0.88) 0%, rgba(2,26,50,0.25) 17%, rgba(2,26,50,0) 34%, rgba(2,26,50,0) 62%, rgba(2,26,50,0.55) 84%, rgba(2,26,50,0.92) 100%);
}

/* ---------- Drift-Ebene ---------- */
#drift {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.5s ease;
}
#drift.faded { opacity: 0; }

.tile {
  position: absolute;
  top: 0;
  opacity: 0;
  cursor: pointer;
  will-change: transform;
  animation: drift linear infinite;
}
#drift.paused .tile { animation-play-state: paused; }

.tile img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Logo & Tagline ----------
   Abstand fest vom oberen Rand statt über -50vh: iOS rechnet vh ohne die
   Safari-Leiste, wodurch das Logo auf iPad und iPhone oben abgeschnitten wurde. */
.om-logo {
  position: absolute;
  z-index: 7;
  top: calc(42px + env(safe-area-inset-top, 0px));
  left: 50%;
  width: min(86vw, 1120px);
  transform-origin: 45.26% 0;
  transform: translateX(-45.26%) scale(0.28);
}
.om-logo svg { display: block; width: 100%; height: auto; overflow: visible; }
a.om-logo { display: block; text-decoration: none; cursor: pointer; }

/* Auftritt in zwei Stufen. Stufe eins: die bereits fahrenden Bilder blenden ein,
   sobald sie geladen sind (Opacity-Übergang von #drift, gesteuert in app.js).
   Stufe zwei: eine Sekunde später folgen Logo, Tagline, Kontakt und die
   Navigation unten — ausgelöst durch die Klasse .intro-ready auf #stage.
   Bewusst nicht über feste CSS-Verzögerungen: die laufen ab Seitenaufbau los
   und waren regelmäßig durch, bevor die Bilder überhaupt geladen waren. */
.om-logo polygon,
.om-logo image { opacity: 0; }
.intro-ready .om-logo polygon { animation: sigFade 0.7s ease 0s forwards; }
.intro-ready .om-logo image { animation: sigFade 0.8s ease 0.15s forwards; }

.om-tag {
  position: absolute;
  z-index: 7;
  top: calc(42px + env(safe-area-inset-top, 0px) + min(86vw, 1120px) * 0.0574 + 70px);
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0;
  transform: none;
}
.intro-ready .om-tag { animation: sigFade 0.8s ease 0.3s forwards; }

/* Mobil: Logo fix vom oberen Rand positionieren (nicht via -50vh — iOS-Toolbar
   verschiebt sonst das Logo aus dem Bild) und unter dem Kontakt-Button halten */
@media (max-width: 760px) {
  .om-logo {
    top: 78px;
    transform: translateX(-45.26%) scale(0.63);
  }
  .om-tag {
    top: calc(78px + min(86vw, 1120px) * 0.252 + 18px);
    transform: none;
  }
}

/* ---------- Lightbox ---------- */
#lightbox {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1,17,33,0.74);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: lbFade 0.5s ease both;
}
#lightbox[hidden] { display: none; }
.lb-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 80vw;
  animation: lbZoom 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lb-inner img {
  display: block;
  max-width: 80vw;
  max-height: 72vh;
  width: auto;
  height: auto;
  box-shadow: 0 90px 180px rgba(0,7,16,0.85), 0 30px 60px rgba(0,7,16,0.6);
}
.lb-title {
  margin: 0;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(238,243,248,0.82);
}
/* Am Bildrand fixiert statt frei im Overlay zu schweben: .lb-close sitzt jetzt
   in .lb-inner und positioniert sich relativ zum Bild (dessen Breite/Höhe die
   Größe von .lb-inner bestimmt), nicht mehr relativ zum ganzen Viewport. */
.lb-close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(238,243,248,0.28);
  background: rgba(1,17,33,0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #eef3f8;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 20px;
  line-height: 1;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.lb-close:hover { background: #ea4f43; border-color: #ea4f43; }
@media (max-width: 760px) {
  .lb-close { top: -14px; right: -14px; width: 40px; height: 40px; font-size: 18px; }
}

/* ---------- Kontakt-Button oben rechts ---------- */
.topbar {
  position: absolute;
  z-index: 10;
  top: 24px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
}
.intro-ready .topbar { animation: fadeUp 0.7s ease 0.3s forwards; }
.contact-btn {
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 19px;
  border-radius: 999px;
  border: 1px solid #ea4f43;
  background: #ea4f43;
  color: #ffffff;
  transition: background 0.3s ease;
}
.contact-btn:hover { background: #f5645a; }

/* ---------- Modale (Kontakt / Rechtliches / Kategorien-Sheet) ---------- */
#contactModal {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(1,17,33,0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fadeUp 0.35s ease both;
}
#contactModal[hidden] { display: none; }
.contact-card {
  position: relative;
  width: min(92vw, 520px);
  box-sizing: border-box;
  background: linear-gradient(160deg, #073c68 0%, #042a4c 100%);
  border: 1px solid rgba(238,243,248,0.14);
  box-shadow: 0 60px 140px rgba(0,8,18,0.7);
  padding: 34px 34px 30px;
}
.contact-card h2 { margin: 0 0 6px; font-size: 26px; font-weight: 500; letter-spacing: -0.01em; }
.form-note {
  margin: 0 0 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(238,243,248,0.5);
}
.contact-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: 0;
  cursor: pointer;
  color: rgba(238,243,248,0.55);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  line-height: 1;
  padding: 8px;
}
.contact-close:hover { color: #ffffff; }
#contactForm { display: flex; flex-direction: column; gap: 14px; }
#contactForm input,
#contactForm textarea {
  background: rgba(1,17,33,0.45);
  border: 1px solid rgba(238,243,248,0.18);
  color: #eef3f8;
  padding: 13px 14px;
  font-family: Archivo, Helvetica, Arial, sans-serif;
  font-size: 15px;
  outline: none;
  border-radius: 0;
}
#contactForm textarea { resize: none; }
#contactForm input:focus,
#contactForm textarea:focus { border-color: rgba(234,79,67,0.8); }
#contactForm button {
  margin-top: 4px;
  cursor: pointer;
  align-self: flex-start;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 13px 24px;
  border: 1px solid rgba(234,79,67,0.85);
  border-radius: 999px;
  background: rgba(234,79,67,0.9);
  color: #ffffff;
  transition: background 0.3s ease;
}
#contactForm button:hover { background: #ea4f43; }
.thanks {
  margin: 0;
  padding: 26px 0 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #ea4f43;
}
.thanks[hidden] { display: none; }
#contactForm[hidden] { display: none; }

#legalModal {
  position: absolute;
  inset: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10vh 10vw;
  background: rgba(1,17,33,0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: lbFade 0.35s ease both;
}
#legalModal[hidden] { display: none; }
.legal-card {
  position: relative;
  width: min(80vw, 760px);
  max-height: 80vh;
  min-height: 0;
  box-sizing: border-box;
  overflow-y: auto;
  background: linear-gradient(160deg, #073c68 0%, #042a4c 100%);
  border: 1px solid rgba(238,243,248,0.14);
  box-shadow: 0 60px 140px rgba(0,8,18,0.7);
  padding: 40px clamp(22px, 4vw, 52px) 46px;
  animation: lbZoom 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.legal-card > h2 {
  margin: 0 0 26px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  padding-right: 54px;
}
.legal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(238,243,248,0.28);
  background: rgba(1,17,33,0.6);
  color: #eef3f8;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 19px;
  line-height: 1;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.legal-close:hover { background: #ea4f43; border-color: #ea4f43; }
.legal-card p { white-space: pre-line; text-wrap: pretty; }

#sheetModal {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 22px;
  background: rgba(1,17,33,0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: lbFade 0.3s ease both;
}
#sheetModal[hidden] { display: none; }
.sheet-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  max-height: 84vh;
  overflow-y: auto;
}
.sheet-inner a {
  display: block;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 18px;
  border-radius: 999px;
}

/* ---------- Unterer Bereich ---------- */
.bottom {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}
.intro-ready .bottom { animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards; }
.hint-wrap {
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  animation: hintCycle 1.2s ease 10s both;
}
.hint-wrap span {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(238,243,248,0.72);
  animation: hintPulse 2.8s ease-in-out 10s infinite both;
}
.note {
  margin: 0;
  min-height: 15px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(238,243,248,0);
}
.note.warn { color: rgba(234,79,67,0.9); }

.cats-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.cats-nav[hidden] { display: none; }

#mobileNav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#mobileNav[hidden] { display: none; }

.cat-pill {
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 15px;
  border-radius: 999px;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.cat-pill:hover { border-color: rgba(234,79,67,0.85) !important; color: #ffffff !important; }
.cat-pill.mobile { padding: 11px 16px; }

.legal-link {
  align-self: center;
  background: none;
  border: 0;
  padding: 9px 4px 9px 12px;
  cursor: pointer;
  opacity: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(238,243,248,0.45);
  transition: color 0.3s ease;
}
.intro-ready .legal-link { animation: sigFade 0.7s ease 0.9s both; }
.legal-link:hover { color: #ffffff; }
.legal-link.mobile { padding: 4px 2px; animation: none; opacity: 1; }

/* Bewegung reduzieren, wenn vom System gewünscht: app.js baut dann eine ruhende
   Collage (feste top-Werte statt Drift-Animation). Diese Regel greift zusätzlich,
   falls die Einstellung erst nach dem Aufbau der Seite aktiviert wird. */
@media (prefers-reduced-motion: reduce) {
  .tile { animation-play-state: paused !important; }
}

/* Kein gestaffelter Auftritt: Logo, Tagline, Kontakt und Navigation sind
   sofort da, statt herein zu faden oder zu wandern. Gilt bei reduzierter
   Bewegung UND wenn app.js/page.js erkennen, dass innerhalb der Seite
   navigiert wurde (Klick auf Logo/Kategorie) statt eines echten Neuladens —
   die Bühne soll dann nicht bei jedem Seitenwechsel neu "einblenden". */
@media (prefers-reduced-motion: reduce) {
  .om-logo polygon, .om-logo image, .om-tag, .topbar, .bottom, .legal-link {
    opacity: 1;
    animation: none !important;
  }
}
.stage-instant .om-logo polygon,
.stage-instant .om-logo image,
.stage-instant .om-tag,
.stage-instant .topbar,
.stage-instant .bottom,
.stage-instant .legal-link {
  opacity: 1;
  animation: none !important;
}

/* ---------- Ergänzungen für die Unterseiten-Anbindung ---------- */

/* Nur für Vorleseprogramme und Suchmaschinen sichtbar. Wird für den Namen in
   der Überschrift gebraucht, weil der Schriftzug im Logo eine Grafik ist. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.om-tag { text-wrap: balance; }

/* Grundzustand der Kategorie-Pillen. Bisher setzte ausschließlich pillStyle()
   in app.js Rahmen und Farbe — seit die Pillen als echte Links schon im HTML
   stehen, brauchen sie ein Aussehen, bevor das Skript gelaufen ist. */
.cat-pill {
  text-decoration: none;
  border: 1px solid rgba(238,243,248,0.28);
  background: rgba(238,243,248,0.04);
  color: rgba(238,243,248,0.78);
}
a.cat-pill { display: inline-block; line-height: normal; }

/* Aktive Kachel auf den Kategorieseiten (die Startseite selbst ist ja keine
   Kategorie und kennt diesen Zustand nicht). */
.cat-pill.current {
  border-color: rgba(234,79,67,0.9);
  background: rgba(234,79,67,0.16);
  color: #ffffff;
}
.cat-pill.current:hover { border-color: rgba(234,79,67,0.9); }

/* "Weitere Kategorien" — nur auf schmalen Displays sichtbar, siehe
   Media-Query weiter unten. */
.cat-pill.more { display: none; }
/* "Startseite" — auf den Kategorieseiten ebenfalls nur auf schmalen Displays:
   dort ersetzt sie den unteren Kategorien-Streifen weitgehend durch .current +
   .more, das Logo oben bleibt zwar klickbar, ist als "zurück"-Weg auf Mobile
   aber leicht zu übersehen. */
.cat-pill.home { display: none; }
@media (max-width: 760px) {
  .cats-nav .cat-pill:not(.current):not(.more):not(.home) { display: none; }
  .cat-pill.more, .cat-pill.home { display: inline-block; }
}

.legal-link { text-decoration: none; }
a.legal-link { display: inline-block; }

.lang-btn {
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(238,243,248,0.28);
  background: rgba(238,243,248,0.04);
  color: rgba(238,243,248,0.78);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.lang-btn:hover { border-color: rgba(234,79,67,0.85); color: #ffffff; }

/* ---------- Kategorieseiten ----------
   Dieselbe feststehende Bühne wie die Startseite (Logo, Tagline, Kontakt,
   Kategorien-Leiste, Blur-Fades) — nur läuft in der Mitte statt der Drift-
   Collage ein scrollbares Werk-Raster. Genutzt von den 9 Kategorieseiten und
   der Rechtsseite (siehe Quellen/build-seiten.mjs, js/page.js). */

.om-scroll {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.om-scroll::-webkit-scrollbar { width: 8px; }
.om-scroll::-webkit-scrollbar-thumb { background: rgba(238,243,248,0.16); }

.om-pad {
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(190px, 30vh, 300px) clamp(20px, 4vw, 56px) calc(var(--navh, 150px) + 90px);
}
.om-pad h1 {
  margin: 0 0 34px;
  text-align: center;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
.om-intro {
  margin: 22px auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.66;
  color: rgba(238,243,248,0.62);
  text-wrap: pretty;
}
.om-intro p { margin: 0 0 14px; }
.om-intro p:last-child { margin-bottom: 0; }
.om-count {
  margin: 30px 0 34px;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(238,243,248,0.42);
}

.om-grid { column-count: 4; column-gap: 30px; }
.om-grid > figure {
  position: relative;
  margin: 0 0 30px;
  break-inside: avoid;
  overflow: hidden;
  cursor: zoom-in;
  background: linear-gradient(160deg, #073c68 0%, #042a4c 100%);
  box-shadow: 0 18px 34px rgba(0,9,20,0.55), 0 5px 12px rgba(0,9,20,0.4);
  opacity: 0;
}
/* Der Einblend-Zeitpunkt wird von js/page.js gesetzt, nachdem die tatsächliche
   Position im Masonry-Raster gemessen wurde — nur so blenden die oberen
   Bilder wirklich vor den unteren ein (CSS-Spaltenlayout füllt Spalte für
   Spalte, nicht Zeile für Zeile). Ohne JavaScript bleiben sie einfach sichtbar. */
.om-grid > figure.om-figure-in {
  animation: tileIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.om-grid img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.om-grid figure:hover img { transform: scale(1.055); }

@keyframes tileIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1180px) { .om-grid { column-count: 3; } }
@media (max-width: 760px) {
  .om-pad { padding: clamp(170px, 26vh, 220px) 16px calc(var(--navh, 150px) + 70px); }
  .om-grid { column-count: 2; column-gap: 16px; }
  .om-grid > figure { margin: 0 0 16px; }
}

/* Progressive Blur-Fades oben/unten: der Inhalt hinter der Leiste wird zum
   Rand hin zunehmend unscharf statt nur abgedunkelt (ersetzt/ergänzt die
   reine Verlaufs-Vignette der Startseite). */
.om-fade-top {
  position: absolute;
  z-index: 5;
  left: 0; right: 0; top: 0;
  height: clamp(140px, 22vh, 260px);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(2,26,50,0.96) 0%, rgba(2,26,50,0.88) 18%, rgba(2,26,50,0.66) 38%, rgba(2,26,50,0.38) 58%, rgba(2,26,50,0.14) 78%, rgba(2,26,50,0) 100%);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 26%, rgba(0,0,0,0.7) 48%, rgba(0,0,0,0.32) 70%, rgba(0,0,0,0.07) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 26%, rgba(0,0,0,0.7) 48%, rgba(0,0,0,0.32) 70%, rgba(0,0,0,0.07) 88%, transparent 100%);
}
.om-fade {
  position: absolute;
  z-index: 5;
  left: 0; right: 0; bottom: 0;
  height: clamp(150px, 24vh, 280px);
  pointer-events: none;
  background: linear-gradient(to top, rgba(2,26,50,0.96) 0%, rgba(2,26,50,0.9) 16%, rgba(2,26,50,0.72) 34%, rgba(2,26,50,0.42) 56%, rgba(2,26,50,0.16) 76%, rgba(2,26,50,0) 100%);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 24%, rgba(0,0,0,0.72) 46%, rgba(0,0,0,0.34) 68%, rgba(0,0,0,0.08) 86%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 24%, rgba(0,0,0,0.72) 46%, rgba(0,0,0,0.34) 68%, rgba(0,0,0,0.08) 86%, transparent 100%);
}

/* Rechtstext (Impressum & Datenschutz auf einer Seite) innerhalb der Bühne */
.om-legal { max-width: 68ch; margin: 0 auto; }
.om-legal h2 {
  margin: 54px 0 22px;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-align: left;
  scroll-margin-top: 220px;
}
.om-legal h3 {
  margin: 34px 0 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ea4f43;
  font-weight: 400;
}
.om-legal h4 {
  margin: 22px 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}
.om-legal p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(238,243,248,0.78);
  text-wrap: pretty;
}

/* Ohne JavaScript: statt der Collage eine schlichte, benutzbare Seite */
.noscript-fallback {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: auto;
  background: #05325c;
  color: #eef3f8;
  font-family: Archivo, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  padding: 40px 24px;
  text-align: center;
}
.noscript-fallback h2 { font-weight: 500; font-size: clamp(22px, 4vw, 32px); margin: 0 0 18px; }
.noscript-fallback p { max-width: 60ch; margin: 0 auto 22px; }
.noscript-fallback nav {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 760px; margin: 0 auto 26px;
}
.noscript-fallback nav a {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(238,243,248,0.28); color: rgba(238,243,248,0.85);
}
