/* ======================================= */
/* GALERIE – BILDERGRID */
/* ======================================= */

.galerie .gallery {
  margin-top: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Optional: Fokus-Stil für Tastaturnutzer */
.gallery img:focus {
  outline: 2px solid #c6d638;
  outline-offset: 2px;
  border-radius: 8px;
}
.trennlinie {
  height: 3px;
  background-color: #ff9900;
  width: 100%;
  margin: 15px 0;
}

/* ======================================= */
/* LIGHTBOX – ANPASSUNGEN FÜR BESSERE LESBARKEIT */
/* ======================================= */

/* --- LIGHTBOX BASIS --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 90%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
  display: block;
  margin: 0 auto;
}

#lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 16px;
  font-size: 1.1rem;
  max-width: 90vw;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* --- CLOSE BUTTON --- */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
}

/* --- NAVIGATIONSPFEILE --- */
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #000;
  font-size: 28px;              /* etwas größer für bessere Sichtbarkeit */
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  background: #c6d638;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 2001;
  line-height: 1;               /* verhindert vertikales "Hängen" */
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}

/* Optische Feinjustierung für Pfeile (leicht nach oben) */
.lightbox .prev,
.lightbox .next {
  padding-bottom: 2px;
}

/* --- HOVER EFFEKT --- */
.lightbox .prev:hover,
.lightbox .next:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #000;
  transition: background 0.2s ease, color 0.2s ease;
}

/* --- MOBILE ANPASSUNG --- */
@media (max-width: 600px) {
  .lightbox .prev,
  .lightbox .next {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}
