/* ==========================================================================
   Lüchinger Maler GmbH – Übergangsseite
   Design & Umsetzung: vum Hutter
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --blue: #1f88c3;
  --blue-dark: #1872a4;
  --grey: #9e9e9e;
  --line: rgba(255, 255, 255, 0.15);

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Fluid zwischen 390 px (Mobile) und 1920 px (Desktop) */
  --pad: clamp(24px, -0.47px + 6.275vw, 120px);
  --sec-y: clamp(80px, 62.16px + 4.575vw, 150px);
  --label: clamp(13px, 12.49px + 0.131vw, 15px);
  --body-lg: clamp(17px, 15.73px + 0.327vw, 22px);
  --nav-h: 88px;
}

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

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

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

section[id] { scroll-margin-top: var(--nav-h); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--white);
  color: var(--black);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { top: 16px; }

/* ---------- Bausteine ---------- */

.label {
  color: var(--blue);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}

.lead {
  font-size: var(--body-lg);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  max-width: 40em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { background: rgba(255, 255, 255, 0.85); }
.btn--outline { border: 1.5px solid rgba(255, 255, 255, 0.4); color: var(--white); }
.btn--outline:hover { border-color: var(--white); }
.btn--lg { min-height: 62px; padding: 20px 42px; font-size: 15px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 11.53px + 2.17vw, 50px) var(--pad);
  padding-top: max(clamp(20px, 11.53px + 2.17vw, 50px), env(safe-area-inset-top));
  transition: padding 0.3s ease, background-color 0.3s ease;
}
.nav.is-scrolled {
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: 14px;
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav__logo { display: block; flex: none; }
.nav__logo img {
  width: clamp(130px, 108px + 5.62vw, 216px);
  height: auto;
  transition: width 0.3s ease;
}
.nav.is-scrolled .nav__logo img { width: clamp(120px, 104px + 4.1vw, 160px); }

.nav__links { display: flex; gap: 44px; margin-left: auto; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 0;
  transition: color 0.2s ease;
}
.nav__links a:hover,
.nav__links a[aria-current] { color: var(--white); }
.nav__cta { min-height: 48px; padding: 14px 28px; margin-left: 20px; }

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}
.nav__burger span { display: block; width: 26px; height: 2px; background: var(--white); }
.nav__burger span:last-child { width: 18px; }

@media (max-width: 899px) {
  :root { --nav-h: 76px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ---------- Mobile-Menü ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) 20px max(40px, env(safe-area-inset-bottom)) 24px;
  background: var(--black);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }

.menu__head { display: flex; align-items: center; justify-content: space-between; }
.menu__head .nav__logo img { width: 130px; }

.menu__close, .legal__close {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
}
.menu__close span, .legal__close span {
  position: absolute;
  left: 9px;
  top: 21px;
  width: 26px;
  height: 2px;
  background: var(--white);
  transform: rotate(45deg);
}
.menu__close span:last-child, .legal__close span:last-child { transform: rotate(-45deg); }

.menu__links { display: flex; flex-direction: column; padding-top: 64px; }
.menu__links a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: clamp(32px, 10vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}
.menu__nr { font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: var(--blue); }

.menu__actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 48px; }
.menu__actions .btn { min-height: 58px; font-size: 15px; }
.menu__info { font-size: 13px; line-height: 1.6; color: var(--grey); }
.menu__info a { text-decoration: none; }

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(140px, 10vw + 100px, 250px) var(--pad) clamp(48px, 40px + 1.5vw, 64px);
  overflow: hidden;
  background: #0d2a3b; /* Fallback, solange kein Bild geladen ist */
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.hero__inner { position: relative; }

.hero__title {
  font-size: min(calc((100vw - 2 * var(--pad)) / 7.05), 230px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__title em { font-style: normal; color: var(--blue); }

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 60px;
  margin-top: clamp(20px, 0px + 2.5vw, 48px);
}
.hero__text {
  max-width: 34em;
  font-size: clamp(17px, 16.24px + 0.196vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 767px) {
  .hero__shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.9) 100%);
  }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__text br { display: none; }
  .hero .btn { padding-inline: 22px; }
}

/* ---------- 02 Statement ---------- */

.statement {
  padding: clamp(80px, 62.16px + 4.575vw, 160px) var(--pad);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 23px + 2.3vw, 64px);
}
.statement__text {
  max-width: 21em;
  font-size: clamp(30px, 18.27px + 3.007vw, 76px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: clamp(16px, 10px + 1.5vw, 40px);
}
.facts dt {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.facts dd {
  margin-top: 8px;
  font-size: clamp(26px, 23.96px + 0.523vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
@media (max-width: 767px) {
  .facts { grid-template-columns: 1fr; }
}

/* ---------- 03 Laufband ---------- */

.marquee {
  display: flex;
  align-items: center;
  height: clamp(64px, 47.18px + 4.314vw, 130px);
  background: var(--blue);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  flex: none;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee__track span {
  flex: none;
  padding-right: 0.3em;
  font-size: clamp(28px, 20.35px + 1.961vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Fährt von rechts nach links: zwei identische Hälften, nahtlose Schleife */
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 04 Leistungen ---------- */

.services {
  padding: var(--sec-y) var(--pad);
}
.services__title {
  margin-top: 22px;
  font-size: clamp(40px, 22.16px + 4.575vw, 110px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.services__list {
  margin-top: clamp(40px, 28px + 3vw, 70px);
  border-top: 1px solid var(--line);
}
.services__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 48px;
  padding: clamp(28px, 23.5px + 1.15vw, 46px) 0;
  border-bottom: 1px solid var(--line);
}
.services__name { display: flex; align-items: center; gap: clamp(16px, 6px + 2.6vw, 56px); }
.services__nr { font-size: 15px; font-weight: 500; letter-spacing: 0.04em; color: var(--blue); }
.services__name h3 {
  font-size: clamp(28px, 19.84px + 2.092vw, 60px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.services__list p {
  flex: 0 0 min(620px, 40%);
  font-size: clamp(15px, 14.24px + 0.196vw, 18px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 899px) {
  .services__list li { flex-direction: column; align-items: flex-start; }
  .services__list p { flex-basis: auto; }
}

/* ---------- 05 Über uns ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 780fr) minmax(0, 800fr);
  align-items: center;
  gap: clamp(60px, 4vw + 20px, 100px);
  padding: var(--sec-y) var(--pad);
}
.about__people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 8px + 1vw, 24px);
}
.about__people img {
  width: 100%;
  aspect-ratio: 378 / 650;
  object-fit: cover;
  background: #222;
}
.about__people figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: clamp(12px, 10px + 0.5vw, 20px); }
.about__people strong { font-size: clamp(18px, 15.96px + 0.523vw, 26px); font-weight: 700; line-height: 1.2; }
.about__people figcaption span { font-size: clamp(13px, 11.98px + 0.261vw, 17px); color: var(--grey); line-height: 1.35; }

.about__text { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(24px, 21px + 0.65vw, 34px); }
.about__title {
  font-size: clamp(44px, 31.76px + 3.137vw, 92px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.about__hint {
  font-size: clamp(12px, 11.2px + 0.2vw, 15px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.about__text .btn { margin-top: 10px; }

@media (max-width: 1199px) {
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about__people { max-width: 620px; }
}

/* ---------- 06 Kontakt ---------- */

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 23px + 1.4vw, 50px);
  padding: clamp(100px, 74.51px + 6.536vw, 200px) var(--pad);
  text-align: center;
}
.contact__title {
  font-size: clamp(60px, 24.31px + 9.15vw, 196px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-wrap: balance;
}
.contact .lead { max-width: 30em; color: rgba(255, 255, 255, 0.65); }
.contact .btn-row { margin-top: 14px; }

@media (max-width: 599px) {
  .contact .btn-row { flex-direction: column; align-items: center; }
}

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

.footer {
  padding: 0 var(--pad) max(40px, env(safe-area-inset-bottom));
}
.footer__cols {
  display: flex;
  gap: 32px 140px;
  padding-top: clamp(48px, 40px + 2vw, 70px);
  border-top: 1px solid var(--line);
}
.footer__cols p {
  font-size: clamp(16px, 15.49px + 0.131vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}
.footer__cols a { text-decoration: none; }
.footer__cols a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer__cols .footer__head {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.footer__word {
  margin: clamp(40px, 33px + 1.8vw, 60px) 0;
  font-size: calc((100vw - 2 * var(--pad)) / 5.9);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px 30px;
  padding-top: clamp(20px, 16px + 1vw, 30px);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
}
.footer__legal { display: flex; gap: 30px; }
.footer__legal button { color: inherit; transition: color 0.2s ease; }
.footer__legal button:hover { color: var(--white); }

@media (max-width: 767px) {
  .footer__cols { flex-direction: column; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Impressum / Datenschutz ---------- */

.legal {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  padding: clamp(28px, 20px + 2vw, 56px);
  border: 0;
  border-radius: 16px;
  background: #151515;
  color: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.legal::backdrop { background: rgba(0, 0, 0, 0.75); }
.legal__close { position: absolute; top: 14px; right: 14px; }
.legal h2 {
  margin-bottom: 24px;
  padding-right: 48px;
  font-size: clamp(32px, 26px + 1.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
}
.legal h3 { margin: 28px 0 8px; font-size: 17px; font-weight: 700; }
.legal p { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--white); text-underline-offset: 3px; }
.legal__date { margin-top: 28px; font-size: 14px; color: var(--grey); }

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation-duration: 160s; }
  .nav, .nav__logo img, .menu { transition: none; }
}
