/* ============================================================
   LEISTUNGEN-POPUP CSS – FachTap Gold/Schwarz Stil
   ============================================================ */

/* ═══════════════════════════════════════════════
   LEISTUNGEN POPUP
   ═══════════════════════════════════════════════ */

#leistungenPopup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
#leistungenPopup.lp-show { display: flex; }

.lp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lp-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #0f0e0a 0%, #161410 60%, #1a1710 100%);
  border: 1px solid rgba(212,160,23,0.22);
  border-radius: 28px;
  padding: 28px 22px 24px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7),
              0 0 0 1px rgba(212,160,23,0.08),
              inset 0 1px 0 rgba(212,160,23,0.07);
  animation: lpEnter 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,160,23,0.2) transparent;
}
.lp-card::-webkit-scrollbar { width: 4px; }
.lp-card::-webkit-scrollbar-thumb { background: rgba(212,160,23,0.2); border-radius: 4px; }

.lp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, #D4A017, #ffe066, #D4A017, transparent);
}

@keyframes lpEnter {
  from { opacity:0; transform:scale(0.88) translateY(24px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}

/* ── Close ── */
.lp-close {
  position: absolute; top:14px; right:14px;
  width:30px; height:30px;
  background: rgba(212,160,23,0.07);
  border: 1px solid rgba(212,160,23,0.18);
  border-radius: 50%;
  color: rgba(212,160,23,0.6);
  cursor: pointer;
  display: flex; align-items:center; justify-content:center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.lp-close:hover { background: rgba(212,160,23,0.18); color: goldenrod; }

/* ── Header ── */
.lp-header { text-align:center; margin-bottom:20px; }
.lp-header-icon {
  font-size:32px; margin-bottom:6px;
  filter: drop-shadow(0 0 14px rgba(212,160,23,0.45));
}
.lp-title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size:22px; font-weight:600; color:#f5e6b8;
  margin:0 0 4px; letter-spacing:0.3px;
}
.lp-subtitle {
  font-size:12px; color:rgba(255,255,255,0.32);
  margin:0; font-family:'DM Sans',sans-serif;
}

/* ── Leistungen Liste ── */
.lp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(212,160,23,0.12);
  border-radius: 16px;
  transition: all 0.2s ease;
  /* stagger animation applied via JS */
  opacity: 0;
  transform: translateY(8px);
}
.lp-item.lp-visible {
  opacity: 1;
  transform: translateY(0);
}

.lp-item:hover {
  background: rgba(212,160,23,0.05);
  border-color: rgba(212,160,23,0.25);
}

.lp-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212,160,23,0.14), rgba(212,160,23,0.04));
  border: 1px solid rgba(212,160,23,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.lp-item-content {
  flex: 1;
  min-width: 0;
}

.lp-item-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #f5e6b8;
  margin-bottom: 3px;
  line-height: 1.3;
}

.lp-item-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  color: rgba(255,255,255,0.40);
  line-height: 1.5;
}

/* ── CTA unten ── */
.lp-cta {
  margin-top: 18px;
  text-align: center;
}

.lp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, #D4A017 0%, #b8860b 50%, #D4A017 100%);
  background-size: 200% 200%;
  color: #0a0800;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: box-shadow 0.2s, transform 0.1s, background-position 0.4s;
  box-shadow: 0 6px 24px rgba(212,160,23,0.3);
  text-decoration: none;
}
.lp-cta-btn:hover {
  box-shadow: 0 8px 32px rgba(212,160,23,0.5);
  background-position: right center;
  transform: translateY(-1px);
}
.lp-cta-btn:active { transform: translateY(0); }

/* ── Responsive ── */
@media (min-width: 601px) {
  .lp-card { max-width: 460px; padding: 32px 28px 28px; }
  .lp-item { padding: 18px 20px; }
  .lp-item-icon { width: 44px; height: 44px; font-size: 20px; }
  .lp-item-title { font-size: 14px; }
  .lp-item-desc { font-size: 12px; }
}

@media (max-width: 380px) {
  .lp-card { padding: 22px 16px 20px; border-radius: 22px; }
  .lp-item { padding: 12px; gap: 10px; }
  .lp-item-icon { width: 36px; height: 36px; font-size: 16px; border-radius: 10px; }
  .lp-item-title { font-size: 12px; }
}
