/* Global */
body {
  animation: fadeIn 1.0s ease-in;
  margin: 0;
  height: 100vh;
  background-color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: white;
  font-family: sans-serif;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Ebene 1 (Ganz hinten): Background video */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1; /* Niedrigste Ebene */
}

.video-foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.video-foreground iframe {
  /* Erhöht die Grundgröße um 15%, um die UI-Ränder aus dem Viewport zu schieben */
  width: 115vw; 
  height: 64.68vw; /* 115 * 0.5625 (16:9 Verhältnis) */
  min-height: 115vh;
  min-width: 204.44vh; /* 115 * 1.7777 (16:9 Verhältnis) */
  
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Ebene 2 (Mittig): Dark overlay nur über dem Video */
.overlay-dark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2; /* Liegt über dem Video (1), aber unter dem Inhalt (3) */
  pointer-events: none;
}

/* Ebene 3 (Ganz vorne): Szenen-Strukturierung */
.scene-home, .scene-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  width: 100%;
  max-width: 600px;
  padding: 20px;
  box-sizing: border-box;
  position: relative; 
  z-index: 3; /* Höchste Ebene: Komplett unbeeinflusst vom Schleier */
}

/* Main logo (klickbar) */
.main-logo {
  cursor: pointer;
}

.main-logo img {
  width: 430px;
  max-width: 60vw;
  opacity: 0.75;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.main-logo img:hover {
  transform: scale(1.05);
  opacity: 1;
}