/* PrismaX — Marken-Intro (Pixel-Auflösung)
   Vollständig gekapselt unter dem Präfix ".pxi" / "pxi-" — greift ausschließlich auf
   bestehende CSS-Variablen aus styles.css zu (--bg-main, --sand*, --serif, --sans, --ease,
   --text-soft, --text-muted). Keine neue Farbwelt, keine neuen Fonts.
   Ohne JavaScript bleibt #pxi-intro durch das HTML-Attribut "hidden" verborgen — die
   Website ist in diesem Fall vollständig und sofort nutzbar (siehe intro.js). */

#pxi-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
#pxi-intro[hidden] { display: none; }

.pxi-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 95% at 50% 38%, #20262A 0%, #181C1E 46%, var(--bg-main) 78%, #121516 100%);
}

/* sehr dezentes, statisches Wasserzeichen — ein einzelner, weit aufgelöster Dreieck-Kontur,
   deutlich unter der Deckkraft des Hauptlogos, rein atmosphärisch */
.pxi-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .05;
  pointer-events: none;
}
.pxi-watermark svg { width: min(90vw, 900px); height: auto; }

.pxi-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  max-width: 720px;
}

.pxi-greet {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(14px, 3.6vw, 18px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 clamp(14px, 3.4vh, 26px);
  opacity: 0;
  transform: translateX(-46px);
  will-change: transform, opacity;
}

.pxi-logo-wrap {
  position: relative;
  display: inline-flex;
  margin-bottom: clamp(18px, 4vh, 34px);
}
.pxi-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.6vw, 18px);
  opacity: .15;
  filter: blur(10px) brightness(.35);
  will-change: filter, opacity;
}
.pxi-logo-mark { flex-shrink: 0; width: clamp(46px, 11vw, 72px); height: auto; }
.pxi-logo-text {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(34px, 11vw, 72px);
  letter-spacing: .01em;
  line-height: 1;
  background: linear-gradient(120deg, var(--sand-light) 0%, var(--sand) 50%, var(--sand-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* wandernder Lichtschein während der Logo-Enthüllung — per JS-Transform/-Opacity
   angesteuert, blend-mode screen hält die Wirkung zurückhaltend statt neonartig */
.pxi-sheen {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 50%;
  width: 60%;
  transform: translateX(-130%) skewX(-12deg);
  background: linear-gradient(90deg, transparent 0%, rgba(227,205,160,.55) 50%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.pxi-desc-main {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 3.6vw, 23px);
  color: var(--text-soft);
  clip-path: inset(0 100% 0 0);
  transform: translateY(6px);
  opacity: 0;
  will-change: clip-path, transform, opacity;
}
.pxi-desc-sub {
  margin: clamp(8px, 1.6vh, 12px) 0 0;
  font-family: var(--sans);
  font-size: clamp(12px, 2.8vw, 14px);
  letter-spacing: .05em;
  color: var(--text-muted);
  clip-path: inset(0 100% 0 0);
  transform: translateY(6px);
  opacity: 0;
  will-change: clip-path, transform, opacity;
}

.pxi-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}

.pxi-skip {
  position: absolute;
  left: 50%;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 18px));
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px clamp(14px, 4vw, 20px);
  font-family: var(--sans);
  font-size: clamp(11.5px, 3.1vw, 13px);
  white-space: nowrap;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border, rgba(255,255,255,.14));
  border-radius: 100px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .5s ease, color .3s ease, border-color .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.pxi-skip.pxi-visible { opacity: 1; }
.pxi-skip:hover, .pxi-skip:focus-visible { color: var(--sand-light); border-color: var(--sand-light); }
.pxi-skip:focus-visible { outline: 2px solid var(--sand-light); outline-offset: 3px; }

/* Die Scroll-Sperre während des Intros setzt lediglich die Klasse "pxi-lock" auf <html>
   (overflow:hidden, siehe styles.css) — siehe das synchrone Inline-Skript im HTML sowie
   intro.js. Keine Breiten-/Padding-Berechnung nötig: styles.css reserviert den
   Scrollbar-Platz dauerhaft (scrollbar-gutter: stable), daher verändert das Ein-/
   Ausblenden der Scrollbar während des Intros die Seitenbreite nie. */

@media (max-width: 380px) {
  .pxi-greet { letter-spacing: .1em; }
}
