@font-face {
  font-family: lato;
  src: url(Lato-Regular.ttf);
} 

@font-face {
  font-family: poppins;
  src: url(Poppins-Medium.ttf);
}

.headernav {
  height: 100px;
  width: 50%;
  top: 100px;
  position: absolute;
  z-index: 1;
  background-color: white;
  transform: translateY(-50%) translateX(-50%);
  left: 50%;
  border-radius: 10px;
  opacity: 85%;
}

.home, .blog, .galerie {
  text-decoration: none;
  font-size: 25px;
  color: black;
  font-family: poppins, "Helvetica Neue", Helvetica, Arial, "sans-serif";
  position: absolute;
  z-index: 2;
  top: 100px;
  transform: translateX(-50%) translateY(-50%);
}

.home {
  left: 35%;
}

.blog {
  left: 50%;
}

.galerie {
  left: 65%;
}

.hintergrundbild {
  width: 100%;
  opacity: 60%;
  z-index: 1;
  position: fixed;
  top: -100px;
}

.abstandunten {
  width: 10px;
  height: 50px;
  margin-top: 1140px;
  position: absolute;
}

.quadrat {
  position: absolute;
  width: 80%;
  height: 8950px;
  background-color: white;
  transform: translateX(-50%);
  left: 50%;
  z-index: 2;
  top: 200px;
  border-radius: 10px;
  opacity: 85%;
  padding-bottom: 0px;
}

* {
  margin: 0px;
  padding: 0px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 35px;
  max-width: 70%; /* Maximalbreite */
  margin: 250px auto; /* Zentrierung */
  z-index: 9;
  position: relative;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex; /* Flexbox aktivieren */
  align-items: center; /* Vertikale Zentrierung */
}

.gallery-item img {
  width: 100%;
  height: auto; /* Höhe wird automatisch angepasst */
  max-height: 150px; /* Maximale Höhe für alle Bilder */
  object-fit: cover; /* Bild wird skaliert, um den Container auszufüllen */
  display: block; /* Blockanzeige für korrekte Abstände */
}


.gallery-item:hover {
  transform: scale(1.05);
}



#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

#lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

#lightbox .prev, #lightbox .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: white;
  transform: translateY(-50%);
  user-select: none;
}

#lightbox .prev {
  left: 10px;
}

#lightbox .next {
  right: 10px;
}



 /* Dropdown-Menü verstecken und Toggle-Button formatieren */
 .dropdown {
  display: none;
}

.dropdown-toggle {
  display: none;
  background-color: white;
  font-size: 20px;
  color: black;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-family: poppins, "Helvetica Neue", Helvetica, Arial, "sans-serif";
}

/* Dropdown-Inhalt */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  width: 100%;
  left: 0;
  z-index: 2;
}

.dropdown-content a {
  text-decoration: none;
  color: black;
  padding: 10px 20px;
  display: block;
  font-family: poppins, "Helvetica Neue", Helvetica, Arial, "sans-serif";
  font-size: 18px;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}


/* Anpassungen für mobile Geräte */
@media only screen and (max-width: 768px) {
  .home, .blog, .galerie {
    display: none;
  }

   /* Dropdown-Menü einblenden */
   .dropdown {
    display: block;
    text-align: center;
  }

  .dropdown-toggle {
    display: inline-block;
  }

  .dropdown-toggle.active + .dropdown-content {
    display: block;
  }


  .headernav {
    height: 80px;
    width: 90%;
    left: 5%;
  }

  .hintergrundbild {
    display: none;
  }

  .quadrat {
    display: none;
  }
}
