/* Homepage refinements: responsive company block and visual sector navigation. */
.sector-list {
  border: 0;
  gap: 1px;
  background: var(--line);
}

.sector-list a {
  position: relative;
  min-height: 238px;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  padding: 26px 22px 24px 24px;
  align-items: flex-end;
  color: #fff;
  background: var(--blue);
}

.sector-list a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--sector-image);
  background-position: center;
  background-size: cover;
  transition: transform .45s ease;
}

.sector-list a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 32, 53, .08) 20%, rgba(4, 32, 53, .88) 100%);
  transition: background .3s ease;
}

.sector-list a:nth-child(1) { --sector-image: url('/cnc-production.jpg'); }
.sector-list a:nth-child(2) { --sector-image: url('/header-anlagenbau-ator.webp'); }
.sector-list a:nth-child(3) { --sector-image: url('/cnc-cutting.jpg'); }
.sector-list a:nth-child(4) { --sector-image: url('/header-automotive-ator-v5.webp'); }
.sector-list a:nth-child(5) { --sector-image: url('/header-schwerindustrie-hot-rolling-ator.webp'); }
.sector-list a:nth-child(6) { --sector-image: url('/header-medizintechnik-ator.webp'); }

.sector-list a:hover::before,
.sector-list a:focus-visible::before {
  transform: scale(1.035);
}

.sector-list a:hover::after,
.sector-list a:focus-visible::after {
  background: linear-gradient(180deg, rgba(4, 32, 53, .02) 12%, rgba(4, 32, 53, .78) 100%);
}

/* Single-digit step numbers use the same typography as their headings. */
.process-grid b,
.first-project-steps b,
.quality-scope-grid article > span,
.inquiry li > span {
  font-family: var(--font-sans), Arial, sans-serif;
  color: inherit;
  font-size: 1.3125rem;
  font-weight: 520;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.2;
}

.process-grid h3 {
  margin-top: 24px;
}

.quality-scope-grid h3 {
  margin-top: 24px;
}

.inquiry li > span {
  flex: 0 0 2rem;
}

@media (max-width: 800px) {
  .intro {
    padding-top: 62px;
    padding-bottom: 64px;
  }

  .intro .section-label {
    margin-bottom: 28px;
  }

  .intro h2 {
    max-width: 100%;
    margin-bottom: 28px;
    font-size: clamp(2.15rem, 9.6vw, 3rem);
    line-height: 1.02;
    letter-spacing: -.05em;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .intro > div > p {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.62;
  }

  .intro .promise {
    margin-top: 36px;
    padding-top: 28px;
  }

  .intro .promise strong {
    font-size: 1.0625rem;
    line-height: 1.55;
  }

  .sectors h2 {
    margin-bottom: 34px;
  }

  .sector-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    padding: 0;
    overflow: visible;
    background: var(--line);
  }

  .sector-list a {
    min-width: 0;
    min-height: 184px;
    white-space: normal;
    border: 0;
    padding: 20px 16px;
    font-size: .875rem;
    line-height: 1.25;
  }

  .process-grid b,
  .first-project-steps b,
  .quality-scope-grid article > span,
  .inquiry li > span {
    font-size: 1.1875rem;
  }
}

@media (max-width: 420px) {
  .intro h2 {
    font-size: clamp(2rem, 9.4vw, 2.45rem);
  }

  .sector-list {
    grid-template-columns: 1fr;
  }

  .sector-list a {
    min-height: 205px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sector-list a::before {
    transition: none;
  }
}
