/* --------------------------------------------------
   BACKGROUND VIDEO & PAGE
-------------------------------------------------- */

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 2;
}

.page {
  position: relative;
  z-index: 3;
  padding: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --------------------------------------------------
   STAGE
-------------------------------------------------- */

.stage {
  text-align: left;
  margin: 4rem auto 3rem;
}

.stage-title {
  margin-bottom: 2rem;
  font-weight: 700;
}

.stage-subline {
  font-size: calc(1rem * var(--font-scale));
  opacity: 0.85;
  margin-top: 0.5rem;
}

.section-title {
  margin-bottom: 1.75rem;
  font-weight: 200;
}

/* Stage-Paragraphen – Delay über :root */
.stage p {
  opacity: 0;
  transform: translateY(6px);
  animation: fade-up 0.8s ease-out forwards;
}
.stage p:nth-of-type(1) { animation-delay: var(--t-p1); }
.stage p:nth-of-type(2) { animation-delay: var(--t-p2); }
.stage p:nth-of-type(3) { animation-delay: var(--t-p3); }
.stage p:nth-of-type(4) { animation-delay: var(--t-p4); }
.stage p:nth-of-type(5) { animation-delay: var(--t-p5); }

/* --------------------------------------------------
   SHOWCASE
-------------------------------------------------- */

.showcase {
  align: left;
  margin: 2rem auto;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  items-align: center;
}


.showcase p {
  opacity: 0;
  transform: translateY(6px);
  animation: fade-up 0.8s ease-out forwards;
}
.showcase p:nth-of-type(1) { animation-delay: var(--t-s1); }
.showcase p:nth-of-type(2) { animation-delay: var(--t-s2); }
.showcase p:nth-of-type(3) { animation-delay: var(--t-s3); }
.showcase p:nth-of-type(4) { animation-delay: var(--t-s4); }

.teaser {
  max-width: 300px;
  position: relative;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(var(--shadow-rgb),0.45);
  transition: box-shadow .4s ease;
}

/* Hover-Glow */
.teaser:hover {
  box-shadow:
    0 0 4px rgba(var(--shadow-rgb),.6),
    0 0 6px rgba(var(--shadow-rgb),.4);
  animation: glowPulse 1.4s ease-in-out infinite;
}

.teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 1;
  z-index: 2;
}

/* Text im Teaser */
.teaser span {
  position: relative;
  z-index: 3;
  text-align: center;
  transition: transform 1.5s ease;
  transform: scale(1);
}

.teaser:hover span {
  transform: scale(1.5); /* +10% */
}

.teaser video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1;
  pointer-events: none; /* verhindert Hover-Konflikte */
}

/* NETWORK */

.network {
  align: center;
  margin: 2rem auto;
}

.network h2 { text-align: left;
  padding-top: 3rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation-delay: var(--t-net);
}

.network p {
  text-align: left;
  line-height: 1.6;
  padding: 0;
}

.network p {
  opacity: 0;
  transform: translateY(6px);
  animation: fade-up 0.8s ease-out forwards;
}
.network p:nth-of-type(1) { animation-delay: var(--t-n1); }
.network p:nth-of-type(2) { animation-delay: var(--t-n2); }
.network p:nth-of-type(3) { animation-delay: var(--t-n3); }
.network p:nth-of-type(4) { animation-delay: var(--t-n4); }
.network p:nth-of-type(5) { animation-delay: var(--t-n5); }
.network p:nth-of-type(6) { animation-delay: var(--t-n6); }
.network p:nth-of-type(7) { animation-delay: var(--t-n7); }
.network p:nth-of-type(8) { animation-delay: var(--t-n8); }
.network p:nth-of-type(9) { animation-delay: var(--t-n9); }
.network p:nth-of-type(10) { animation-delay: var(--t-n10); }
.network p:nth-of-type(11) { animation-delay: var(--t-n11); }
.network p:nth-of-type(12) { animation-delay: var(--t-n12); }


/* OVERLAY */

.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.overlay-backdrop.visible {
  display: flex;
}

.overlay-box {
  background: #111;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  border-radius: 8px;
  position: relative;
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

}

.overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}