/**
 * ID Metall — Unsere Leistungen page.
 */

body.studio-body main#studio-main.studio-main.idm-leistungen-main {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

.idm-page-hero__title--wide {
  max-width: 18ch;
}

/* Lighter hero shade so the CNC machine stays visible */
.idm-page-hero--machine .idm-page-hero__img {
  object-position: 58% center;
}

.idm-page-hero--machine .idm-page-hero__shade {
  background:
    linear-gradient(
      90deg,
      rgba(1, 22, 39, 0.72) 0%,
      rgba(1, 22, 39, 0.42) 32%,
      rgba(1, 22, 39, 0.18) 58%,
      rgba(1, 22, 39, 0.08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(1, 22, 39, 0.12) 0%,
      transparent 35%,
      rgba(1, 22, 39, 0.55) 100%
    );
}

/* —— Intro —— */
.idm-leist-intro {
  padding-block: clamp(3.75rem, 8vw, 5.75rem);
  background: #fff;
}

.idm-leist-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--studio-accent, #c10807);
}

.idm-leist-intro__mark {
  display: block;
  width: 1.75rem;
  height: 2px;
  border-radius: 999px;
  background: var(--studio-accent, #c10807);
}

.idm-leist-intro__caps {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
}

.idm-leist-intro__caps li {
  padding: 0.45rem 0.8rem;
  border: 1px solid #dde1e6;
  border-radius: 0.35rem;
  background: #f0f2f4;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--studio-text-strong, #011627);
}

.idm-leist-intro__title {
  margin: 0 0 1.15rem;
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--studio-text-strong, #011627);
}

.idm-leist-intro__lead {
  margin: 0;
  max-width: 54rem;
  font-size: clamp(1.02rem, 1.35vw, 1.1rem);
  line-height: 1.7;
  color: var(--studio-muted, #4a5560);
}

/* —— Services —— */
.idm-leist-services {
  padding-block: clamp(1rem, 3vw, 2rem) clamp(3.75rem, 8vw, 5.75rem);
  background: #f0f2f4;
}

.idm-leist-services__list {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.idm-leist-service {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid #dde1e6;
  border-radius: 0.35rem;
  background: #fff;
}

@media (min-width: 900px) {
  .idm-leist-service {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2rem 2.5rem;
  }

  .idm-leist-service--flip .idm-leist-service__media {
    order: 2;
  }

  .idm-leist-service--flip .idm-leist-service__copy {
    order: 1;
  }
}

.idm-leist-service__media {
  margin: 0;
  overflow: hidden;
  border-radius: 0.35rem 1.15rem 0.35rem 1.15rem;
  background: #011627;
  aspect-ratio: 5 / 4;
}

.idm-leist-service__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.idm-leist-service__copy {
  min-width: 0;
}

.idm-leist-service__index {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--studio-accent, #c10807);
}

.idm-leist-service__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--studio-text-strong, #011627);
}

.idm-leist-service__range {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.45;
  color: var(--studio-accent, #c10807);
}

.idm-leist-service__body p {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--studio-muted, #4a5560);
}

.idm-leist-service__body p:last-child {
  margin-bottom: 0;
}

.idm-leist-service__body strong {
  color: var(--studio-text-strong, #011627);
  font-weight: 700;
}
