/* ========================================= */
/* 🔍 Lightbox / Bild-Zoom mit Navigation + Swipe + Close */
/* ========================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 99999;
}

.lightbox.active {
  visibility: visible;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
  object-fit: contain;
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Navigations-Buttons */
.lightbox-btn {
  position: absolute;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #c00000; /* Altenburg-Rot */
  font-size: 2rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-btn:hover {
  background: #c00000;
  color: #fff;
}

/* Pfeile */
.lightbox-btn.prev,
.lightbox-btn.next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}

.lightbox-btn.prev { left: 20px; }
.lightbox-btn.next { right: 20px; }

/* Schließen-Button (X) */
.lightbox-btn.close {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 1.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: #333;
  z-index: 100001;
}

.lightbox-btn.close:hover {
  background: #c00000;
  color: #fff;
}

/* Klickbare Bilder im Grid */
.project-grid .project-card img {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.project-grid .project-card img:hover {
  transform: scale(1.02);
}
/* Zoom-Cursor und Hover-Effekt für alle klickbaren Bilder */
.project-grid .project-card img,
.before-after img {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.project-grid .project-card img:hover,
.before-after img:hover {
  transform: scale(1.02);
}
/* ========================================= */
/* 📱 Fix: Lightbox immer über volle Bildschirmhöhe */
/* ========================================= */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 99999;
  overscroll-behavior: contain;
}

/* ✅ Spezieller Fix für mobile Browser (insbesondere iOS Safari) */
@supports (height: 100dvh) {
  .lightbox {
    height: 100dvh;
  }
}

