/* ============================================================
   EDV-TECHNIK.TIROL — zoom-intro.css
   Scroll-Zoom-Intro: Silizium → Mainboard → Rack → Alpenraum → Orbit
   Nutzt die Design-Tokens aus style.css (:root).
   ============================================================ */

/* Intro komplett deaktivieren ohne JS, bei reduzierter Bewegung
   oder wenn GSAP nicht lädt (main.js setzt dann .reduced-motion) */
.no-js .zi-intro,
.reduced-motion .zi-intro { display: none; }
@media (prefers-reduced-motion: reduce) {
  .zi-intro { display: none; }
}

/* ---------- Scroll-Strecke (bestimmt die Länge der Reise) ---------- */
.zi-track { height: 820vh; }

/* ---------- Fixe Ebenen (alle unter dem Site-Header, z 100) ---------- */
.zi-bg {
  position: fixed; inset: 0; z-index: 30;
  pointer-events: none; opacity: 0;
}
.zi-bg-chip { background:
  radial-gradient(ellipse 55% 45% at 50% 42%, rgba(59,130,246,.10) 0%, transparent 60%),
  radial-gradient(ellipse 40% 30% at 78% 76%, rgba(6,182,212,.07) 0%, transparent 60%),
  linear-gradient(180deg, #1B1B32 0%, #141426 100%); }
.zi-bg-mid { background:
  radial-gradient(ellipse 60% 45% at 50% 30%, rgba(59,130,246,.09) 0%, transparent 62%),
  linear-gradient(180deg, #1A1A30 0%, #131324 100%); }
.zi-bg-space { background:
  radial-gradient(ellipse 70% 50% at 50% 20%, rgba(59,130,246,.08) 0%, transparent 65%),
  linear-gradient(180deg, #121222 0%, #0C0C1A 100%); }

.zi-stars {
  position: fixed; inset: 0; z-index: 31;
  pointer-events: none; opacity: 0;
}

.zi-stage {
  position: fixed; inset: 0; z-index: 32;
  overflow: hidden; pointer-events: none;
}
.zi-layer {
  position: absolute; inset: 0;
  display: none; place-items: center;   /* JS schaltet aktive Ebenen auf grid */
  opacity: 0;
}
.zi-zoomer {
  position: relative;
  width: min(92vw, 800px);
  display: grid; place-items: center;
  will-change: transform;              /* Safari: als GPU-Textur compositen */
  transform: translateZ(0);
}
.zi-zoomer .zi-orbit-overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-height: none;
  pointer-events: none;
}
.zi-zoomer svg {
  width: 100%; height: auto; max-height: 62vh;
  display: block; overflow: visible;
}

/* ---------- Captions ---------- */
.zi-caption {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: clamp(80px, 13vh, 140px);
  width: min(92vw, 780px);
  text-align: center; pointer-events: none;
}
.zi-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.4vw, 12.5px); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: #06B6D4; margin-bottom: 14px;
}
.zi-eyebrow::before,
.zi-eyebrow::after {
  content: ''; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, #06B6D4);
}
.zi-eyebrow::after {
  background: linear-gradient(90deg, #06B6D4, transparent);
}
.zi-eyebrow .zi-dim { color: var(--moss); font-weight: 400; }

.zi-caption h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5.6vw, 54px);
  font-weight: 700; line-height: 1.06; letter-spacing: -.015em;
  color: var(--snow);
  text-shadow: 0 4px 40px rgba(16, 16, 32, .9);
}
.zi-caption h2 em {
  font-style: italic; font-weight: 600;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.zi-caption p {
  margin: 14px auto 0;
  color: var(--mist);
  font-size: clamp(14px, 1.9vw, 17px);
  line-height: 1.6; max-width: 56ch;
}

/* ---------- HUD (Maßstab + Ebene) ---------- */
.zi-hud {
  position: fixed; z-index: 40; pointer-events: none;
  left: clamp(14px, 3.5vw, 40px);
  bottom: clamp(14px, 3.5vh, 32px);
  background: rgba(39, 39, 70, .58);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
  opacity: 0;
}
.zi-hud .zi-lvl {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--moss);
}
.zi-hud .zi-lvl b { color: #06B6D4; font-weight: 500; }
.zi-hud .zi-val {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.4vw, 23px); font-weight: 500;
  color: var(--snow); margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.zi-hud .zi-val span {
  font-size: .62em; color: #06B6D4;
  margin-left: 5px; letter-spacing: .08em;
}
.zi-hud .zi-bar {
  margin-top: 10px; width: min(32vw, 180px); height: 4px;
  border-radius: 99px; background: rgba(240, 240, 248, .09);
  overflow: hidden;
}
.zi-hud .zi-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: var(--accent-grad); width: 0%;
}

/* ---------- Scroll-Hinweis + Skip ---------- */
.zi-hint {
  position: fixed; z-index: 40;
  left: 50%; transform: translateX(-50%);
  bottom: clamp(16px, 3.5vh, 30px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  color: var(--mist);
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  pointer-events: none; opacity: 0;
}
.zi-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--moss);
  border-radius: 12px; position: relative;
}
.zi-mouse::after {
  content: ''; position: absolute; left: 50%; top: 6px;
  width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px;
  background: #06B6D4;
  animation: zi-wheel 1.6s ease-in-out infinite;
}
@keyframes zi-wheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(11px); opacity: 0; }
  100% { opacity: 0; }
}

.zi-skip {
  position: fixed; z-index: 41;
  right: clamp(14px, 3.5vw, 40px);
  bottom: clamp(16px, 3.5vh, 32px);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--mist); text-decoration: none;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(39, 39, 70, .5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color .2s ease, border-color .2s ease;
  opacity: 0;
}
.zi-skip:hover,
.zi-skip:focus-visible { color: #06B6D4; border-color: #06B6D4; }

/* ---------- SVG-Animationen (Prefix, um Site-Keyframes nicht zu berühren) ---------- */
.zi-breathe { animation: zi-soft 3.4s ease-in-out infinite; }
@keyframes zi-soft { 50% { opacity: .45; } }
.zi-led { animation: zi-blink 2.2s ease-in-out infinite; }
@keyframes zi-blink { 50% { opacity: .25; } }
.zi-ring {
  animation: zi-ringout 3s ease-out infinite;
  transform-box: fill-box; transform-origin: center;
}
@keyframes zi-ringout {
  0%   { transform: scale(.25); opacity: .85; }
  100% { transform: scale(1);   opacity: 0; }
}
.zi-dash {
  stroke-dasharray: 3 10;
  animation: zi-flow 3.4s linear infinite;
}
@keyframes zi-flow { to { stroke-dashoffset: -96; } }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .zi-hud { padding: 8px 12px; border-radius: 11px; }
  .zi-hud .zi-lvl { font-size: 9px; letter-spacing: .1em; }
  .zi-hud .zi-hud-name { display: none; }  /* Nummer + Maßstab reichen mobil */
  .zi-hud .zi-val { font-size: 15px; margin-top: 1px; }
  .zi-hud .zi-bar { display: none; }
  .zi-skip { font-size: 10px; padding: 7px 11px; letter-spacing: .08em; }
  .zi-hint { display: none; }              /* Skip-Pill reicht auf Mobile */
  .zi-caption { bottom: clamp(96px, 15vh, 150px); }
}
