/* ===== GALLERY PAGE ===== */
.gallery-page { padding: 120px 0 96px; min-height: 100vh; }

.gallery-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 48px;
  transition: color var(--transition);
}
.gallery-page__back:hover { color: var(--navy); }
.gallery-page__back svg { width: 16px; height: 16px; }

.gallery-page__header { margin-bottom: 48px; }
.gallery-page__header h1 { margin-bottom: 8px; }
.gallery-page__header p { font-size: 1rem; }

/* Masonry Grid */
.masonry {
  columns: 3;
  column-gap: 16px;
}
.masonry__item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.masonry__item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.masonry__item:hover img { transform: scale(1.03); }
.masonry__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27,42,74,0);
  transition: background 0.3s ease;
}
.masonry__item:hover::after { background: rgba(27,42,74,0.12); }

/* Placeholder für leere Items */
.masonry__placeholder {
  aspect-ratio: 4/3;
  background: var(--gray-50);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: 0.8125rem;
  cursor: default;
}
.masonry__placeholder svg { width: 32px; height: 32px; opacity: 0.4; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10,15,25,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
}

/* ===== WEBSITES BEFORE/AFTER GALERIE ===== */
.ba-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.ba-card {
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.ba-card__header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ba-card__header h3 { font-size: 1.0625rem; margin: 0; }
.ba-card__header span { font-size: 0.8125rem; color: var(--gold-dark); font-weight: 500; }
.ba-split {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
}
.ba-half { position: relative; }
.ba-half img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.ba-half__placeholder {
  aspect-ratio: 16/9;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: 0.8125rem;
  border: 2px dashed var(--gray-200);
}
.ba-half__placeholder svg { width: 32px; height: 32px; opacity: 0.4; }
.ba-label {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px;
}
.ba-label--before { background: var(--gray-100); color: var(--text-muted); }
.ba-label--after  { background: var(--navy); color: var(--white); }
.ba-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-left: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-100);
  color: var(--gold-dark);
}
.ba-divider svg { width: 20px; height: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .masonry { columns: 2; }
}
@media (max-width: 640px) {
  .masonry { columns: 1; }
  .gallery-page { padding: 100px 0 64px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .ba-split { grid-template-columns: 1fr; grid-template-rows: auto; }
  .ba-divider { height: 36px; border: none; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
  .ba-divider svg { transform: rotate(90deg); }
}
