html, body {
  margin: 0;
  padding: 0;
  background-color: #000; /* Tiefschwarz */
  color: #fff;
  font-family: Arial, sans-serif;
  width: 100%;
  overflow-x: hidden; /* verhindert horizontales Scrollen */
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 10px 20px;
  position: relative;
}

.logo img {
  height: 40px;
}

.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 80px 40px;
    background-color: #000000;
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/hero-placeholder.jpg') no-repeat center center/cover;
    opacity: 0.3;
    z-index: 0;
}

.hero-text {
    position: relative;
    z-index: 100;
    max-width: 60000000px;
}

.hero-text .category {
    background-color: #048504;
    color: #000;
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero-text h1 {
    background-color: #000;
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
    padding: 1rem;
}

.button {
    background-color: #fff;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    padding: 0.7rem 1.5rem;
    display: inline-block;
    margin-top: 1rem;
}

/* ================================
                Nav Desktop
   ================================ */
.nav-desktop {
  display: flex;
  gap: 20px;
}

.nav-desktop a,
.nav-mobile a,
.dropdown-toggle {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-weight: bold;
}

.dropdown-content {
  display: flex;
  flex-direction: column;
  padding-left: 10px;
}


/* Verschachteltes Dropdown */
.dropdown-nested {
    margin: 0;
}

.dropdown-toggle a,
.dropdown-nested-toggle {
    cursor: pointer;
    padding: 5px 0;
    font-weight: bold;
    color: #fff;
}

.dropdown-nested-content {
    display: none;
    flex-direction: column;
    padding-left: 10px;
}

.dropdown-nested-content a {
    padding: 5px 0;
}

/* Zeige das verschachtelte Menü bei Bedarf */
.show-nested {
    display: flex;
}

/* ================================
        Hamburger-Knopf
   ================================*/
.hamburger {
  display: block; /* Standard: versteckt */
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: #000;
  position: fixed; /* statt absolute */
  top: 60px;
  right: 0;
  width: 220px;
  height: calc(100vh - 60px); /* füllt den Bildschirm, ohne zu scrollen */
  overflow-y: auto; /* falls viele Menüpunkte vorhanden sind */
  z-index: 1000;
  padding: 15px;
  box-sizing: border-box;
}

body.menu-open {
  overflow: hidden; /* verhindert Scrollen, wenn Menü offen */
}

.nav-mobile a {
  padding: 10px 0;
}

.dropdown {
  display: flex;
  flex-direction: column;
}

.dropdown-toggle {
  cursor: pointer;
  padding: 10px 0;
}

.dropdown-content {
  display: none;
  flex-direction: column;
  padding-left: 10px;
}

.dropdown-content a {
  padding: 5px 0;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  border-top: 1px solid #333;
  padding-top: 10px;
}

.social-icon img {
  width: 32px;
  height: 32px;
  filter: invert(1); /* macht weiße Icons auf schwarzem Hintergrund */
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}


/* Anzeigen durch JS */
.show {
  display: flex;
}

/* Mobile Ansicht aktivieren */
@media screen and (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

}

@media (max-width: 768px) {
  .hero {
    padding: 40px 20px;
    align-items: center;
    flex-direction: column;
    /* text-align: center; *//*Zentriet den Text*/ 
  }
}

/* ================================
            Geschichte
   ================================ */
.geschichte {
  padding: 20px;
}

.pfeil_unten {
  color: red;
}

.pfeil_oben {
  color: #048504;
}

.rotated-arrow {
  color: white;
  display: inline-block;
  transform: rotate(90deg);
}

.laufende-saison {
  color: white;
  display: inline-block;
  transform: rotate(-90deg);
}

/* ================================
        Fotobuch Styles
   ================================ */
.photobook {
  position: relative;
  width: 100%;
  max-width: 900px; /* Breite begrenzen */
  height: 600px; /* Höhe festlegen */
  margin: 40px auto;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photobook .book img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* <<< sorgt dafür, dass Quer- und Hochformat reinpassen */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.photobook .book img.active {
  opacity: 1;
  z-index: 2;
}

.photobook .book img.prev {
  opacity: 0;
  z-index: 1;
}

/* Buttons */
.photobook .prev,
.photobook .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px;
  cursor: pointer;
  z-index: 3;
}

.photobook .prev { left: 10px; }
.photobook .next { right: 10px; }

.photobook .prev:hover,
.photobook .next:hover {
  background: rgba(255,255,255,0.5);
}

/* ================================
       Platzbelegung Kalender
   ================================ */

.calendar-container {
  padding: 20px;
  background: #000; /* Hintergrund schwarz, passend zum Design */
  text-align: center;
}

.calendar-container iframe {
  width: 100%;
  max-width: 1000px; /* maximale Breite am PC */
  height: 600px;
  border: 0;
}

/* ================================
            Neuigkeiten
   ================================ */

.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.news-article {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}


.news-article img {
  max-width: 100%;
  border-radius: 5px;
}

.news-article h3 {
  margin: 10px 0 5px;
}

.news-article p {
  font-size: 0.9rem;
}

/* ================================
            Wochenbild
   ================================ */
.wochenbild {
  text-align: center;
  margin: 30px 0;
}

.wochenbild img {
  max-width: 90%;
  height: auto;
  border-radius: 10px;
}

/* ================================
            Vorstand
   ================================ */

.vorstand-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #000;
  color: #fff;
}

.vorstand-section h2 {
  color: #04a104;
  font-size: 2rem;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.vorstand-bild img {
  max-width: 900px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  margin-bottom: 20px;
}

.vorstand-namen p {
  margin: 10px auto;
  max-width: 800px;
  line-height: 1.6;
  font-size: 1rem;
  color: #ccc;
}

.vorstand-namen strong {
  color: #04a104;
}


/* ================================
            Sponsoren
   ================================ */

.sponsoren-section {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.sponsoren-section h2 {
  color: #04a104;
  font-size: 2rem;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.haupt-sponsor {
  margin-bottom: 50px;
}

.haupt-sponsor h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 20px;
}

.haupt-sponsor img {
  width: 600px;
  max-width: 80%;
  border-radius: 10px;
  background: #111;
  padding: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.haupt-sponsor a:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(4,161,4,0.5);
}

.sponsoren-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}

.sponsor img {
  width: 250px;
  height: 120px;
  object-fit: contain;
  background: #111;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor a:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(4,161,4,0.5);
}

/* ================================
        Kontakt (Detailansicht)
   ================================ */

.kontakte {
  padding: 60px 20px;
  text-align: center;
  background-color: #000; /* dunkler Hintergrund */
  color: white;
}

.kontakte h2 {
  color: #04a104; /* Vereinsgrün */
  margin-bottom: 40px;
}

.kontakt-detail {
  max-width: 1000px;
  margin: 3rem auto;
  background: #04a104;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  align-items: flex-start;
}

.kontakt-detail img {
  width: 280px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.kontakt-detail-info {
  flex: 1 1 400px;
}

.kontakt-detail-info h1 {
  color: #fff;
  margin-bottom: 0.3rem;
}

.kontakt-detail-info h2 {
  color: #000;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 2rem;
}

.kontakt-detail-info p {
  margin: 0.3rem 0;
  font-size: 1.5rem;
}

.kontakt-detail-info a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.kontakt-detail-info a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 700px) {
  .kontakt-detail {
    flex-direction: column;
    text-align: center;
    align-items: center; /* 🔹 sorgt dafür, dass Bild und Text zentriert sind */
    padding: 1.5rem;
  }

  .kontakt-detail img {
    max-width: 80%;
    margin: 0 auto; /* 🔹 Bild mittig ausrichten */
    display: block; /* 🔹 sichert zentrierte Darstellung */
  }
}


/* ================================
            Impressum
   =============================== */

.impressum {
  max-width: 900px;
  margin: 3rem auto;
  background: #04a104;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  color: #222;
}

.impressum h1 {
  color: #000;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.impressum h2 {
  color: #ccc;
  margin-top: 2rem;
  font-size: 1.3rem;
  border-left: 4px solid #ccc;
  padding-left: 0.5rem;
}

.impressum a {
  color: #000;
  text-decoration: none;
}

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

.impressum p {
  line-height: 1.6;
  margin-bottom: 1rem;
}
