/* Code-Abfrage */

.modal {
  position: fixed;
  z-index: 10000;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  text-align: center;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
  user-select: none;
}
#accessCodeInput {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  margin-top: 15px;
  box-sizing: border-box;
}
#submitCodeBtn {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
}


/* Lightbox Hintergrund */
#myLightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Bild Container */
#myLightbox .lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

/* Bild */
#myLightbox img {
  max-width: 100%;
  max-height: 100vh;
  border-radius: 4px;
  box-shadow: 0 0 15px #000;
}

/* Navigation Buttons */
#myLightbox .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  background: rgba(0,0,0,0.4);
  border: none;
  padding: 0.2em 0.5em;
  cursor: pointer;
  user-select: none;
  border-radius: 3px;
}

#myLightbox .nav-btn:hover {
  background: rgba(0,0,0,0.7);
}

#myLightbox .prev-btn {
  left: -50px;
}

#myLightbox .next-btn {
  right: -50px;
}

/* Close Button */
#myLightbox .close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2rem;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
}

/* Protect Overlay */

 .protect-image {
    position: absolute !important;
    top: 0 !important;
    width: 15% !important;
    height: 14% !important;
    pointer-events: none !important; /* Klicks gehen durch das Overlay durch */
    opacity: 0.7 !important;
    z-index: 10 !important;
}