/* ─────────────────────────────────────────────────────────
   Leistungen-Detail Section Styles
   ───────────────────────────────────────────────────────── */

.leistungen-detail {
  background: var(--color-bg);
  padding: clamp(3.5rem, 2rem + 5vw, 8rem) 2rem;
}

.leistungen-detail-inner {
  max-width: 72rem;
  margin: 0 auto;
}

/* Header */
.leistungen-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.leistungen-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-leaf);
  margin-bottom: 0.75rem;
}

.leistungen-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}

.leistungen-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 48rem;
  margin: 1rem auto 0;
}

/* Subsections */
.leistungen-section {
  margin-bottom: clamp(2.5rem, 2rem + 3vw, 4rem);
}

.leistungen-subsection-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--color-primary);
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-border);
}

/* Grid – Hauptleistungen */
.leistungen-grid-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .leistungen-grid-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Grid – Zusatzleistungen (5 Spalten, Wrap) */
.leistungen-grid-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .leistungen-grid-extra {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Leistungs-Karte – Hauptleistungen */
.leistung-card-main {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: clamp(1.5rem, 1rem + 2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: cardFadeIn 600ms ease-out forwards;
  opacity: 0;
  transform: translateY(12px);
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.leistung-card-main:hover {
  border-color: var(--color-leaf);
  box-shadow: 0 8px 24px rgba(46, 68, 30, 0.12);
  transform: translateY(-4px);
}

/* Leistungs-Karte – Zusatzleistungen (kompakt) */
.leistung-card-extra {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: cardFadeIn 600ms ease-out forwards;
  opacity: 0;
  transform: translateY(12px);
}

.leistung-card-extra:hover {
  border-color: var(--color-leaf);
  box-shadow: 0 4px 12px rgba(46, 68, 30, 0.12);
  transform: translateY(-2px);
}

/* Icon-Kreis – Hauptleistungen */
.leistung-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-leaf) 0%, #3d5725 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 300ms ease-out, box-shadow 300ms ease-out;
}

.leistung-card-main:hover .leistung-icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(46, 68, 30, 0.25);
}

.leistung-icon {
  font-size: 1.625rem;
  color: #fff;
}

/* Icon-Kreis – Zusatzleistungen (kleiner) */
.leistung-icon-wrap-extra {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-leaf) 0%, #3d5725 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 250ms ease-out;
}

.leistung-card-extra:hover .leistung-icon-wrap-extra {
  transform: scale(1.1);
}

/* Inhalt – Hauptleistungen */
.leistung-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.leistung-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-primary);
  line-height: 1.3;
  margin: 0;
}

.leistung-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Titel – Zusatzleistungen (kompakt) */
.leistung-title-extra {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  line-height: 1.3;
  margin: 0;
}

/* Mehr erfahren Link */
.leistung-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-leaf);
  text-decoration: none;
  transition: all 250ms ease-out;
}

.leistung-link:hover {
  color: var(--color-leaf-hover);
  gap: 0.75rem;
}

.leistung-link:focus {
  outline: 2px solid var(--color-leaf);
  outline-offset: 2px;
  border-radius: 2px;
}

/* CTA Bereich */
.leistungen-cta-wrap {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(242, 247, 235, 0.6) 100%);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: clamp(1.75rem, 1.5rem + 2vw, 2.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(2rem, 1.5rem + 3vw, 3.5rem);
}

.leistungen-cta-text {
  font-size: 1rem;
  color: var(--color-primary);
  line-height: 1.6;
  margin: 0;
}

.leistungen-cta-text strong {
  color: var(--color-leaf);
  font-weight: 700;
}

.leistungen-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  background: var(--color-leaf);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 250ms ease-out;
}

.leistungen-cta-btn:hover {
  background: var(--color-leaf-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 68, 30, 0.25);
}

.leistungen-cta-btn:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.leistungen-cta-btn:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .leistungen-grid-main {
    grid-template-columns: 1fr;
  }

  .leistungen-grid-extra {
    grid-template-columns: 1fr;
  }

  .leistungen-detail {
    padding: 2.5rem 1rem;
  }

  .leistung-card-main {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .leistung-icon-wrap {
    margin-top: 0.25rem;
  }

  .leistung-content {
    flex: 1;
  }

  .leistungen-cta-wrap {
    flex-direction: column;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .leistung-card-main,
  .leistung-card-extra {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .leistung-card-main:hover,
  .leistung-card-extra:hover {
    transform: none;
  }

  .leistung-icon-wrap,
  .leistung-icon-wrap-extra {
    transition: none;
  }

  .leistung-card-main:hover .leistung-icon-wrap,
  .leistung-card-extra:hover .leistung-icon-wrap-extra {
    transform: none;
  }
}
