/* Page-specific Styles for leistungen.html */

/* =========================
   LEISTUNGEN – PORTFOLIO
   ========================= */

.services-portfolio {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background: #fff;
}

.services-portfolio__inner {
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
}

.services-portfolio__header {
  max-width: 800px;
}

.services-portfolio__header h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.services-portfolio__header p {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.7;
}

/* =========================
   LEISTUNGEN – KARTEN
   ========================= */

.services-portfolio__table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.services-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.6rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  transform: translateY(16px);
  opacity: 0;
  animation: servicesCardIn 0.6s ease forwards;
}

.services-card:nth-child(1) { animation-delay: 0.05s; }
.services-card:nth-child(2) { animation-delay: 0.15s; }
.services-card:nth-child(3) { animation-delay: 0.25s; }

@keyframes servicesCardIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.services-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.services-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #ffffff;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.25);
}

.services-card__headline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.services-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #eff6ff;
  color: #1e1e1e;
}

.services-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}

.services-card__subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

.services-table-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.services-table-item {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.97rem;
  color: #374151;
  line-height: 1.6;
}

.services-table-item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #9ca3af;
}

/* =========================
   LEISTUNGEN – KOSTEN / CTA
   ========================= */

.pricing-section {
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(3.5rem, 8vw, 5rem);
  background: #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

.pricing-text h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem);
  margin-bottom: 0.9rem;
  color: #0f172a;
}

.pricing-text p {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.7;
  max-width: 50ch;
  margin-bottom: 1.5rem;
}

.pricing-media {
  display: flex;
  justify-content: center;
}

.pricing-image {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(10, 10, 10, 0.16);
  border: 1px solid #e5e7eb;
}

/* =========================
   RESPONSIVE – SMARTPHONE
   ========================= */

@media (max-width: 768px) {

  /* Leistungsportfolio: Text nach Überschrift verkürzen */
  .services-portfolio__header p {
    max-height: 4.8em;
    overflow: hidden;
  }

  /* Karten mittig, gleiche Seitenabstände */
  .services-portfolio__table {
    justify-items: center;
  }

  .services-card {
    width: 100%;
    max-width: 520px;
  }

  /* Kosten-Sektion: Bild entfernen */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-media {
    display: none !important;
  }

  .pricing-text {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
  }

  .pricing-text p {
    margin-left: auto;
    margin-right: auto;
  }
}
