:root {
  --ink: #111718;
  --ink-2: #1c2527;
  --muted: #69777a;
  --line: #d8dedc;
  --paper: #f4f1e9;
  --paper-2: #e7e2d5;
  --white: #ffffff;
  --navy: #14105b;
  --steel: #0078b9;
  --oxide: #008fd0;
  --sage: #6f806c;
  --shadow: 0 26px 70px rgba(17, 23, 24, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 23, 24, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
.service-card,
.work-item,
.reference-card,
.process-band div,
.contact-card,
.map-card,
.inquiry-form,
.site-footer {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    filter 180ms ease;
}

a:focus-visible,
.service-card:focus-within,
.work-item:focus-within,
.reference-card:focus-visible {
  outline: 3px solid var(--oxide);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: center;
  min-height: 76px;
  padding: 13px clamp(18px, 4vw, 58px);
  color: var(--white);
  background: rgba(16, 19, 31, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-width: 420px;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 267px;
  min-width: 267px;
  padding: 10px 13px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 7px 7px 0 rgba(0, 143, 208, 0.34);
}

.brand-logo img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
}

.main-nav a,
.header-call {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 4px;
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.header-call {
  color: var(--ink);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--oxide);
  font-weight: 800;
  white-space: nowrap;
}

.header-call:hover {
  transform: translate(-1px, -1px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.86fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  min-height: calc(100svh - 92px);
  overflow: hidden;
  padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 58px) clamp(38px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(17, 23, 24, 0.96), rgba(20, 16, 91, 0.8) 52%, rgba(0, 120, 185, 0.62)),
    url("assets/hero.jpg") center / cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.18) 19px 20px),
    linear-gradient(90deg, transparent, rgba(0, 143, 208, 0.52));
  pointer-events: none;
}

.hero::after {
  content: "METALLBAU";
  position: absolute;
  right: 44px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.055);
  font-size: 8rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.8;
  pointer-events: none;
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--oxide);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: currentColor;
}

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

h1 {
  max-width: 830px;
  margin-bottom: 24px;
  font-size: 5.6rem;
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 3.4rem;
  line-height: 1.02;
  letter-spacing: 0;
}

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

.lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.22rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  padding: 8px 11px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--oxide);
  border-radius: 3px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border: 2px solid currentColor;
  border-radius: 4px;
  font-weight: 900;
}

.button.primary {
  color: var(--navy);
  background: var(--white);
  box-shadow: 7px 7px 0 var(--oxide);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.button:hover {
  transform: translate(-1px, -1px);
}

.button.primary:hover {
  box-shadow: 10px 10px 0 var(--oxide);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-media {
  margin: 0;
  transform: rotate(1.2deg);
}

.hero-media img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
  border: 10px solid rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  box-shadow: var(--shadow);
  filter: saturate(1.06) contrast(1.08);
}

.hero-media figcaption {
  position: absolute;
  left: -18px;
  bottom: 28px;
  display: grid;
  gap: 2px;
  max-width: 280px;
  padding: 15px 16px;
  color: var(--white);
  background: var(--oxide);
  border-radius: 4px;
  box-shadow: 10px 10px 0 rgba(17, 23, 24, 0.5);
  font-size: 0.93rem;
  transform: rotate(-1.2deg);
}

.hero-media figcaption strong {
  display: block;
  font-size: 1rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  position: relative;
  min-height: 124px;
  padding: 28px clamp(18px, 4vw, 58px);
  border-right: 1px solid var(--line);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.trust-strip div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 66px;
  height: 5px;
  background: var(--oxide);
  transition: width 180ms ease, height 180ms ease;
}

.trust-strip div:nth-child(2)::before {
  background: var(--steel);
}

.trust-strip div:nth-child(3)::before {
  background: var(--sage);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 4px;
  font-size: 1.06rem;
}

.trust-strip span {
  color: var(--muted);
}

.trust-strip div:hover {
  z-index: 1;
  transform: translateY(-6px);
  background: #f2f8fb;
  box-shadow: 0 18px 38px rgba(17, 23, 24, 0.12);
}

.trust-strip div:hover::before {
  width: 100%;
  height: 7px;
}

.statement-band {
  padding: clamp(42px, 6vw, 78px) clamp(18px, 4vw, 58px);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.statement-band p {
  max-width: 980px;
  margin: 0;
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1.1;
}

.section,
.work-band,
.contact-band,
.legal-section,
.process-band {
  padding: clamp(66px, 9vw, 120px) clamp(18px, 4vw, 58px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: clamp(30px, 4vw, 52px);
}

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

.service-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 340px;
  overflow: hidden;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(17, 23, 24, 0.08);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 180ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 128px;
  height: 128px;
  background: linear-gradient(135deg, transparent 0 45%, rgba(201, 98, 45, 0.17) 46% 100%);
  transform: rotate(45deg);
  transition: transform 180ms ease, background 180ms ease;
}

.service-card:nth-child(even)::after {
  background: linear-gradient(135deg, transparent 0 45%, rgba(46, 102, 120, 0.18) 46% 100%);
}

.service-number {
  display: block;
  margin-bottom: 64px;
  color: var(--oxide);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.service-card p,
.work-item p,
.text-block p,
.contact-band p,
.legal-note p,
.process-band p {
  color: var(--muted);
}

.service-tag {
  align-self: end;
  justify-self: start;
  margin-top: 28px;
  padding: 7px 10px;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 800;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 98, 45, 0.52);
  box-shadow: 0 26px 55px rgba(17, 23, 24, 0.18);
}

.service-card:hover::before {
  border-color: rgba(201, 98, 45, 0.42);
}

.service-card:hover::after {
  transform: translate(-14px, -14px) rotate(45deg);
  background: linear-gradient(135deg, transparent 0 45%, rgba(201, 98, 45, 0.34) 46% 100%);
}

.service-card:hover .service-number {
  color: var(--steel);
  transform: translateX(4px);
}

.service-card:hover .service-tag {
  background: var(--oxide);
}

.work-band {
  position: relative;
  overflow: visible;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    var(--ink);
  background-size: 52px 52px;
  color: var(--white);
}

.work-band::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 9px;
  background: var(--oxide);
}

.work-band .section-heading {
  position: relative;
  z-index: 1;
}

.work-band .eyebrow {
  color: #ff9a60;
}

.work-band .section-heading h2 {
  color: var(--white);
}

.work-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 18px;
  align-items: stretch;
}

.work-item {
  display: grid;
  grid-template-rows: minmax(270px, 1fr) auto;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.work-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.work-item.large {
  grid-row: span 2;
}

.work-item img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.06);
  transition: transform 260ms ease, filter 260ms ease;
}

.work-item:hover img {
  transform: scale(1.045);
  filter: saturate(1.18) contrast(1.1);
}

.work-item div {
  padding: 21px;
  border-top: 6px solid var(--oxide);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.work-item:hover div {
  border-top-color: var(--steel);
  background: #f7f8f5;
}

.reference-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.reference-card {
  position: relative;
  min-height: 190px;
  overflow: visible;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: #10202a;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.reference-logo-panel {
  position: relative;
  display: grid;
  align-items: start;
  justify-items: center;
  width: 100%;
  min-height: 190px;
  overflow: hidden;
  padding: 34px 26px 72px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 24% 20%, rgba(0, 143, 208, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(226, 237, 242, 0.92));
  transition: transform 320ms ease, filter 320ms ease;
}

.reference-logo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 0 42%, rgba(18, 8, 95, 0.08) 43% 100%);
  pointer-events: none;
}

.reference-logo-panel img {
  position: relative;
  z-index: 1;
  width: min(82%, 190px);
  max-height: 94px;
  object-fit: contain;
  transform: translateY(-8px);
  filter: drop-shadow(0 10px 18px rgba(17, 23, 24, 0.16));
  transition: transform 320ms ease, filter 320ms ease;
}

.reference-logo-panel img.compact-logo {
  width: 64px;
  max-height: 64px;
  transform: translateY(-8px) scale(1.35);
}

.reference-content {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(transparent, rgba(7, 13, 16, 0.92) 42%);
}

.reference-content strong,
.reference-content span {
  display: block;
}

.reference-content strong {
  font-size: 1rem;
  line-height: 1.12;
}

.reference-content span {
  max-height: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  transition: max-height 220ms ease;
}

.reference-popover {
  position: absolute;
  z-index: 4;
  top: calc(100% + 20px);
  bottom: auto;
  left: 50%;
  width: min(1050px, calc(100vw - 72px));
  padding: 20px;
  color: var(--ink);
  background: var(--white);
  border-top: 5px solid var(--oxide);
  border-radius: 6px;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.42);
  clip-path: inset(14% 8% 0 round 6px);
  filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 24px) scale(0.88);
  transform-origin: top center;
  transition:
    clip-path 520ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 520ms ease,
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reference-popover::after {
  content: "";
  position: absolute;
  top: -9px;
  bottom: auto;
  left: 50%;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
}

.reference-popover > strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 1rem;
}

.reference-gallery {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.reference-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(1.05) contrast(1.06);
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transition: opacity 360ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reference-gallery img:nth-child(2) {
  transition-delay: 80ms;
}

.reference-gallery img:nth-child(3) {
  transition-delay: 160ms;
}

.reference-card:nth-child(-n + 2) .reference-popover {
  right: auto;
  left: 0;
  transform: translateY(24px) scale(0.88);
  transform-origin: top left;
}

.reference-card:nth-child(-n + 2) .reference-popover::after {
  left: 34px;
}

.reference-card:nth-last-child(-n + 2) .reference-popover {
  right: 0;
  left: auto;
  transform: translateY(24px) scale(0.88);
  transform-origin: top right;
}

.reference-card:nth-last-child(-n + 2) .reference-popover::after {
  right: 34px;
  left: auto;
  transform: rotate(45deg);
}

.reference-card:hover,
.reference-card.is-open {
  transform: translateY(-6px);
  border-color: rgba(0, 143, 208, 0.8);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.34);
}

.reference-card:hover .reference-logo-panel,
.reference-card:focus .reference-logo-panel,
.reference-card.is-open .reference-logo-panel {
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.04);
}

.reference-card:hover .reference-logo-panel img,
.reference-card:focus .reference-logo-panel img,
.reference-card.is-open .reference-logo-panel img {
  transform: translateY(-12px) scale(1.08);
  filter: drop-shadow(0 15px 24px rgba(17, 23, 24, 0.22));
}

.reference-card:hover .reference-logo-panel img.compact-logo,
.reference-card:focus .reference-logo-panel img.compact-logo,
.reference-card.is-open .reference-logo-panel img.compact-logo {
  transform: translateY(-12px) scale(1.5);
}

.reference-card:hover .reference-content span,
.reference-card:focus .reference-content span,
.reference-card.is-open .reference-content span {
  max-height: 80px;
}

.reference-card:hover .reference-popover,
.reference-card:focus .reference-popover,
.reference-card.is-open .reference-popover {
  clip-path: inset(0 round 6px);
  filter: blur(0);
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.reference-card:hover .reference-gallery img,
.reference-card:focus .reference-gallery img,
.reference-card.is-open .reference-gallery img {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reference-card:nth-child(-n + 2):hover .reference-popover,
.reference-card:nth-child(-n + 2):focus .reference-popover,
.reference-card:nth-child(-n + 2).is-open .reference-popover,
.reference-card:nth-last-child(-n + 2):hover .reference-popover,
.reference-card:nth-last-child(-n + 2):focus .reference-popover,
.reference-card:nth-last-child(-n + 2).is-open .reference-popover {
  transform: translateY(0) scale(1);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  background: var(--paper);
}

.text-block {
  max-width: 750px;
  padding-left: 28px;
  border-left: 7px solid var(--oxide);
  font-size: 1.1rem;
}

.process-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--ink);
}

.process-band div {
  min-height: 230px;
  padding: 32px 24px;
  background: var(--ink-2);
}

.process-band div:hover {
  position: relative;
  z-index: 1;
  transform: translateY(-6px);
  background: #263235;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3);
}

.process-band span {
  display: block;
  margin-bottom: 36px;
  color: var(--oxide);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease;
}

.process-band div:hover span {
  color: #ff9a60;
  transform: translateX(4px);
}

.process-band strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.25rem;
}

.process-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 0.9fr) minmax(300px, 0.95fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(46, 102, 120, 0.15), transparent 45%),
    var(--white);
}

.contact-band h2 {
  max-width: 720px;
}

.contact-band p {
  max-width: 620px;
  font-size: 1.1rem;
}

.contact-panel {
  display: grid;
  gap: 18px;
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 30px;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
  border-top: 8px solid var(--oxide);
  box-shadow: 12px 12px 0 rgba(46, 102, 120, 0.24), var(--shadow);
  font-style: normal;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 16px 16px 0 rgba(46, 102, 120, 0.28), 0 34px 76px rgba(17, 23, 24, 0.26);
}

.contact-card strong {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.contact-card a {
  text-decoration: none;
}

.contact-card a:hover {
  color: #ffb184;
}

.map-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(17, 23, 24, 0.1);
}

.map-card:hover,
.inquiry-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(17, 23, 24, 0.16);
}

.map-frame {
  width: 100%;
  min-height: 230px;
  border: 0;
  border-radius: 4px;
  filter: saturate(0.95) contrast(1.02);
  box-shadow: inset 0 0 0 1px rgba(17, 23, 24, 0.12);
}

.map-consent {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
  justify-content: center;
  min-height: 230px;
  padding: 1.1rem 1.2rem;
  border-radius: 4px;
  background: rgba(17, 23, 24, 0.04);
  box-shadow: inset 0 0 0 1px rgba(17, 23, 24, 0.12);
}

.map-consent p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.map-consent p a {
  display: inline;
  color: var(--steel);
  font-weight: 700;
}

.map-consent .button {
  align-self: flex-start;
}

.map-card strong,
.map-card a {
  display: block;
}

.map-card strong {
  font-size: 1.08rem;
}

.map-card a {
  color: var(--steel);
  font-weight: 900;
}

.inquiry-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 8px solid var(--oxide);
  border-radius: 6px;
  box-shadow: 0 18px 46px rgba(17, 23, 24, 0.12);
}

.inquiry-form h3 {
  margin-bottom: 2px;
}

.inquiry-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  color: var(--ink);
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

.inquiry-form textarea {
  resize: vertical;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: 3px solid rgba(0, 143, 208, 0.24);
  border-color: var(--steel);
}

/* Honeypot: für Menschen unsichtbar, nur Bots füllen es aus */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
}

.form-consent input {
  width: auto;
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.form-consent a {
  color: var(--steel);
  font-weight: 700;
}

.form-note {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 4px;
  background: rgba(208, 42, 42, 0.08);
  box-shadow: inset 0 0 0 1px rgba(208, 42, 42, 0.35);
  color: #a11;
  font-size: 0.9rem;
}

.legal-section {
  background:
    linear-gradient(90deg, rgba(17, 23, 24, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

.legal-page {
  min-height: 70vh;
}

.legal-hero {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 58px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(17, 23, 24, 0.96), rgba(20, 16, 91, 0.82)),
    url("assets/hero.jpg") center / cover;
}

.legal-hero h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6rem);
}

.legal-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.15rem;
}

.legal-section .section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
  align-items: start;
}

.legal-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 8px solid var(--oxide);
  border-radius: 6px;
  box-shadow: 0 16px 38px rgba(17, 23, 24, 0.08);
}

.legal-card:nth-child(2) {
  border-top-color: var(--steel);
}

.legal-single {
  max-width: 920px;
}

.legal-card h3 {
  margin: 30px 0 8px;
  font-size: 1.75rem;
}

.legal-card h3:first-child {
  margin-top: 0;
}

.legal-card h4 {
  margin: 28px 0 8px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.legal-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-card p + p {
  margin-top: 12px;
}

.legal-muted {
  font-size: 0.94rem;
}

.legal-hint {
  margin-top: 28px;
  padding: 16px;
  color: var(--ink);
  background: var(--paper-2);
  border-left: 6px solid var(--oxide);
  border-radius: 4px;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(2, minmax(180px, 0.55fr));
  gap: clamp(18px, 3vw, 42px);
  padding: clamp(30px, 4vw, 46px) clamp(18px, 4vw, 58px) clamp(22px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #080d10, #111828 58%, #0b3551);
  background-size: 44px 44px, auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer strong,
.site-footer a,
.site-footer p,
.footer-credit {
  margin: 0;
}

.footer-brand,
.footer-contact,
.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-brand img {
  width: 188px;
  padding: 8px 10px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 7px 7px 0 rgba(0, 143, 208, 0.34);
}

.footer-brand p {
  max-width: 420px;
}

.site-footer strong {
  color: var(--white);
  font-size: 1.05rem;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-credit {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  margin-top: 6px;
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.74rem;
  line-height: 1.3;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .service-card:hover,
  .work-item:hover,
  .process-band div:hover,
  .contact-card:hover,
  .reference-card:hover,
  .work-item:hover img {
    transform: none;
  }

  .reference-content span {
    max-height: none;
  }
}

@media (max-width: 1100px) {
  .brand {
    min-width: 330px;
  }

  .brand-logo {
    width: 218px;
    min-width: 218px;
  }

  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 2.85rem;
  }

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

  .reference-card:nth-child(n) .reference-popover {
    right: auto;
    left: 50%;
    width: min(920px, calc(100vw - 56px));
    transform: translate(-50%, 24px) scale(0.88);
    transform-origin: top center;
  }

  .reference-card:nth-child(n) .reference-popover::after {
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
  }

  .reference-card:nth-child(odd) .reference-popover {
    right: auto;
    left: 0;
    transform: translateY(24px) scale(0.88);
    transform-origin: top left;
  }

  .reference-card:nth-child(odd) .reference-popover::after {
    left: 34px;
    transform: rotate(45deg);
  }

  .reference-card:nth-child(even) .reference-popover {
    right: 0;
    left: auto;
    transform: translateY(24px) scale(0.88);
    transform-origin: top right;
  }

  .reference-card:nth-child(even) .reference-popover::after {
    right: 34px;
    left: auto;
    transform: rotate(45deg);
  }

  .reference-card:nth-child(odd):hover .reference-popover,
  .reference-card:nth-child(odd):focus .reference-popover,
  .reference-card:nth-child(odd).is-open .reference-popover,
  .reference-card:nth-child(even):hover .reference-popover,
  .reference-card:nth-child(even):focus .reference-popover,
  .reference-card:nth-child(even).is-open .reference-popover {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .header-call {
    justify-self: start;
  }

  .hero,
  .split,
  .contact-band,
  .work-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    transform: none;
  }

  .hero-media img {
    min-height: 380px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .work-item.large {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 176px;
    min-width: 176px;
    padding: 7px 8px;
    box-shadow: 5px 5px 0 rgba(0, 143, 208, 0.34);
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 4px;
  }

  .main-nav a,
  .header-call {
    padding-inline: 10px;
    font-size: 0.84rem;
  }

  .main-nav a {
    display: grid;
    place-items: center;
    min-height: 34px;
    padding-inline: 4px;
  }

  .header-call {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    box-shadow: 4px 4px 0 var(--oxide);
  }

  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .lead,
  .contact-band p,
  .text-block {
    font-size: 1rem;
  }

  .hero-media img {
    min-height: 290px;
  }

  .hero-media figcaption {
    position: static;
    max-width: none;
    border-radius: 0 0 4px 4px;
    transform: none;
  }

  .service-grid,
  .process-band,
  .reference-showcase,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .map-card {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 270px;
  }

  .reference-popover,
  .reference-card:nth-child(n) .reference-popover {
    right: auto;
    left: 0;
    width: 100%;
    transform: translateY(24px) scale(0.88);
    transform-origin: top left;
  }

  .reference-popover::after,
  .reference-card:nth-child(n) .reference-popover::after {
    right: auto;
    left: 34px;
    transform: rotate(45deg);
  }

  .reference-card:hover .reference-popover,
  .reference-card:focus .reference-popover,
  .reference-card.is-open .reference-popover,
  .reference-card:nth-child(n):hover .reference-popover,
  .reference-card:nth-child(n):focus .reference-popover,
  .reference-card:nth-child(n).is-open .reference-popover {
    transform: translateY(0) scale(1);
  }

  .service-number {
    margin-bottom: 42px;
  }

  .statement-band p {
    font-size: 1.55rem;
  }

  .text-block {
    padding-left: 18px;
  }

  .legal-card {
    padding: 22px;
  }

  .site-footer nav {
    gap: 12px;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 3rem;
  }
}
