/* Allgemeine Grundstruktur */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #35654d;
  color: #fff;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Logo */
.logo-container {
  background-color: white;
  padding: 20px 0;
  text-align: center;
}

.logo-container img {
  max-width: 220px;
  height: auto;
}

/* Header-Bereich mit Hintergrundbild */
header {
  background: url('https://www.john-west-billard.de/wp-content/uploads/2022/11/John-West-Header-Billardtisch.jpg') center/cover no-repeat;
  color: white;
  padding: 80px 20px 40px;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Button */
.btn {
  background: #007a5e;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

/* Seiteninhalte */
section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

h2 {
  color: #aee6cf;
  margin-bottom: 20px;
}

h3 {
  margin-top: 30px;
  color: #fff;
  font-size: 1.2rem;
}

/* Feature-Kacheln */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.feature {
  flex: 1;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

/* Bildergalerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease;
}

.gallery img:hover {
  transform: scale(1.2);
}

/* Call-to-Action Bereich */
.cta {
  background: #007a5e;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.cta a {
  color: white;
  text-decoration: underline;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.whatsapp-link img {
  width: 22px;
  height: 22px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: #ccc;
  font-size: 0.9rem;
}

footer a {
  color: #ccc;
  text-decoration: none;
  font-style: normal !important;
  text-decoration: none !important;
  margin-left: 10px;
}

/* Social Icons */
.social-icons {
  margin-top: 10px;
}

.social-icons a {
  display: inline-block;
  margin: 0 6px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  border-radius: 4px;
  background-color: white;
  padding: 2px;
}

/* Responsive Galerie */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* Einsatzbereiche (Schulen & Büro) */
.einsatz {
  flex: 1;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  font-weight: bold;
}

/* Grid-Container für Einsatzbereiche */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Zitat-Block */
blockquote {
  font-style: italic;
  color: #ccc;
  margin: 40px 0;
  padding: 0;
  border: none;
  text-align: center;
}

}

}

/* Basislayout für Dropdown-Container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Navigation einzeilig darstellen */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background-color: #2c5240;
  padding: 10px 20px;
  text-align: center;

  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Dropdown-Grundstruktur */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Untermenü standardmäßig ausblenden */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* direkt unterhalb des Dropdown-Hauptpunkts */
  left: 0;
  background-color: white;
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}


/* Nur für große Bildschirme sichtbar bei Hover */
@media (min-width: 769px) {
nav > .dropdown:hover > .dropdown-content {
    display: block;
  }
}

/* Desktop: Nested Dropdown (z.B. Zuhause in Einsatzorte) bei Hover */
@media (min-width: 769px) {
  .dropdown-content .dropdown:hover > .dropdown-content {
    display: block;
    position: absolute;	
    left: 100%;
    top: 0;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
}

/* Mobile: Nested Dropdown (zuhause) bei touch/klick öffnen */
@media (max-width: 768px) {
  .dropdown-content .dropdown.open > .dropdown-content {
    display: block;
    position: static;
    background-color: transparent;
    box-shadow: none;
  }

  .dropdown-content .dropdown-content a {
    background-color: #2c5240;
    color: white;
  }

  .dropdown-content .dropdown-content a:hover {
    background-color: #3a6b55;
  }
.dropdown-content .dropdown-content {
    display: none;
  }

  .dropdown.open > .dropdown-content {
    display: block;
  }

  /* Verschachtelte Menüs wieder explizit verstecken */
  .dropdown-content .dropdown > .dropdown-content {
    display: none;
  }

  /* Und nur zeigen, wenn auch das verschachtelte `.dropdown` geöffnet wurde */
  .dropdown-content .dropdown.open > .dropdown-content {
    display: block;
    position: static;
    background-color: transparent;
    box-shadow: none;
  }
}

/* Links im Untermenü */
.dropdown-content a {
  display: block;
  text-decoration: none;
  color: black;
  font-size: 0.9rem;
  white-space: nowrap;
  padding: 8px 12px;
 }

/* Optional: Styling-Anpassung beim Hover über Unterpunkte */
.dropdown-content a:hover {
  background-color: #f0f0f0;
}

/* Burger-Icon (nur auf kleinen Screens sichtbar) */
.burger-menu {
  display: none;
  font-size: 30px;
  color: white;
  padding: 10px 20px;
  background-color: #2c5240;
  cursor: pointer;
  text-align: right;
}


@media (max-width: 768px) {
  .burger-menu {
    display: block;
  }

  #main-nav.hidden {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
    gap: 10px;
    display: none;
  }

  .dropdown-content {
  display: none;
  position: static;
  background-color: transparent;
  box-shadow: none;
}

/* Dropdown-Inhalt verstecken */
.dropdown-content.hidden {
  display: none !important;

}

/* Dropdown-Inhalt zeigen bei "open" */
.dropdown.open .dropdown-content {
  display: block;
}


  .dropdown-content a {
  font-size: 0.9rem;
  white-space: nowrap;
  padding: 8px 12px;
  display: block;
  }

  .dropdown-content a:hover {
    background-color: #3a6b55;
  }

}
section a {
  color: inherit;              /* übernimmt die Textfarbe des Elternelements */
  font-style: italic;          /* macht den Link kursiv */
  text-decoration: underline;  /* unterstreicht den Link */
}

.projekt-carousel {
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 40px auto;
}

.projekt-wrapper {
  display: flex;
  transition: transform 0.6s ease;
}

.projekt-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 20px;
  text-align: center;
}

.projekt-info h3 {
  color: #aee6cf;
  margin-bottom: 0.5em;
}

.projekt-info ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 1em;
}

.projekt-info li {
  margin: 0.3em 0;
}

.projekt-slider {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.slider-viewport {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.slider-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

.slider-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.slider-buttons button {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 2px solid #fff;
  width: 48px;
  height: 48px;
  font-size: 1.5em;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.slider-buttons button:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  transform: scale(1.15);
}

/* Projekt-Navigationspfeile (außen) kannst du gerne so lassen oder auch optisch anpassen: */
.projekt-prev,
.projekt-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: 2px solid white;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.projekt-prev:hover,
.projekt-next:hover {
  background: rgba(255, 255, 255, 0.95);
  color: black;
}

/* Positionen */
.projekt-prev {
  left: 10px;
}

.projekt-next {
  right: 10px;
}

.slider-track video,
.slider-track iframe {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .projekt-prev,
  .projekt-next {
    font-size: 0;
    padding: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid white;
  }

  .projekt-prev::before {
    content: "❮";
    font-size: 1.5rem;
    color: white;
  }

  .projekt-next::before {
    content: "❯";
    font-size: 1.5rem;
    color: white;
  }

  .projekt-prev:hover::before,
  .projekt-next:hover::before {
    color: black;
  }

  .projekt-prev:hover,
  .projekt-next:hover {
    background: rgba(255, 255, 255, 0.95);
  }
}

/* CTA-Links explizit neutral darstellen */
.cta a {
  font-style: normal;
  text-decoration: none;
}
.cta a:hover {
  text-decoration: underline;
}
.video-wrapper {
  max-width: 500px;
  margin: 30px auto;
  text-align: center;
}

.video-wrapper video {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: block;
}
@media (max-width: 768px) {
  .video-wrapper {
    max-width: 100%;
    padding: 0 10px;
  }

  .video-wrapper video {
    max-height: 360px;
  }
}
