/* ===== Allgemein ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #0f0f0f;
  color: #eee;
  overflow-x: hidden;
  text-align: center;
  line-height: 1.6;
}

/* ===== Breaking News ===== */
#breakingNews {
  background: #111;
  overflow: hidden;
  border-left: 4px solid #1db954;
  height: 40px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10001;
}

.news-wrapper {
  display: inline-flex;
  white-space: nowrap;
  animation: scrollNews 25s linear infinite;
}

.news-item {
  padding: 0 50px;
  font-weight: 600;
  color: #1db954;
  text-transform: uppercase;
  font-size: 0.9rem;
  flex-shrink: 0;
}

@keyframes scrollNews {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

#breakingNews:hover .news-wrapper {
  animation-play-state: paused;
}

/* ===== Navbar ===== */
header,
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(90deg, #1db954, #14a34a);
  color: white;
  position: fixed;
  top: 40px; /* direkt unter dem Ticker */
  left: 0;
  width: 100%;
  z-index: 10000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

header .logo,
.navbar .logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
}

/* ===== Hamburger ===== */
.menu-toggle {
  display: none;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 10000;
  position: relative;
}

.bar {
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* ===== Menü ===== */
.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100%;
  background-color: #111;
  padding-top: 80px;
  gap: 20px;
  transition: right 0.3s ease-in-out;
  z-index: 9998;
}

/* Links vorbereiten */
.nav-menu li {
  opacity: 0;
  transform: translateX(50px);
}

/* Hamburger Animation */
#menu-toggle:checked ~ .hamburger-icon .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle:checked ~ .hamburger-icon .bar:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked ~ .hamburger-icon .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Menü sichtbar */
#menu-toggle:checked ~ .nav-menu {
  right: 0;
}

/* ===== Keyframes ===== */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation der Menülinks */
#menu-toggle:checked ~ .nav-menu li {
  animation: slideInRight 0.5s forwards;
}
#menu-toggle:checked ~ .nav-menu li:nth-child(1) {
  animation-delay: 0.1s;
}
#menu-toggle:checked ~ .nav-menu li:nth-child(2) {
  animation-delay: 0.2s;
}
#menu-toggle:checked ~ .nav-menu li:nth-child(3) {
  animation-delay: 0.3s;
}
#menu-toggle:checked ~ .nav-menu li:nth-child(4) {
  animation-delay: 0.4s;
}

/* Reset */
#menu-toggle:not(:checked) ~ .nav-menu li {
  opacity: 0;
  transform: translateX(50px);
}

/* ===== Desktop ===== */
@media screen and (min-width: 768px) {
  .hamburger-icon {
    display: none;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    height: auto;
    width: auto;
    background: transparent;
    padding: 0;
    gap: 15px;
    opacity: 1;
    animation: none;
  }

  .nav-menu li {
    opacity: 1;
    transform: none;
  }

  .nav-menu a {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
  }

  .nav-menu a:hover {
    color: #0f0f0f;
  }
}

/* ===== Content ===== */
.content {
  padding-top: 140px; /* Platz für Ticker + Navbar */
}

/* ===== Countdown ===== */
.countdown-section {
  text-align: center;
  margin: 60px 0 40px;
  color: #1db954;
}

.countdown-section h2 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.countdown-section p {
  font-size: 1.2rem;
  color: #ccc;
}

/* ===== Socials ===== */
.socials {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 25px 0;
}

.socials a {
  font-weight: bold;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 25px;
  background: #1db954;
  color: #fff;
  transition: all 0.3s;
}

.socials a:hover {
  transform: scale(1.1);
  background: #14a34a;
}

/* ===== Matches ===== */
.matches {
  padding: 30px 20px;
  max-width: 950px;
  margin: auto;
  background: #111;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.matches h2 {
  color: #1db954;
  margin-bottom: 15px;
}

.matches h3,
.matches h4 {
  margin-bottom: 10px;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 25px;
  background: #111;
  font-size: 0.9rem;
  color: #aaa;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .content {
    padding-top: 130px;
  }

  .countdown-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .news-item {
    padding: 0 20px;
    font-size: 0.8rem;
  }

  .socials {
    flex-direction: column;
    gap: 12px;
  }

  .matches {
    padding: 15px 10px;
  }
}
