* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: black;
  color: white;
  height: 300vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  flex-direction: column;
}

/* Interaktive Bilder */
.interactive_light {
  z-index: 10;
  cursor: pointer;
  transition: filter 0.3s ease; /* weiches Überblenden */
}
.interactive_light:hover {
  filter: brightness(1.2);
}

.interactive_dark {
  z-index: 10;
  cursor: pointer;
  filter: brightness(0.8); /* Standard dunkler */
  transition: filter 0.3s ease; /* weiches Überblenden */
}
.interactive_dark:hover {
  filter: brightness(1.0);
}

/* Galerie-Modal */
#gallery-main-image-container {
  text-align: center;
  margin-bottom: 20px;
}
#gallery-main-image {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  transition: opacity 0.3s ease;
}
#gallery-thumbnails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
#gallery-thumbnails img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: transform 0.2s ease, border-color 0.3s ease;
}
#gallery-thumbnails img:hover {
  transform: scale(1.1);
  border-color: white;
}
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal.hidden {
  display: none;
}
.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #111;
  padding: 20px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Close-Button */
.close-button {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 1;
}

/* 📱 Mobile Optimierung */
@media (max-width: 768px) {
  body {
    height: auto;
    padding: 1rem;
    justify-content: flex-start;
  }

  .modal-content {
    max-width: 95vw;
    max-height: 90vh;
    padding: 1rem;
  }

  #gallery-main-image {
    max-height: 50vh;
    width: 100%;
  }

  #gallery-thumbnails img {
    width: 80px;
    height: 55px;
  }

  .close-button {
    font-size: 22px;
    top: 10px;
    right: 10px;
  }
}
