/* Pilot component ownership after legacy CSS load order */

body.niklas-site-shell.home-facelift .niklas-container {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--v28-content-width) + (2 * var(--v28-page-gutter)));
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--v28-page-gutter);
  padding-left: var(--v28-page-gutter);
}

body.niklas-site-shell.home-facelift .niklas-heading--display {
  font-size: var(--v28-h1);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.04em;
}

body.niklas-site-shell.home-facelift .niklas-heading--section {
  font-size: var(--v28-h2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.027em;
}

body.niklas-site-shell.home-facelift .niklas-heading--section.niklas-heading--compact {
  margin-bottom: 10px;
}

body.niklas-site-shell.home-facelift .niklas-heading--subsection {
  font-size: var(--v28-h3);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.018em;
}

@media (max-width: 1199.98px) {
  body.niklas-site-shell.home-facelift .home-hero #hero-content.home-hero-content, body.niklas-site-shell.engineering-page .home-hero #hero-content.home-hero-content {
    padding-top: clamp(34px,6vh,70px);
    padding-right: clamp(28px,6vw,72px);
    padding-bottom: clamp(34px,6vh,70px);
    padding-left: 0;
  }
}

@media (max-width: 850px) {
  body.niklas-site-shell.home-facelift .home-hero #hero-content.home-hero-content, body.niklas-site-shell.engineering-page .home-hero #hero-content.home-hero-content {
    padding-right: clamp(30px,7vw,58px);
  }
}

@media (max-width: 575.98px) {
  body.niklas-site-shell.home-facelift .home-hero #hero-content.home-hero-content, body.niklas-site-shell.engineering-page .home-hero #hero-content.home-hero-content {
    padding-top: clamp(24px,5vh,42px);
    padding-right: 0;
    padding-bottom: clamp(28px,6vh,46px);
    padding-left: 0;
  }
}

/* Complete cleanup phase 8: semantic selector compatibility */

/* Complete cleanup phase 8: extracted static styles */

html body.niklas-site-shell .client-logo__cell {
  transform: scale(1);
}

html body.niklas-site-shell .client-logo__cell--balanced {
  transform: scale(0.60);
}

html body.niklas-site-shell .client-logo__cell--compact {
  transform: scale(0.50);
}

html body.niklas-site-shell .client-logo__cell--medium {
  transform: scale(0.75);
}

html body.niklas-site-shell .client-logo__image {
  height: 125px;
  width: 250px;
  transform: scale(1);
}

html body.niklas-site-shell .client-logo__image--large {
  height: 125px;
  width: 250px;
  transform: scale(1.25);
}

html body.niklas-site-shell .client-logo__image--xlarge {
  height: 125px;
  width: 250px;
  transform: scale(2);
}

html body.niklas-site-shell .company-hero__content {
  padding: 24px;
}

html body.niklas-site-shell .company-hero__quote {
  background: var(--bs-gray-100);
  padding: 24px;
}

html body.niklas-site-shell .company-hero__row {
  min-height: 60vh;
}

html body.niklas-site-shell .company-hero__surface {
  box-shadow: 0px 0px 10px 3px rgba(0,0,0,.15);
  margin-bottom: 4rem;
}

html body.niklas-site-shell .company-hero__visual {
  background: url("../../assets/img/clipboard-image.jpg") center / cover;
  height: 100%;
  min-height: 350px;
}

html body.niklas-site-shell .company-team__card {
  height: 100%;
}

html body.niklas-site-shell .company-team__icon {
  margin-right: 8px;
}

html body.niklas-site-shell .company-team__row {
  margin-top: 0px;
}

html body.niklas-site-shell .company-team__section {
  min-height: 75vh;
}

html body.niklas-site-shell .mega-nav__card {
  position: relative;
}

html body.niklas-site-shell .mega-nav__contact-grid-size {
  min-width: 300px;
}

html body.niklas-site-shell .mega-nav__contact-label {
  margin-top: 12px;
}

html body.niklas-site-shell .mega-nav__link-title {
  font-weight: bold;
}

html body.niklas-site-shell .mega-nav__panel {
  display: none;
  position: fixed;
  width: 100%;
  z-index: 9999;
  height: fit-content;
  animation: subnav 0.5s;
  box-shadow: 0px 10px 10px -10px rgba(0,0,0,.15);
  text-transform: unset;
}

html body.niklas-site-shell .mega-nav__section-label--dark {
  color: #171918;
  font-weight: 700;
}

html body.niklas-site-shell .mega-nav__sidebar-rule {
  border-left-width: 1px;
  border-left-style: solid;
}

html body.niklas-site-shell .mobile-nav__toggle-icon {
  font-size: 40px;
}

html body.niklas-site-shell .niklas-accordion__heading {
  padding-top: 15px;
  padding-bottom: 15px;
  color: #1b6ce5;
}

html body.niklas-site-shell .niklas-button__icon {
  margin-right: 10px;
}

html body.niklas-site-shell .niklas-button--booking {
  border-radius: 0px;
  background: var(--cc-bg);
  color: var(--cc-btn-primary-hover-bg);
  border-width: 2px;
  border-color: var(--cc-btn-primary-hover-bg);
  border-right-width: 2px;
  border-right-color: var(--cc-btn-primary-hover-bg);
}

html body.niklas-site-shell .niklas-button--gradient {
  border-radius: 0px;
  background: linear-gradient(45deg, black 59%, rgb(0,208,191) 100%);
}

html body.niklas-site-shell .niklas-button--pill {
  border-radius: 50px;
}

html body.niklas-site-shell .niklas-button--square {
  border-radius: 0px;
}

html body.niklas-site-shell .niklas-call-button {
  background-color: #1a1a1a;
  padding: 15px;
  border-radius: 50%;
}

html body.niklas-site-shell .niklas-call-button__link {
  color: var(--bs-body-bg);
}

html body.niklas-site-shell .niklas-card__content-size {
  padding: 30px;
  height: 310px;
}

html body.niklas-site-shell .niklas-card__media-size {
  width: 100%;
  height: 310px;
}

html body.niklas-site-shell .niklas-card--accent-top {
  border-style: solid;
  border-top: 3px solid rgb(0,0,0);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 10px 3px;
}

html body.niklas-site-shell .niklas-card--elevated {
  box-shadow: 0px 0px 10px 3px rgba(0,0,0,.15);
  border-style: none;
}

html body.niklas-site-shell .niklas-card--feature {
  max-width: 700px;
  padding: 30px;
}

html body.niklas-site-shell .niklas-card-grid--spaced {
  margin-top: 1.5rem;
}

html body.niklas-site-shell .niklas-contact__image {
  background: url("../../assets/img/_DSC0390.jpg") center / cover no-repeat;
  height: 100%;
}

html body.niklas-site-shell .niklas-contact__image--construction {
  background: url("../../assets/img/Z6A_3116.jpg") center / cover no-repeat;
  height: 100%;
}

html body.niklas-site-shell .niklas-contact__image--electrical {
  background: url("../../assets/img/Z6A_1854.jpg") center / cover no-repeat;
  height: 100%;
}

html body.niklas-site-shell .niklas-contact__inner {
  max-width: 700px;
  padding: 1.5rem;
}

html body.niklas-site-shell .niklas-contact__surface {
  background: var(--bs-border-color);
  padding: 30px;
}

html body.niklas-site-shell .niklas-contact__visual {
  min-height: 500px;
  max-height: 800px;
}

html body.niklas-site-shell .niklas-eyebrow--dark {
  color: #171918;
  font-weight: 700;
}

html body.niklas-site-shell .niklas-eyebrow--light {
  color: #ffffff;
  font-weight: 700;
}

html body.niklas-site-shell .niklas-footer {
  margin-top: 50px;
  margin-bottom: 30px;
}

html body.niklas-site-shell .niklas-footer__column {
  padding-top: 12px;
  padding-bottom: 12px;
}

html body.niklas-site-shell .niklas-footer__logo {
  transform: translate(-9px) translateY(-7px);
  max-width: 200px;
}

html body.niklas-site-shell .niklas-form__group--spaced {
  margin-bottom: 24px;
}

html body.niklas-site-shell .niklas-full-height {
  height: 100%;
}

html body.niklas-site-shell .niklas-full-width {
  width: 100%;
}

html body.niklas-site-shell .niklas-header {
  height: 110px;
  box-shadow: 0px 10px 10px -10px rgba(0,0,0,.15);
  text-transform: unset;
}

html body.niklas-site-shell .niklas-header__brand {
  min-width: 220px;
  margin: 0px;
  width: 220px;
}

html body.niklas-site-shell .niklas-header__collapse {
  background: var(--bs-body-bg);
}

html body.niklas-site-shell .niklas-heading--body-font {
  font-family: 'Nunito Sans';
}

html body.niklas-site-shell .niklas-heading--compact {
  margin-bottom: 10px;
}

html body.niklas-site-shell .niklas-heading--light {
  color: var(--bs-body-bg);
}

html body.niklas-site-shell .niklas-hero__content-width {
  max-width: 600px;
}

html body.niklas-site-shell .niklas-layout--flush {
  padding: 0px;
}

html body.niklas-site-shell .niklas-section__intro {
  margin-left: 0px;
  margin-bottom: 30px;
  margin-right: 0px;
  margin-top: 50px;
}

html body.niklas-site-shell .niklas-section__row--separated {
  margin-bottom: 48px;
}

html body.niklas-site-shell .niklas-section__surface {
  box-shadow: 0px 0px 10px 3px rgba(0,0,0,.15);
  padding: 0px;
}

html body.niklas-site-shell .niklas-section--spaced {
  margin-top: 24px;
}

html body.niklas-site-shell .niklas-text--center {
  text-align: center;
}

html body.niklas-site-shell .optimization-feature__icon {
  font-size: 70px;
  margin-bottom: 20px;
  color: rgb(0,0,0);
}

html body.niklas-site-shell .optimization-hero__visual {
  background: url("../img/photo-1581091877018-dac6a371d50f.jpg") center / cover;
  height: 100%;
  min-height: 300px;
  width: 100%;
}

html body.niklas-site-shell .optimization-media__image {
  max-height: 600px;
  width: 100%;
}

html body.niklas-site-shell .optimization-section__column {
  padding-right: 12px;
  padding-left: 12px;
}

html body.niklas-site-shell .optimization-section__heading {
  margin-top: +24px;
  margin-bottom: 0px;
}

html body.niklas-site-shell .optimization-section__row {
  margin-top: 48px;
  margin-bottom: 48px;
}

html body.niklas-site-shell .optimization-section__wide-column {
  width: 1320px;
  padding: 0px;
}

html body.niklas-site-shell .optimization-visual__cell {
  transform: scale(0.30);
}

html body.niklas-site-shell .product-overview__card-content {
  padding: 30px;
  height: 300px;
}

html body.niklas-site-shell .product-overview__heading {
  margin-top: 50px;
  margin-bottom: 10px;
}

html body.niklas-site-shell .product-overview__hero-visual {
  height: 30vh;
  background: url("../img/IMG_2059.jpg") center / cover;
}

html body.niklas-site-shell .product-overview__project-section {
  margin-top: 59px;
  padding: 30px;
}

html body.niklas-site-shell .product-overview__team-column {
  min-height: 250px;
}

html body.niklas-site-shell .product-overview__team-row {
  margin-top: 3rem;
}

html body.niklas-site-shell .product-overview__text {
  margin-bottom: 16px;
}

html body.niklas-site-shell .reference-quote__column {
  width: 660px;
}

html body.niklas-site-shell .reference-section__row {
  margin-top: 48px;
}

html body.niklas-site-shell .service-hero__content {
  padding: 3rem;
}

html body.niklas-site-shell .service-hero__content-adjustment {
  padding-right: -1px;
}

html body.niklas-site-shell .service-hero__visual--automation {
  background: url("../../assets/img/PLC_Programming_2.jpg") left / cover;
  height: 100%;
  min-height: 300px;
  width: 100%;
}

html body.niklas-site-shell .service-hero__visual--construction {
  background: url("../../assets/img/new_top_high_res_2.jpg") center / contain no-repeat;
  height: 100%;
  min-height: 300px;
  width: 100%;
}

html body.niklas-site-shell .service-hero__visual--electrical {
  background: url("../../assets/img/shutterstock_2734986325.jpg") center / cover no-repeat;
  height: 100%;
  min-height: 300px;
  width: 100%;
}

html body.niklas-site-shell .service-hero__visual--layout {
  background: url("../../assets/img/shutterstock_2448867699.jpg") center / cover;
  height: 100%;
  min-height: 300px;
  width: 100%;
}

html body.niklas-site-shell .service-hero__visual--references {
  background: url("../../assets/img/shutterstock_2726664377-1.jpg") center / cover repeat;
  height: 100%;
  min-height: 300px;
  width: 100%;
}

html body.niklas-site-shell .service-hero__visual--retrofit {
  background: url("../../assets/img/shutterstock_2505708785.jpg") center / cover repeat;
  height: 100%;
  min-height: 300px;
  width: 100%;
}

html body.niklas-site-shell .service-hero__visual--robotics {
  background: url("../../assets/img/shutterstock_2293231659.jpg") center / cover;
  height: 100%;
  min-height: 300px;
  width: 100%;
}

html body.niklas-site-shell .service-hero--light {
  background: var(--bs-body-bg);
  backdrop-filter: hue-rotate(0deg);
  -webkit-backdrop-filter: hue-rotate(0deg);
}

html body.niklas-site-shell .service-media__image {
  height: 320px;
}

html body.niklas-site-shell .service-media__image--muted {
  height: 320px;
  filter: saturate(78%);
}

html body.niklas-site-shell .service-media__image--scaled {
  height: 320px;
  transform: scale(0.75);
}

/* Complete cleanup phase 8: extracted rich-text formatting */

html body.niklas-site-shell .niklas-rich-text__surface--light {
  background-color: rgb(255, 255, 255);
}

html body.niklas-site-shell .niklas-rich-text__surface--subtle {
  background-color: rgb(252, 252, 252);
}

html body.niklas-site-shell .niklas-text--black {
  color: #000000;
}

html body.niklas-site-shell .niklas-text--charcoal {
  color: rgb(40, 41, 42);
}

html body.niklas-site-shell .niklas-text--dark {
  color: var(--niklas-color-text);
}

html body.niklas-site-shell .niklas-text--graphite {
  color: rgb(80, 80, 80);
}

html body.niklas-site-shell .niklas-text--light {
  color: var(--niklas-color-background);
}

html body.niklas-site-shell .niklas-text--muted-neutral {
  color: var(--v5-muted, #4f5c59);
}

html body.niklas-site-shell .niklas-text--muted-strong {
  color: rgb(85, 89, 92);
}

html body.niklas-site-shell .niklas-text--normal {
  font-weight: var(--niklas-font-weight-normal, 400);
}

html body.niklas-site-shell .niklas-text--steel {
  color: rgb(38, 65, 77);
}

html body.niklas-site-shell .reference-accent {
  color: var(--jINu6c);
}

html body.niklas-site-shell .reference-text {
  color: var(--YLNNHc);
}

/* Reference parity: large-screen home hero spacing */

@media (min-width: 1200px) {
  :where(body.niklas-site-shell).home-facelift .home-hero-content, :where(body.niklas-site-shell).engineering-page .home-hero-content {
    padding-top: 3rem;
  }
}

/* Reference parity: responsive component ownership */

@media (max-width: 575.98px) {
  html body.niklas-site-shell .niklas-heading--display {
    margin-bottom: 20px;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

html body.niklas-site-shell.process-page .process-service-title.niklas-heading--section {
  max-width: 980px;
  margin: 0 0 18px;
}

/* Acceptance fix: legal content must not overflow horizontally */

@media (max-width: 575.98px) {
  html body.niklas-site-shell.niklas-legal-page > .niklas-container {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 575.98px) {
  html body.niklas-site-shell.niklas-legal-page > .niklas-container > * {
    max-width: 100%;
  }
}

/* Acceptance fix: animated service hero stays inside its viewport */

html body.niklas-site-shell .service-hero {
  overflow-x: clip;
}

