/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  /* Seite ist eine reine Fullscreen-Stage → keine Scrollbar */
  overflow: hidden;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #000;
  color: #f9fafb;
}

/* ============================================================
   VIDEO-BACKGROUND
   ============================================================ */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  /* leichte Nachbearbeitung für mehr Cinematic-Look */
  filter: brightness(0.6) contrast(1.1);
}

/* Optionaler dunkler Overlay / Vignette
   → bei Bedarf die Kommentarzeichen entfernen

.video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.75)),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.4) 40%,
      rgba(0, 0, 0, 0.9) 100%
    );
}
*/

/* ============================================================
   HEADER: LOGO & CONTACT
   ============================================================ */

/* Logo oben links */
.site-header {
  position: fixed;
  top: 32px;
  left: 40px;
  z-index: 2;
  /* Logo ist rein visuell, aktuell nicht klickbar */
  pointer-events: none;
}

.logo {
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  color: #e5e7eb;
}

.logo-main {
  opacity: 0.92;
}

.logo-dot {
  color: #f97316; /* leichtes Highlight */
  margin: 0 2px;
}

.logo-sub {
  font-weight: 300;
  opacity: 0.8;
}

/* Contact-Button oben rechts */
.contact-button {
  position: fixed;
  top: 32px;
  right: 40px;
  z-index: 2;
  pointer-events: auto;
  display: flex;
  align-items: center; /* vertikal an Logo-Baseline ausgerichtet */
}

.contact-button a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 1.1rem;      /* gleiche Größe wie .logo */
  letter-spacing: 0.18em; /* gleiche Abstände wie Logo */
  font-weight: 300;
  text-transform: uppercase;
  opacity: 0.92;          /* ähnliche optische Intensität */
  transition: opacity 0.2s ease;
}

.contact-button a:hover {
  opacity: 1;
}

/* ============================================================
   MAIN-STAGE & BOTTOM-NAVIGATION
   ============================================================ */

/* Vollflächiger Stage-Bereich, der die Navigation unten hält */
.site-main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* Abstand nach unten, damit die Nav vom Rand abhebt */
  padding-bottom: 64px;
}

/* Pill-förmige Navigation am unteren Rand */
.bottom-nav {
  display: inline-flex;
  gap: 32px;
  padding: 12px 32px;
  border-radius: 999px;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.75),
    rgba(15, 23, 42, 0.9)
  );
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.7);

  width: fit-content;   /* NEU: passt sich automatisch an */
  max-width: 94vw;      /* NEU: kann im Zweifel scrollen */
  overflow-x: auto;      /* falls es doch zu lang wird */
}


/* Einzelne Nav-Items */
.nav-item {
  position: relative;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 4px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  /* Begriffe wie "BLOCKCHAIN" sollen nicht umbrechen */
  white-space: nowrap;
}

/* Underline-Indikator (Gradient) */
.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #a855f7);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  opacity: 0;
}

.nav-item:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-item:hover::after {
  transform: scaleX(0.5);
  opacity: 0.7;
}

/* Aktiver Menüpunkt */
.nav-item.is-active {
  color: #ffffff;
  font-weight: 500;
}

.nav-item.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* ============================================================
   FOOTER-TEXT / BRAND-LINE (unten links)
   ============================================================ */
.hint-scroll {
  position: fixed;
  left: 40px;
  bottom: 32px;
  z-index: 1;
  font-size: 0.7rem;
  /* optional:
     text-transform: uppercase;
  */
  letter-spacing: 0.18em;
  color: #9ca3af;
  opacity: 0.7;
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE: TABLETS / KLEINERE LAPTOPS
   ============================================================ */
@media (max-width: 900px) {
  .site-main {
    /* etwas mehr Luft, damit die Nav nicht zu tief sitzt */
    padding-bottom: 72px;
  }

  .bottom-nav {
    gap: 20px;
    padding: 10px 22px;
    max-width: 92vw;
  }

  .nav-item {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }

  .hint-scroll {
    left: 24px;
    bottom: 28px;
    font-size: 0.6rem;
  }
}

/* ============================================================
   RESPONSIVE: SMARTPHONES
   ============================================================ */
@media (max-width: 540px) {
  .site-main {
    /* mehr Abstand nach unten, damit Footer-Text unter der Nav bleibt */
    padding-bottom: 96px;
  }

  .bottom-nav {
    flex-wrap: nowrap;         /* alles in einer Zeile */
    justify-content: flex-start;
    overflow-x: auto;          /* horizontales Scrollen bei Bedarf */
    max-width: 94vw;
    padding: 10px 18px;
  }

  .bottom-nav::-webkit-scrollbar {
    display: none;             /* Scrollbar auf iOS verstecken */
  }

  .nav-item {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    padding: 8px 8px;
  }

  .hint-scroll {
    left: 20px;
    bottom: 24px;              /* ganz unten, unter der Navigation */
    font-size: 0.55rem;
  }

  /* NEU: Logo & Contact auf gleicher Höhe */
  .site-header {
    top: 24px;
    left: 20px;
  }

  .contact-button {
    top: 24px;
    right: 20px;
  }

  .logo,
  .contact-button a {
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    line-height: 1;
  }
}
