/* ==========================================================================
   CINEMATIC SCROLL-ANIMATED HERO STYLES (leistungen.html)
   ========================================================================== */

/* Outer scroll track pinning container */
.cinematic-hero-track {
  position: relative;
  width: 100%;
  height: 500vh;
  background-color: #080D14;
}

/* Sticky viewport frame (stays pinned as user scrolls the track) */
.cinematic-hero-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #080D14;
  z-index: 10;
}

/* HTML5 Canvas filling the pinned frame */
.cinematic-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}

/* Fallback/Poster image visible while canvas initializes */
.cinematic-fallback-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Top Progress Bar for frame loading */
.cinematic-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 40;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.cinematic-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #D9541E 0%, #F59E0B 100%);
  transition: width 0.2s ease-out;
}

/* Controlled Vignette (Soft top contrast only for navbar, ZERO bottom shadow or darkening) */
.cinematic-gradient-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 20, 0.65) 0%, rgba(8, 13, 20, 0.12) 20%, transparent 40%);
  pointer-events: none;
  z-index: 2;
}

/* ==========================================================================
   CINEMATIC STAGES (CLEAN MINIMAL STORYTELLING TYPOGRAPHY)
   ========================================================================== */
.cinematic-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  padding: 80px 24px 60px 24px;
  box-sizing: border-box;
  text-align: center;
}

/* Ambient contrast vignette behind stage typography */
.cinematic-stage::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(820px, 92vw);
  height: 380px;
  background: radial-gradient(ellipse at center, rgba(8, 13, 20, 0.65) 0%, rgba(8, 13, 20, 0.25) 55%, transparent 75%);
  pointer-events: none;
  z-index: -1;
  filter: blur(24px);
}

.cinematic-text-simple {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: auto;
}

.cinematic-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.74rem, 1.25vw, 0.85rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: rgba(11, 19, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(217, 84, 30, 0.25);
  margin-bottom: 16px;
  text-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cinematic-tag:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 84, 30, 0.55);
}

.cinematic-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-orange, #D9541E);
  box-shadow: 0 0 8px var(--color-orange, #D9541E);
  display: inline-block;
  flex-shrink: 0;
}

.cinematic-simple-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.5rem, 6.2vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin: 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.cinematic-simple-cta {
  margin-top: 28px;
}

/* Scroll prompt at bottom of Stage 1 */
.cinematic-scroll-prompt {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.scroll-prompt-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.scroll-prompt-line {
  position: relative;
  width: 1.5px;
  height: 34px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.scroll-prompt-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: var(--color-orange);
  animation: scrollDrop 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollDrop {
  0% { transform: translateY(-100%); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(280%); opacity: 0; }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .cinematic-hero-track {
    height: 400vh;
  }

  .cinematic-stage {
    padding: 70px 18px 40px 18px;
  }

  .cinematic-simple-title {
    font-size: clamp(2.1rem, 8vw, 3rem);
    line-height: 1.15;
  }

  .cinematic-simple-cta {
    margin-top: 22px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .cinematic-hero-track {
    height: auto !important;
  }
  .cinematic-hero-sticky {
    position: relative !important;
    height: auto !important;
    min-height: 90vh;
  }
  .cinematic-stage {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    display: flex !important;
    padding: 60px 24px;
  }
  .scroll-prompt-dot {
    animation: none !important;
  }
}

