html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #0e1621 0%, #00152a 250px, #0e1621 100%);
    color: white;
  }

  .banner-header {
    aspect-ratio: 1920 / 380;
    width: 100%;
    max-height: 230px;
    overflow: hidden;
  }

  .banner-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

#main-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all 0.3s ease;
  transition: transform 0.3s ease;
  background-color: rgba(0, 21, 42, 0.95);

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 10px 20px;
  flex-wrap: wrap;
}
.nav-left,
.nav-right {
  display: flex;
  gap: 20px;
}

.nav-logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.nav-logo:hover img {
  transform: scale(1.05);
}
#main-nav.scrolled {
  background-color: #00152a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

  nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
  }

  nav ul li {
    position: relative;
  }

  nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: bold;
    transition: color 0.3s;
  }

  nav a:hover {
    color: #ff3333;
  }

  nav ul ul {
    display: none;
    position: absolute;
    background-color: #00152a;
    top: 100%;
    left: 0;
    min-width: 160px;
    z-index: 1000;
  }

  nav ul li:hover > ul {
    display: block;
  }

  nav ul ul ul {
    left: 100%;
    top: 0;
  }

  main {
	  max-width: 1000px;
     margin: 0 auto;
	 padding: 40px 20px;
    text-align: center;
  }
  h1, h2 {
      margin-bottom: 20px;
    }
	section {
      max-width: 900px;
      margin: 60px auto;
      padding: 20px;
      background: rgba(255,255,255,0.02);
      border-radius: 12px;
      box-shadow: 0 0 10px rgba(0,0,0,0.2);
    }

    .intro {
      font-size: 1.2em;
      line-height: 1.6;
    }

    .intro blockquote {
      font-style: italic;
      color: #ccc;
      margin: 1em 0 2em;
    }

    .timeline {
  margin: 40px auto;
  position: relative;
  max-width: 600px;
  text-align: left;
  padding-left: 30px;
}
    

    .timeline::before {
      content: '';
      position: absolute;
      top: 0;
      left: 10px;
      width: 4px;
      height: 100%;
      background: #ff3333;
    }

    .event {
      position: relative;
      margin-bottom: 30px;
      padding-left: 20px;
    }

    .event time {
      font-weight: bold;
      color: #3399ff;
    }

    .values {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
      margin-top: 30px;
    }

    .value-item {
      background: rgba(255,255,255,0.05);
      padding: 20px;
      border-radius: 8px;
      flex: 1 1 200px;
      text-align: left;
    }

    .cta {
      background: rgba(255,255,255,0.08);
      padding: 70px;
      border-radius: 10px;
      margin: 40px auto;
      max-width: 600px;
      text-align: center;
    }

    .cta a {
      background: #ff3333;
      color: white;
      padding: 12px 25px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: bold;
    }
  

  footer {
    background-color: #00152a;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #ccc;
    margin-top: 40px;
  }

  .team-banner {
     max-width: 70%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

  .trainer-bereich,
  .kader,
  .spielplan {
    text-align: center;
    margin: 40px 0;
  }

  .profilbild {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    transition: transform 0.2s ease;
  }

  .profilbild:hover {
    transform: scale(1.05);
  }

  .spieler-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .spieler {
    max-width: 180px;
    text-align: center;
  }

  .spieler p {
    margin-top: 10px;
    font-size: 0.95em;
  }

  a img {
    border: none;
    outline: none;
    text-decoration: none;
    box-shadow: none;
  }

  .spieler-gruppe {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
  }

  .spieler-gruppe h2 {
    width: 100%;
    text-align: center;
  }

  .co-trainer-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 2rem;
  }

  .trainer-box {
    text-align: center;
  }

  .teamfoto {
    text-align: center;
    margin: 2rem 0 1rem 0;
  }

  .teamfoto-img {
     max-width: 100%;
  max-height: 700px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

  .trainingszeiten {
  background-color: rgba(255, 255, 255, 0.06); 
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  margin: 60px auto 40px auto; 
  max-width: 600px;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.trainingszeiten h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #fff;
}

.trainingszeiten .icon {
  font-size: 1.2em;
  margin-right: 6px;
}

.trainingszeiten p {
  margin: 8px 0;
  font-size: 1.1em;
}

.trainingszeiten .blue-fighters {
  color: #3399ff;
}

.kontakt-button {
  display: inline-block;
  margin-top: 20px;
  background-color: #ff4b4b;
  color: white;
  font-weight: bold;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.kontakt-button:hover {
  background-color: #e60000;
}
.spielplan {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
}

  .spielplan-button {
  margin-top: 30px;
  text-align: center;
}

.spielplan-button a {
  display: inline-block;
  background-color: #ff3b3f;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.spielplan-button a:hover {
  background-color: #e22a2d;
}
.teaser-box {
  background: linear-gradient(135deg, #003366, #004080);
  color: white;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  max-width: 90%;
  margin: 2rem auto;
  text-align: center;
  font-family: sans-serif;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.teaser-box:hover {
  transform: translateY(-5px);
}

.teaser-box h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.teaser-box a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  background-color: #ffcc00;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 1rem;
}

.teaser-box a:hover {
  background-color: #ffd633;
  color: #003366;
}
/* Popup-Hintergrund */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Popup-Container */
.popup-content {
  max-width: 90%;
  max-height: 90vh; /* <-- wichtig */
  overflow: auto;
  background-color: #00152A;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Bild im Popup */
.popup-content img {
  width: 100%;
  height: auto;
  max-height: 80vh; /* <-- wichtig für mobile Screens */
  object-fit: contain;
  display: block;
}

/* Pop-up Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.6s ease-in-out;
}

/* Inhalt */
.popup-content {
  position: relative;
  background: #000;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  animation: zoomIn 0.8s ease-out;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
}

/* Bild */
.popup-img {
  max-width: 60%;
  max-height: 70vh;
  height: auto;
  width: auto;
  border-radius: 10px;
}

/* Button */
.popup-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #d90429;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s;
}
.popup-button:hover {
  background-color: #a80321;
}

/* Schließen-Button */
.popup-close {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

/* Animationen */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}



  /* 📱 Responsive */
  @media (max-width: 768px) {
  #main-nav {
    flex-direction: column;
    gap: 20px;
    padding: 15px 10px;
  }

  .nav-left,
  .nav-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nav-logo {
    order: -1; /* Logo ggf. nach oben */
    max-width: 100px;
	transform: translateX(-10px);
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }

  nav ul ul {
    position: static; /* Drop-Down untergeordnet anzeigen */
    width: 100%;
  }

    .spieler {
      max-width: 45%;
    }

    .co-trainer-container {
      flex-direction: column;
      gap: 2rem;
    }

    .profilbild {
      width: 120px;
      height: 120px;
    }

    .trainer-bereich,
    .kader,
    .spielplan {
      margin: 20px 0;
    }
	.teamfoto-caption {
  margin-top: 10px;
  font-size: 1em;
  color: #ccc;
}


