.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  min-height: 60px;
  display: flex;
  align-items: center;
  padding: 0;
  border-bottom: 3px solid rgba(255,255,255,0.1);
}

.main-nav .logo {
  max-height: 110px;
  margin-top: -20px;
  margin-right: 2rem;
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 1100;
  border-radius: 10px;
  box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.6); /* kräftiger, markanter Schatten */
}

.nav-inner {
  padding-left: 160px; /* Logo-Breite + Abstand */
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Verhindert horizontales Scrollen */
  background-color: #1a1a1a; /* Dunkler Hintergrund */
  color: #ddd; /* Standard-Textfarbe */
}

/* ========== NAVIGATION ========== */
.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul li {
  position: relative;
}

.main-nav ul li a {
  color: #e6b800;
  text-decoration: none;
  font-weight: 550;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  display: block;
  padding: 0.5rem 0;
}

.main-nav ul li a:hover {
  color: #fff;
}

.main-nav ul li.has-submenu {
  position: relative; /* Bezugspunkt für das Dropdown-Menü */
}

/* === Dropdown-Menü (Desktop) === */
.main-nav ul li.has-submenu .submenu {
  position: absolute; 
  top: 90%; /* Direkt unterhalb des Menüpunktes */
  left: 0; /* Links ausgerichtet */
  background-color: #1a1a1a; /* Hintergrundfarbe */
  border: 1px solid #444; /* Rahmen */
  border-radius: 4px; /* Abgerundete Ecken */
  min-width: 200px; /* Mindestbreite */
  z-index: 1000; /* Überlagerung sicherstellen */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Schatten */
  padding: 0;
  display: none; /* Standardmäßig ausgeblendet */
  flex-direction: column;
}

.main-nav ul li.has-submenu:hover .submenu {
  display: flex; /* Dropdown-Menü anzeigen, wenn der Menüpunkt "Gitarren" gehovt wird */
}

.main-nav ul li ul li a {
  padding: 10px;
  color: #e6b800;
  text-decoration: none;
  overflow-x: hidden;
}

.main-nav ul li ul li a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.submenu-toggle {
  color: #e6b800;
  font-weight: 550;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  padding: 0.5rem 0;
  display: block;
  transition: color 0.3s ease;
}

.submenu-toggle:hover {
  color: #ffffff;
}

/* ========== BURGER-MENÜ (Mobil) ========== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px 0;
  background-color: #e6b800;
  border-radius: 2px;
}

.mobile-logo-container {
  display: none;
}

/* Logo im Burger-Menü */
.menu-logo {
  display: none; /* Standardmäßig ausblenden */
}

.menu-instagram {
  display: none; /* Standardmäßig ausblenden */
}

@media (max-width: 768px) {

  p + img, h1 + img, h2 + img, h3 + img {
    margin-top: 0; /* Kein Abstand zwischen Text und Bild */
  }

  img {
    display: block; /* Stellt sicher, dass Bilder als Blockelemente behandelt werden */
    margin: 0 auto; /* Zentriert Bilder horizontal */
    max-width: 100%; /* Bild passt sich der Breite des Containers an */
    height: auto; /* Beibehaltung des Seitenverhältnisses */
  }

  p, h1, h2, h3 {
    margin-bottom: 0; /* Minimaler Abstand unterhalb des Textes */
  }

  .about-image {
    flex: 1 1 100%; /* Container nimmt die gesamte Breite ein */
    margin-bottom: 20px; /* Abstand unterhalb des Containers */
  }

  .about-image img {
    border-radius: 8px; /* Weniger abgerundete Ecken */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Weniger intensiver Schatten */
  }
  
  .mobile-logo-container {
    display: flex;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
  }

  .mobile-logo {
    max-height: 80px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    background: transparent;
  }

  /* Und das ursprüngliche Nav-Logo ausblenden */
  .main-nav .logo {
    display: none;
  }

  .main-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    height: auto;
    background-color: transparent;
    backdrop-filter: none;
    border-bottom: none;
  }

  .main-nav ul {
    display: flex;
    position: fixed;
    top: 0; /* Positionierung unter dem Logo */
    left: 0;
    width: 100%;
    height: auto;
    overflow: hidden;
    background-color: #1a1a1a;
    transition: height 0.4s ease-in-out; /* Animation für die Höhe */
    z-index: 1000;
    flex-direction: column;
    padding: 0; /* Padding wird dynamisch durch Inhalte ergänzt */
    align-items: flex-start;
  }  

.main-nav ul.show {
  height: 100%; /* Menü öffnet sich über die gesamte Höhe */
  padding-top: 4rem;
} 


.main-nav ul li {
  width: 100%;
  text-align: center;
}

.main-nav ul li a {
  padding: 1rem;
  font-size: 1.2rem;
  color: #e6b800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.submenu-toggle {
  color: #e6b800;
  font-weight: 550;
  font-size: 1.2rem;
  text-decoration: none;
  cursor: pointer;
  padding: 1rem;
  display: block;
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Styling für das Logo im Burger-Menü */
.main-nav ul li.menu-logo {
  display: flex; /* Flexbox aktivieren */
  justify-content: center; /* Logo horizontal zentrieren */
  margin-top: 0; /* Abstand nach oben */
}

.main-nav ul li.menu-logo img {
  max-width: 180px; /* Maximale Breite des Logos */
  height: auto; /* Höhe proportional zur Breite */
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Styling für das Instagram-Icon im Burger-Menü */
.main-nav ul li.menu-instagram {
  display: flex; /* Flexbox aktivieren */
  justify-content: center; /* Instagram-Icon horizontal zentrieren */
  margin-top: 0; /* Abstand nach oben */
}

.main-nav ul li.menu-instagram img {
  max-width: 50px; /* Maximale Breite des Instagram-Icons */
  height: auto; /* Höhe proportional zur Breite */
  border-radius: 10px; /* Abgerundete Ecken für das Icon */
  box-shadow: 0 4px 10px rgba(0,0,0,0.4); /* Schatteneffekt */
} 

/* Submenü */
.main-nav ul li .submenu {
  position: relative; /* Submenü wird relativ zum Eltern-Element positioniert */
  top: 100%; /* Direkt unter dem Eltern-Element */
  left: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out; /* Animation für das Submenü */
  display: flex;
  flex-direction: column;
  background-color: #333 !important; /* Hintergrundfarbe des Submenüs */
  z-index: 1000;
  border: 1px solid #444; /* Rahmen für visuelle Trennung */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Schatten für Abhebung */
}
.main-nav ul li.show-submenu .submenu {
  max-height: 500px; /* Submenü wird vollständig angezeigt */
  padding-top: 2rem;
}

.main-nav ul li .submenu li a {
  padding: 1rem;
  font-size: 1.2rem;
  color: #e6b800;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Trennlinie zwischen Links */
}


.main-nav ul li .submenu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-toggle {
  display: flex;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background-color: rgba(26, 26, 26, 0.9);
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px 0;
  background-color: #e6b800;
  border-radius: 2px;
}

  .instagram-icon {
    display: none; /* Standardmäßig ausblenden */
}
.hidden {
  display: none; /* Versteckt die Elemente mit der Klasse "hidden" */
}  
}

@media (min-width: 769px) {
  .instagram-icon {
    display: block; /* In der Desktopansicht anzeigen */
    position: absolute;
    right: 20px;
    top: 52%;
    transform: translateY(-50%);
    z-index: 1100;
  }
  
  .instagram-icon img {
    width: 30px;
    height: 30px;

    transition: transform 0.3s ease, filter 0.3s ease;
  }
  
  .instagram-icon img:hover {
    transform: scale(1.2);
    filter: brightness(1) invert(0); /* Schwarzes Icon beim Hover */
  }
}

@media (min-width: 769px) {
  .about-image {
    flex: 1 1 300px;
    
  }
  .about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    filter: grayscale(10%) brightness(90%);
    margin-top: 5rem;
  }

  .gallery-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    }

  .lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Zentriere die Lightbox */
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    border: 3px solid #e6b800; /* Goldgelber Rahmen */
    border-radius: 15px; /* Abgerundete Ecken */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6); /* Schatteneffekt */
    padding: 20px; /* Abstand zwischen Bild und Rahmen */
    width: 60vw; /* % der Bildschirmbreite */
    height: 90vh; /* % der Bildschirmhöhe */
  }
  
  .lightbox-content {
    width: 100%;
    height: 95%; /* % der Bildschirmhöhe */
    overflow: hidden;
    display: flex; /* Flexbox aktivieren */
    justify-content: center; /* Horizontal zentrieren */
    align-items: center; /* Vertikal zentrieren */
    object-fit: contain; /* Bild proportional einpassen */
    border-radius: 10px; /* Abgerundete Ecken für das Bild */
  }
  .lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;  /* Bild vollständig sichtbar halten */
    border-radius: 10px;
  }
  
  .lightbox .caption {
    color: #e6b800; /* Goldgelbe Farbe */
    text-align: center;
    margin-top: 10px;
    font-size: 1.2rem; /* Größere Schrift */
    font-weight: bold;
  }
  
  .lightbox .close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #e6b800; /* Goldgelbe Farbe */
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease; /* Animation für Hover */
  }
  
  .lightbox .close:hover {
    color: #ffcc00; /* Helleres Goldgelb beim Hover */
    transform: scale(1.4); /* Vergrößerung beim Hover */
  }
  
  .lightbox .caption {
    color: white;
    text-align: center;
    margin-top: 10px;
  }
  
  .lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
  }
  

  
  /* Lightbox-Navigationspfeile */
  .lightbox .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #e6b800;
    cursor: pointer;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .lightbox .arrow:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .lightbox .arrow.left {
    left: 20px;
  }
  
  .lightbox .arrow.right {
    right: 20px;
  }
  

}

@media (max-width: 768px) {
  .lightbox {
    display: none !important; /* Lightbox in der mobilen Ansicht ausblenden */
  }
}

/* ========== SLIDER ========== */
.slider-container {
  position: relative;
  max-width: 100%;
  margin: 0;
  width: 100vw; 
  overflow: hidden;
  height: 1000px;
  border-radius: 0;
  box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.2);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.slide picture, .slide img {
  width: 100%; /* Bild füllt die gesamte Breite */
  height: 100%; /* Bild füllt die gesamte Höhe */
  object-fit: cover; /* Bild wird zugeschnitten, um den Container zu füllen */
  display: block;
}

.slide-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(1.3rem, 5.5vw, 2.5rem);
  font-weight: 600;
  color: #ddd;
  text-align: center;
  max-width: 90%;
  word-wrap: break-word;
  white-space: normal;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  border: 2px solid #ddd;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.075);
  backdrop-filter: blur(3px);
  padding-top: 0.5rem;
  box-sizing: border-box;
}

.slide-label:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.slider-btn.prev {
  left: 10px;
  border-radius: 50px 10px 10px 50px; /* Abgerundete Ecken auf der linken Seite */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.slider-btn.next {
  right: 10px;
  border-radius: 10px 50px 50px 10px; /* Abgerundete Ecken auf der rechten Seite */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.slider-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* === Slider-Overlay-Text === */
.slider-overlay-text {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  color: #e6b800;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  padding: 0.8rem 1.5rem;
  max-width: 90%;
  background-color: rgba(0, 0, 0, 0.075); /* Halbtransparenter Hintergrund */
  backdrop-filter: blur(3px);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.slider-overlay-text h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.slider-overlay-text h2 {
  font-size: clamp(1rem, 2.2vw, 2rem);
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.slider-overlay-text p {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  color: #ddd;
}

/* === Slider-Punkte === */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slider-dots .dot.active {
  background-color: #e6b800;
}

/* ========== SONSTIGES ========== */

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 0px 20px;
  max-width: 1200px;
  margin: auto;
  align-items: flex-start;
}

p, h1, h2, h3 {
  margin-top: 2rem; 
  margin-bottom: 2rem;
}

.intro {
  padding: 40px 20px;
  max-width: 800px;
  margin: auto;
  text-align: center;
  margin-top: 1rem;
}

.intro-bottom {
  padding: 20px 0;
  max-width: 800px;
  margin: auto;
  text-align: center;
  margin-bottom: 1rem;
}

.intro-bottom h2 {
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #e6b800;
  margin-top: 20px;
  margin-bottom: 8px;
}

.intro-bottom p {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 12px;
}

.intro h1 {
  font-size: 2.2rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #e6b800;
  margin-top: 3rem;
  margin-bottom: 20px;
}

.intro h2 {
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #e6b800;
  margin-top: 20px;
  margin-bottom: 8px;
}

.intro h3 {
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #e6b800;
  margin-top: 20px;
  margin-bottom: 12px;
}

.intro p {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 12px;
}

.intro a {
  color: #ffcc00; /* Helle Farbe für den Link */
  font-weight: bold;
  text-decoration: none;
  border-bottom: #ffcc00 1px solid; /* Unterstrich mit der gleichen Farbe */
}

.intro a:hover {
  color: #ffffff; /* Noch hellere Farbe beim Hover */
  text-decoration: none;
}

footer {
  background-color: #1a1a1a;
  text-align: center;
  padding: 20px;
  color: #777;
  border-top: 3px solid #444;
  font-size: 0.9rem;
}

.gallery-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Kontaktformular */
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

form label {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e6b800;
  margin-bottom: 0;
  margin-top: 2rem;
}

form input,
form textarea {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #1f1f1f;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
}

form input:focus,
form textarea:focus {
  border-color: #e6b800;
  outline: none;
  background-color: #2a2a2a;
}

form button {
  background-color: #e6b800;
  color: #1a1a1a;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #ffcc00;
}

#danke-nachricht {
  display: none;
  text-align: center;
  color: #aaffaa;
  margin-top: 20px;
  font-size: 1.2rem;
}

/* Galerie */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item .caption {
  padding: 10px;
  color: #e6b800;
  font-size: 1rem;
}

/* Klassikgitarren/Stahlsaitengitarren/E-Gitarren/Reparaturen */

.image-container {
  display: flex;
  flex-direction: row; /* Richtig: Zeilenrichtung für nebeneinander */
  align-items: center; /* Zentriert die Bilder vertikal innerhalb des Containers */
  justify-content: center; /* Zentriert die gesamte Gruppe von Bildern horizontal */
  gap: 20px; /* Abstand zwischen den Bildern */
  margin-top: 2rem;
}

.image-container img {
  max-width: 100%; /* Bild passt sich der Breite des Containers an */
  max-height: 100vh; /* Bildhöhe ist auf die sichtbare Höhe des Viewports begrenzt */
  height: auto; /* Beibehaltung des Seitenverhältnisses */
  display: block;
  border-radius: 8px; /* Abgerundete Ecken */
  box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Schatteneffekt */
}

.image-grid img {
  margin-bottom: 10px; /* Abstand zwischen den Bildern */
  display: block; /* Sicherstellen, dass die Bilder untereinander angezeigt werden */
}

@media (max-width: 768px) {
  .image-container {
    flex-direction: column; /* Bilder untereinander anordnen */
  }
  .pdf-container iframe {
    display: none; /* PDF-Container ausblenden */
}
}

@media (min-width: 769px) {
.pdf-container small {
  display: none; /* Kleinere Schrift ausblenden */
}
}


/* Verfügbare Instrumente */

.verfuegbare-instrumente .gallery-item {
  margin-bottom: 40px !important; /* Größerer Abstand zwischen den Containern */
}

.verfuegbare-instrumente .gallery-grid {
  gap: 80px !important; /* Größerer Abstand zwischen den Reihen */
}

.verfuegbare-instrumente .gallery-item .price {
    color: #ddd; 
    font-size: 1.2em; /* Schriftgröße */
    font-weight: bold; /* Fettschrift */
    margin-top: 5px; /* Abstand nach oben */
}
@media (min-width: 769px) {
.verfuegbare-instrumente .gallery-item:hover img {
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  }
.hidden {
  display: none; /* Versteckt die Elemente mit der Klasse "hidden" */
}  
}