/* H&A Strata – Landingpage
   Josefin Sans (lokal) als Ersatz für Brandon Grotesque */

@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/josefin-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/josefin-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --petrol: #007991;
  --petrol-120: #005c6e;
  --bg-light: #e5eaeb;
  --ink: #00161f;
  --white: #fff;
  --line: #c6d0d2;

  --font: "Josefin Sans", system-ui, sans-serif;
  --fs-body: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --fs-lead: calc(var(--fs-body) * 1.15);
  --fs-h2: clamp(1.5rem, 1rem + 1.4vw, 2.25rem);
  --fs-hero: clamp(2rem, min(1.2rem + 2.6vw, 6.5vh), 3.5rem);
  --fs-overline: 0.75rem;

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4rem, 8vw, 8rem);
  --top: clamp(1.5rem, 3.5vw, 3rem);
  --logo-w: clamp(150px, 14vw, 200px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
a { color: inherit; }
strong { font-weight: 600; }
.nowrap { white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--petrol); color: var(--white); padding: .75rem 1rem;
}
.skip-link:focus { top: 1rem; }

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

.overline {
  display: flex; align-items: center; gap: .75rem;
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 1.25rem;
}
.overline::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }

.section-title {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.08;
  color: var(--petrol);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

/* Buttons – Josefin sitzt optisch hoch, daher ungleiches Padding bzw. text-box-Trim */
.btn {
  display: inline-block;
  padding: 1.24em 1.6em 1em;
  line-height: 1;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--white);
  background: var(--petrol);
  transition: background-color .2s ease;
}
@supports (text-box: trim-both cap alphabetic) {
  .btn { text-box: trim-both cap alphabetic; padding-block: 1.25em; }
}
.btn:hover { background: var(--petrol-120); }
.btn__arrow { display: inline-block; margin-left: .5em; transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--light { background: var(--white); color: var(--petrol-120); }
.btn--light:hover { background: var(--bg-light); }

/* Header – liegt über dem Hero und scrollt mit */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  padding-top: var(--top);
  pointer-events: none;
}
.site-header__logo { display: inline-block; pointer-events: auto; }
.site-header__logo img { width: var(--logo-w); }

/* Hero */
.hero { position: relative; padding: var(--top) 0 var(--section); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.hero__text {
  padding-top: calc(var(--logo-w) * .39 + clamp(4.5rem, 8.3vw, 7.5rem));
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 1.02;
  color: var(--petrol);
  margin-bottom: 2rem;
  text-wrap: balance;
}
.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  max-width: 34rem;
}
.hero__lead + .hero__lead { margin-top: 1.1em; }
.hero__btn { margin-top: 2rem; }
.hero__lead a { color: var(--petrol); text-underline-offset: .15em; }
.hero__lead a:hover { color: var(--petrol-120); }

/* Bildblock – Positionen in cqw, 1px Überlappung gegen Haarlinien */
.hero__media {
  position: relative;
  aspect-ratio: 1 / 1.1;
  max-width: 580px;
  width: 100%;
  justify-self: end;
  margin-top: 50px;
  container-type: inline-size;
}
.hero__img { position: absolute; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--a { left: 0; top: 0; width: 59cqw; aspect-ratio: 3 / 4; }
.hero__img--b { left: calc(59cqw - 1px); right: 0; top: 34cqw; aspect-ratio: 2 / 3; }
.hero__img--c { left: 27.6cqw; top: calc(59cqw * 4 / 3 - 1px); width: calc(31.4cqw + 1px); aspect-ratio: 1 / 1; }
.hero__amp {
  position: absolute;
  left: -12%; top: 34%;
  width: 72%; height: auto;
  overflow: visible;
  pointer-events: none;
}
.hero__amp path {
  fill: none;
  stroke: var(--petrol);
  stroke-width: 1.25px;
  vector-effect: non-scaling-stroke;
}

/* Nutzen */
.benefits { background: var(--bg-light); padding: var(--section) 0; }
.benefits__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.benefits .section-title { margin-bottom: 0; }
.benefits__list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.benefits__list li {
  display: flex; align-items: baseline; gap: 1.25rem;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.25;
}
.benefits__list li::before { content: "→"; flex: none; color: var(--petrol); font-weight: 600; }

/* Bildband */
.band { margin-inline: auto; }
.band img { width: 100%; }
@media (max-width: 600px) {
  .band img { aspect-ratio: 2 / 1; object-fit: cover; object-position: 55% 50%; }
}

/* Leistungen */
.services { padding: var(--section) 0; }
.services__list {
  list-style: none; padding: 0;
  counter-reset: svc;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}
.services__list li {
  counter-increment: svc;
  display: grid;
  grid-template-columns: clamp(4.5rem, 9vw, 7.5rem) minmax(0, 1fr);
  gap: .5rem clamp(1rem, 3vw, 2.5rem);
  padding: 2rem 0 1.85rem;
  border-bottom: 1px solid var(--line);
}
.services__list li::before {
  content: counter(svc, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  font-weight: 700;
  line-height: .8;
  color: var(--petrol);
}
.services__list h3 {
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.2;
  color: var(--petrol);
}
.services__list p { max-width: 40rem; }

/* Vom Scan zum Plan */
.scan-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 5rem);
}
.scan-plan img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.scan-plan__plan { background: var(--bg-light); }
.scan-plan__plan img { mix-blend-mode: multiply; }

/* CTA „Projekt anfragen“ – Claim einzeilig, &-Outline angeschnitten */
.cta {
  position: relative; overflow: hidden;
  background: var(--petrol); color: var(--white);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.cta__inner {
  position: relative;
  z-index: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem 3rem;
}
.cta__claim, .cta .btn { position: relative; z-index: 1; }
.cta__claim {
  font-size: clamp(2rem, 1.1rem + 2.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.08;
}
/* & sitzt innerhalb der Inhaltsbreite, rechts hinter dem Button */
.cta__amp {
  position: absolute;
  right: var(--gutter); top: 50%;
  width: clamp(220px, 24vw, 340px); height: auto;
  transform: translateY(-46%);
  overflow: visible;
  pointer-events: none;
}
.cta__amp path {
  fill: none;
  stroke: rgba(255, 255, 255, .28);
  stroke-width: 1.25px;
  vector-effect: non-scaling-stroke;
}

/* Kontakt */
.contact { background: var(--petrol-120); color: var(--white); padding: var(--section) 0; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: end;
}
.contact__title {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 2.5rem;
  text-wrap: balance;
}
.contact__person {
  font-style: normal;
  border-left: 1px solid rgba(255, 255, 255, .4);
  padding-left: 1.75rem;
}
.contact__team { display: flex; margin: -.75rem 0 2.5rem; }
.contact__face {
  width: clamp(56px, 4.5vw, 68px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--petrol-120);
}
.contact__face + .contact__face { margin-left: -10px; }
.contact__photo {
  width: clamp(96px, 8vw, 120px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}
.contact__label { color: rgba(255, 255, 255, .75); margin-bottom: .75rem; }
.contact__name {
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.contact__role { opacity: .85; margin-bottom: 1.5rem; }
.contact__links a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.contact__links a:hover { border-color: var(--white); }

/* Footer */
.site-footer { padding: 3rem 0; font-size: .9375rem; }
.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem 4rem;
  align-items: end;
}
.site-footer__logo { width: clamp(72px, 7vw, 96px); }
.site-footer__address { line-height: 1.45; }
.site-footer__nav { display: flex; gap: 1.75rem; }
.site-footer__nav button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--petrol);
  border-bottom: 1px solid currentColor;
}
.site-footer__nav button:hover { color: var(--petrol-120); }

/* Lightbox (Impressum, Datenschutz) */
.lightbox {
  width: min(760px, calc(100% - 2rem));
  max-height: calc(100dvh - 4rem);
  padding: 0; border: 0;
  color: var(--ink);
  background: var(--white);
}
.lightbox::backdrop { background: rgba(0, 22, 31, .6); }
.lightbox[open] { animation: lb-in .2s ease-out; }
@keyframes lb-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }
.lightbox__inner { position: relative; padding: clamp(2rem, 5vw, 3.5rem); }
.lightbox__close {
  position: absolute; top: .75rem; right: .75rem;
  width: 2.75rem; height: 2.75rem;
  background: none; border: 0; cursor: pointer;
  font-size: 2rem; line-height: 1; color: var(--petrol);
}
.lightbox__close:hover { color: var(--petrol-120); }
.lightbox h2 { font-size: var(--fs-h2); font-weight: 500; color: var(--petrol); margin-bottom: 1.5rem; }
.lightbox h3 { font-size: var(--fs-lead); font-weight: 500; line-height: 1.2; color: var(--petrol); margin: 2em 0 .5em; }
.lightbox h4 { font-size: var(--fs-body); font-weight: 600; line-height: 1.25; margin: 1.75em 0 .4em; }
.lightbox h5 { font-size: var(--fs-body); font-weight: 600; margin: 1.25em 0 .3em; }
.lightbox h3 + h4 { margin-top: .75em; }
.lightbox p + p { margin-top: 1em; }
.lightbox ul { margin: .75em 0 1em; padding-left: 1.25em; }
.lightbox li + li { margin-top: .35em; }
.lightbox a { color: var(--petrol); text-underline-offset: .15em; overflow-wrap: anywhere; }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid, .contact__grid, .benefits__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { justify-self: start; max-width: 520px; margin: 0 0 6%; }
  .hero__amp { left: -2%; }
  .services__list li { grid-template-columns: 4rem minmax(0, 1fr); }
  .scan-plan { grid-template-columns: minmax(0, 1fr); }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 480px) {
  .btn { font-size: min(.9375rem, 4.1vw); letter-spacing: .04em; padding-inline: 1.25em; }
  .contact__person {
    border-left: 0; padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .4); padding-top: 1.75rem;
  }
}
