/* ==========================================================================
   FuxLab Startseite V3.1 fixed
   Fix: Keine negativen z-index-Hintergrundebenen mehr.
   Hintergrund und Animation liegen sichtbar unter dem Content.
   Keine externen Fonts, keine CDNs, kein Tracking.
   ========================================================================== */

:root {
  --color-obsidian: #05070C;
  --color-night: #08111F;
  --color-sapphire: #0D1A2B;
  --color-glass: rgba(19, 34, 53, 0.72);

  --color-teal: #1A8C8F;
  --color-cyan: #63E6F2;
  --color-gold: #D8B76A;
  --color-bronze: #9E7840;
  --color-amber: #F0A54A;

  --color-amethyst: #36264D;
  --color-burgundy-shadow: #241018;

  --color-text-main: #F3EAD7;
  --color-text-soft: #CFC2A4;
  --color-text-muted: #8FA3B8;

  --font-heading: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Cascadia Code", "Consolas", "Courier New", monospace;

  --shell-padding-x: clamp(1rem, 2.4vw, 2.4rem);
  --shell-padding-y: clamp(0.85rem, 2vw, 1.65rem);

  --header-height: 4.25rem;
  --footer-height: 2.6rem;
  --line-gold: rgba(216, 183, 106, 0.28);
  --line-cyan: rgba(99, 230, 242, 0.22);
}

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

html {
  min-height: 100%;
  background: var(--color-obsidian);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-main);
  background: var(--color-obsidian);
  overflow-x: hidden;
}

.scene-background,
.scene-overlay,
.scene-glow,
.scene-mist,
.background-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scene-background {
  z-index: 0;
  background: url("../assets/images/fuxlab-background.png") center right / cover no-repeat;
  opacity: 1;
  filter: saturate(1.04) contrast(1.04) brightness(0.98);
}

.scene-overlay {
  z-index: 1;
  background:
    radial-gradient(circle at 76% 45%, rgba(99, 230, 242, 0.12), transparent 18rem),
    radial-gradient(circle at 74% 64%, rgba(216, 183, 106, 0.10), transparent 17rem),
    linear-gradient(90deg,
      rgba(5, 7, 12, 0.92) 0%,
      rgba(5, 7, 12, 0.79) 26%,
      rgba(5, 7, 12, 0.44) 48%,
      rgba(5, 7, 12, 0.08) 68%,
      rgba(5, 7, 12, 0.22) 100%
    ),
    radial-gradient(circle at center, transparent 0%, transparent 42%, rgba(5, 7, 12, 0.62) 100%);
}

.scene-overlay--subpage {
  background:
    linear-gradient(90deg,
      rgba(5, 7, 12, 0.90) 0%,
      rgba(5, 7, 12, 0.74) 45%,
      rgba(5, 7, 12, 0.46) 100%
    ),
    radial-gradient(circle at center, transparent 0%, transparent 40%, rgba(5, 7, 12, 0.72) 100%);
}

.scene-glow {
  z-index: 2;
  mix-blend-mode: screen;
}

.scene-glow--window {
  background:
    radial-gradient(circle at 75% 48%, rgba(99, 230, 242, 0.18), transparent 13rem),
    radial-gradient(circle at 82% 72%, rgba(240, 165, 74, 0.16), transparent 15rem);
  animation: arcane-pulse 9s ease-in-out infinite alternate;
}

.scene-glow--logo {
  background:
    radial-gradient(circle at 23% 46%, rgba(216, 183, 106, 0.16), transparent 13rem),
    radial-gradient(circle at 31% 48%, rgba(99, 230, 242, 0.10), transparent 17rem);
  animation: arcane-pulse-soft 11s ease-in-out infinite alternate;
}

.scene-mist {
  z-index: 3;
  opacity: 0.78;
  background:
    radial-gradient(ellipse at 14% 34%, rgba(54, 38, 77, 0.38), transparent 30rem),
    radial-gradient(ellipse at 38% 72%, rgba(36, 16, 24, 0.30), transparent 26rem),
    radial-gradient(ellipse at 58% 20%, rgba(26, 140, 143, 0.10), transparent 25rem);
  filter: blur(10px);
  animation: mist-drift 24s ease-in-out infinite alternate;
}

.background-atmosphere {
  z-index: 4;
  width: 100%;
  height: 100%;
}

.page-shell {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: grid;
  grid-template-rows: var(--header-height) minmax(0, 1fr) var(--footer-height);
  padding: var(--shell-padding-y) var(--shell-padding-x);
}

a {
  color: var(--color-text-soft);
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, text-shadow 180ms ease, opacity 180ms ease;
}

a:hover,
a:focus-visible {
  color: var(--color-cyan);
  text-shadow: 0 0 18px rgba(99, 230, 242, 0.2);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  transform: translateY(-160%);
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  color: var(--color-text-main);
  background: rgba(5, 7, 12, 0.9);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  position: relative;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header {
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(8.5rem, 14vw, 13.75rem);
  height: auto;
  opacity: 0.92;
  filter:
    drop-shadow(0 0 18px rgba(216, 183, 106, 0.10))
    drop-shadow(0 0 22px rgba(99, 230, 242, 0.06));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.78);
}

.site-nav a {
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(216, 183, 106, 0.22);
}

.hero {
  position: relative;
  z-index: 11;
  display: grid;
  align-items: center;
  justify-items: start;
  min-height: calc(100vh - var(--header-height) - var(--footer-height) - (2 * var(--shell-padding-y)));
}

.hero-content {
  width: min(42rem, 48vw);
  margin-left: clamp(0rem, 3vw, 4.5rem);
  padding: clamp(1rem, 2.6vw, 2rem) 0;
}

.eyebrow {
  margin: 0 0 clamp(0.85rem, 1.6vw, 1.15rem);
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.9vw, 0.78rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  text-shadow:
    0 0 18px rgba(216, 183, 106, 0.12),
    0 2px 16px rgba(0, 0, 0, 0.82);
}

.hero-wordmark {
  display: block;
  width: min(42rem, 100%);
  height: auto;
  margin-left: -0.35rem;
  filter:
    drop-shadow(0 0 26px rgba(216, 183, 106, 0.12))
    drop-shadow(0 0 34px rgba(99, 230, 242, 0.09));
  animation: logo-breathe 8s ease-in-out infinite alternate;
}

.hero-rule {
  width: min(28rem, 82%);
  height: 1px;
  margin: clamp(0.8rem, 1.8vw, 1.25rem) 0 0;
  background:
    linear-gradient(90deg,
      rgba(216, 183, 106, 0),
      rgba(216, 183, 106, 0.52),
      rgba(99, 230, 242, 0.32),
      rgba(216, 183, 106, 0)
    );
  box-shadow: 0 0 16px rgba(216, 183, 106, 0.14);
}

.hero-text {
  max-width: 36rem;
  margin: clamp(1rem, 1.8vw, 1.35rem) 0 0;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.78;
  color: var(--color-text-soft);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.82);
}

.hero-note {
  max-width: 34rem;
  margin: 0.85rem 0 0;
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.86vw, 0.78rem);
  line-height: 1.72;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.88);
}

.site-footer {
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

.site-footer a {
  color: var(--color-text-soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Datenschutz-Unterseite */
.content-page {
  position: relative;
  z-index: 11;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 7vw, 5rem) 0;
}

.content-panel {
  width: min(52rem, 100%);
  padding: clamp(1.5rem, 4vw, 3.2rem);
  border: 1px solid rgba(216, 183, 106, 0.18);
  border-radius: 1.35rem;
  background:
    linear-gradient(180deg, rgba(8, 17, 31, 0.88), rgba(5, 7, 12, 0.80)),
    radial-gradient(circle at top, rgba(99, 230, 242, 0.08), transparent 18rem);
  box-shadow:
    0 2rem 7rem rgba(0, 0, 0, 0.44),
    inset 0 0 0 1px rgba(243, 234, 215, 0.035);
  backdrop-filter: blur(12px);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--color-text-main);
}

.content-panel h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
}

.content-panel h2 {
  margin: 2rem 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.content-panel p {
  line-height: 1.8;
  color: var(--color-text-soft);
}

.content-note {
  margin-top: 2rem;
  padding: 1rem;
  border-left: 2px solid var(--color-gold);
  background: rgba(216, 183, 106, 0.06);
  color: var(--color-text-muted);
}

@keyframes arcane-pulse {
  from {
    opacity: 0.62;
    transform: scale(1);
  }
  to {
    opacity: 0.96;
    transform: scale(1.035);
  }
}

@keyframes arcane-pulse-soft {
  from {
    opacity: 0.50;
    transform: scale(1);
  }
  to {
    opacity: 0.78;
    transform: scale(1.025);
  }
}

@keyframes mist-drift {
  from {
    transform: translate3d(-1.2%, -0.6%, 0) scale(1.02);
  }
  to {
    transform: translate3d(1.4%, 0.8%, 0) scale(1.06);
  }
}

@keyframes logo-breathe {
  from {
    filter:
      drop-shadow(0 0 20px rgba(216, 183, 106, 0.10))
      drop-shadow(0 0 28px rgba(99, 230, 242, 0.07));
  }
  to {
    filter:
      drop-shadow(0 0 30px rgba(216, 183, 106, 0.16))
      drop-shadow(0 0 42px rgba(99, 230, 242, 0.11));
  }
}

@media (max-width: 980px) {
  .scene-background {
    background-position: 66% center;
  }

  .scene-overlay {
    background:
      radial-gradient(circle at 66% 38%, rgba(99, 230, 242, 0.10), transparent 18rem),
      linear-gradient(180deg,
        rgba(5, 7, 12, 0.86) 0%,
        rgba(5, 7, 12, 0.58) 38%,
        rgba(5, 7, 12, 0.78) 100%
      ),
      radial-gradient(circle at center, transparent 0%, transparent 40%, rgba(5, 7, 12, 0.76) 100%);
  }

  .hero {
    justify-items: center;
    text-align: center;
  }

  .hero-content {
    width: min(42rem, 92vw);
    margin-left: 0;
  }

  .hero-wordmark,
  .hero-rule,
  .hero-text,
  .hero-note {
    margin-inline: auto;
  }

  .scene-glow--logo {
    background:
      radial-gradient(circle at 50% 45%, rgba(216, 183, 106, 0.16), transparent 14rem),
      radial-gradient(circle at 50% 48%, rgba(99, 230, 242, 0.10), transparent 18rem);
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 3.8rem;
    --footer-height: 3rem;
  }

  .brand-logo {
    width: clamp(7.5rem, 42vw, 10rem);
  }

  .site-nav {
    font-size: 0.86rem;
  }

  .hero-wordmark {
    width: min(36rem, 96vw);
  }

  .eyebrow {
    letter-spacing: 0.12em;
  }

  .hero-note {
    max-width: 26rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .background-atmosphere,
  .scene-mist,
  .scene-glow {
    display: none;
  }
}


.content-panel ul {
  margin: 0.6rem 0 1.2rem 1.2rem;
  padding: 0;
  color: var(--color-text-soft);
  line-height: 1.75;
}

.content-panel li + li {
  margin-top: 0.3rem;
}

.content-panel strong {
  color: var(--color-text-main);
  font-weight: 600;
}
