/* BauFix Greilich – Website
   Farben und Schrift aus dem Markenauftritt. Schrift lokal (Archivo, SIL Open Font License). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #141416;
  --ink: #1C1D20;
  --steel: #2A2C30;
  --grey: #3A3C41;
  --muted: #676460;
  --line: #DAD7D0;
  --paper: #F3F2EE;
  --white: #FFFFFF;
  --gold: #C9971E;
  --gold-light: #D6A62C;
  --gold-dark: #9C7414;
  --sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

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

/* ---------- type ---------- */
h1, h2, h3 {
  font-stretch: 74%;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 8.2vw, 104px); }
h2 { font-size: clamp(34px, 5vw, 58px); }
h3 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: .015em; }
p { margin: 0; }
.eyebrow {
  font-size: 13px;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; flex: none; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px;
  font-family: var(--sans); font-size: 15px; font-weight: 700; font-stretch: 108%;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: 2px;
  transition: background-color .15s, color .15s, border-color .15s;
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-light); }
.btn-line { border-color: currentColor; color: var(--white); }
.btn-line:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--steel); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  text-decoration: none; font-size: 14px; font-weight: 650; font-stretch: 108%;
  letter-spacing: .08em; text-transform: uppercase; color: var(--grey);
}
.nav a:not(.btn):hover { color: var(--black); box-shadow: inset 0 -2px 0 var(--gold); }
.nav .btn { padding: 11px 18px; font-size: 14px; }
@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .brand img { height: 32px; }
}
@media (max-width: 420px) {
  .nav .btn span { display: none; }
  .nav .btn { padding: 11px 13px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--black);
  color: var(--white);
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(64px, 11vw, 140px) clamp(56px, 9vw, 110px); display: grid; gap: 28px; }
.hero h1 span { color: var(--gold); }
.hero .lead { color: #D2D0CA; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-mark {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(58vw, 640px); opacity: .9; pointer-events: none;
}
.hero-mark .w { fill: #1E1F23; }
.hero-mark .g { fill: var(--gold); opacity: .55; }
@media (max-width: 760px) { .hero-mark { width: 88vw; right: -30%; top: 30%; opacity: .55; } }
.facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 18px 0 0; padding: 20px 0 0;
  border-top: 1px solid rgba(255,255,255,.14); list-style: none;
  font-size: 14px; font-weight: 600; font-stretch: 108%; letter-spacing: .12em; text-transform: uppercase; color: #BDBAB3;
}
.facts li { display: flex; align-items: center; gap: 10px; }
.facts li::before { content: ""; width: 8px; height: 8px; background: var(--gold); flex: none; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.section-head p { color: var(--muted); }
.paper { background: var(--paper); }

/* services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.service { background: var(--white); padding: 32px 28px 34px; display: grid; gap: 14px; align-content: start; }
.service svg { width: 44px; height: 44px; }
.service p { color: var(--grey); font-size: 16px; }
.service ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--grey); }
.service li { display: flex; gap: 10px; }
.service li::before { content: ""; width: 10px; height: 2px; background: var(--gold); margin-top: .75em; flex: none; }

/* process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 3px solid var(--black); }
.steps li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-stretch: 74%; font-weight: 760; font-size: 44px; line-height: 1; color: var(--gold);
}
.steps p { color: var(--grey); font-size: 16px; }

/* references */
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.ref { display: grid; gap: 0; background: var(--white); border: 1px solid var(--line); }
.ref-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel); position: relative; }
.ref-img img { width: 100%; height: 100%; object-fit: cover; }
.ref-img .tag {
  position: absolute; left: 14px; top: 14px; background: var(--gold); color: var(--black);
  font-size: 12px; font-weight: 700; font-stretch: 108%; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px;
}
.ref-body { padding: 22px 24px 26px; display: grid; gap: 8px; }
.ref-body h3 { font-size: 26px; }
.ref-meta { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.ref-body p { color: var(--grey); font-size: 16px; }
.ref.placeholder .ref-img { display: grid; place-items: center; background: var(--black); }
.ref.placeholder .ref-img svg { width: 42%; opacity: .9; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about figure { margin: 0; position: relative; }
.about figure::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 46%; height: 46%; border-left: 4px solid var(--gold); border-bottom: 4px solid var(--gold); pointer-events: none; }
.about-text { display: grid; gap: 18px; }
.about-text p { color: var(--grey); max-width: 62ch; }
.about-sign { font-weight: 700; color: var(--ink); }
.about-sign span { display: block; font-weight: 500; color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about figure { max-width: 420px; } }

/* contact */
.contact { background: var(--black); color: var(--white); }
.contact .section-head p { color: #BDBAB3; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 2px; background: #2A2B2F; border: 2px solid #2A2B2F; }
.contact-item { background: var(--black); padding: 28px; display: grid; gap: 8px; align-content: start; }
.contact-item .label { font-size: 13px; font-weight: 650; font-stretch: 112%; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.contact-item a, .contact-item .value { font-size: clamp(20px, 2.4vw, 26px); font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.contact-item a:hover { color: var(--gold-light); }
.contact-item small { color: #9E9B94; font-size: 14px; }
.contact .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* footer */
.site-footer { background: #0D0D0F; color: #9E9B94; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-block: 34px; }
.site-footer img { height: 34px; width: auto; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: #D2D0CA; }
.site-footer a:hover { color: var(--gold-light); }

/* legal pages */
.legal { padding-block: clamp(48px, 7vw, 90px); }
.legal .wrap { max-width: 820px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 10px; }
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 26px; }
.legal p, .legal li { color: var(--grey); }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal address { font-style: normal; color: var(--ink); line-height: 1.7; }
.legal .stand { font-size: 14px; color: var(--muted); margin-top: 20px; }

/* projects */
.projects { display: grid; gap: clamp(56px, 8vw, 96px); }
.project { display: grid; gap: 22px; }
.project-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(22px, 4vw, 48px); align-items: center; }
.project-img { margin: 0; position: relative; }
.project-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-img .tag, .tag {
  position: absolute; left: 14px; top: 14px; background: var(--gold); color: var(--black);
  font-size: 12px; font-weight: 700; font-stretch: 108%; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px;
}
.project-img figcaption, .thumbs figcaption {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px;
}
.project-text { display: grid; gap: 12px; }
.project-text h3 { font-size: clamp(28px, 3.2vw, 38px); }
.project-text p { color: var(--grey); }
.project-text ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--grey); font-size: 16px; }
.project-text li { display: flex; gap: 10px; }
.project-text li::before { content: ""; width: 10px; height: 2px; background: var(--gold); margin-top: .78em; flex: none; }
.ref-meta { font-size: 13px; font-weight: 650; font-stretch: 108%; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
@media (max-width: 860px) { .project-main { grid-template-columns: 1fr; } }

.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.pair { margin: 0; display: grid; gap: 8px; }
.pair figcaption { font-weight: 700; font-stretch: 90%; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.pair-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ba { position: relative; }
.ba img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ba-l { position: absolute; left: 8px; bottom: 8px; background: rgba(20,20,22,.82); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; }
.ba-l.gold { background: var(--gold); color: var(--black); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.thumbs figure { margin: 0; }
.thumbs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
a.zoom { display: block; cursor: zoom-in; }
a.zoom:hover img { filter: brightness(1.06); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10,10,12,.9); }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; height: auto; }
.lb-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; border: 0; background: var(--gold); color: var(--black); font-size: 28px; line-height: 1; cursor: pointer; }
