:root {
  --blue-950: #062357;
  --blue-900: #08357f;
  --blue-800: #0b469f;
  --blue-100: #eaf2ff;
  --red-600: var(--blue-900);
  --ink: #111827;
  --text: #263244;
  --muted: #667085;
  --line: #dfe6ef;
  --soft: #f3f6fa;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(6, 35, 87, 0.14);
  --radius: 8px;
  --container: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 230, 239, 0.9);
  backdrop-filter: blur(14px);
  transition:
    box-shadow 180ms ease,
    min-height 180ms ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  box-shadow: 0 12px 36px rgba(6, 35, 87, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(126px, 14vw, 176px);
  height: auto;
  aspect-ratio: 845 / 329;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 30px);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 680;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--blue-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.header-cta,
.button-primary {
  background: var(--blue-900);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(8, 53, 127, 0.18);
}

.button-secondary {
  background: var(--white);
  color: var(--blue-900);
  border-color: var(--blue-800);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(8, 53, 127, 0.22);
}

.button-secondary:hover {
  background: var(--blue-100);
}

.nav-toggle {
  display: none;
}

.hero {
  min-height: clamp(520px, 70vh, 640px);
  display: grid;
  grid-template-columns: minmax(360px, 0.98fr) minmax(420px, 1.02fr);
  align-items: stretch;
  background:
    linear-gradient(90deg, var(--white) 0%, var(--white) 43%, rgba(255, 255, 255, 0) 57%),
    var(--soft);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 650px;
  padding: clamp(48px, 6vw, 86px) 34px clamp(34px, 4vw, 58px) max(34px, calc((100vw - var(--container)) / 2 + 34px));
}

.hero h1 {
  margin: 0;
  color: #050b16;
  font-size: clamp(2.65rem, 3.8vw, 4.5rem);
  line-height: 0.98;
  font-weight: 860;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero p {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--text);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.contact-panel {
  flex-basis: 100%;
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(6, 35, 87, 0.12);
}

.contact-panel strong {
  color: var(--ink);
}

.contact-panel span {
  color: var(--muted);
}

.contact-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue-900);
  font-weight: 800;
}

.hero-media {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.section {
  padding: clamp(62px, 7.5vw, 104px) 34px;
}

.section-heading {
  max-width: var(--container);
  margin: 0 auto 34px;
}

.section-heading h2,
.window-copy h2,
.contact-copy h2,
.audience-card h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
  font-weight: 820;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-heading p,
.contact-copy p,
.audience-card p,
.window-copy p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.service-overview {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(34px, 4vw, 54px);
}

.services-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.service-card {
  min-width: 0;
}

.service-card img,
.boundary-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(6, 35, 87, 0.08);
}

.boundary-visual {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(8, 53, 127, 0.08), rgba(8, 53, 127, 0.15)),
    var(--soft);
  border: 1px solid var(--line);
}

.boundary-visual span {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: var(--blue-900);
}

.boundary-visual span:nth-child(2) {
  width: 74%;
  background: var(--blue-900);
  opacity: 0.7;
}

.boundary-visual span:nth-child(3) {
  width: 48%;
  background: var(--blue-900);
  opacity: 0.45;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: 20px;
  color: var(--blue-900);
}

.service-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 790;
}

.service-card p {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.process {
  background: var(--soft);
}

.process-rail {
  --rail-gap: 22px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 34px 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--rail-gap);
  position: relative;
}

.process-rail::before {
  content: "";
  position: absolute;
  top: 59px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: var(--blue-900);
}

.process-rail li {
  position: relative;
  z-index: 1;
  text-align: center;
}

.process-rail span {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--blue-900);
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 830;
  box-shadow: 0 0 0 10px var(--soft);
}

.process-rail h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 790;
}

.process-rail p {
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.audience-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audience-card {
  padding: clamp(54px, 7vw, 92px) 34px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86)),
    url("assets/service-fundation.png") center / cover;
}

.audience-card > div {
  max-width: 520px;
  margin-left: auto;
}

.audience-card-dark {
  background:
    linear-gradient(120deg, rgba(6, 35, 87, 0.93), rgba(6, 35, 87, 0.76)),
    url("assets/service-rohbau.png") center / cover;
  color: var(--white);
}

.audience-card-dark > div {
  margin-right: auto;
  margin-left: 0;
}

.audience-card-dark h2,
.audience-card-dark p {
  color: var(--white);
}

.check-list,
.feature-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li,
.feature-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-weight: 620;
}

.audience-card-dark .check-list li {
  color: rgba(255, 255, 255, 0.94);
}

.check-list li::before,
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 13px;
  height: 8px;
  border-left: 3px solid var(--blue-900);
  border-bottom: 3px solid var(--blue-900);
  transform: rotate(-45deg);
}

.audience-card-dark .check-list li::before {
  border-color: var(--white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--blue-900);
  font-weight: 780;
}

.text-link-light {
  color: var(--white);
}

.window-section {
  max-width: calc(var(--container) + 68px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  background: var(--white);
}

.window-copy {
  min-width: 0;
}

.window-copy .lead {
  color: var(--ink);
  font-size: clamp(1.12rem, 1.6vw, 1.34rem);
  font-weight: 760;
}

.feature-list li::before {
  border-color: var(--blue-900);
}

.window-media {
  position: relative;
  min-width: 0;
}

.window-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.window-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  max-width: 300px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(223, 230, 239, 0.85);
  box-shadow: 0 18px 42px rgba(6, 35, 87, 0.18);
}

.window-note strong,
.window-note span {
  display: block;
}

.window-note strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.window-note span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.partner-section {
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.partner-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.partner-card {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(6, 35, 87, 0.08);
}

.partner-card-primary {
  border-color: rgba(8, 53, 127, 0.28);
  box-shadow: 0 18px 42px rgba(6, 35, 87, 0.14);
}

.partner-kicker {
  color: var(--blue-900);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.partner-card h3 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.2;
}

.partner-card p {
  margin: 14px 0 0;
  color: var(--text);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  padding: clamp(58px, 7vw, 92px) max(34px, calc((100vw - var(--container)) / 2 + 34px));
  background:
    linear-gradient(90deg, var(--soft), rgba(243, 246, 250, 0.62)),
    var(--soft);
  border-top: 1px solid var(--line);
}

.contact-card {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(6, 35, 87, 0.1);
  font-style: normal;
}

.contact-card h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.2;
}

.contact-card a {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 12px;
  color: var(--text);
  font-weight: 650;
}

.contact-card a span {
  color: var(--blue-900);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) repeat(4, minmax(140px, 0.8fr));
  gap: 34px;
  padding: 42px max(34px, calc((100vw - var(--container)) / 2 + 34px)) 26px;
  background: var(--blue-950);
  color: var(--white);
}

.brand-footer .brand-logo {
  width: clamp(132px, 16vw, 190px);
  padding: 8px;
  border-radius: 6px;
  background: var(--white);
}

.footer-brand p {
  max-width: 280px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-links h2 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 0.96rem;
  line-height: 1.2;
}

.footer-links a,
.footer-links span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 0;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 180ms ease,
      opacity 180ms ease,
      visibility 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    width: 46px;
    height: 46px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
  }

  .nav-toggle span:not(.sr-only) {
    width: 20px;
    height: 2px;
    background: currentColor;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    background: var(--white);
  }

  .hero-copy {
    max-width: 760px;
    padding: 66px 28px 40px;
  }

  .hero-media {
    min-height: 420px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-rail {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
  }

  .process-rail::before {
    top: 0;
    bottom: 0;
    left: 28px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .process-rail li {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 20px;
    text-align: left;
  }

  .process-rail span {
    grid-row: span 2;
    margin: 0;
  }

  .process-rail p {
    margin-right: 0;
    margin-left: 0;
  }

  .window-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding: 0 18px;
  }

  .site-nav {
    top: 68px;
  }

  .brand-logo {
    width: 118px;
  }

  .hero-copy {
    padding: 48px 20px 32px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .hero p {
    margin-top: 22px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .hero-media {
    min-height: 330px;
  }

  .section,
  .window-section,
  .contact-section,
  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .services-grid,
  .audience-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .audience-card {
    padding-right: 20px;
    padding-left: 20px;
  }

  .audience-card > div,
  .audience-card-dark > div {
    margin: 0;
  }

  .window-note {
    position: static;
    max-width: none;
    margin-top: 14px;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
