/* The background fills the viewport. The contents follow the header widths. */
body.portal.portal-home .mc-home-hero-transition {
  --mc-home-card-width: var(--mc-header-rail);
}

html[data-mc-public-theme] body.portal.portal-home main .mc-home-hero-transition {
  background: radial-gradient(ellipse at 84% 16%, #3b3c40, transparent 60%),
    linear-gradient(180deg, #242527 0%, #202123 67%, #191919 100%) !important;
}

html[data-mc-public-theme] body.portal.portal-home main .mc-project-check {
  border-top: 0;
}

body.portal.portal-home .mc-home-search-dock {
  margin: clamp(32px, 4.5vw, 62px) auto clamp(26px, 4vw, 52px) !important;
}

html[data-mc-public-theme] body.portal.portal-home .mc-home-search-dock #mc-home-search-title {
  margin: 0 0 14px;
  color: #f7f7f7 !important;
  -webkit-text-fill-color: #f7f7f7 !important;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.2;
}

html[data-mc-public-theme] body.portal.portal-home .mc-home-search-dock .mc-home-service select {
  color-scheme: dark;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html[data-mc-public-theme] body.portal.portal-home .mc-home-search-dock .mc-home-service option {
  color: #fff;
  background: #222;
  -webkit-text-fill-color: #fff;
}

body.portal.portal-home .mc-campaign-hero-photo img {
  object-position: center 29%;
}

html[data-mc-public-theme] body.portal.portal-home main #leistungen .p-service > div :is(h3, p),
html[data-mc-public-theme=dark] body.portal.portal-home main .mc-all-services #leistungen .p-service > div :is(h3, p) {
  color: #f7f7f7 !important;
  -webkit-text-fill-color: #f7f7f7 !important;
}

@media (max-width: 760px) {
  body.portal.portal-home .mc-campaign-hero-photo {
    height: auto;
    aspect-ratio: 5 / 4;
  }

  body.portal.portal-home .mc-campaign-hero-photo img {
    object-position: right 26%;
  }
}

@media (max-width: 480px) {
  body.portal.portal-home .mc-home-search-dock form {
    grid-template-columns: minmax(128px, 42%) minmax(0, 1fr) 44px !important;
  }

  html[data-mc-public-theme] body.portal.portal-home .mc-home-search-dock .mc-home-service select {
    padding-inline: 8px !important;
    font-size: .875rem;
  }
}
