:root {
  --ink: #17222d;
  --muted: #65727d;
  --blue: #0e78aa;
  --blue-dark: #0d486d;
  --blue-soft: #e8f5fb;
  --line: #dbe6ed;
  --paper: #f7fafc;
  --white: #ffffff;
  --accent: #7aa889;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 104px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(219, 230, 237, 0.85);
  background: rgba(247, 250, 252, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--blue-dark);
}

main {
  width: min(1540px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 300px);
  gap: 42px;
  align-items: center;
  padding: clamp(18px, 3vw, 34px) 0 44px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: grid;
  gap: 14px;
  max-width: 1500px;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  max-width: 1280px;
  font-size: clamp(3rem, 5.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.3;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-slogan {
  margin-bottom: 0;
  max-width: 840px;
  color: var(--blue-dark);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

.hero-copy > p:not(.eyebrow):not(.hero-slogan) {
  max-width: 1450px;
  font-size: clamp(1.02rem, 1.18vw, 1.18rem);
  white-space: nowrap;
}

.hero-logo {
  display: flex;
  justify-content: flex-end;
}

.hero-logo img {
  width: min(100%, 280px);
  height: auto;
  object-fit: contain;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  font-weight: 700;
  text-decoration: none;
}

.button {
  padding: 0 18px;
  border-radius: 6px;
  color: var(--white);
  background: var(--blue-dark);
}

.button:hover {
  background: var(--blue);
}

.text-link {
  color: var(--blue-dark);
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 55px rgba(23, 34, 45, 0.08);
}

.contact-panel span,
.mail-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-panel strong {
  font-size: 1.18rem;
}

.contact-panel p {
  margin-bottom: 0;
}

.contact-panel a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 960px;
  margin-bottom: 34px;
}

.single-line-heading {
  max-width: 1200px;
  white-space: nowrap;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-grid h3 {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.service-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--blue-dark);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-grid p {
  margin-bottom: 0;
}

.references-section {
  border-bottom: 1px solid var(--line);
}

.reference-browser {
  display: grid;
  gap: 24px;
}

.reference-level {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.reference-level-label {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reference-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
}

.reference-options button {
  min-height: 42px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
}

.reference-options button:hover,
.reference-options button.is-active {
  color: var(--blue-dark);
  border-bottom-color: var(--blue-dark);
}

.reference-options button.is-active {
  box-shadow: inset 0 -2px 0 var(--blue-dark);
}

.reference-options button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.reference-result {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.52fr);
  gap: 24px;
  align-items: stretch;
  padding-top: 10px;
}

.reference-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
}

.reference-gallery img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  border-radius: 8px;
  object-fit: cover;
}

.reference-gallery img:first-child {
  grid-row: span 2;
}

.reference-visual {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
}

.reference-visual img {
  width: min(220px, 70%);
  height: auto;
  object-fit: contain;
}

.reference-visual span {
  align-self: end;
  padding-bottom: 24px;
  color: var(--blue-dark);
  font-weight: 700;
}

.reference-result-media {
  min-width: 0;
}

.reference-detail,
.partner-group {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.reference-detail {
  align-content: center;
}

.reference-detail span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reference-detail h3,
.reference-detail p,
.partner-group h3 {
  margin-bottom: 0;
}

.reference-detail ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.partner-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.partner-group {
  align-content: start;
}

.partner-list {
  display: grid;
  gap: 12px;
}

.partner-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.partner-logo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-weight: 700;
}

.partner-item strong,
.partner-item em,
.partner-item a,
.partner-item span {
  display: block;
}

.partner-item em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.35;
}

.partner-item a,
.partner-item span {
  margin-top: 4px;
  color: var(--blue-dark);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-section {
  padding: 44px 0 78px;
  border-bottom: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 28px;
  align-items: start;
}

.contact-left {
  min-width: 0;
}

.contact-intro {
  max-width: 960px;
  white-space: nowrap;
}

.business-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
}

.business-card {
  display: grid;
  gap: 12px;
  min-height: 245px;
  padding: 24px;
  border: 1px solid rgba(14, 120, 170, 0.22);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(23, 34, 45, 0.07);
}

.business-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.business-card h3 {
  margin-bottom: 0;
  font-size: 1.34rem;
}

.business-card p {
  margin-bottom: 0;
}

.business-card a {
  align-self: end;
  color: var(--blue-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.map-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(23, 34, 45, 0.07);
}

.map-card h3 {
  margin-bottom: 10px;
  font-size: 1.34rem;
}

.map-card p {
  margin-bottom: 0;
}

.map-card iframe {
  width: 100%;
  min-height: 300px;
  border: 0;
  border-radius: 6px;
}

.map-card a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.imprint-section {
  padding-bottom: 96px;
}

.imprint-text {
  max-width: 860px;
}

.imprint-text p {
  margin-bottom: 22px;
}

.imprint-text p:last-child {
  margin-bottom: 0;
}

.imprint-text a {
  color: var(--blue-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.imprint-note {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

footer a {
  color: var(--blue-dark);
  text-decoration: none;
}

.footer-credit {
  color: #7d8891;
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .reference-result,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-logo {
    justify-content: flex-start;
  }

  .hero-logo img {
    width: 160px;
  }

  h1 {
    white-space: normal;
  }

  .hero-copy > p:not(.eyebrow):not(.hero-slogan) {
    white-space: normal;
  }

  .contact-intro {
    white-space: normal;
  }

  .single-line-heading {
    white-space: normal;
  }

  .business-cards {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 24px, 1540px);
  }

  .brand span {
    font-size: 0.95rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .reference-gallery {
    grid-template-columns: 1fr;
  }

  .reference-gallery img:first-child {
    grid-row: auto;
  }

  .reference-level,
  .reference-options,
  .reference-result {
    grid-template-columns: 1fr;
  }
}
