@charset "UTF-8";
/* CSS Document */

/* Grundlegende Slider-Styles */
.slider-container {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
    margin-top: 70px;
}

.slider-content {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
    display: flex; /* Flexbox für die beiden Hälften */
}

/* Aktive Folie anzeigen */
.slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Animationsklassen für die Split-Sections */
.slide .split-section {
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.4, 1);
}

.slide.active .split-section.left {
    transform: translateY(0);
}

.slide.active .split-section.right {
    transition-delay: 0.1s;
    transform: translateY(0);
}

/* Neue Animation für den Text */
.slide .content h2,
.slide .content p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Text wird animiert, wenn die Folie aktiv ist (mit Verzögerung) */
.slide.active .content h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s; /* Startet nach der Split-Section-Animation */
}

.slide.active .content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s; /* Startet nach der Split-Section-Animation und der H2 */
}

.split-section {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.split-section.left {
    background-size: cover;
    background-position: center;
}

/* Hintergrundbild für die rechte Sektion */
.split-section.right {
    background-image: url('../images/slider/billiard_hg_rechts.jpg'); /* PFAD ANPASSEN! */
    background-size: cover; /* Bild soll den gesamten Bereich abdecken */
    background-position: center; /* Bild im Zentrum ausrichten */
    background-repeat: no-repeat; /* Bild nicht wiederholen */
    position: relative; /* Wichtig für die Positionierung der Buttons */
    overflow: hidden; /* Verhindert, dass Button-Schatten überläuft */
}

/* --- DESKTOP LOGO GRÖßER --- */
.split-section.right img {
    width: 65%; /* Großes Logo auf Desktop */
    max-width: 400px; 
    height: auto;
    display: block; 
    margin: 0 auto; 
}

.content {
    padding: 20px;
    position: relative; /* Für absolute Positionierung der Buttons (Desktop) */
    height: 100%; /* Wichtig, damit die Buttons unten im Content sind */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Zentriert den Text vertikal */
    align-items: center;
    color: #4A4A4A;
}

/* NEU: Kompaktere Abstände für Überschriften generell */
.content h2 {
    margin-top: 10px;
    margin-bottom: 5px; /* Kleinerer Abstand nach unten */
    font-size: 2.5rem; /* größere Schriftgröße für Desktop */
}
.content p {
    margin-top: 0;
    margin-bottom: 10px;
}


/* Stile für Play/Pause-Buttons (Positionierung für Desktop) */
.slider-controls {
    position: absolute; /* Absolut positioniert innerhalb des .content */
    bottom: 40px; /* 40px vom unteren Rand */
    left: 50%; /* Zentriert horizontal */
    transform: translateX(-50%); /* Korrektur für exakte Zentrierung */
    z-index: 10; /* Stellt sicher, dass die Buttons über allem liegen */
    display: flex; /* Damit Play/Pause nebeneinander liegen */
    gap: 10px; /* Abstand zwischen Play und Pause Button */
}

.play-btn, .pause-btn {
    padding: 8px 16px; /* NEU: Etwas kleinere Buttons */
    font-size: 15px;
    cursor: pointer;
    border: 2px solid #4A4A4A; 
    background-color: transparent;
    color: #4A4A4A; 
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.play-btn:hover, .pause-btn:hover {
    background-color: rgba(74, 74, 74, 0.1); 
}

/* Styles für die Dot-Navigation */
.slider-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column; /* Vertikal für Desktop */
  align-items: center;
  z-index: 2;
}

.dot {
  width: 30px; 
  height: 30px;
  border-radius: 50%;
  margin: 5px 0;
  cursor: pointer;
  border: 3px solid transparent; 
  transition: all 0.3s ease;
}

.dot:hover {
  transform: scale(1.1); 
}

.dot.active {
  border: 3px solid #4A4A4A; 
  transform: scale(1.1);
}


/* Responsives Design unter 800px */
@media screen and (max-width: 800px) {
  .slide {
    flex-direction: column; /* Stapelt die Hälften übereinander */
  }

  .split-section {
    width: 100%; 
    height: 50%; 
  }
  
  /* --- HANDY LOGO KLEINER --- */
  .split-section.right img {
      width: 120px; /* Feste, kleine Breite für Mobile */
      margin-bottom: 0px; /* NEU: Gar kein Abstand nach unten, damit alles enger wird */
  }
  
  .content {
      padding: 10px;
      justify-content: center; 
      
      /* NEU: Wichtig! Schiebt den Inhalt von oben weg (von den Kugeln weg) */
      padding-top: 40px; 
  }
  
  /* NEU: Überschriften auf Handy noch enger */
  .content h2 {
      margin-top: 5px;
      margin-bottom: 2px;
      font-size: 1.2rem; /* Optional: Text etwas kleiner machen */
  }

  /* FIX FÜR DEN PLAY BUTTON */
  .slider-controls {
      position: relative; /* Relativ zum Text */
      bottom: auto; 
      left: auto; 
      transform: none; 
      margin-top: 8px; /* NEU: Nur noch 8px Abstand zum Text darüber */
      margin-bottom: 5px; 
  }
  
  /* Buttons auf Handy kompakter */
  .play-btn, .pause-btn {
      padding: 6px 12px;
      font-size: 14px;
  }

  /* Positionierung der Dots für die mobile Ansicht */
  .slider-dots {
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    flex-direction: row; 
    align-items: center;
    bottom: auto; 
    right: auto;
  }

  .dot {
    margin: 0 5px;
    width: 30px;
    height: 30px;
  }
}

/* =====================================================================
   Slider-Verbesserungen: Partner-Folien + Responsiveness (Handy = Monitor)
   ===================================================================== */

/* Button/Link auf den Folien (z. B. "Zum Livestream", "Kontakt") */
.slider-link {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 18px;
  border: 2px solid #CC0000;
  border-radius: 5px;
  background: #ffffff;
  color: #CC0000;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
.slider-link:hover {
  background: #CC0000;
  color: #ffffff;
}

/* Logos/Bilder im Textbereich begrenzen, damit der Text nicht verdrängt wird */
.split-section.right .content img {
  max-height: 40%;
  object-fit: contain;
}

/* Inhalt nicht überlaufen lassen */
.slide .content {
  overflow: hidden;
}

/* Mittlere Bildschirme */
@media screen and (max-width: 1024px) {
  .slider-container { height: 520px; }
}

/* Handy / kleine Bildschirme */
@media screen and (max-width: 800px) {
  .slider-container { height: 600px; }

  /* Mehr Platz für den Textbereich */
  .split-section.left  { height: 42%; }
  .split-section.right { height: 58%; }

  /* Play/Pause auf dem Handy ausblenden – Wischen & Kugeln genügen */
  .slider-controls { display: none !important; }

  /* Kugel-Punkte nach unten, damit sie Bild/Text nicht überdecken */
  .slider-dots {
    top: auto;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
  }
  .dot { width: 22px; height: 22px; margin: 0 4px; }

  .content h2 { font-size: 1.3rem; }
  .content p  { font-size: 0.95rem; margin-bottom: 6px; }
  .split-section.right .content img { max-height: 90px; }
}

@media screen and (max-width: 480px) {
  .slider-container { height: 560px; }
  .content h2 { font-size: 1.15rem; }
  .content p  { font-size: 0.9rem; }
  .split-section.right .content img { max-height: 75px; }
}
