/* ── Leistungen page styles ─────────────────────────────── */

/* Hero */
.leistungen-hero {
  text-align: center;
  padding-bottom: 2em;
}

.leistungen-hero h1 {
  margin-bottom: 0.4em;
}

.leistungen-hero p {
  max-width: 36em;
  margin: 0 auto;
  opacity: 0.85;
}

/* Legend bar */
.leistungen-legend {
  padding-top: 0;
  padding-bottom: 0;
}

.legend-bar {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
  padding: 0.8em 1.2em;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  font-size: 0.95em;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.legend-icon {
  font-size: 1.15em;
}

/* Services section */
.leistungen-section {
  padding-top: 2em;
}

/* Category heading */
.services-category-heading {
  width: 100%;
  font-size: 1.4em;
  margin: 1.8em 0 0.6em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid rgba(165, 96, 128, 0.25);
  color: rgba(45, 28, 38, 0.9);
}

.services-category-heading:first-child {
  margin-top: 0;
}

/* Category sub-grid */
.services-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 420px));
  gap: 1.5em;
  width: 100%;
  justify-content: center;
  align-items: stretch;
}

/* Service card */
.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(45, 28, 38, 0.08);
  padding: 1.5em;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  justify-self: center;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
}

.service-card:hover {
  box-shadow: 0 6px 24px rgba(45, 28, 38, 0.13);
  transform: translateY(-2px);
}

.service-card__top {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.service-title {
  font-size: 1.25em;
  margin: 0;
  color: rgba(45, 28, 38, 0.92);
}

.service-desc {
  font-size: 0.95em;
  opacity: 0.75;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

/* Location pills row */
.service-card__locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.location-pill {
  font-size: 0.85em !important;
}

/* Price badge */
.service-card__footer {
  margin-top: auto;
  padding-top: 0.6em;
}

.service-price {
  display: inline-block;
  padding: 0.3em 0.75em;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 600;
}

.service-price--kasse {
  background: rgba(72, 160, 120, 0.12);
  color: #2d7a52;
}

.service-price--paid {
  background: rgba(232, 139, 107, 0.15);
  color: #b85a38;
}

/* Cost info box */
.cost-info-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(165, 96, 128, 0.2);
  border-left: 4px solid rgba(165, 96, 128, 0.5);
  border-radius: 10px;
  padding: 1.2em 1.4em;
  margin-top: 1em;
  display: grid;
  gap: 0.6em;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.cost-info-box h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.2em;
}

.cost-intro {
  margin: 0;
  color: rgba(45, 28, 38, 0.75);
}

.cost-lines {
  display: grid;
  gap: 0.45em;
}

.cost-line {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 2fr;
  column-gap: 0.8em;
  align-items: start;
  padding: 0.35em 0.15em;
  border-bottom: 1px solid rgba(165, 96, 128, 0.15);
}

.cost-line:last-child {
  border-bottom: none;
}

.cost-label {
  font-weight: 700;
  color: rgba(107, 45, 91, 0.9);
  font-size: 0.95em;
}

.cost-text {
  font-size: 0.95em;
  color: rgba(45, 28, 38, 0.78);
  line-height: 1.45;
}

.cost-line.cost-sub .cost-label {
  font-weight: 600;
  color: rgba(45, 28, 38, 0.78);
  font-size: 0.93em;
}

/* Skeleton cards */
.service-card.skeleton {
  min-height: 160px;
  pointer-events: none;
}

/* Empty state */
.services-empty {
  text-align: center;
  opacity: 0.6;
  padding: 3em 1em;
  font-size: 1.1em;
}

/* Responsive */
@media screen and (max-width: 736px) {
  .services-category-grid {
    grid-template-columns: 1fr;
  }

  .legend-bar {
    gap: 1em;
    font-size: 0.9em;
  }

  .cost-info-box {
    padding: 1.2em 1.4em;
  }

  .cost-line {
    grid-template-columns: 1fr;
    row-gap: 0.2em;
  }
}
