/* bauzwerke – Entwurf 2026
   Layout: ruhiges 12-Spalten-Raster, Bilder randlos, Text schmal; Schraffur als Platzhalter für Fotos. */
:root {
  --bg: #fafaf8;          /* Papier */
  --fg: #1d1e1c;          /* Graphit */
  --muted: #6c6e68;       /* Bleistift */
  --line: #d9dad4;        /* Hilfslinie */
  --tone: #e9eae5;        /* Bildfläche */
  --hatch: #cfd1c9;       /* Schraffur */
  --accent: #4f5f45;      /* Moosgrün: Bestand, Nachhaltigkeit */
  --font: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.375rem;
  --step-2: 2rem;
  --step-3: clamp(2.5rem, 6vw, 4.5rem);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141513; --fg: #ecece7; --muted: #9a9c94; --line: #2e302b;
    --tone: #1f211d; --hatch: #343630; --accent: #a5b892; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141513; --fg: #ecece7; --muted: #9a9c94; --line: #2e302b;
  --tone: #1f211d; --hatch: #343630; --accent: #a5b892; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 350;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }

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

/* Kopf */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
}
.site-head .wrap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding-block: 22px; flex-wrap: wrap;
}
.wordmark { font-size: var(--step-1); font-weight: 500; letter-spacing: 0.01em; text-decoration: none; }
.wordmark span { font-weight: 300; color: var(--muted); }
.nav { display: flex; gap: clamp(16px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; }

/* Bilder und Platzhalter */
.ph {
  position: relative; width: 100%; max-width: 100%;
  aspect-ratio: var(--ratio, 3 / 2);
  background:
    repeating-linear-gradient(45deg, var(--hatch) 0 1px, transparent 1px 11px),
    var(--tone);
  overflow: hidden;
}
.ph > span {
  position: absolute; left: 14px; bottom: 12px;
  font-size: var(--step--1); color: var(--muted); letter-spacing: 0.04em;
  background: var(--tone); padding: 2px 8px;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* Start */
.hero { padding-block: 8px 0; }
.hero .ph { --ratio: 21 / 9; }
.hero figure { margin: 0; }
.hero figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--muted); letter-spacing: 0.04em; }
.lead {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  padding-block: clamp(48px, 8vw, 112px);
}
.lead p { grid-column: 1 / span 8; font-size: var(--step-2); font-weight: 300; line-height: 1.3; text-wrap: balance; }
.lead .hero-cap { grid-column: 10 / -1; align-self: end; font-size: var(--step--1); color: var(--muted); }

.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-block: 18px 32px;
}
.section-head h2 { font-size: var(--step-1); font-weight: 400; }

/* Projekt-Raster */
.filters { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.filters button {
  font: inherit; font-size: var(--step--1); color: var(--muted);
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  border-bottom: 1px solid transparent;
}
.filters button[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.filters button:hover { color: var(--fg); }

.grid {
  display: grid; gap: clamp(32px, 4vw, 56px) clamp(16px, 2.5vw, 32px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  padding-bottom: clamp(64px, 10vw, 128px);
}
.card { display: grid; gap: 12px; text-decoration: none; min-width: 0; }
.card .ph { --ratio: 4 / 3; transition: opacity .25s; }
.card:hover .ph { opacity: .85; }
.card-meta { display: grid; grid-template-columns: 3.2em 1fr auto; gap: 0 10px; align-items: baseline; }
.card-no { font-variant-numeric: tabular-nums; color: var(--muted); }
.card-title { font-weight: 450; }
.card-year { font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--step--1); }
.card-place { grid-column: 2 / -1; color: var(--muted); font-size: var(--step--1); }
.card.is-pending { cursor: default; }
.card.is-pending .card-title::after { content: " · in vorbereitung"; color: var(--muted); font-weight: 350; font-size: var(--step--1); }

/* Projektseite */
.project-hero .ph { --ratio: 16 / 9; }
.project-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  padding-block: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 64px);
}
.project-head h1 { grid-column: 1 / span 7; font-size: var(--step-3); font-weight: 300; letter-spacing: -0.01em; }
.project-head h1 .no { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 0.25em; }
.project-head .sub { grid-column: 1 / span 7; font-size: var(--step-1); font-weight: 300; color: var(--muted); }
.project-body {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  padding-bottom: clamp(48px, 7vw, 96px);
}
.project-text { grid-column: 1 / span 7; display: grid; gap: 1.1em; max-width: 62ch; min-width: 0; }
.facts { grid-column: 9 / -1; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; align-content: start; font-size: var(--step--1); min-width: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.gallery { display: grid; gap: clamp(16px, 2.5vw, 32px); grid-template-columns: 1fr 1fr; padding-bottom: clamp(48px, 7vw, 96px); }
.gallery .wide { grid-column: 1 / -1; --ratio: 16 / 9; }
.gallery .tall { --ratio: 2 / 3; }
.gallery figure, .project-hero figure { margin: 0; }
.gallery figcaption, .project-hero figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--muted); letter-spacing: 0.04em; }
.pager {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-block: 24px clamp(48px, 7vw, 96px);
}
.pager a { text-decoration: none; }
.pager small { display: block; color: var(--muted); font-size: var(--step--1); }

/* Textseiten (büro, kontakt, impressum) */
.page-head { padding-block: clamp(48px, 8vw, 112px) clamp(32px, 5vw, 64px); }
.page-head h1 { font-size: var(--step-3); font-weight: 300; letter-spacing: -0.01em; }
.split {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  border-top: 1px solid var(--line); padding-block: 24px clamp(48px, 7vw, 96px);
}
.split > h2 { grid-column: 1 / span 3; font-size: var(--step-0); font-weight: 450; }
.split > .body { grid-column: 4 / span 7; display: grid; gap: 1.1em; min-width: 0; }
.split .statement { font-size: var(--step-1); font-weight: 300; line-height: 1.45; }
.haltung-fotos { display: grid; grid-template-columns: 9fr 4fr; gap: clamp(16px, 2.5vw, 32px); margin-top: 1em; }
.haltung-fotos img { width: 100%; }
@media (max-width: 700px) { .haltung-fotos { grid-template-columns: 1fr; } }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.services li { border-bottom: 1px solid var(--line); padding-block: 12px; display: grid; grid-template-columns: 1fr auto; gap: 16px; }
.services li span:last-child { color: var(--muted); font-size: var(--step--1); }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.team .ph { --ratio: 4 / 5; }
.person { display: grid; gap: 10px; }
.person h3 { font-size: var(--step-0); font-weight: 450; }
.person p { color: var(--muted); font-size: var(--step--1); }
.contact-lines { font-size: var(--step-1); font-weight: 300; line-height: 1.5; }
.small { font-size: var(--step--1); color: var(--muted); }
.legal h3 { font-size: var(--step-0); font-weight: 450; margin-top: 0.6em; }
.legal ul { margin: 0; padding-left: 1.2em; }

/* Fuß */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap {
  display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  padding-block: 28px 40px; font-size: var(--step--1); color: var(--muted);
}
.site-foot nav { display: flex; gap: 24px; }
.site-foot a { text-decoration: none; }

@media (max-width: 820px) {
  .lead p, .lead .hero-cap, .project-head h1, .project-head .sub,
  .project-text, .facts, .split > h2, .split > .body { grid-column: 1 / -1; }
  .facts { border-top: 1px solid var(--line); padding-top: 20px; }
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
