/* === ?? GRUNDLAYOUT === */
html, body {
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-image: url('unser-trailer-kino8.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-color 1s ease, color 1s ease;
  font-family: system-ui, sans-serif;
  color: #fff;
}

body.night {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

/* ?? Zentrales Overlay für Nachtmodus */
body.night::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.7);
  pointer-events: none;
  z-index: 0;
  animation: nachtBlende 0.5s ease-in;
}

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

/* === ?? FIXIERTES MENÜ OBEN === */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(51, 51, 51, 0.85);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.menu a,
.menu button.nacht-btn {
  padding: 10px 20px;
  color: white;
  background: none;
  border: none;
  font-size: 1em;
  cursor: pointer;
  text-decoration: none;
}

.menu a:hover,
.menu button.nacht-btn:hover {
  background-color: #575757;
}

.menu-item-with-submenu {
  position: relative;
  display: inline-block;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #333;
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 99;
}

.submenu a {
  display: block;
  color: white;
  text-decoration: none;
  margin: 5px 0;
}

.submenu a:hover {
  text-decoration: underline;
}

/* === ?? KINO-LAYOUT (Hauptfläche) === */
.kino-layout {
  position: absolute;
  top: 60px;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  padding: 40px;
  box-sizing: border-box;
  z-index: 2;
  transition: opacity 1s ease, background 1s ease;
}

/* === ?? RANGLISTE ZENTRIERT === */
.trailer-ranking {
  margin: 0 auto;
  max-width: 600px;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  z-index: 2;
}

/* === ??? INHALTSBEREICHE === */
.trailer-mitte {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* sorgt für zentrierte Ausrichtung */
  justify-content: center;
  padding-top: 50px;
  box-sizing: border-box;
  z-index: 2;
}


.filmseite {
  width: 220px;
  flex-shrink: 0;
  text-align: left;
  z-index: 2;
}

.mittelbereich {
  flex: 1;
  min-width: 360px;
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  z-index: 2;
}

/* === ??? FILMROLLEN & ELEMENTE === */
.filmrolle {
  height: 500px;
  overflow-y: auto;
  padding: 8px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  scrollbar-width: none;
  z-index: 2;
}

.filmrolle::-webkit-scrollbar {
  display: none;
}

.filmzeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease;
}

.filmzeile.visible {
  opacity: 1;
  transform: translateY(0);
}

.loch {
  width: 10px;
  height: 14px;
  background-color: #999;
  border-radius: 2px;
}

.inhalt {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", system-ui, sans-serif;
  flex: 1;
  margin: 0 8px;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 4px;
  text-align: center;
  font-size: 0.9em;
  color: white;
  z-index: 2;
}

.filmzeile:hover .inhalt {
  background-color: rgba(255, 215, 0, 0.2);
  transform: scale(1.03);
  transition: all 0.3s ease;
}

/* === ??? SWIPER (Trailer-Bereich) === */
.swiper {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  box-sizing: border-box;
  z-index: 2;
}

.swiper-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

body.night .swiper-container {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(2px);
  box-shadow: 0 0 20px rgba(255,255,255,0.08);
}

.swiper-slide {
  text-align: center;
  position: relative;
  background-color: transparent;
  border-radius: 6px;
}

body.night .swiper-slide {
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.swiper-slide iframe {
  width: 100%;
  max-width: 300px;
  height: 170px;
  border: none;
  pointer-events: none;
}

/* === ???? Swiper-Navigation === */
.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 20px;
  height: 10px;
  color: red;
  opacity: 0.8;
}

.swiper-button-prev {
  transform: scaleX(-1); /* Linker Pfeil wird gespiegelt */
}

.swiper-button-next {
  transform: scaleX(-1);       /* Rechter Pfeil wird gespiegelt */
}


.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px;
}

/* === ??? VIDEO-PLAYER UNTEN === */
#video-player {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 20px auto;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  border-radius: 8px;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* NEU: vertikale Ausrichtung */
}

body.night #video-player {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(1px);
}

#video-title {
  font-size: 16px;
  margin-bottom: 10px;
  display: none;
}

#video-frame {
  width: 100%;
  max-width: 550px;
  height: 232px;
  border: none;
  display: block;
}
@media screen and (max-width: 768px) {
  html, body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  height: auto; /* ? wichtig: nicht 100vh */
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  
  background-image: url('unser-trailer-kino8.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* ? sorgt für dauerhaften Hintergrund beim Scrollen */
  
  transition: background-color 1s ease, color 1s ease;
  font-family: sans-serif;
  color: #fff;
}


 


  #layout-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }

  






















