/* Targeted layout polish: shared header, cards, hero actions and menu lock */

:root {
  --niklas-card-cta-end-space: 18px;
  --niklas-mobile-header-height: 88px;
}

@media (max-width: 575.98px) {
  :root {
    --niklas-mobile-header-height: 72px;
  }
}

html body.niklas-site-shell.home-facelift .home-hero-actions > .home-hero-cta, html body.niklas-site-shell.home-facelift .home-hero-actions .home-hero-phone, html body.niklas-site-shell.home-facelift .home-hero-actions .home-hero-phone > a, html body.niklas-site-shell.home-facelift .home-hero-actions .home-hero-phone button, html body.niklas-site-shell.engineering-page .home-hero-actions > .home-hero-cta, html body.niklas-site-shell.engineering-page .home-hero-actions .home-hero-phone, html body.niklas-site-shell.engineering-page .home-hero-actions .home-hero-phone > a, html body.niklas-site-shell.engineering-page .home-hero-actions .home-hero-phone button {
  box-sizing: border-box;
}

html body.niklas-site-shell.home-facelift .home-hero-actions > .home-hero-cta, html body.niklas-site-shell.home-facelift .home-hero-actions .home-hero-phone button, html body.niklas-site-shell.engineering-page .home-hero-actions > .home-hero-cta, html body.niklas-site-shell.engineering-page .home-hero-actions .home-hero-phone button {
  margin: 0;
}

html body.niklas-site-shell.home-facelift .home-hero-actions .home-hero-phone button.niklas-button--phone, html body.niklas-site-shell.engineering-page .home-hero-actions .home-hero-phone button.niklas-button--phone {
  color: var(--niklas-color-background);
  background: transparent;
  border-color: var(--niklas-color-background);
}

html body.niklas-site-shell.home-facelift .home-hero-actions .home-hero-phone, html body.niklas-site-shell.home-facelift .home-hero-actions .home-hero-phone > a, html body.niklas-site-shell.engineering-page .home-hero-actions .home-hero-phone, html body.niklas-site-shell.engineering-page .home-hero-actions .home-hero-phone > a {
  margin: 0;
}

html body.niklas-site-shell.home-facelift .home-hero-actions .home-hero-phone > a, html body.niklas-site-shell.engineering-page .home-hero-actions .home-hero-phone > a {
  text-decoration: none;
}

html {
  scrollbar-gutter: stable;
}

html.is-mega-nav-open, html.is-mega-nav-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Collision-safe header component tokens */

:root {
  --niklas-header-service-font-size: var(--v5-font-size-small, .84rem);
  --niklas-header-nav-font-size: .94rem;
  --niklas-header-region-gap: 12px;
}

/* Global typography tokens for filled accent primary actions */

:root {
  --niklas-button-primary-font-family: "Nunito Sans", sans-serif;
  --niklas-button-primary-font-size: var(--v5-button-font-size, .84rem);
  --niklas-button-primary-font-weight: 700;
  --niklas-button-primary-line-height: 1.2;
  --niklas-button-primary-letter-spacing: .035em;
  --niklas-button-primary-text-transform: uppercase;
  --niklas-button-primary-min-height: 44px;
  --niklas-layer-smart-form-background: 9000;
}

@media (max-width: 575.98px) {
  :root {
    --niklas-button-primary-font-size: var(--v5-button-font-size, .84rem);
  }
}

/* Shared geometry tokens for paired primary and phone actions */

:root {
  --niklas-action-control-min-height: 52px;
  --niklas-action-control-padding-block: 12px;
  --niklas-action-control-padding-inline: 24px;
  --niklas-action-group-gap: 12px;
}

/* Constant header-to-eyebrow spacing and action-region tokens */

@media (max-width: 1299.98px) {
  :root {
    --niklas-header-flow-offset: 0px;
  }
}

/* Reference CTA pair follows the shared compact action-group geometry */

html body.niklas-site-shell.niklas-site-shell.niklas-site-shell .niklas-layout--flush:has( > .niklas-primary-cta):has( > .niklas-phone-link) {
  display: grid;
  grid-template-columns: max-content max-content;
  width: max-content;
  max-width: 100%;
  gap: var(--niklas-action-group-gap);
  align-items: stretch;
  justify-items: stretch;
}

html body.niklas-site-shell .niklas-layout--flush:has( > .niklas-primary-cta):has( > .niklas-phone-link) > a:empty {
  display: none;
}

html body.niklas-site-shell.niklas-site-shell.niklas-site-shell .niklas-layout--flush:has( > .niklas-primary-cta):has( > .niklas-phone-link) > .niklas-primary-cta {
  width: auto;
  min-width: 0;
  max-width: min(100%,var(--niklas-action-control-max-inline-size));
  min-height: var(--niklas-action-control-min-height);
  margin: 0;
  padding: var(--niklas-action-control-padding-block) var(--niklas-action-control-padding-inline);
}

@media (max-width: 991.98px) {
  html body.niklas-site-shell.niklas-site-shell.niklas-site-shell .niklas-layout--flush:has( > .niklas-primary-cta):has( > .niklas-phone-link) {
    grid-template-columns: minmax(0,1fr);
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  html body.niklas-site-shell.niklas-site-shell.niklas-site-shell .niklas-layout--flush:has( > .niklas-primary-cta):has( > .niklas-phone-link) > :is(.niklas-primary-cta, .niklas-phone-link) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

/* English mega-menu address uses the same single-line spacing as German */

html body.niklas-site-shell .mega-nav__contact--address br + br {
  display: none;
}

/* Product price forms use the same bounded mobile field geometry as request forms */

@media (max-width: 767.98px) {
  html body.niklas-site-shell #preisanfrage .compact-price-form.product-price-form-system {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0,1fr);
    padding: 20px;
  }
}

@media (max-width: 767.98px) {
  html body.niklas-site-shell #preisanfrage .compact-price-form.product-price-form-system > *, html body.niklas-site-shell #preisanfrage .compact-price-form.product-price-form-system .price-field-group, html body.niklas-site-shell #preisanfrage .compact-price-form.product-price-form-system .price-model-group, html body.niklas-site-shell #preisanfrage .compact-price-form.product-price-form-system .price-submit-row {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  html body.niklas-site-shell #preisanfrage .compact-price-form.product-price-form-system .price-model-group {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 767.98px) {
  html body.niklas-site-shell #preisanfrage .compact-price-form.product-price-form-system .form-check, html body.niklas-site-shell #preisanfrage .compact-price-form.product-price-form-system .form-check-label {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  html body.niklas-site-shell #preisanfrage .compact-price-form.product-price-form-system .form-check-label {
    white-space: normal;
    overflow-wrap: break-word;
  }
}

@media (max-width: 767.98px) {
  html body.niklas-site-shell #preisanfrage .compact-price-form.product-price-form-system .price-field-group :is(input, textarea, select, .form-control) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  html body.niklas-site-shell #preisanfrage .compact-price-form.product-price-form-system .price-submit-row {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 767.98px) {
  html body.niklas-site-shell #preisanfrage .compact-price-form.product-price-form-system .price-response-note, html body.niklas-site-shell #preisanfrage .compact-price-form.product-price-form-system .product-price-submit-system {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  html body.niklas-site-shell #preisanfrage .compact-price-form.product-price-form-system {
    padding: 20px;
  }
}

@media (max-width: 575.98px) {
  html body.niklas-site-shell #preisanfrage .compact-price-form.product-price-form-system .price-model-group {
    grid-template-columns: minmax(0,1fr);
  }
}

/* Legacy reference hero actions inherit the shared action-control system */

@media (max-width: 767.98px) {
  html body.niklas-site-shell .service-hero-right > .text-start:has( > .niklas-primary-cta):has( > .niklas-phone-link) > a:empty {
    display: none;
  }
}

@media (max-width: 767.98px) {
  html body.niklas-site-shell .service-hero-right > .text-start:has( > .niklas-primary-cta):has( > .niklas-phone-link) > :is(.niklas-primary-cta, .niklas-phone-link) {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: var(--niklas-action-control-min-height);
    padding: var(--niklas-action-control-padding-block) var(--niklas-action-control-padding-inline);
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  html body.niklas-site-shell .service-hero-right > .text-start:has( > .niklas-primary-cta):has( > .niklas-phone-link) > .niklas-primary-cta {
    margin: 0;
  }
}

@media (max-width: 767.98px) {
  html body.niklas-site-shell .service-hero-right > .text-start:has( > .niklas-primary-cta):has( > .niklas-phone-link) > .niklas-phone-link {
    margin-top: var(--niklas-action-group-gap);
  }
}

/* Every mobile reference card presents its company logo before its description */

@media (max-width: 767.98px) {
  html body.niklas-site-shell .card-body > .row:has( > .reference-quote__column) {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 767.98px) {
  html body.niklas-site-shell .card-body > .row:has( > .reference-quote__column) > :is(.col, [class*="client-logo__cell"], .reference-quote__column) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 0 0 auto;
  }
}

@media (max-width: 767.98px) {
  html body.niklas-site-shell .card-body > .row:has( > .reference-quote__column) > .reference-quote__column {
    order: 2;
  }
}

.niklas-roadmap::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--niklas-color-accent);
}

.niklas-roadmap__step {
  position: relative;
  min-width: 0;
  counter-increment: roadmap-step;
}

.niklas-roadmap__step::before {
  content: counter(roadmap-step, decimal-leading-zero);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 0 28px;
  background: var(--niklas-color-accent);
  color: var(--niklas-button-primary-color);
  font-size: var(--v5-eyebrow-font-size, .84rem);
  font-weight: 700;
  letter-spacing: .08em;
}

.niklas-roadmap__content {
  min-width: 0;
}

.niklas-roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: roadmap-step;
}

@media (max-width: 991.98px) {
  .niklas-roadmap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: roadmap-step;
  }
}

@media (max-width: 991.98px) {
  .niklas-roadmap::before {
    top: 24px;
    bottom: 24px;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
  }
}

@media (max-width: 991.98px) {
  .niklas-roadmap__step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 24px;
    padding-bottom: 40px;
  }
}

@media (max-width: 991.98px) {
  .niklas-roadmap__step:last-child {
    padding-bottom: 0;
  }
}

@media (max-width: 991.98px) {
  .niklas-roadmap__step::before {
    margin: 0;
  }
}

@media (max-width: 991.98px) {
  .niklas-roadmap__content {
    padding-top: 2px;
  }
}

:where(body.niklas-site-shell).engineering-page .process-solution-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 1.35rem;
  height: 1.35rem;
  margin: 1px 0 0;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0;
}

