/* ============================================
   ZEITREISE – Journey (Pinned Zeittunnel)
   ============================================ */

.journey {
  position: relative;
}

.journey__track {
  position: relative;
  height: 975vh; /* wird per JS überschrieben: stops × 75vh */
}

.journey__pin {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #030510;
}

.journey__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.journey__tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

.journey__tint--70s  { background: radial-gradient(ellipse at 30% 50%, rgba(212,160,86,0.12) 0%, transparent 60%); }
.journey__tint--80s  { background: radial-gradient(ellipse at 70% 40%, rgba(255,0,110,0.1) 0%, transparent 55%); }
.journey__tint--90s  { background: radial-gradient(ellipse at 50% 60%, rgba(204,51,51,0.08) 0%, transparent 50%); }
.journey__tint--00s  { background: radial-gradient(ellipse at 40% 30%, rgba(102,126,234,0.1) 0%, transparent 55%); }
.journey__tint--today { background: radial-gradient(ellipse at 50% 50%, rgba(230,57,70,0.06) 0%, transparent 45%); }

.journey__panels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.journey-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  will-change: opacity;
  pointer-events: none;
}

.journey-panel.is-active {
  visibility: visible;
  pointer-events: auto;
}

/* ---- Hero als erstes Journey-Panel ---- */
.journey-panel--hero {
  flex-direction: column;
}

.journey-panel--hero .hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-lg);
}

.journey-panel--hero .hero__portal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.journey-panel--hero .hero__portal .portal-ring {
  animation: portal-pulse 4s ease-in-out infinite;
}

.journey-panel--hero .hero__portal .portal-ring--2 { animation-delay: -1.3s; }
.journey-panel--hero .hero__portal .portal-ring--3 { animation-delay: -2.6s; }

.journey-panel--hero .hero__tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: var(--space-md);
}

.journey-panel--hero .hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 10rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  margin-bottom: var(--space-lg);
}

.journey-panel--hero .hero__claim {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  opacity: 0.8;
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

.journey-panel--hero .hero__eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 30px;
}

.journey-panel--hero .hero__eq span {
  display: block;
  width: 3px;
  background: var(--brand-primary);
  border-radius: 2px;
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
}

.journey-panel--hero .hero__eq span:nth-child(1) { animation-delay: 0s; }
.journey-panel--hero .hero__eq span:nth-child(2) { animation-delay: 0.1s; }
.journey-panel--hero .hero__eq span:nth-child(3) { animation-delay: 0.2s; }
.journey-panel--hero .hero__eq span:nth-child(4) { animation-delay: 0.15s; }
.journey-panel--hero .hero__eq span:nth-child(5) { animation-delay: 0.05s; }
.journey-panel--hero .hero__eq span:nth-child(6) { animation-delay: 0.25s; }
.journey-panel--hero .hero__eq span:nth-child(7) { animation-delay: 0.08s; }
.journey-panel--hero .hero__eq span:nth-child(8) { animation-delay: 0.18s; }
.journey-panel--hero .hero__eq span:nth-child(9) { animation-delay: 0.12s; }
.journey-panel--hero .hero__eq span:nth-child(10) { animation-delay: 0.22s; }

.journey-panel--hero .hero__scroll-hint {
  position: absolute;
  bottom: calc(var(--space-xl) + 80px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
}

.journey-panel--hero .hero__scroll-hint span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: var(--space-sm);
}

.journey-panel--hero .hero__scroll-arrow {
  width: 24px;
  height: 24px;
  margin: 0 auto;
  opacity: 0.5;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes portal-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.6; }
}

@keyframes eq-bounce {
  0% { height: 5px; }
  100% { height: 25px; }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---- Jahr-Panels ---- */
.journey-panel__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: var(--space-lg);
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9);
}

.journey-panel__content::before {
  content: '';
  position: absolute;
  inset: -1.5rem -2rem;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
  pointer-events: none;
}

.journey-panel .decade__year {
  font-size: clamp(4rem, 14vw, 9rem);
}

/* ---- HUD ---- */
.journey__hud {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: min(420px, 90vw);
  text-align: center;
  pointer-events: none;
}

.journey__hud-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--brand-primary);
  margin-bottom: var(--space-sm);
  min-height: 1.5em;
}

.journey__timeline-track {
  position: relative;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  margin-bottom: 4px;
  overflow: visible;
}

.journey__timeline-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 3px;
  transition: width 0.05s linear;
}

.journey__timeline-markers {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1px;
}

.journey__timeline-tick {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-0.5px);
  transition: background 0.2s, transform 0.2s;
}

.journey__timeline-tick.is-passed {
  background: rgba(255, 255, 255, 0.5);
}

.journey__timeline-tick.is-current {
  background: var(--brand-primary);
  transform: translateY(-0.5px) scale(1.8);
  box-shadow: 0 0 8px var(--brand-primary);
}

.journey__timeline-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  opacity: 0.35;
  margin-bottom: var(--space-xs);
}

.journey__hud-hint {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.3;
}

.journey__speed {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 80px,
    rgba(255, 255, 255, 0.012) 80px,
    rgba(255, 255, 255, 0.012) 81px
  );
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .journey__track { height: auto !important; }
  .journey__pin { position: relative; height: auto; }
  .journey__canvas, .journey__speed, .journey__tint { display: none; }
  .journey__panels { position: relative; display: block; }
  .journey-panel {
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 70vh;
    display: flex;
    padding: var(--space-xl) 0;
  }
  .journey__hud { display: none; }
}

@media (max-width: 768px) {
  .journey-panel--hero .hero__eq { display: none; }
  .journey-panel--hero .hero__portal .portal-ring--3 { display: none; }
  .journey-panel--hero .hero__scroll-hint {
    bottom: calc(var(--space-lg) + 70px);
  }
  .journey-panel .decade__year {
    font-size: clamp(3rem, 18vw, 6rem);
  }
}
