/* ==========================================================================
   Geotechnik-HH — Alternative Single-Page-Variante
   Ruhige, redaktionelle Gestaltung. Eigene Designsprache.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #e5e5e5;
  --paper-2: #fff;
  --tint: #fff;
  --ink: #2E86AB;
  --ink-soft: #3a403c;
  --muted: #646a65;
  --line: rgba(28, 33, 30, 0.14);
  --line-soft: rgba(28, 33, 30, 0.08);
  --line-strong: rgba(28, 33, 30, 0.3);
  --green: #3c5548;
  --green-deep: #974436;
  --green-tint: #dfe4da;
  --stone: #8d948b;
  --sand: #cfc3ab;
  --water: #52727b;
  --radius: 2px;
  --container: 1120px;
  --gutter: 24px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: var(--green);
  color: var(--paper-2);
}

h1,
h2,
h3 {
  font-family: "Archivo", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.55rem, 4.6vw, 4rem);
  line-height: 0.99;
  letter-spacing: -0.038em;
}

h2 {
  font-size: clamp(1.85rem, 3.1vw, 2.65rem);
  line-height: 1.06;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 11px 16px;
  background: var(--ink);
  color: var(--paper-2);
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* Reveals ------------------------------------------------------------------ */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Typographic building blocks --------------------------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn svg,
.link-arrow svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  transition: transform 0.25s var(--ease);
}

.btn--solid {
  background: var(--green-deep);
  color: var(--paper-2);
}

.btn--solid:hover {
  background: var(--green);
}

.btn--solid:hover svg {
  transform: translateX(3px);
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.link-arrow:hover {
  color: var(--green);
  border-color: var(--green);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* Header ------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(246, 245, 240, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 31px;
  height: 31px;
}

.brand-text {
  display: block;
}

.brand-name {
  display: block;
  font-family: "Archivo", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}

.brand-name span {
  color: var(--green);
}

.brand-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  position: relative;
  display: inline-block;
  padding: 7px 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--green);
}

.nav a:hover::after,
.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.header-side {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: none;
  font-size: 0.84rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s var(--ease);
}

.header-phone:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
}

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
}

.nav-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle__icon span:nth-child(1) {
  top: 0;
}

.nav-toggle__icon span:nth-child(2) {
  top: 8px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) {
  top: 4px;
  transform: rotate(-45deg);
}

/* Mobile navigation -------------------------------------------------------- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 34px) var(--gutter) 36px;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease),
    visibility 0.3s;
  overflow-y: auto;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.mobile-nav__list {
  border-top: 1px solid var(--line);
}

.mobile-nav__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.55rem, 5.5vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.mobile-nav__list a span:last-child {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.mobile-nav__foot {
  display: grid;
  gap: 6px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.mobile-nav__foot a:hover {
  color: var(--green);
}

.mobile-nav__foot span {
  color: var(--muted);
}

/* Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(28, 33, 30, 0.03) 0,
    rgba(28, 33, 30, 0.03) 1px,
    transparent 1px,
    transparent 96px
  );
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(52px, 8vw, 88px);
}

.hero-copy .kicker {
  margin-bottom: 28px;
}

.hero h1 {
  max-width: 13ch;
  margin-bottom: 26px;
}

.hero-lead {
  max-width: 44ch;
  margin-bottom: 34px;
  font-size: 1.06rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

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

.profile {
  width: 100%;
  max-width: 380px;
  justify-self: end;
  margin: 0;
}

.profile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile svg {
  width: 100%;
  height: auto;
  margin-top: 14px;
}

.profile svg text {
  font-family: "Inter", sans-serif;
}

.profile-axis text {
  font-variant-numeric: tabular-nums;
}

.profile-caption {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero-meta-wrap {
  border-top: 1px solid var(--line);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 32px;
  padding: 17px 0;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--green);
}

/* Sections ----------------------------------------------------------------- */

.section {
  padding: clamp(64px, 8vw, 108px) 0;
}

.section--tint {
  background: var(--tint);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section--contact {
  padding-bottom: clamp(72px, 9vw, 120px);
}

.section-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 20px 14px;
  align-items: start;
  margin-bottom: clamp(38px, 5vw, 60px);
}

.section-index {
  padding-top: 7px;
  font-family: "Archivo", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.section-head h2 {
  max-width: 22ch;
}

.section-intro {
  margin: 0;
  padding-top: 5px;
  max-width: 40ch;
  justify-self: end;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Services ----------------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 23px 0 25px;
  border-top: 1px solid var(--line);
}

.service-num {
  padding-top: 4px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.service h3 {
  margin-bottom: 6px;
}

.service p {
  max-width: 44ch;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Process ------------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 54px);
}

.step {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.step-num {
  display: block;
  margin-bottom: 18px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--muted);
}

.principle {
  margin: clamp(40px, 5vw, 60px) 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--green);
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.4;
  color: var(--ink);
}

/* About -------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.about-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.98);
}

.about-media figcaption {
  margin-top: 11px;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--muted);
}

.about-lead {
  font-size: 1.06rem;
  line-height: 1.62;
  color: var(--ink);
}

.about-body > p:not(.about-lead) {
  font-size: 0.95rem;
  color: var(--muted);
}

.values {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.value {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.value dt {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--green);
  padding-top: 3px;
}

.value dd {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Contact ------------------------------------------------------------------ */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.contact-copy p {
  max-width: 40ch;
  font-size: 1.06rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

.contact-region {
  margin-top: 24px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.68rem !important;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

.contact-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.contact-list > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.contact-list > div:first-child {
  padding-top: 0;
}

.contact-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 19px;
}

.contact-list dt {
  padding-top: 4px;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list dd {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
}

.contact-list a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.contact-list a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.contact-note {
  margin: 14px 0 0;
  font-size: 0.72rem;
  text-align: center;
  color: var(--muted);
}

/* Footer ------------------------------------------------------------------- */

.footer {
  padding: 48px 0 26px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 0.9fr);
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand p {
  max-width: 36ch;
  margin-top: 16px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}

.footer h2 {
  margin-bottom: 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer ul li + li {
  margin-top: 7px;
}

.footer ul a,
.footer-contact li {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.footer ul a:hover {
  color: var(--green);
}

.footer-contact li {
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.74rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.footer-legal a:hover {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

/* Responsive --------------------------------------------------------------- */

@media (min-width: 901px) {
  .header-phone {
    display: block;
  }
}

@media (max-width: 1000px) {
  .nav ul {
    gap: 22px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
  }
  .profile {
    max-width: 330px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 66px;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-phone {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero h1 {
    max-width: 16ch;
  }

  .profile {
    max-width: 380px;
    justify-self: start;
  }

  .section-head {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px 14px;
  }

  .section-intro {
    grid-column: 2;
    justify-self: start;
    max-width: 50ch;
    padding-top: 0;
  }

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

  .about-media {
    max-width: 620px;
  }

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

  .contact-card {
    max-width: 520px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section-index {
    padding-top: 0;
  }

  .section-intro {
    grid-column: auto;
    max-width: 50ch;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 15px 0;
  }

  .value {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .value dd {
    padding-bottom: 3px;
  }
}

@media (max-width: 560px) {
  .brand-sub {
    display: none;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .btn {
    width: 100%;
  }

  .link-arrow {
    width: auto;
  }

  .contact-list > div {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    justify-content: flex-start;
  }
}
