/* ── Leistungs-Abschnitte ───────────────────────────── */
.leistung {
  padding: var(--space-16) 0;
  scroll-margin-top: calc(var(--header-height) + var(--space-5));
  position: relative;
}
.leistung:nth-child(even) {
  background: var(--neutral-50);
}
/* feine Trennlinie zwischen den Abschnitten */
.leistung + .leistung::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--container-pad);
  right: var(--container-pad);
  height: 1px;
  background: var(--neutral-200);
}

.leistung-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-16);
}

/* alternierend: gerade Abschnitte = Bild rechts */
.leistung:nth-child(even) .leistung-media {
  order: 2;
}
.leistung:nth-child(even) .leistung-text {
  order: 1;
}

/* ── Media (16:9) ───────────────────────────────────── */
.leistung-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--neutral-100);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(13, 46, 68, 0.04),
    0 28px 60px -30px rgba(13, 46, 68, 0.30);
}
.leistung-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.leistung:hover .leistung-media img {
  transform: scale(1.03);
}
/* dezenter Akzentstrich am Bild – Seite zum Text hin */
.leistung-media::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 4px;
  background: var(--primary-500);
  z-index: 1;
}
.leistung:nth-child(even) .leistung-media::before {
  right: auto;
  left: 0;
}

/* ── Text ───────────────────────────────────────────── */
.leistung-text {
  max-width: 520px;
}
.leistung:nth-child(even) .leistung-text {
  margin-left: auto;
}

/* dezente Nummerierung 01–06 */
.leistung-num {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--primary-400);
  margin-bottom: var(--space-3);
  font-variant-numeric: tabular-nums;
}

.leistung-title {
  font-size: 34px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--neutral-900);
  margin: 0 0 var(--space-5);
  padding-bottom: var(--space-5);
  position: relative;
}
.leistung-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--primary-500);
}
.leistung-body {
  font-size: 17px;
  line-height: 1.72;
  color: var(--neutral-600);
  text-align: justify;
  hyphens: auto;
  margin: 0 0 var(--space-5);
}
.leistung-body:last-of-type {
  margin-bottom: var(--space-6);
}

/* ── Leistungspunkte ────────────────────────────────── */
.leistung-benefits {
  list-style: none;
  margin: 0 0 var(--space-8);
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--neutral-200);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-6);
}
.leistung-benefits li {
  position: relative;
  padding-left: var(--space-5);
  font-size: 15px;
  line-height: 1.55;
  color: var(--neutral-700);
}
.leistung-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 2px;
  background: var(--primary-500);
}

.leistung-cta .btn {
  padding: 14px 28px;
}

/* ── Abschluss-CTA ──────────────────────────────────── */
.leistungen-cta {
  background: var(--primary-900);
  color: var(--white);
  padding: var(--space-16) 0;
  text-align: center;
}
.leistungen-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}
.leistungen-cta-title {
  font-size: 40px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0 0 var(--space-4);
}
.leistungen-cta-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--primary-200);
  margin: 0 0 var(--space-8);
}
.leistungen-cta .btn {
  padding: 16px 32px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .leistung { padding: var(--space-12) 0; }
  .leistung-grid { gap: var(--space-10); }
  .leistung-title { font-size: 30px; }
  .leistungen-cta { padding: var(--space-12) 0; }
  .leistungen-cta-title { font-size: 34px; }
}

@media (max-width: 900px) {
  .leistung-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 640px;
  }
  /* Bild bei einspaltigem Layout immer oben */
  .leistung:nth-child(even) .leistung-media,
  .leistung-media { order: 1; }
  .leistung:nth-child(even) .leistung-text,
  .leistung-text { order: 2; max-width: none; margin-left: 0; }
  .leistung-title { font-size: 28px; }
}

@media (max-width: 600px) {
  .leistung { padding: var(--space-10) 0; }
  .leistung + .leistung::before {
    left: var(--container-pad);
    right: var(--container-pad);
  }
  .leistung-title {
    font-size: 26px;
    padding-bottom: var(--space-4);
  }
  .leistung-body { font-size: 16px; }
  .leistung-benefits {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .leistung-benefits li { font-size: 15px; }
  .leistung-cta .btn { width: 100%; }
  .leistungen-cta { padding: var(--space-10) 0; }
  .leistungen-cta-title { font-size: 26px; }
  .leistungen-cta-text { font-size: 16px; }
  .leistungen-cta .btn { width: 100%; }
}
