/* ==========================================================================
   NEVO Homepage-Hero — interaktives 3D-Logo (übernommen aus Claude-Code-Prototyp)
   ========================================================================== */

body.has-hero { background: var(--c-dark); }

/* Custom Cursor nur auf Geräten mit Maus */
@media (hover: hover) and (pointer: fine) {
  body.has-hero { cursor: none; }
  body.has-hero a, body.has-hero button { cursor: none; }
}

#hero-canvas-wrap canvas {
  display: block;
  position: fixed;
  top: 0; left: 0;
  z-index: 1;
}

#section-hero {
  position: relative; z-index: 2;
  height: 100vh; height: 100svh;
  padding: 56px 64px;
  pointer-events: none;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
#hero-text {
  width: min(95vw, 2200px);
  display: flex; flex-direction: column;
}
#nevo-title {
  font-family: 'Archivo', var(--font);
  font-weight: 800;
  font-size: clamp(120px, 28vw, 540px);
  color: var(--c-white);
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin: 0;
  align-self: flex-start;
}
#subtitle {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(22px, 7vw, 154px);
  color: var(--c-white);
  margin-top: 8px;
  letter-spacing: 0.01em;
  align-self: flex-end;
}

#section-tagline {
  position: relative; z-index: 2;
  height: 220vh;
  pointer-events: none;
}
#tagline {
  position: fixed; z-index: 2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font);
  font-weight: 200;
  font-size: clamp(36px, 3.8vw, 62px);
  color: var(--c-yellow);
  text-align: center;
  width: 100%; max-width: 1400px;
  line-height: 1;
  padding: 0 40px;
}

/* Weisser Seiteninhalt liegt über Canvas + Tagline */
#page-content {
  position: relative; z-index: 10;
  background: var(--c-white);
}

/* Custom Cursor */
#cursor {
  position: fixed; width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-yellow);
  pointer-events: none; z-index: 2000;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background 0.15s, opacity 0.3s;
  mix-blend-mode: normal;
}
#cursor.pressed { width: 8px; height: 8px; background: #fff; }
#cursor.on-link { width: 44px; height: 44px; background: rgba(255, 204, 33, 0.35); }
@media (hover: none), (pointer: coarse) {
  #cursor, #cursor-arrow { display: none !important; }
}

#cursor-arrow {
  position: fixed; pointer-events: none; z-index: 2000;
  transform: translate(-50%, 0);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  opacity: 0; transition: opacity 1.2s ease;
}
#cursor-arrow.visible { opacity: 1; }
#cursor-arrow.hidden { opacity: 0 !important; transition: opacity 0.6s ease; }
#cursor-arrow svg { animation: arrowBounce 1.2s ease-in-out infinite; }
#cursor-arrow svg:nth-child(2) { animation-delay: 0.2s; }
#cursor-arrow svg:nth-child(3) { animation-delay: 0.4s; }
@keyframes arrowBounce {
  0%, 100% { opacity: 0.2; transform: translateY(-3px); }
  50%      { opacity: 1;   transform: translateY(3px); }
}

/* Loader */
#loading {
  position: fixed; inset: 0; background: var(--c-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 3000; transition: opacity 0.8s;
}
#loading span {
  color: var(--c-yellow); font-size: 11px; letter-spacing: 0.35em;
  text-transform: uppercase; font-family: var(--font); font-weight: 500;
}
.bar-wrap { width: 120px; height: 1px; background: var(--c-grey-70); margin-top: 20px; }
.bar { height: 1px; background: var(--c-yellow); width: 0%; transition: width 0.3s; }

/* Mobile: Hero kompakter */
@media (max-width: 760px) {
  #section-hero { padding: 32px 24px; }
  #section-tagline { height: 160vh; }
}

/* ==========================================================================
   Home 2 — Video-Hero (ersetzt das 3D-Logo durch ein Hintergrundvideo)
   ========================================================================== */
#hero-video-wrap { position: fixed; inset: 0; z-index: 1; overflow: hidden; background: var(--c-dark); }
#hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Dunkler Verlauf für Lesbarkeit des weissen Titels */
#hero-video-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,30,30,0.55), rgba(30,30,30,0.30) 38%, rgba(30,30,30,0.68));
}

/* Home 2: Hero-Texte ~50% kleiner und linksbündig */
.home2 #nevo-title { font-size: clamp(60px, 14vw, 270px); }
.home2 #subtitle { font-size: clamp(11px, 3.5vw, 77px); align-self: flex-start; }
