/* === Grundlayout === */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0f0c29, #3b3b3b);
  background-attachment: fixed;
  background-size: cover;
  color: white;
}

/* === Logo === */
header {
  padding: 20px;
  text-align: center;
}

header img {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 0 5px cyan);
}

/* === Navigation === */
nav {
  background-color: rgba(0, 0, 0, 0.4);
  margin-bottom: 5px;
}

nav .main-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav .main-menu > li {
  position: relative;
}

nav .main-menu > li > a {
  color: cyan;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  padding: 10px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
}

nav .main-menu > li > a:hover {
  color: white;
  box-shadow: 0 0 15px cyan, 0 0 30px cyan;
  background-color: rgba(0, 255, 255, 0.1);
}

/* === Dropdown-Menü === */
nav .dropdown {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  padding: 10px 0;
  display: none;
  min-width: 180px;
  z-index: 100;
  box-shadow: 0 0 10px cyan;
}

nav .dropdown li a {
  display: block;
  padding: 10px 20px;
  color: cyan;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

nav .dropdown li a:hover {
  background-color: rgba(0, 255, 255, 0.1);
  color: white;
  box-shadow: 0 0 8px cyan;
}

nav .main-menu li:hover > .dropdown {
  display: block;
}

/* === Begrüßungsbereich === */
.hero {
  text-align: center;
  padding: 0 20px 30px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
}

.hero h1 {
  font-size: 38px;
  margin-bottom: 15px;
  color: cyan;
  text-shadow: 0 0 4px cyan, 0 0 8px cyan, 0 0 16px cyan, 0 0 30px cyan;
  animation: neonPulse 2.5s infinite alternate;
}

.hero h1 span {
  color: white;
  text-shadow: 0 0 4px white, 0 0 8px white, 0 0 16px white, 0 0 25px cyan;
}

.hero p {
  font-size: 16px;
  color: #ddd;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 0 3px #999;
  line-height: 1.5;
}

@keyframes neonPulse {
  0% {
    text-shadow: 0 0 5px cyan, 0 0 10px cyan, 0 0 20px cyan, 0 0 40px cyan;
  }
  100% {
    text-shadow: 0 0 3px cyan, 0 0 6px cyan, 0 0 10px cyan, 0 0 20px cyan;
  }
}

/* === Livestream-Bereich === */
.stream-section {
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.2);
  color: white;
}

.stream-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: flex-start;
}

.stream-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  gap: 15px;
  flex: 1;
  text-align: center;
}

.stream-left span {
  font-size: 18px;
}

.divider {
  height: 2px;
  width: 100px;
  background: cyan;
  box-shadow: 0 0 5px cyan;
}

#openPlayer {
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  background-color: rgba(0, 255, 255, 0.1);
  color: cyan;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px cyan;
}

#openPlayer:hover {
  color: white;
  box-shadow: 0 0 15px cyan, 0 0 30px cyan;
}

.stream-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  flex: 1;
  max-width: 328px;
}

.stream-right img {
  width: 328px;
  height: 94px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stream-right a:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 15px cyan;
}

.divider-vertical {
  height: 2px;
  width: 60%;
  background: cyan;
  box-shadow: 0 0 5px cyan;
}

.stream-empty {
  height: 80px;
}

/* === Popup-Fenster === */
.popup-window {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 720px;
  height: 360px;
  background-color: rgba(0, 0, 0, 0.95);
  border: 2px solid cyan;
  border-radius: 12px;
  box-shadow: 0 0 20px cyan;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup-window.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.popup-window .popup-content {
  display: flex;
  width: 90%;
  height: 80%;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.popup-window .popup-content iframe {
  flex: 1;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* === Responsive Navigation === */
.menu-toggle {
  display: none;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  font-size: 20px;
  text-align: right;
  color: cyan;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav .main-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav.active .main-menu {
    display: flex;
  }

  nav .main-menu li {
    width: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
  .stream-columns {
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  .stream-box,
  .stream-image {
    flex: 0 0 auto;
    width: 420px;
    max-width: 100%;
    height: auto;
  }

  .stream-box {
    height: auto;
    padding: 15px;
  }

  .stream-image img {
    max-height: 100%;
    object-fit: cover;
  }
}
/* =============== Mobile Sidebar und On-Air Button =============== */
@media (max-width: 900px) {
  .sidebar {
    width: 100% !important;
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh;
    background: rgba(0,0,0,0.92);
    z-index: 1200;
    display: none;
    overflow-y: auto;
    box-shadow: 0 0 15px cyan;
  }
  .sidebar.open {
    display: block;
    animation: sidebarIn 0.2s;
  }
  .onair-btn {
    position: fixed;
    top: 18px;
    left: 60px;
    right: 18px;
    width: auto;
    z-index: 1500;
    font-size: 1.3em;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 0 10px cyan;
    background: #222;
  }
  .sidebar-content {
    margin-top: 70px; /* Platz für Button lassen */
  }
  .hamburger {
    display: block;
    position: fixed;
    top: 16px;
    left: 14px;
    z-index: 2000;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.7);
    border-radius: 6px;
    color: cyan;
    font-size: 32px;
    border: none;
    cursor: pointer;
    outline: none;
  }
}
.hamburger {
  display: none;
}
@media (min-width: 901px) {
  .sidebar {
    display: block !important;
    position: static !important;
    width: 260px !important;
    height: auto !important;
    box-shadow: none !important;
  }
  .onair-btn {
    position: static !important;
    width: 100%;
    margin: 0 auto 20px auto;
    display: block;
    box-shadow: 0 0 10px cyan;
  }
}
@keyframes sidebarIn {
  from { left: -320px; opacity: 0; }
  to { left: 0; opacity: 1; }
}