/* ── Scope: alle Klassen mit .nps- Präfix — kein Konflikt mit Astra/Elementor ── */
/* ── Poppins wird via OMGF lokal geliefert — kein Google CDN ── */

#nps-galerie {
  font-family: 'Poppins', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ── Leistungsart Tabs ── */
.nps-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #efefef;
  margin-bottom: 20px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.nps-tabs::-webkit-scrollbar { display: none; }

#nps-galerie .nps-tab {
  padding: 11px 22px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #c0c0c0 !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.22s ease, border-color 0.22s ease, letter-spacing 0.22s ease;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none !important;
  position: relative;
}
#nps-galerie .nps-tab:hover,
#nps-galerie .nps-tab:focus {
  color: #DF1D25 !important;
  letter-spacing: 1.5px !important;
  background: none !important;
  background-color: transparent !important;
  border-color: transparent !important;
  border-bottom-color: rgba(223,29,37,0.25) !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
}
#nps-galerie .nps-tab--active,
#nps-galerie .nps-tab--active:hover,
#nps-galerie .nps-tab--active:focus {
  color: #DF1D25 !important;
  letter-spacing: 1.5px !important;
  background: none !important;
  background-color: transparent !important;
  border-bottom-color: #DF1D25 !important;
  box-shadow: none !important;
}

/* ── Verlegemuster Filter Pills ── */
.nps-filter {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 4px 0;
}
.nps-filter__label {
  font-size: 0.62em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #ccc;
  margin-right: 4px;
  white-space: nowrap;
}
#nps-galerie .nps-pill {
  background: white !important;
  background-color: white !important;
  border: 1.5px solid #e5e5e5 !important;
  color: #666 !important;
  padding: 5px 16px;
  border-radius: 50px !important;
  font-family: 'Poppins', sans-serif;
  font-size: 0.71em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none !important;
}
#nps-galerie .nps-pill:hover,
#nps-galerie .nps-pill:focus {
  background: white !important;
  background-color: white !important;
  border-color: #DF1D25 !important;
  color: #DF1D25 !important;
  box-shadow: 0 2px 8px rgba(223,29,37,0.15) !important;
  outline: none !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}
#nps-galerie .nps-pill--active,
#nps-galerie .nps-pill--active:hover,
#nps-galerie .nps-pill--active:focus {
  background: #DF1D25 !important;
  background-color: #DF1D25 !important;
  border-color: #DF1D25 !important;
  color: white !important;
  box-shadow: 0 3px 10px rgba(223,29,37,0.35) !important;
  outline: none !important;
  transform: translateY(-1px);
}

/* ── Bild Grid ── */
.nps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 768px) {
  .nps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .nps-grid { grid-template-columns: 1fr; }
}

/* ── Mobile Filter: horizontales Scroll + Fade-Hint ── */
@media (max-width: 768px) {
  .nps-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
  }
  .nps-filter::-webkit-scrollbar { display: none; }
  .nps-filter::after {
    content: '';
    position: sticky;
    right: 0;
    flex-shrink: 0;
    min-width: 32px;
    background: linear-gradient(to right, transparent, white);
    pointer-events: none;
  }
}

/* ── Bild Karte ── */
.nps-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #f0ece4;
  transition: box-shadow 0.35s ease;
}
.nps-item--hidden { display: none !important; }

.nps-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
  will-change: transform;
}
.nps-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.nps-item:hover img { transform: scale(1.05); }

/* ── Gradient Overlay + Badge ── */
.nps-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.45) 55%,
    transparent 100%
  );
  padding: 14px 10px 10px;
  pointer-events: none;
}
.nps-badge {
  display: inline-block;
  background: #DF1D25;
  color: white;
  border-radius: 50px;
  padding: 3px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ── Keine Ergebnisse ── */
.nps-empty {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
}
.nps-empty--visible { display: block; }
.nps-empty__icon { font-size: 2.2em; margin-bottom: 14px; }
.nps-empty__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1em;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}
.nps-empty__text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82em;
  color: #999;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.nps-empty__link {
  display: inline-block;
  background-color: #DF1D25;
  color: white;
  border-radius: 999px;
  padding: 12px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78em;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(223,29,37,0.3);
}
.nps-empty__link:hover {
  background-color: #c5191f;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(223,29,37,0.45);
}

/* ── Mehr laden Button ── */
.nps-load-wrap { text-align: center; margin-top: 32px; }
.nps-load-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #DF1D25;
  border-radius: 999px;
  color: white;
  padding: 14px 42px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 16px rgba(223,29,37,0.35);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.nps-load-btn:hover {
  background-color: #c5191f;
  box-shadow: 0 6px 22px rgba(223,29,37,0.5);
  transform: translateY(-2px);
}
.nps-load-counter {
  font-size: 0.88em;
  opacity: 0.65;
  font-weight: 500;
}

/* ── Lightbox ── */
.nps-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.nps-lightbox--open { display: flex; }
.nps-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.nps-lightbox__close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: white;
  font-size: 2em; cursor: pointer; line-height: 1;
  padding: 4px 10px; font-family: 'Poppins', sans-serif;
  outline: none; -webkit-tap-highlight-color: transparent;
}
.nps-lightbox__close:hover { color: #DF1D25; }
.nps-lightbox__prev,
.nps-lightbox__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none; color: white;
  font-size: 2em; cursor: pointer; padding: 10px 16px;
  border-radius: 4px; transition: background 0.2s;
  outline: none; -webkit-tap-highlight-color: transparent;
}
.nps-lightbox__prev:hover,
.nps-lightbox__next:hover { background: rgba(223,29,37,0.7); }
.nps-lightbox__prev { left: 12px; }
.nps-lightbox__next { right: 12px; }
.nps-lightbox__caption {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6); color: white;
  padding: 6px 18px; border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78em; font-weight: 600; white-space: nowrap;
}
