/* =========================================================================
   Nexus Loot — gemeinsame Shell (Tokens, Navigation, Buttons, Bausteine)
   Wird von allen Seiten geladen; seitenspezifisches CSS steht in der Seite.
   ========================================================================= */

:root {
  --nl-bg: #050608;
  --nl-surface: #0b0e12;
  --nl-surface-raised: #11151a;
  --nl-text: #f4f6f8;
  --nl-text-muted: #a3aab2;
  --nl-border: rgba(255, 255, 255, 0.16);
  --nl-border-soft: rgba(255, 255, 255, 0.08);
  --nl-ice: #9edfff;
  --nl-ice-rgb: 158, 223, 255;

  --nl-nav-h: 82px;
  --nl-gutter: clamp(1rem, 4vw, 5rem);
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: var(--nl-bg);
  color: var(--nl-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--nl-text);
  outline-offset: 3px;
  border-radius: 2px;
  box-shadow: 0 0 0 5px rgba(var(--nl-ice-rgb), 0.22);
}

.wrap {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding-inline: var(--nl-gutter);
}

.display {
  font-family: "Saira Condensed", "Barlow Condensed", Inter, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
}

/* ---------------- Navigation ---------------- */
.nav {
  position: relative;
  z-index: 30;
  height: var(--nl-nav-h);
  background: #000;
  border-bottom: 1px solid var(--nl-border-soft);
}

.nav__inner {
  display: flex;
  height: 100%;
  align-items: center;
  gap: clamp(20px, 3vw, 56px);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.nav__logo {
  height: 34px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 44px);
  margin-left: clamp(8px, 2vw, 40px);
  height: 100%;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nl-text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease;
}

.nav__link:hover {
  color: var(--nl-text);
}

/* aktive Seite: ruhige helle Unterlinie mit minimalem Ice-Ton */
.nav__link[aria-current="page"] {
  color: var(--nl-text);
  border-bottom-color: rgba(var(--nl-ice-rgb), 0.75);
}

.nav__cta {
  margin-left: auto;
  flex: none;
}

.nav__burger {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--nl-border);
  color: var(--nl-text);
  cursor: pointer;
}

.nav__burger svg {
  width: 20px;
  height: 20px;
}

.mobile-menu {
  display: none;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 14px 30px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  /* dezent technisch angeschnittene Ecke */
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 13px),
    calc(100% - 13px) 100%,
    0 100%
  );
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.btn--primary {
  background: var(--nl-text);
  color: #07090c;
  border: 1px solid var(--nl-text);
}

.btn--primary:hover {
  background: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--nl-text);
  border: 1px solid var(--nl-border);
}

.btn--ghost:hover {
  border-color: var(--nl-text);
  background: rgba(255, 255, 255, 0.05);
}

.btn--nav {
  min-height: 42px;
  padding: 11px 24px;
}

/* ---------------- Seitenkopf ---------------- */
.page-head {
  padding-block: clamp(30px, 4vw, 54px) clamp(22px, 3vw, 36px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(0.72rem, 0.9vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nl-text);
  margin: 0;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 13px;
  height: 34px;
  border-left: 2px solid var(--nl-text);
  border-top: 2px solid var(--nl-text);
  border-bottom: 2px solid var(--nl-text);
  opacity: 0.8;
}

.page-title {
  margin: clamp(12px, 1.6vw, 20px) 0 0;
  font-size: clamp(2.8rem, 6vw, 6.4rem);
  letter-spacing: 0.005em;
  color: var(--nl-text);
}

.page-lead {
  margin: clamp(10px, 1.2vw, 16px) 0 0;
  max-width: 62ch;
  font-size: clamp(0.95rem, 1vw, 1.08rem);
  line-height: 1.6;
  color: var(--nl-text-muted);
}

/* ---------------- Badge / Karten-Grundlage ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--nl-border);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nl-text);
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.panel {
  position: relative;
  background: var(--nl-surface);
  border: 1px solid var(--nl-border-soft);
}

/* ---------------- Abschluss-Band ---------------- */
.cta-band {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 40px);
  margin-block: clamp(34px, 5vw, 64px);
  background: var(--nl-surface);
  border: 1px solid var(--nl-border-soft);
}

.cta-band__logo {
  height: 46px;
  width: auto;
  flex: none;
  opacity: 0.9;
}

.cta-band__rule {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(var(--nl-ice-rgb), 0.5),
    transparent
  );
  flex: none;
}

.cta-band__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
}

.cta-band__lead {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: var(--nl-text-muted);
}

.cta-band__action {
  margin-left: auto;
  flex: none;
}

/* ---------------- Deko-Ebene ---------------- */
.backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ---------------- Reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: nl-in 0.55s ease forwards;
}
.reveal--1 {
  animation-delay: 0.05s;
}
.reveal--2 {
  animation-delay: 0.12s;
}
.reveal--3 {
  animation-delay: 0.19s;
}

@keyframes nl-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------------- Responsive Shell ---------------- */
@media (max-width: 1023px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: inline-flex;
  }

  .mobile-menu {
    border-bottom: 1px solid var(--nl-border-soft);
    background: #000;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .mobile-menu__list {
    display: flex;
    flex-direction: column;
    padding: 12px 0 22px;
  }

  .mobile-menu__link {
    display: flex;
    align-items: center;
    min-height: 52px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nl-text-muted);
    border-bottom: 1px solid var(--nl-border-soft);
  }

  .mobile-menu__link[aria-current="page"] {
    color: var(--nl-text);
  }

  .mobile-menu .btn {
    margin-top: 18px;
    width: 100%;
  }

  .cta-band {
    flex-wrap: wrap;
  }

  .cta-band__action {
    margin-left: 0;
    width: 100%;
  }

  .cta-band__action .btn {
    width: 100%;
  }
}

@media (max-width: 767px) {
  :root {
    --nl-nav-h: 72px;
  }

  .cta-band__logo,
  .cta-band__rule {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
