.leistungen-page {
  --leistungen-navy: var(--mkl-color-primary);
  --leistungen-accent: var(--mkl-color-secondary);
  --leistungen-muted: #64748b;
  --leistungen-surface: #f8f9fa;
  --leistungen-border: rgba(15, 39, 66, 0.12);
  --leistungen-section-y: 100px;
  color: var(--leistungen-navy);
  background: #fff;
}

.leistungen-container {
  width: 100%;
  max-width: var(--mkl-container);
  margin: 0 auto;
  padding-right: var(--mkl-gutter);
  padding-left: var(--mkl-gutter);
}

.leistungen-eyebrow {
  display: inline-block;
  margin: 0 0 24px;
  color: var(--leistungen-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.leistungen-hero {
  position: relative;
  overflow: hidden;
  background: var(--mkl-color-surface);
}

.leistungen-hero::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  background: linear-gradient(135deg, rgba(17, 85, 204, 0.08), rgba(15, 39, 66, 0.02));
  content: "";
  pointer-events: none;
}

.leistungen-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 156px;
  padding-bottom: var(--leistungen-section-y);
}

.leistungen-hero__content {
  max-width: 760px;
}

.leistungen-hero h1 {
  margin: 0 0 28px;
  color: var(--leistungen-navy);
  font-size: clamp(40px, 4.8vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.leistungen-hero p {
  max-width: 680px;
  margin: 0 0 40px;
  color: var(--leistungen-muted);
  font-size: 18px;
  line-height: 1.72;
}

.leistungen-actions,
.leistungen-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.leistungen-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.leistungen-button:focus-visible,
.leistungen-card a:focus-visible,
.leistungen-faq summary:focus-visible {
  outline: 3px solid var(--leistungen-accent);
  outline-offset: 3px;
}

.leistungen-button:hover,
.leistungen-card:hover {
  transform: translateY(-2px);
}

.leistungen-button--primary {
  color: #fff;
  background: var(--leistungen-navy);
}

.leistungen-button--secondary {
  color: var(--leistungen-navy);
  border-color: var(--leistungen-navy);
  background: transparent;
}

.leistungen-button--secondary:hover,
.leistungen-button--primary:hover {
  color: #fff;
  border-color: #1e3a5f;
  background: #1e3a5f;
}

.leistungen-overview,
.leistungen-faq {
  background: var(--mkl-color-surface-muted);
}

.leistungen-overview,
.leistungen-detail,
.leistungen-faq,
.leistungen-cta {
  padding-top: var(--leistungen-section-y);
  padding-bottom: var(--leistungen-section-y);
}

.leistungen-section-header {
  margin-bottom: 56px;
}

.leistungen-section-header--center {
  text-align: center;
}

.leistungen-section-header h2,
.leistungen-split__content h2,
.leistungen-process h2,
.leistungen-faq h2,
.leistungen-cta h2 {
  margin: 0;
  color: var(--leistungen-navy);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.leistungen-section-header span {
  display: block;
  width: 80px;
  height: 4px;
  margin: 20px auto 0;
  background: var(--leistungen-accent);
}

.leistungen-service-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.leistungen-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  grid-column: span 4;
  padding: 40px;
  border: 1px solid var(--leistungen-border);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 4px 20px -2px rgba(15, 39, 66, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.leistungen-card--wide {
  grid-column: span 8;
}

.leistungen-card--dark {
  grid-column: span 4;
  color: #fff;
  background: var(--leistungen-navy);
}

.leistungen-card:hover {
  border-color: var(--leistungen-accent);
  box-shadow: 0 16px 34px rgba(15, 39, 66, 0.1);
}

.leistungen-card__icon {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  color: var(--leistungen-accent);
}

.leistungen-card--dark .leistungen-card__icon {
  color: rgba(255, 255, 255, 0.65);
}

.leistungen-card__icon::before,
.leistungen-card__icon::after {
  position: absolute;
  content: "";
}

.leistungen-card__icon--damage::before { inset: 17px 4px 16px; border: 1.5px solid currentColor; }
.leistungen-card__icon--damage::after { right: 8px; bottom: 9px; left: 8px; height: 8px; border-right: 1.5px solid currentColor; border-left: 1.5px solid currentColor; box-shadow: 16px 0 0 -6px currentColor, -16px 0 0 -6px currentColor; }
.leistungen-card__icon--value::before { inset: 7px; border: 1.5px solid currentColor; border-radius: 50%; }
.leistungen-card__icon--value::after { top: 13px; left: 24px; width: 1.5px; height: 26px; background: currentColor; box-shadow: -6px 6px 0 -1px currentColor, 6px 18px 0 -1px currentColor; }
.leistungen-card__icon--engineering::before { inset: 8px; border: 1.5px solid currentColor; }
.leistungen-card__icon--engineering::after { top: 14px; left: 14px; width: 24px; height: 24px; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; transform: rotate(45deg); }
.leistungen-card__icon--evidence::before { top: 9px; left: 8px; width: 25px; height: 25px; border: 1.5px solid currentColor; border-radius: 50%; }
.leistungen-card__icon--evidence::after { right: 9px; bottom: 10px; width: 16px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.leistungen-card__icon--support::before { inset: 10px 6px 13px; border: 1.5px solid currentColor; }
.leistungen-card__icon--support::after { right: 15px; bottom: 8px; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }

.leistungen-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.leistungen-card p {
  margin: 0 0 24px;
  color: var(--leistungen-muted);
  line-height: 1.72;
}

.leistungen-card--dark p,
.leistungen-card--dark a {
  color: rgba(255, 255, 255, 0.72);
}

.leistungen-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--leistungen-navy);
  font-size: 14px;
  font-weight: 700;
}

.leistungen-card li::before {
  margin-right: 8px;
  color: var(--leistungen-accent);
  content: "✓";
}

.leistungen-card a {
  margin-top: auto;
  color: var(--leistungen-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.leistungen-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.leistungen-detail--reverse .leistungen-split__media {
  order: 2;
}

.leistungen-split__media {
  position: relative;
}

.leistungen-split__media::before {
  position: absolute;
  inset: -16px;
  z-index: 0;
  background: rgba(17, 85, 204, 0.08);
  content: "";
  transform: translate(16px, 16px);
}

.leistungen-detail--reverse .leistungen-split__media::before {
  background: rgba(15, 39, 66, 0.08);
  transform: translate(-16px, 16px);
}

.leistungen-split__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.leistungen-split__content p {
  margin: 24px 0 0;
  color: var(--leistungen-muted);
  line-height: 1.76;
}

.leistungen-benefits {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.leistungen-benefits > div {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.leistungen-benefits span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  color: var(--leistungen-accent);
  font-weight: 800;
}

.leistungen-benefits h3 {
  margin: 0 0 4px;
  color: var(--leistungen-navy);
  font-size: 16px;
}

.leistungen-benefits p {
  margin: 0;
  font-size: 14px;
}

.leistungen-split__content blockquote {
  margin: 32px 0 0;
  padding: 28px 32px;
  border-left: 4px solid var(--leistungen-accent);
  background: var(--mkl-color-surface);
  box-shadow: 0 4px 20px -2px rgba(15, 39, 66, 0.05);
  color: var(--leistungen-navy);
  font-weight: 700;
  line-height: 1.65;
}

.leistungen-process {
  padding-top: var(--leistungen-section-y);
  padding-bottom: var(--leistungen-section-y);
  color: #fff;
  background: var(--leistungen-navy);
}

.leistungen-process h2 {
  color: #fff;
}

.leistungen-process__header {
  max-width: 680px;
  margin-bottom: 64px;
}

.leistungen-process__header p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.leistungen-process__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
}

.leistungen-process__grid::before {
  position: absolute;
  top: 48px;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  content: "";
}

.leistungen-process article {
  position: relative;
  z-index: 1;
}

.leistungen-process article > span {
  display: inline-flex;
  width: 96px;
  height: 96px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}

.leistungen-process h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 20px;
}

.leistungen-process article p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.7;
}

.leistungen-faq__inner {
  max-width: 900px;
}

.leistungen-faq h2 {
  margin-bottom: 48px;
  text-align: center;
}

.leistungen-faq details {
  border: 1px solid var(--leistungen-border);
  background: #fff;
  box-shadow: 0 4px 20px -2px rgba(15, 39, 66, 0.05);
}

.leistungen-faq details + details {
  margin-top: 16px;
}

.leistungen-faq summary {
  display: flex;
  justify-content: space-between;
  padding: 24px;
  color: var(--leistungen-navy);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.leistungen-faq summary::-webkit-details-marker {
  display: none;
}

.leistungen-faq summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
}

.leistungen-faq details[open] summary::after {
  content: "−";
}

.leistungen-faq details p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--leistungen-muted);
  line-height: 1.75;
}

.leistungen-cta__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 72px;
  color: #fff;
  background: var(--leistungen-navy);
}

.leistungen-cta h2 {
  max-width: 660px;
  color: #fff;
}

.leistungen-cta p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

.leistungen-button--accent {
  color: #fff;
  background: var(--leistungen-accent);
}

.leistungen-button--light {
  color: var(--leistungen-navy);
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .leistungen-button,
  .leistungen-card {
    transition: none;
  }

  .leistungen-button:hover,
  .leistungen-card:hover {
    transform: none;
  }
}

@media (max-width: 1279px) {
  .leistungen-card,
  .leistungen-card--wide,
  .leistungen-card--dark {
    grid-column: span 6;
  }

  .leistungen-process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leistungen-process__grid::before {
    display: none;
  }
}

@media (max-width: 1023px) {
  .leistungen-hero__inner {
    padding-top: 136px;
  }

  .leistungen-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .leistungen-detail--reverse .leistungen-split__media {
    order: 0;
  }

  .leistungen-split__media img {
    aspect-ratio: 4 / 3;
  }

  .leistungen-cta__panel {
    align-items: flex-start;
    flex-direction: column;
    padding: 52px;
  }
}

@media (max-width: 767px) {
  .leistungen-page {
    --leistungen-section-y: 68px;
  }

  .leistungen-hero__inner {
    padding-top: 122px;
  }

  .leistungen-hero h1 {
    font-size: 38px;
  }

  .leistungen-hero p {
    font-size: 16px;
  }

  .leistungen-actions,
  .leistungen-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .leistungen-button {
    width: 100%;
  }

  .leistungen-card,
  .leistungen-card--wide,
  .leistungen-card--dark {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 30px;
  }

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

  .leistungen-process__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .leistungen-cta__panel {
    padding: 36px 28px;
  }
}

@media (max-width: 479px) {
  .leistungen-hero h1 {
    font-size: 32px;
  }

  .leistungen-section-header h2,
  .leistungen-split__content h2,
  .leistungen-process h2,
  .leistungen-faq h2,
  .leistungen-cta h2 {
    font-size: 30px;
  }

  .leistungen-card,
  .leistungen-card--wide,
  .leistungen-card--dark {
    padding: 26px;
  }

  .leistungen-faq summary {
    padding: 20px;
  }
}