/* ══════════════════════════════════════════
   GALERIE.CSS – Styles nur für die Galerie
══════════════════════════════════════════ */

.galerie-header {
  padding: 120px 5% 60px; text-align: center; background: var(--warm-white);
}
.galerie-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--heading); margin-bottom: 1rem;
}
.galerie-header p { color: var(--text-light); font-size: 1rem; line-height: 1.75; max-width: 500px; margin: 0 auto; }

.galerie-section { padding: 60px 5% 100px; }
.galerie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 1100px; margin: 0 auto; }

.galerie-item {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
  background: var(--sand); border: 1px solid var(--sand);
  transition: transform .3s, box-shadow .3s;
}
.galerie-item:hover { transform: translateY(-4px); box-shadow: 0 16px 48px var(--shadow); }
.galerie-item:hover .galerie-overlay { opacity: 1; }
.galerie-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.galerie-item:hover img { transform: scale(1.05); }

.galerie-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem;
  color: var(--text-light); font-size: .85rem;
  background: linear-gradient(135deg, var(--sand), #f0e8de);
}
.galerie-placeholder .plus { font-size: 2.5rem; color: var(--primary); opacity: .4; line-height: 1; }

.galerie-overlay {
  position: absolute; inset: 0;
  background: rgba(59,172,224,.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.galerie-overlay span {
  color: #fff; font-size: .85rem; font-weight: 600; letter-spacing: .06em;
  background: rgba(255,255,255,.15); padding: .5rem 1.2rem;
  border-radius: 30px; backdrop-filter: blur(4px);
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 12, 8, 0.92);
  align-items: center; justify-content: center; backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 88vw; max-height: 80vh; object-fit: contain; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-caption { color: rgba(255,255,255,.7); font-size: .9rem; margin-top: 1rem; text-align: center; }
.lightbox-close {
  position: fixed; top: 1.5rem; right: 1.5rem; width: 44px; height: 44px;
  background: rgba(255,255,255,.15); border: none; border-radius: 50%;
  color: #fff; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; backdrop-filter: blur(4px);
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-prev, .lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; background: rgba(255,255,255,.15);
  border: none; border-radius: 50%; color: #fff; font-size: 1.4rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s; backdrop-filter: blur(4px);
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.3); }
.lightbox-counter {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .85rem;
  background: rgba(0,0,0,.3); padding: .4rem 1rem; border-radius: 20px;
}

/* ── RESPONSIVE GALERIE ── */
@media (max-width: 1024px) {
  .galerie-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .galerie-header { padding: 100px 5% 40px; }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}
@media (max-width: 500px) { .galerie-grid { grid-template-columns: 1fr; } }
