/**
 * Portal Experience - CSS
 * Styling für das immersive Portal-Erlebnis
 */

/* ========================================
   RESET & GRUNDLAGEN
   ======================================== */

/* Portal-spezifische Main-Anpassung: Kein Abstand */
.homepage .main {
  margin: 0;
  padding: 0;
  max-width: none;
}

.portal-experience {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.portal-experience.scroll-locked {
  overflow: hidden;
}

/* ========================================
   HERO PORTAL SECTION
   ======================================== */

.hero-portal {
  position: sticky;
  top: 80px; /* Bleibt unter header-top */
  width: 100vw;
  height: calc(100vh - 80px);
  margin-top: -120px; /* Zieht es 120px nach oben, beginnt direkt unter header-top (80px) */
  margin-left: calc(-50vw + 50%);
  padding: 0;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* Bild bleibt zentriert */
  transform-origin: 50% 30%; /* Zoom-Punkt: horizontal zentriert, vertikal höher (Tor) */
  will-change: transform;
  z-index: 1;
}

/* Paradies-Vision (liegt über Hero-Bild) */
.paradise-vision {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transform: scale(1);
  transform-origin: center center;
  will-change: opacity, transform;
}

.vision-image,
.vision-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Portal Entry Overlay (für White Flash) */
.portal-entry-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 3s ease-in;
  pointer-events: none;
  z-index: 10;
}

/* ========================================
   MODUS-AUSWAHL
   ======================================== */

.portal-mode-selector {
  position: absolute;
  top: 60%; /* Tiefer gesetzt für freieren Blick durch Tor */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-out, visibility 0.8s;
}

.portal-mode-selector.visible {
  opacity: 1;
  visibility: visible;
}

.portal-mode-selector.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Hero-Titel mit weißer Kontur */
.hero-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700; /* Kräftig */
  margin-bottom: 1rem;
  color: #5b7c31; /* CI Grün */
  /* SCHWARZE Kontur um grüne Schrift */
  text-shadow: 
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 20px rgba(0, 0, 0, 0.7),
    2px 2px 8px rgba(0, 0, 0, 0.9);
}

.portal-mode-selector h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portal-mode-selector p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Führung starten Button - transparent wie alte Mode-Cards */
.btn-start-guide {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 1.2rem 2rem;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-start-guide:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-start-guide .mode-icon {
  font-size: 1.5rem;
  margin: 0;
}

/* Button für "Tor durchschreiten" */
.btn-enter-portal {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  border-radius: 50px;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  z-index: 50;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 2.5s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ========================================
   SEQUENZ-SECTIONS
   ======================================== */

.sequence-section {
  min-height: 80vh;  /* Reduziert von 100vh für weniger Whitespace */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 10; /* Über dem sticky Hero */
  background: #fff; /* Weißer Hintergrund damit Hero dahinter verschwindet */
  opacity: 1; /* Immer sichtbar */
  transform: translateY(0);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Akt 1: Muss ÜBER Nebel (z-index: 15) sein */
#akt1 {
  z-index: 20; /* ÜBER Nebel-Overlay (15) */
  background: transparent; /* Transparent - Nebel soll durchscheinen */
}

/* Akt 1: Abstand damit Hero-Zoom Zeit hat zu wirken */
#akt1 {
  margin-top: 120vh; /* 1.2x Viewport = genug Scroll-Distanz für Hero-Zoom */
  z-index: 20; /* ÜBER Nebel-Overlay (15) */
  background: transparent; /* Transparent - Nebel soll durchscheinen */
  color: #fff;
}

.sequence-section.active {
  opacity: 1;
  transform: translateY(0);
}

/* Nicht mehr benötigt - Sections sind immer sichtbar
.portal-experience:not(.scroll-mode) .sequence-section:not(.active) {
  opacity: 0;
  transform: translateY(50px);
}
*/

.sequence-content {
  max-width: 900px;
  text-align: center;
  color: #333;
}

#akt1 h2 {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease, transform 1.5s ease;
  font-weight: 600; /* Kräftig */
  color: #ffffff;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.8); /* Klarer schwarzer Schatten */
}

#akt1 .intro-text {
  position: relative;
  z-index: 20;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease, transform 1.5s ease;
  font-size: 1.8rem; /* Größer */
  line-height: 1.8;
  margin: 3rem 0;
  font-weight: 600;
  color: #5b7c31; /* CI Grün */
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.8);
}

#akt1.active h2 {
  opacity: 1;
  transform: translateY(0);
}

#akt1.active .intro-text {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   NEBEL-OVERLAY (Übergang Hero → Akt 1)
   =================================== */
.nebel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1; /* Container immer sichtbar, Layer werden einzeln gesteuert */
  pointer-events: none;
  z-index: 15; /* ÜBER Sektionen (10) - Nebel liegt über allem */
  will-change: opacity;
}

.nebel-overlay .nebel-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  animation: nebelDrift 25s ease-in-out infinite alternate;
}

/* Jeder Layer mit leicht unterschiedlicher Animation für mehr Tiefe */
#nebel-layer-1 { animation-duration: 25s; animation-delay: 0s; }
#nebel-layer-2 { animation-duration: 30s; animation-delay: 2s; }
#nebel-layer-3 { animation-duration: 28s; animation-delay: 4s; }
#nebel-layer-4 { animation-duration: 32s; animation-delay: 1s; }
#nebel-layer-5 { animation-duration: 27s; animation-delay: 3s; }

/* Individuelle Nebel-Layer (werden per JS gesteuert) */
#nebel-layer-1,
#nebel-layer-2,
#nebel-layer-3,
#nebel-layer-4,
#nebel-layer-5 {
  opacity: 0 !important; /* !important überschreibt SVG-Attribute */
  transition: opacity 1.5s ease-in-out;
  will-change: opacity;
  transform: translateZ(0); /* GPU-Beschleunigung */
}

/* Layer-Sichtbarkeit per Klasse */
#nebel-layer-1.visible { opacity: 0.15 !important; }
#nebel-layer-2.visible { opacity: 0.25 !important; }
#nebel-layer-3.visible { opacity: 0.35 !important; }
#nebel-layer-4.visible { opacity: 0.60 !important; }
#nebel-layer-5.visible { opacity: 0.90 !important; }

@keyframes nebelDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-30px, 20px) scale(1.1);
  }
  50% {
    transform: translate(20px, -15px) scale(1.05);
  }
  75% {
    transform: translate(-15px, 30px) scale(1.08);
  }
  100% {
    transform: translate(10px, -10px) scale(1.02);
  }
}

/* ===================================
   AKT 1 - Anpassungen
   =================================== */

.fragen-container {
  position: relative;
  z-index: 20; /* ÜBER Nebel */
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}

.frage {
  opacity: 1; /* Im freien Scroll-Modus sichtbar */
  font-size: 1.8rem;
  font-weight: 600; /* Kräftig */
  color: #ffffff;
  line-height: 1.6;
  padding: 1rem;
  transform: translateY(0);
  transition: opacity 1s ease, transform 1s ease;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.8);
}

/* Im Audio-Modus: Fragen starten unsichtbar */
.portal-experience.audio-mode .frage {
  opacity: 0 !important; /* !important damit es die active-Klasse überschreibt */
  transform: translateY(30px) !important;
}

/* Wenn Animation triggert: Frage sichtbar machen (überschreibt audio-mode) */
.portal-experience.audio-mode .frage.visible-in-audio-mode {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

/* Fragen erscheinen nacheinander (nur im freien Scroll-Modus, nicht im audio-mode) */
.portal-experience:not(.audio-mode) #akt1.active .frage-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 2s;
}

.portal-experience:not(.audio-mode) #akt1.active .frage-2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 3.5s;
}

.portal-experience:not(.audio-mode) #akt1.active .frage-3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 5s;
}

/* Akt 2: Der Kompass */
#akt2 {
  background: transparent; /* Beige Hintergrund durchsichtig */
  position: relative;
  z-index: 20; /* ÜBER Nebel-Overlay (15) */
}

.wlw-logo-display {
  margin: 2rem 0;
  text-align: center;
}

.wlw-logo-display .logo {
  max-width: 300px;
  opacity: 1;
  transition: opacity 1s ease;
}

.logo-container {
  margin: 0;
}

.logo {
  max-width: 300px;
  opacity: 1;
  transition: opacity 1s ease;
}

.ranken {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  /* background: url('/images/ranken.svg') no-repeat center bottom; */
  background-size: contain;
  opacity: 0;
}

/* Akt 3-6: Bedeutung Sektionen - Hellgrüner Kasten */
#akt3,
#akt4,
#akt5,
#akt6 {
  background: linear-gradient(135deg, #e1efce 0%, rgba(225, 239, 206, 0.8) 100%);
  color: #4a5c3a;
}

/* Akt 3: Reduzierte Höhe für kompakteres Layout */
#akt3 {
  min-height: 60vh;  /* Kompakter als andere Sektionen */
}

#akt3 h2,
#akt3 p,
#akt3 strong,
#akt4 p,
#akt4 strong,
#akt5 p,
#akt5 strong,
#akt6 p,
#akt6 strong {
  color: #4a5c3a;
}

/* Akt 9: Einladung - Hellgrüner Kasten */
#akt9 {
  background: linear-gradient(135deg, #e1efce 0%, #F8F5EB 100%);
  color: #4a5c3a;
}

#akt9 p,
#akt9 strong {
  color: #4a5c3a;
}

#akt5 p,
#akt5 strong {
  color: #4a5c3a;
}

/* Final Invitation Box */
.final-invitation {
  margin: 4rem 0;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* FAQ Sektion */
#faq {
  background: #fff;
}

#faq h3 {
  color: #5b7c31;
}

/* Buttons */
.btn-community,
.btn-mehr-entdecken {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #5b7c31;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.3s, background 0.3s;
  box-shadow: 0 4px 12px rgba(91,124,49,0.3);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-community:hover,
.btn-mehr-entdecken:hover {
  transform: translateY(-2px);
  background: #4a6527;
  box-shadow: 0 6px 16px rgba(91,124,49,0.4);
}

/* Weiterführend Sektion */
#weiterfuehrend {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

#weiterfuehrend.visible {
  display: block;
  max-height: 1000px;
}

.weiterfuehrend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.weiterfuehrend-card {
  text-decoration: none;
  color: inherit;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.weiterfuehrend-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.weiterfuehrend-card h3 {
  color: #5b7c31;
  margin-bottom: 0.5rem;
}

/* Responsive: Untereinander auf mobil */
@media (max-width: 768px) {
  .weiterfuehrend-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   PORTAL CONTROLS
   ======================================== */

.portal-controls {
  position: fixed;
  bottom: calc(30px + env(safe-area-inset-bottom, 0px)); /* 🔧 MOBILE FIX: iPhone X+ Safe Area */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  padding: 15px 25px;
  border-radius: 50px;
  display: flex;
  gap: 15px;
  align-items: center;
  z-index: 9999; /* 🔧 MOBILE FIX: Erhöht für bessere Sichtbarkeit */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: calc(100vw - 40px); /* 🔧 MOBILE FIX: Verhindert Abschneiden */
  box-sizing: border-box; /* 🔧 MOBILE FIX: Padding inkludiert */
}

.portal-controls.visible {
  opacity: 1;
  visibility: visible;
}

.portal-controls button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.portal-controls button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.portal-controls button:active {
  transform: scale(0.95);
}

/* Progress Bar */
.progress-bar {
  width: 250px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  border-radius: 3px;
  width: 0%;
  transition: width 0.5s ease;
}

.progress-sections {
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 5px;
}

.section {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.section.active {
  background: #fff;
  border-color: #fff;
  color: #000;
  transform: scale(1.2);
}

/* ========================================
   STANDBY BUTTON (minimiertes Control-Panel)
   ======================================== */

.portal-standby {
  position: fixed;
  bottom: calc(30px + env(safe-area-inset-bottom, 0px)); /* 🔧 MOBILE FIX: iPhone X+ Safe Area */
  right: 30px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  display: flex; /* 🔧 MOBILE FIX: Flexbox für mehrere Buttons */
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
}

.portal-standby.visible {
  opacity: 1;
  visibility: visible;
}

.btn-standby {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 60px; /* 🔧 MOBILE: Größer für bessere Touch-Targets */
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn-standby:hover {
  background: rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.4);
}

/* ========================================
   ANIMATIONEN
   ======================================== */

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

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 1; 
  }
  50% { 
    transform: scale(1.05); 
    opacity: 0.8; 
  }
}

/* ========================================
   MOBILE OPTIMIERUNG
   ======================================== */

@media (max-width: 768px) {
  .portal-mode-selector h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .mode-options {
    flex-direction: column;
    gap: 1rem;
  }
  
  .mode-card {
    width: 100%;
    max-width: 280px;
  }
  
  /* � MOBILE SIMPLIFICATION: 3-Button-Panel */
  .portal-controls {
    bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    padding: 12px 20px;
    gap: 15px;
    max-width: calc(100vw - 20px);
    left: 10px;
    right: 10px;
    transform: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Nur Prev, Play/Pause, Next sichtbar */
  .portal-controls .btn-prev,
  .portal-controls .btn-play-pause,
  .portal-controls .btn-next {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  
  /* Progress Bar dünn und schmal */
  .progress-bar {
    width: 80px;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
  }
  
  .progress-fill {
    height: 100% !important;
  }
  
  .progress-sections {
    display: none;
  }
  
  /* Blende unnötige Buttons aus */
  .portal-controls .btn-audio-toggle,
  .portal-controls .btn-music-toggle,
  .portal-controls .btn-minimize {
    display: none !important;
  }
  
  /* Standby-Buttons größer für Touch */
  .portal-standby {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: 15px; /* 🔧 PIXEL FIX: Näher zur Mitte, nicht außerhalb */
  }
  
  .btn-standby-circle,
  .btn-standby-music {
    width: 56px !important; /* Größer für Touch */
    height: 56px !important;
    font-size: 1.4rem !important;
  }
  
  .portal-resume {
    bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    right: 15px;
  }
  
  .btn-resume {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .frage {
    font-size: 1.3rem;
  }
  
  .sequence-section {
    padding: 3rem 1.5rem;
  }
}

/* ========================================
   PERFORMANCE OPTIMIERUNG
   ======================================== */

.hero-image,
.sequence-section,
.portal-controls,
.portal-mode-selector {
  will-change: transform, opacity;
}

/* Hardware-Beschleunigung */
.hero-image {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ========================================
   VIDEO INTEGRATION
   ======================================== */

/* Video Preview Kreis */
.video-container {
  margin: 4rem auto;
  text-align: center;
  max-width: 100%;
}

.video-preview-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  margin: 0 auto;
  box-shadow: 
    0 8px 32px rgba(212, 175, 55, 0.4),
    0 0 60px rgba(212, 175, 55, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: #000;
}

.video-preview-circle:hover {
  transform: scale(1.08);
  box-shadow: 
    0 12px 48px rgba(212, 175, 55, 0.6),
    0 0 80px rgba(212, 175, 55, 0.3);
}

.video-preview-circle .preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  color: white;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.7),
    0 4px 16px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
}

.video-preview-circle:hover .video-play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  cursor: pointer;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 100000;
  animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  display: block;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.9);
}

.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.9;
  line-height: 1;
}

.modal-close:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* ========================================
   SVG-GRAFIKEN
   ======================================== */

/* Wesenskräfte (Akt 3) */
.wesenskraefte-circle {
  position: relative;
  width: min(500px, 60vw);
  height: min(500px, 60vw);
  margin: 0 auto;
  transition: transform 1s ease-out;
}

/* 📱 MOBILE: Feste Größe 240px */
@media (max-width: 768px) {
  .wesenskraefte-circle {
    width: 240px !important;
    height: 240px !important;
  }
}

/* Rotation aktivieren wenn Klasse gesetzt */
.wesenskraefte-circle.rotating {
  animation: circleRotate 60s linear infinite;
}

@keyframes circleRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.wsk-symbol {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.wsk-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.wsk-symbol:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 12px rgba(212, 175, 55, 0.4));
}

/* Kreis-Anordnung der Wesenskräfte */
.wsk-symbol[data-wsk="1"] { transform: translate(-50%, -50%) rotate(0deg) translateY(-200px) rotate(0deg) scale(0.8); }
.wsk-symbol[data-wsk="2"] { transform: translate(-50%, -50%) rotate(45deg) translateY(-200px) rotate(-45deg) scale(0.8); }
.wsk-symbol[data-wsk="3"] { transform: translate(-50%, -50%) rotate(90deg) translateY(-200px) rotate(-90deg) scale(0.8); }
.wsk-symbol[data-wsk="4"] { transform: translate(-50%, -50%) rotate(135deg) translateY(-200px) rotate(-135deg) scale(0.8); }
.wsk-symbol[data-wsk="5"] { transform: translate(-50%, -50%) rotate(180deg) translateY(-200px) rotate(-180deg) scale(0.8); }
.wsk-symbol[data-wsk="6"] { transform: translate(-50%, -50%) rotate(225deg) translateY(-200px) rotate(-225deg) scale(0.8); }
.wsk-symbol[data-wsk="7"] { transform: translate(-50%, -50%) rotate(270deg) translateY(-200px) rotate(-270deg) scale(0.8); }
.wsk-symbol[data-wsk="8"] { transform: translate(-50%, -50%) rotate(315deg) translateY(-200px) rotate(-315deg) scale(0.8); }

/* 📱 MOBILE: Kleinerer Radius für 240px Container */
@media (max-width: 768px) {
  .wsk-symbol[data-wsk="1"],
  .wsk-symbol[data-wsk="2"],
  .wsk-symbol[data-wsk="3"],
  .wsk-symbol[data-wsk="4"],
  .wsk-symbol[data-wsk="5"],
  .wsk-symbol[data-wsk="6"],
  .wsk-symbol[data-wsk="7"],
  .wsk-symbol[data-wsk="8"] {
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(-100px) rotate(calc(-1 * var(--angle, 0deg))) scale(0.8) !important;
  }
  
  .wsk-symbol {
    width: 60px !important;
    height: 60px !important;
  }
}

/* ✅ BUGFIX V5: .visible Klasse für Wesenskräfte-Symbole */
.wsk-symbol.visible {
  opacity: 1 !important;
  transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(-200px) rotate(calc(-1 * var(--angle, 0deg))) scale(1) !important;
}

/* 📱 MOBILE: Kleinerer Radius */
@media (max-width: 768px) {
  .wsk-symbol.visible {
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(-100px) rotate(calc(-1 * var(--angle, 0deg))) scale(1) !important;
  }
}

/* Animation NUR wenn .wesenskraefte-animated Klasse gesetzt */
.wesenskraefte-animated .wsk-symbol[data-wsk="1"] { transform: translate(-50%, -50%) rotate(0deg) translateY(-200px) rotate(0deg) scale(1); opacity: 1; transition-delay: 0.2s; }
.wesenskraefte-animated .wsk-symbol[data-wsk="2"] { transform: translate(-50%, -50%) rotate(45deg) translateY(-200px) rotate(-45deg) scale(1); opacity: 1; transition-delay: 0.4s; }
.wesenskraefte-animated .wsk-symbol[data-wsk="3"] { transform: translate(-50%, -50%) rotate(90deg) translateY(-200px) rotate(-90deg) scale(1); opacity: 1; transition-delay: 0.6s; }
.wesenskraefte-animated .wsk-symbol[data-wsk="4"] { transform: translate(-50%, -50%) rotate(135deg) translateY(-200px) rotate(-135deg) scale(1); opacity: 1; transition-delay: 0.8s; }
.wesenskraefte-animated .wsk-symbol[data-wsk="5"] { transform: translate(-50%, -50%) rotate(180deg) translateY(-200px) rotate(-180deg) scale(1); opacity: 1; transition-delay: 1s; }
.wesenskraefte-animated .wsk-symbol[data-wsk="6"] { transform: translate(-50%, -50%) rotate(225deg) translateY(-200px) rotate(-225deg) scale(1); opacity: 1; transition-delay: 1.2s; }
.wesenskraefte-animated .wsk-symbol[data-wsk="7"] { transform: translate(-50%, -50%) rotate(270deg) translateY(-200px) rotate(-270deg) scale(1); opacity: 1; transition-delay: 1.4s; }
.wesenskraefte-animated .wsk-symbol[data-wsk="8"] { transform: translate(-50%, -50%) rotate(315deg) translateY(-200px) rotate(-315deg) scale(1); opacity: 1; transition-delay: 1.6s; }

/* 📱 MOBILE: Animated mit kleinerem Radius */
@media (max-width: 768px) {
  .wesenskraefte-animated .wsk-symbol[data-wsk="1"] { transform: translate(-50%, -50%) rotate(0deg) translateY(-100px) rotate(0deg) scale(1); opacity: 1; transition-delay: 0.3s; transition-duration: 1s; }
  .wesenskraefte-animated .wsk-symbol[data-wsk="2"] { transform: translate(-50%, -50%) rotate(45deg) translateY(-100px) rotate(-45deg) scale(1); opacity: 1; transition-delay: 0.6s; transition-duration: 1s; }
  .wesenskraefte-animated .wsk-symbol[data-wsk="3"] { transform: translate(-50%, -50%) rotate(90deg) translateY(-100px) rotate(-90deg) scale(1); opacity: 1; transition-delay: 0.9s; transition-duration: 1s; }
  .wesenskraefte-animated .wsk-symbol[data-wsk="4"] { transform: translate(-50%, -50%) rotate(135deg) translateY(-100px) rotate(-135deg) scale(1); opacity: 1; transition-delay: 1.2s; transition-duration: 1s; }
  .wesenskraefte-animated .wsk-symbol[data-wsk="5"] { transform: translate(-50%, -50%) rotate(180deg) translateY(-100px) rotate(-180deg) scale(1); opacity: 1; transition-delay: 1.5s; transition-duration: 1s; }
  .wesenskraefte-animated .wsk-symbol[data-wsk="6"] { transform: translate(-50%, -50%) rotate(225deg) translateY(-100px) rotate(-225deg) scale(1); opacity: 1; transition-delay: 1.8s; transition-duration: 1s; }
  .wesenskraefte-animated .wsk-symbol[data-wsk="7"] { transform: translate(-50%, -50%) rotate(270deg) translateY(-100px) rotate(-270deg) scale(1); opacity: 1; transition-delay: 2.1s; transition-duration: 1s; }
  .wesenskraefte-animated .wsk-symbol[data-wsk="8"] { transform: translate(-50%, -50%) rotate(315deg) translateY(-100px) rotate(-315deg) scale(1); opacity: 1; transition-delay: 2.4s; transition-duration: 1s; }
}

/* Weltkarte (Akt 5) */
.weltkarte {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease;
}

.weltkarte.weltkarte-animated {
  opacity: 1;
  visibility: visible;
}

.weltkarte-svg {
  width: 100%;
  max-width: 900px;
  height: auto;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1.5s ease, transform 1.5s ease;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

/* Animation wenn .weltkarte-animated Klasse gesetzt oder SVG direkt sichtbar */
.weltkarte-animated .weltkarte-svg,
.weltkarte-svg.animate {
  opacity: 1 !important;
  transform: scale(1);
}

/* Produktreise-Flow (Akt 8) */
.produkt-journey {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease;
}

.produkt-journey.animate {
  opacity: 1 !important;
  visibility: visible;
}

.produktreise-svg,
.produkt-journey svg,
.produkt-journey-svg {
  width: 100%;
  max-width: 800px;
  height: auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.1));
}

/* Initial: Alle Glow-Elemente unsichtbar */
.produkt-journey svg [id$="-glow"] {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Animationen aktivieren */
#akt8.active .produktreise-svg,
#akt8.active .produkt-journey svg,
.produkt-journey.animate svg,
.produkt-journey-svg.animate {
  opacity: 1 !important;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* SVG-Element Pulse-Animation (Produktreise & Weltkarte) */
.pulse-highlight {
  transform-origin: center center;
  animation: pulseGlow 0.8s ease-in-out;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.9));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0));
  }
}

/* Pfeil-Animation für Produktreise */
@keyframes flowArrows {
  0%, 100% {
    opacity: 1;
    transform: translateX(0);
  }
  50% {
    opacity: 0.6;
    transform: translateX(5px);
  }
}

/* Mobile Video Anpassungen */
@media (max-width: 768px) {
  .video-preview-circle {
    width: 250px;
    height: 250px;
  }
  
  .video-play-overlay {
    font-size: 48px;
  }
  
  .modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .modal-close {
    top: -45px;
    font-size: 32px;
    width: 36px;
    height: 36px;
  }
  
  /* � MOBILE: Wesenskräfte bereits in Haupt-CSS mit 240px definiert */
}

@media (max-width: 480px) {
  .video-preview-circle {
    width: 200px;
    height: 200px;
  }
  
  .video-play-overlay {
    font-size: 40px;
  }
  
  /* � MOBILE: Wesenskräfte bereits mit fester Größe definiert */
  
  /* 🔧 MOBILE FIX: Standby-Buttons für sehr kleine Screens */
  .btn-standby-circle,
  .btn-standby-music {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.2rem !important;
  }
  
  .portal-standby {
    right: 15px;
    bottom: calc(15px + env(safe-area-inset-bottom, 0px));
  }
}
