/* Inter Variable — lokal ausgeliefert, OFL-lizenziert (kein CDN) */
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* bau-bruessow — Design: Thema Bauen */
:root {
  --c-bg: #f2f0ec;          /* Beton hell */
  --c-bg-alt: #e8e6e1;
  --c-dark: #1d1f22;        /* Anthrazit */
  --c-dark-2: #2b2e33;
  --c-text: #23262a;
  --c-accent: #f39200;      /* Signalorange */
  --c-accent-dark: #d67e00;
  --c-line: rgba(29,31,34,.14);
  --font-stack: "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --maxw: 68rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__inner { transform: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
}

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-dark);
  border-bottom: 3px solid var(--c-accent);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: .8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
}
@media (max-width: 720px) {
  .nav { justify-content: center; }
  .nav__links { justify-content: center; gap: .3rem; }
  .nav__links a { padding: .3rem .6rem; font-size: .88rem; }
}
.nav__brand {
  color: #fff; text-decoration: none; font-family: var(--font-stack);
  font-size: 1.15rem; letter-spacing: .5px;
}
.nav__brand strong { color: var(--c-accent); }
.nav__links { list-style: none; display: flex; gap: .45rem; margin: 0; padding: 0; flex-wrap: wrap; }
.nav__links a {
  color: #d8d6d1; text-decoration: none !important; font-size: .95rem;
  padding: .35rem .85rem; border-radius: 999px;
  border: 1px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.nav__links a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.nav__links a[aria-current="page"],
.nav__links a.is-active {
  color: var(--c-dark); background: var(--c-accent); border-color: var(--c-accent); font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .nav__links a { transition: none; }
}

/* Hero — Bauplan-Raster + Parallax */
/* ============================================================
   PLATZHATER — echtes Foto hier ersetzen:
   assets/images/hero.svg gegen eigenes Bild tauschen
   (z.B. hero.jpg) und die Zeile unten anpassen.
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: url("../images/hero.svg") center / cover no-repeat; /* <-- Platzhalter — echtes Foto hier ersetzen */
  color: #1d1f22;
  min-height: 72vh;
  display: flex; align-items: center;
}
/* Hero-Scrim: dunkel, damit weisse Texte AA erfuellen (4.5:1 geprueft). */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,22,25,.78) 0%, rgba(20,22,25,.45) 60%, rgba(20,22,25,.25) 100%);
}
.hero__inner { position: relative; z-index: 1; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(45deg, var(--c-accent) 0 18px, var(--c-dark-2) 18px 36px);
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.2rem; width: 100%; }
.hero__kicker { color: var(--c-accent); text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; margin: 0 0 .6rem; font-weight: 700; }
.hero h1 {
  font-family: var(--font-stack); font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1.12; margin: 0 0 .7rem; text-transform: uppercase;
  color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.hero__title {
  font-family: "Inter", var(--font-body);
  font-weight: 200; letter-spacing: .02em;
}
.hero__claim { font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: #fff; margin: 0 0 1.6rem; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.btn {
  display: inline-block; padding: .85rem 1.7rem; text-decoration: none !important;
  font-weight: 700; border-radius: 2px;
}
.btn--accent { background: var(--c-accent); color: var(--c-dark); }
.btn--accent:hover { background: var(--c-accent-dark); color: #fff; }

/* Aufmacher unter dem Hero (Thin) */
.teaser {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  padding: 3.2rem 0;
}
.teaser__text {
  max-width: 52rem; margin: 0 auto; text-align: center;
  font-family: "Inter", var(--font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.5; font-weight: 200; letter-spacing: .01em;
  color: var(--c-dark);
}
.teaser__text::before {
  content: ""; display: block; width: 64px; height: 4px;
  background: var(--c-accent); margin: 0 auto 1.3rem;
}

/* Sections */
.section { padding: 4.2rem 0; }
.section--alt { background: var(--c-bg-alt); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.section--kontakt { background: var(--c-dark-2); color: #e8e6e1; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.2rem; }
h2 {
  font-family: var(--font-stack); text-transform: uppercase; letter-spacing: .03em;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 1.4rem;
  position: relative; padding-bottom: .55rem;
}
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; background: var(--c-accent); }
.section--kontakt h2::after { left: 0; }
.lead { font-size: 1.12rem; font-weight: 500; }

/* Leistungen — Kachel-Liste */
.leistungen {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .9rem;
}
.leistungen li {
  background: #fff; border-left: 5px solid var(--c-accent);
  padding: .9rem 1.1rem; border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* Kontakt */
.kontakt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; }
.kontakt-block h3 {
  color: var(--c-accent); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; margin: 0 0 .7rem;
}
.section--kontakt address { font-style: normal; }
.section--kontakt a { color: #fff; text-decoration: none !important; border-bottom: 1px solid var(--c-accent); }
.section--kontakt .maplink { color: var(--c-accent); border-bottom: none; }
.section--kontakt a:hover { color: var(--c-accent); }

/* Footer */
.site-footer { background: var(--c-dark); color: #a9a7a2; padding: 1.4rem 0; font-size: .9rem; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.site-footer a { color: #d8d6d1; text-decoration: none !important; }
.site-footer a:hover { color: var(--c-accent); }
.footer-heading {
  margin: 0 0 .3rem; color: var(--c-accent); text-transform: uppercase;
  letter-spacing: .08em; font-size: .85rem; font-weight: 700;
}

/* Scroll-to-top */
.totop {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60;
  background: var(--c-accent); color: var(--c-dark); border: none; cursor: pointer;
  width: 3rem; height: 3rem; border-radius: 2px; font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.totop:hover { background: var(--c-accent-dark); color: #fff; }

/* Reveal (FadeIn) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Subpages */
.subpage-header { padding: 2.6rem 0 0; }
.legal h2::after { width: 44px; }

/* Leistungen-Detailseite */
.leistung { margin: 2rem 0 2.4rem; padding-bottom: 2rem; border-bottom: 2px solid var(--c-line); scroll-margin-top: 6.5rem; }
.leistung:last-of-type { border-bottom: none; margin-bottom: 0; }
.leistung h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
.leistungen-more { margin-top: 1.6rem; }
.leistungen-more a {
  display: inline-block; color: var(--c-accent-dark); font-weight: 700; text-decoration: none !important;
  border-bottom: 2px solid var(--c-accent); padding-bottom: 2px;
}
.leistungen-more a:hover { color: var(--c-dark); }

/* Kacheln auf der Startseite: direkt verlinkt, 3D-Schatten als Hover-Signal */
.leistungen li { transition: transform .25s ease, box-shadow .25s ease; }
.leistungen li:has(a:hover), .leistungen li:has(a:focus-visible) {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18), 0 4px 8px rgba(0,0,0,.10);
}
.leistungen a { color: inherit; text-decoration: none !important; display: block; cursor: pointer; }
.leistungen a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .leistungen li { transition: none; transform: none !important; }
}
