/* ==========================================================================
   GREINER BAU — Design Tokens + Base
   ========================================================================== */

:root {
  /* Palette — dunkel-dominant, industriell */
  --bg: #0a0a0a;
  --bg-1: #111111;
  --bg-2: #161616;
  --bg-3: #1d1d1d;
  --line: #262626;
  --line-strong: #333333;
  --fg: #f4f4f2;
  --fg-dim: #a8a8a4;
  --fg-mute: #6a6a66;

  /* Akzent — Bau-Gelb (klassisch industriell, hohe Sichtbarkeit) */
  --accent: #ffc713;
  --accent-2: #ffd744;
  --accent-ink: #0a0a0a;
  --accent-rgb: 255, 199, 19;

  /* Typo */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(20px, 3vw, 56px);
  --section-y: clamp(80px, 10vw, 160px);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-bold: cubic-bezier(.7, 0, .2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ==========================================================================
   Type scale — bold, brutalistisch
   ========================================================================== */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.92;
  text-transform: uppercase;
}

.h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 9vw, 168px); line-height: .9; letter-spacing: -0.03em; text-transform: uppercase; }
.h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6vw, 96px);  line-height: .95; letter-spacing: -0.025em; text-transform: uppercase; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 56px); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.h4 { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 1.8vw, 28px);  line-height: 1.1; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--fg-dim);
  max-width: 64ch;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

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

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--accent:hover { background: var(--accent-2); transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn .arrow {
  display: inline-block;
  transition: transform .25s var(--ease);
}
.btn:hover .arrow { transform: translateX(6px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header / Mega-Menü
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom-color: var(--line);
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
/* Bildmarke + Schriftzug sind freigestellte PNGs (weiss auf Transparenz) */
.site-header .brand img { display: block; }
.site-header .brand-type { height: 15px; width: auto; }
@media (max-width: 560px) {
  /* Auf schmalen Schirmen nur noch die Bildmarke */
  .site-header .brand-type { display: none; }
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  cursor: pointer;
  transition: color .2s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--accent); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background .25s var(--ease);
}
.header-cta:hover { background: var(--accent-2); }

/* Mega menu panel */
.mega {
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.mega.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mega-grid {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 0;
  max-width: var(--container);
  margin-inline: auto;
  padding: 56px var(--gutter);
}
.mega-feature {
  border-right: 1px solid var(--line);
  padding-right: 56px;
}
.mega-feature .eyebrow { margin-bottom: 16px; }
.mega-feature h3 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.mega-feature p { color: var(--fg-dim); margin: 0 0 28px; max-width: 38ch; }
.mega-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 56px;
  padding-left: 56px;
}
.mega-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color .2s var(--ease), padding .25s var(--ease);
}
.mega-item:hover { color: var(--accent); padding-left: 8px; }
.mega-item .num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #050505;
  border-top: 1px solid var(--line);
  padding-block: 80px 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand-mark { width: 64px; height: 64px; margin-bottom: 24px; }
.footer-brand .brand-mark img { display: block; width: 100%; height: 100%; }
.footer-brand .footer-tag {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin: 0 0 24px;
}
.footer-brand address {
  font-style: normal;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.7;
}
.footer-brand address a { transition: color .2s var(--ease); }
.footer-brand address a:hover { color: var(--accent); }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a { color: var(--fg-dim); font-size: 14px; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom .legal a:hover { color: var(--accent); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
  background: #000;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.85) 100%),
    linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 50%);
}
.hero-media .hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 18s var(--ease) infinite alternate;
}
@keyframes heroZoom {
  0%   { transform: scale(1.05) translateY(0); }
  100% { transform: scale(1.15) translateY(-2%); }
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 56px;
}
.hero-content h1 {
  margin: 0;
  font-size: clamp(64px, 11vw, 200px);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.86;
}
.hero-content h1 .accent { color: var(--accent); }
.hero-content h1 .outline {
  -webkit-text-stroke: 2px var(--fg);
  color: transparent;
}
.hero-meta {
  display: grid;
  gap: 24px;
  min-width: 280px;
  padding-bottom: 8px;
}
.hero-meta .lead { color: var(--fg); font-size: 18px; max-width: 30ch; }
.hero-marquee {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
  z-index: 3;
}
.hero-marquee-track {
  display: flex;
  gap: 64px;
  padding: 16px 0;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.hero-marquee-track span { display: inline-flex; align-items: center; gap: 64px; }
.hero-marquee-track span::after {
  content: "■";
  color: var(--accent);
  font-size: 8px;
  margin-left: 64px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.scroll-hint {
  position: absolute;
  bottom: 80px;
  right: var(--gutter);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0.2); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   Section: Sparten / Geschäftsbereiche (Kachel-Grid)
   ========================================================================== */

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 72px;
}
.section-head h2 { margin: 16px 0 0; }
.section-head .lead { margin: 0; }

.sparten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.sparte {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-1);
  overflow: hidden;
  cursor: pointer;
}
.sparte-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.7);
  transition: filter .5s var(--ease), transform .8s var(--ease);
}
.sparte:hover .sparte-img {
  filter: grayscale(0) brightness(0.85);
  transform: scale(1.06);
}
.sparte::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}
.sparte-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
}
.sparte-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.sparte-bottom { display: grid; gap: 12px; }
.sparte-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0;
}
.sparte-desc {
  font-size: 14px;
  color: var(--fg-dim);
  max-width: 32ch;
  margin: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .35s var(--ease), max-height .35s var(--ease);
}
.sparte:hover .sparte-desc { opacity: 1; max-height: 100px; }
.sparte-arrow {
  position: absolute;
  top: 32px; right: 32px;
  z-index: 2;
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease);
}
.sparte:hover .sparte-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-45deg);
}

/* ==========================================================================
   Pair-Diptychs: Innen/Außen, Alt/Neu, Oben/Unten
   ========================================================================== */

.pairs {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  background: var(--bg);
}
.pair-dim {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.pair-dim-line { display: none; }
.pair-dim-num {
  display: none; /* desktop: nur Glyph; auf Mobile via Media-Query eingeblendet */
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--bg);
  padding: 4px 10px;
  border: 1px solid var(--accent);
}
.pair-dim-glyph {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 0 0 8px var(--bg);
}
.pole {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-1);
}
.pole-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) brightness(0.55);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.pole:hover .pole-img {
  filter: grayscale(0) brightness(0.8);
  transform: scale(1.04);
}
.pole::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.9) 100%);
  z-index: 1;
}
.pole-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
}
.pole--left .pole-content { align-items: flex-start; }
.pole--right .pole-content { align-items: flex-end; text-align: right; }
.pole-label {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.88;
  font-size: clamp(56px, 8vw, 132px);
  margin: 0;
}
.pole--left .pole-label { color: var(--fg); }
.pole--right .pole-label {
  -webkit-text-stroke: 2px var(--fg);
  color: transparent;
}
.pole:hover .pole-label { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.pole-foot {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 36ch;
}
.pole-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-dim);
  margin: 0;
}
.pole-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pole--right .pole-services { justify-content: flex-end; }
.pole-services li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   Stats / Zahlen
   ========================================================================== */

.stats-section {
  background: var(--bg-1);
  border-block: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 56px 40px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-num .unit {
  font-size: 0.4em;
  color: var(--accent);
  font-weight: 700;
}
.stat-label {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.stat-desc {
  margin-top: 12px;
  font-size: 14px;
  color: var(--fg-mute);
  max-width: 24ch;
}

/* ==========================================================================
   Über uns - 50/50 Split
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-2);
}
.split-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.split-media .badge {
  position: absolute;
  top: 24px; left: 24px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.split-content h2 { margin: 16px 0 32px; }
.split-content p { color: var(--fg-dim); margin: 0 0 24px; max-width: 52ch; line-height: 1.7; }
.split-content .signature {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
}
.split-content .signature-name { font-weight: 700; font-size: 15px; }
.split-content .signature-role { font-size: 13px; color: var(--fg-dim); }

/* ==========================================================================
   Referenzen / Projekte
   ========================================================================== */

.projects-list {
  border-top: 1px solid var(--line);
}
.project-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.5fr 1fr 80px;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding .35s var(--ease), background .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.project-row:hover {
  padding-inline: 24px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.06));
}
.project-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
}
.project-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin: 0;
  transition: color .25s var(--ease);
}
.project-row:hover .project-name { color: var(--accent); }
.project-meta {
  font-size: 14px;
  color: var(--fg-dim);
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  display: inline-block;
  width: fit-content;
}
.project-arrow {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  justify-self: end;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.project-row:hover .project-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-45deg);
}
.project-preview {
  position: absolute;
  top: 50%;
  left: 38%;
  transform: translateY(-50%) scale(.8);
  width: 280px;
  height: 180px;
  background-size: cover;
  background-position: center;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .35s var(--ease);
  border: 1px solid rgba(255,255,255,.2);
}
.project-row:hover .project-preview {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* ==========================================================================
   News
   ========================================================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.news-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color .25s var(--ease), transform .35s var(--ease);
}
.news-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.news-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.news-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.5));
}
.news-body { padding: 28px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.news-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.news-meta .cat { color: var(--accent); }
.news-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  transition: color .25s var(--ease);
}
.news-card:hover .news-title { color: var(--accent); }
.news-excerpt { font-size: 14px; color: var(--fg-dim); margin: 0; flex: 1; }
.news-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }

/* ==========================================================================
   Sustainability — full bleed feature block
   ========================================================================== */

.feature-block {
  position: relative;
  padding: 120px var(--gutter);
  overflow: hidden;
  background: #0e1a14;
  isolation: isolate;
}
.feature-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(74, 167, 110, 0.18), transparent 60%),
    radial-gradient(600px 600px at 0% 100%, rgba(var(--accent-rgb), 0.06), transparent 60%);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: var(--container);
  margin-inline: auto;
  align-items: center;
}
.feature-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
}
.feature-stats .stat {
  background: rgba(0,0,0,.3);
  padding: 32px;
  border: 0;
}
.feature-stats .stat-num { font-size: 56px; }
.feature-stats .stat-num .unit { color: #4aa76e; }

/* ==========================================================================
   Standorte / Karte
   ========================================================================== */

.locations {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: var(--bg-1);
  border: 1px solid var(--line);
}
.locations-list {
  padding: 56px;
  display: flex;
  flex-direction: column;
}
.locations-list h2 { margin: 16px 0 40px; }
.locations-items { list-style: none; padding: 0; margin: 0; flex: 1; }
.location {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  transition: padding .25s var(--ease);
}
.location:hover { padding-left: 12px; }
.location.is-active { padding-left: 12px; }
.location.is-active .loc-name { color: var(--accent); }
.location.is-active .loc-dot { background: var(--accent); transform: scale(1.4); box-shadow: 0 0 0 6px rgba(var(--accent-rgb),.22); }
.loc-dot {
  width: 8px; height: 8px;
  background: var(--fg-mute);
  border-radius: 50%;
  margin-left: 12px;
  transition: all .25s var(--ease);
}
.loc-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: color .25s var(--ease);
}
.loc-meta { font-size: 13px; color: var(--fg-dim); margin-top: 4px; }
.loc-type {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
}
.locations-map {
  position: relative;
  background: #0d0d0d;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 600px;
  overflow: hidden;
}

/* ==========================================================================
   CTA Final
   ========================================================================== */

.cta-final {
  padding: 160px var(--gutter);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.cta-final h2 {
  font-size: clamp(64px, 10vw, 180px);
  margin: 0 0 56px;
  max-width: 14ch;
}
.cta-final h2 .accent { color: var(--accent); }
.cta-final-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-final::before {
  content: "GREINER BAU GREINER BAU GREINER BAU";
  position: absolute;
  bottom: -20px;
  left: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16vw;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.03);
  white-space: nowrap;
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   Page Hero (Subpages)
   ========================================================================== */

.page-hero {
  padding: 200px var(--gutter) 100px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 32px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--fg-mute); }
.breadcrumb .current { color: var(--fg); }

/* ==========================================================================
   Reveal Animation Hooks
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ==========================================================================
   Accessibility: prefers-reduced-motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-img { animation: none !important; }
  .hero-marquee-track { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .sparten-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat:nth-child(2) { border-right: 0; }
  .stats-grid .stat:nth-child(1), .stats-grid .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .feature-grid, .locations { grid-template-columns: 1fr; gap: 40px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .hero-content { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: 60px 1fr 60px; }
  .project-row .project-meta, .project-row .project-tag { display: none; }

  /* Pair-Diptychs: gestapelt — Glyph zwischen, nicht unter beiden Polen */
  .pair {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }
  .pole--left  { order: 1; }
  .pair-dim    { order: 2; }
  .pole--right { order: 3; }
  .pair-dim {
    position: static;
    transform: none;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    background: var(--bg);
    border-block: 1px solid var(--line);
    pointer-events: auto;
  }
  .pair-dim-line {
    display: block;
    flex: 1;
    height: 1px;
    background: var(--line-strong);
  }
  .pair-dim-glyph {
    box-shadow: none;
    width: 48px;
    height: 48px;
    font-size: 22px;
    flex-shrink: 0;
  }
  .pair-dim-num {
    display: inline-block;
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 10px;
    white-space: nowrap;
  }
  .pair-dim-num--label { color: var(--fg-dim); }

  .pole { min-height: 380px; }
  .pole--right .pole-content { align-items: flex-start; text-align: left; }
  .pole--right .pole-services { justify-content: flex-start; }
  .pole--right .pole-label { -webkit-text-stroke: 1.5px var(--fg); }
  /* Hover-Reveal funktioniert auf Touch nicht — Beschreibung dauerhaft zeigen */
  .pole-desc { opacity: 1; max-height: none; }
}
@media (max-width: 720px) {
  .site-header nav { display: none; }
  .sparten-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .news-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  /* Hero — tighten the 3-line motto on small screens */
  .hero { padding: 110px var(--gutter) 100px; }
  .hero-content h1 { font-size: clamp(48px, 14vw, 80px); }
  .hero-meta { min-width: 0; gap: 18px; }
  .hero-meta .lead { font-size: 16px; }
  .scroll-hint { display: none; }
  /* Pair diptychs — tighter on phones */
  .pair-dim { padding: 20px 20px; gap: 12px; }
  .pair-dim-glyph { width: 40px; height: 40px; font-size: 20px; }
  .pair-dim-num { font-size: 9px; letter-spacing: 0.14em; }
  .pole { min-height: 360px; }
  .pole-content { padding: 24px; }
  .pole-label { font-size: clamp(56px, 16vw, 96px); }
  /* Outlined-Pol auf Mobile füllen — Stroke ist bei 56px+ kaum lesbar */
  .pole--right .pole-label {
    -webkit-text-stroke: 0;
    color: var(--fg);
    opacity: .9;
  }
  .pole-services { gap: 4px; }
  .pole-services li { font-size: 10px; padding: 4px 8px; }
  .pole-foot { gap: 14px; }
  .pole-desc { font-size: 14px; }
  /* Section heads */
  .section-head { margin-bottom: 40px; }
  /* CTA */
  .cta-final { padding: 80px var(--gutter); }
  .cta-final h2 { font-size: clamp(40px, 13vw, 72px); margin-bottom: 32px; }
  /* Locations — deutlich kompakter, label-overflow vermeiden */
  .locations-list { padding: 24px 20px; }
  .locations-list h2 { margin: 12px 0 24px !important; font-size: 22px !important; }
  .location { padding: 14px 0; grid-template-columns: 20px 1fr auto; gap: 12px; }
  .loc-name { font-size: 16px; }
  .loc-meta { font-size: 12px; }
  .loc-type { font-size: 9px; padding: 4px 6px; }
  .locations-map { min-height: 320px; overflow: hidden; }
  .locations { overflow: hidden; }
  /* Stats */
  .stat { padding: 32px 24px; }
  .stat-num { font-size: clamp(48px, 14vw, 72px); }
  /* Header CTA shrink */
  .header-cta { padding: 10px 14px; font-size: 11px; }
  .site-header { padding: 14px var(--gutter); }
  .site-header .brand span { display: none; }
}

.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:32px;margin-top:48px}
.process-num{font-family:var(--mono,monospace);font-size:14px;color:var(--accent);margin-bottom:16px}
.process-label{font-size:22px;margin:0 0 12px}
.process-desc{color:var(--fg-dim);line-height:1.6;margin:0}
@media (max-width:1100px){.process-grid{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.process-grid{grid-template-columns:1fr}}
.locations-map .leaflet-container{background:#0d0d0d;font-family:var(--font-body,inherit)}
.locations-map .leaflet-tile-pane{filter:grayscale(1) invert(0.92) contrast(0.85) brightness(0.9)}
.locations-map .leaflet-popup-content-wrapper,.locations-map .leaflet-popup-tip{background:#141414;color:#f2f2f0;border:1px solid rgba(255,255,255,.15)}
.locations-map .leaflet-popup-content{font-size:13px;line-height:1.5}
.hq-address{font-size:17px;line-height:1.6;color:var(--fg);font-style:normal;margin:0 0 40px}
.hq-stats{display:flex;gap:40px;margin-bottom:40px;padding-bottom:40px;border-bottom:1px solid var(--line)}
.hq-stat-num{font-family:var(--font-display);font-weight:800;font-size:32px;color:var(--accent)}
.hq-stat-label{font-size:13px;color:var(--fg-dim);margin-top:4px}
