/* ===== SELBST-GEHOSTETE SCHRIFTEN (DSGVO, lokal statt Google) =====
   Inter (200/300/400/500), latin + latin-ext. JetBrains Mono entfernt (2026-07-07).
   Generiert aus Google-Fonts-woff2, eingebunden ohne Online-Abruf. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/inter-200-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/inter-200.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-300-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * WENT + WENT V3 - "Premium Architektur"
 * Eigene Designsprache mit Sektionen-Wechselspiel hell/dunkel
 * Stand: 2026-05-16
 *
 * Idee: keine 1:1-Kopie, eigene Identität die zeigt: 32 Jahre Erfahrung + moderne BIM-Methodik
 * Inspirationen: Editorial Magazine, Architektur-Büro-Sites Snohetta/Foster, dezent
 *
 * Editier-Tokens unten in :root anpassen.
 */

/* ===== 0. Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { line-height: 1.5; font-family: var(--font-body); color: var(--fg); background: var(--bg); overflow-x: clip; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font: inherit; }
input, textarea { font: inherit; color: inherit; }

/* ===== 1. Design Tokens ===== */
:root {
  /* Farben */
  --bg: #FAFAF7;
  --fg: #0A0A0A;
  --muted: #6B6B6B;
  --line: #DEDDD6;
  --surface-light: #F2F1EC;
  --surface-dark: #0E1014;
  --surface-dark-2: #161A20;
  /* Petrol-Tuerkis als EINZIGE Akzentfarbe (2026-06-04).
     --accent-warm bewusst auf denselben Ton gemappt -> alle frueheren
     Orange-Stellen werden automatisch Tuerkis, ohne Einzelaenderung. */
  --accent: #0E7C6E;
  --accent-warm: #0E7C6E;
  --accent-hi: #E8E1D0;
  --on-dark: #FAFAF7;
  --on-dark-muted: #8A8E96;

  /* Typografie (2026-07-07): durchgehend Inter - JetBrains Mono entfernt
     (Kundenwunsch: eine Schrift ueberall). --font-mono und --font-serif zeigen
     als Sicherheitsnetz auf Inter, damit alle bestehenden Regeln greifen. */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: var(--font-body);
  --font-serif: var(--font-display);

  /* Spacing */
  --gap: clamp(16px, 2vw, 28px);
  --pad-x: clamp(20px, 4vw, 80px);
  --section-y: clamp(64px, 7vw, 120px);
  --container: 1480px;

  /* Easing & Timing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.42, 0, 1, 1);
  --t-1: 220ms;
  --t-2: 480ms;
  --t-3: 820ms;
  --t-4: 1400ms;
}

/* ===== 2. Layout-Container ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding-block: var(--section-y); position: relative; }
.section--dark { background: var(--surface-dark); color: var(--on-dark); }
.section--dark .muted { color: var(--on-dark-muted); }
.section--light { background: var(--surface-light); }
.divider-hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.section--dark .eyebrow { color: var(--on-dark-muted); }

/* ===== 3. Top-Bar ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad-x);
  color: #fff;
  background: transparent;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
              background 280ms ease,
              backdrop-filter 280ms ease,
              color 280ms ease,
              padding 280ms ease;
  will-change: transform;
}
/* Wenn nicht mehr ueber dem Hero: heller Background, dunkler Text */
.topbar.is-scrolled {
  background: rgba(250, 250, 247, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  color: var(--fg);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
/* Versteckt - rutscht nach oben aus dem Viewport */
.topbar.is-hidden {
  transform: translateY(-105%);
}
/* Wenn Maus oben am Rand: immer sichtbar */
.topbar.is-revealed {
  transform: none !important;
}

.brand {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 16px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.brand .plus { font-weight: 300; opacity: 0.7; }

.nav { display: flex; gap: 28px; font-family: var(--font-display); font-size: 14px; letter-spacing: 0.04em; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-2) var(--ease-out);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; gap: 12px; align-items: center; }
.lang { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.08em; }
.lang .sep { opacity: 0.4; margin: 0 6px; }
.lang .active-l { font-weight: 600; }

.menu-btn { display: none; width: 44px; height: 44px; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
}

/* ===== 4. HERO ===== */
.hero {
  min-height: 100svh; /* svh berücksichtigt Browser-Chrome (Adressleiste, Tabs) */
  position: relative;
  background: var(--surface-dark);
  color: var(--on-dark);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}
@supports not (min-height: 100svh) {
  .hero { min-height: 100vh; }
}
.hero__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) contrast(1.05);
  transform: scale(1.04);
  animation: hero-zoom 24s var(--ease-out) infinite alternate;
}
.hero__image::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, transparent 0%, rgba(0,0,0,0.55) 65%),
    linear-gradient(180deg, rgba(14,16,20,0.85) 0%, transparent 25%, transparent 60%, rgba(14,16,20,0.85) 100%);
}
@keyframes hero-zoom { to { transform: scale(1.10); } }

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 9vh, 120px) var(--pad-x) clamp(16px, 2vh, 32px);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  align-self: end;
}
.hero__kicker {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: clamp(12px, 2vh, 24px);
  opacity: 0.9;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 5.5vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: clamp(12px, 1.6vh, 24px);
  max-width: 16ch;
}
/* Wenn der Viewport sehr kurz ist (Laptop/HD), Title noch kleiner */
@media (max-height: 900px) {
  .hero__title { font-size: clamp(40px, 4.5vw, 84px); }
  .hero__kicker { margin-bottom: 12px; }
}
.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.hero__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.5;
  max-width: 52ch;
  color: var(--on-dark-muted);
}

/* Hero-Stat-Strip unten */
.hero__stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: clamp(20px, 2.5vh, 32px) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;              /* alle Werte buendig auf einer Unterkante */
  column-gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.stat__label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 6px;
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(26px, 2.5vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1;                /* deterministische Box -> identische Baseline */
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 0.3em;
}
.stat__value em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.stat__suffix { font-size: 0.55em; opacity: 0.6; font-weight: 300; }
.stat__value--place { color: var(--accent-warm); font-weight: 300; letter-spacing: -0.025em; }

@media (max-width: 900px) {
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding: 24px var(--pad-x); }
  .hero__title { font-size: clamp(42px, 12vw, 80px); }
}

.scroll-cue {
  position: absolute;
  /* oberhalb der Stats-Leiste (deren Hoehe aus denselben clamp-Werten) -
     seit der Ortsname "Grossroehrsdorf" die 4. Spalte fuellt */
  bottom: calc(clamp(20px, 2.5vh, 32px) * 2 + clamp(26px, 2.5vw, 46px) + 40px);
  right: var(--pad-x);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.scroll-cue::after {
  content: ''; width: 40px; height: 1px;
  background: currentColor;
  animation: scroll-cue 2s infinite var(--ease-out);
  transform-origin: left;
}
@keyframes scroll-cue { 0%, 100% { transform: scaleX(0.2); } 50% { transform: scaleX(1); } }

@media (max-width: 900px) { .scroll-cue { display: none; } }

/* ===== 5. INTRO (drei Säulen modernisiert) ===== */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  margin-top: 32px;
}
.intro-claim {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(36px, 4.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.intro-claim em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.intro-text {
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42ch;
}
.intro-text p + p { margin-top: 18px; }
/* Fachplaner-Links im Intro-Fliesstext (Platzhalter, bis echte Partner verlinkt sind) */
.partner-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transition: text-decoration-color 160ms var(--ease-out);
}
.partner-link:hover { text-decoration-color: var(--accent); }

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.pillar {
  padding: 0;
  position: relative;
}
.pillar__icon {
  width: 36px; height: 36px;
  margin-bottom: 24px;
  display: grid; place-content: center;
}
.pillar__icon svg { width: 32px; height: 32px; stroke: var(--fg); fill: none; stroke-width: 1.25; }
.pillar__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 1.8vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin-bottom: 14px;
}
.pillar__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 36ch;
}
.pillar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--accent);
  transition: gap var(--t-1) var(--ease-out);
}
.pillar__link:hover { gap: 12px; }
.pillar__link svg { stroke: currentColor; }

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .pillars { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
}

/* ===== 6. BIG SHOWCASE BERNAU ===== */
.showcase {
  background: var(--surface-dark);
  color: var(--on-dark);
  overflow: hidden;
  position: relative;
}
.showcase__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.showcase__text { padding: 80px 0; }
.showcase__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(38px, 5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 24px 0 32px;
  max-width: 14ch;
}
.showcase__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent-warm); }
.showcase__lead {
  font-size: clamp(17px, 1.3vw, 22px);
  line-height: 1.55;
  color: var(--on-dark);
  margin-bottom: 24px;
  max-width: 44ch;
}
.showcase__body { color: var(--on-dark-muted); max-width: 50ch; font-size: 15px; line-height: 1.65; margin-bottom: 32px; }
.showcase__data {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 28px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.showcase__data dt { color: var(--on-dark-muted); }
.showcase__data dd { color: var(--on-dark); }

.showcase__image {
  position: relative;
  aspect-ratio: 6 / 5;
  background-size: cover;
  background-position: center;
  background-color: #1A2530;
  transform: translateX(8%);
  transition: transform var(--t-4) var(--ease-out);
}
.showcase__image::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px; right: 16px; bottom: 16px;
  border: 1px solid rgba(111, 228, 199, 0.5);
  pointer-events: none;
  z-index: -1;
}
/* Platzhalter-Frame, solange kein Projektfoto vorliegt (Grossroehrsdorf) */
.showcase__image--placeholder {
  background:
    linear-gradient(135deg, rgba(111,228,199,0.06) 0%, rgba(111,228,199,0) 55%),
    #131A22;
  outline: 1px dashed rgba(111, 228, 199, 0.35);
  outline-offset: -12px;
}
.showcase__caption {
  position: absolute;
  bottom: 16px; left: 20px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.showcase__cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background var(--t-1), color var(--t-1);
}
.showcase__cta:hover { background: var(--on-dark); color: var(--surface-dark); border-color: var(--on-dark); }

@media (max-width: 900px) {
  .showcase__grid { grid-template-columns: 1fr; gap: 32px; }
  .showcase__image { transform: none; }
}

/* ===== 7. REICHWEITE-KARTE ===== */
.map-section { background: var(--surface-light); }
.map-section .container {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.map-text { max-width: 38ch; }
.map-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(40px, 4.5vw, 88px);
  letter-spacing: -0.028em;
  line-height: 0.98;
  margin: 24px 0 24px;
}
.map-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.map-text p { color: var(--muted); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.6; }
.map-counts {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.map-count {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.map-count__num {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.map-count__lbl {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.map-canvas { position: relative; aspect-ratio: 4/5; }
.map-canvas svg { width: 100%; height: 100%; }
.map-canvas .pin {
  fill: var(--accent);
  transition: r var(--t-2) var(--ease-out), fill var(--t-1);
  cursor: pointer;
}
.map-canvas .pin:hover { fill: var(--accent-warm); r: 7; }

@media (max-width: 900px) {
  .map-section .container { grid-template-columns: 1fr; }
}

/* ===== 8. PROJEKTE GALERIE ===== */
.projects-section { background: var(--bg); }
.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 24px;
}
.projects-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(40px, 5vw, 96px);
  letter-spacing: -0.028em;
  line-height: 0.98;
  margin-top: 16px;
}
.projects-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px 12px;
}
/* Die Karte ist nur der Rahmen. Darin liegen drei gleichrangige Buttons:
   .proj__open (grosse Flaeche, oeffnet die Projektliste) und die beiden .proj__nav-Pfeile. */
.proj {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  isolation: isolate;
  color: inherit;
}

/* Die Klickflaeche liegt ueber dem Bild und traegt den Text. Als <button> muessen die
   Browser-Vorgaben (Rahmen, Grau, zentrierter Text, eigene Schrift) zurueckgesetzt werden. */
.proj__open {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
/* Tastatur-Fokus muss sichtbar sein - die Karte ist bedienbar, das muss man sehen. */
.proj__open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

/* -- Pfeile zum Durchklicken --
   Liegen ueber der Klickflaeche (z-index 2), sonst wuerde man beim Zielen auf den Pfeil
   die Projektliste oeffnen. Sichtbar beim Hover; auf Touch-Geraeten (kein Hover) dauerhaft,
   sonst waeren sie dort unauffindbar. */
.proj__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--fg);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--t-2) var(--ease-out), background var(--t-2) var(--ease-out),
              transform var(--t-2) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.proj__nav--prev { left: 12px; transform: translateY(-50%) translateX(-4px); }
.proj__nav--next { right: 12px; transform: translateY(-50%) translateX(4px); }

.proj:hover .proj__nav,
.proj:focus-within .proj__nav {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.proj__nav:hover { background: #fff; }
.proj__nav:focus-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.proj__nav:active { transform: translateY(-50%) scale(0.92); }

@media (hover: none) {
  .proj__nav { opacity: 1; transform: translateY(-50%); }
}

/* Bildstapel: alle Fotos liegen uebereinander, nur das mit .is-on ist sichtbar.
   Der Wechsel ist eine reine Opazitaets-Blende - kein Layout-Sprung, kein Ruckeln. */
.proj__media {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  background-color: var(--surface-light);
  overflow: hidden;
}
.proj__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms var(--ease-out), transform var(--t-3) var(--ease-out);
}
.proj__frame.is-on { opacity: 1; }
.proj:hover .proj__frame,
.proj:focus-within .proj__frame { transform: scale(1.04); }

/* Positionspunkte: zeigen, das wievielte von wie vielen Fotos gerade laeuft. */
.proj__dots {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.proj__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.proj__dots i.is-on {
  background: #fff;
  transform: scale(1.25);
}

/* "Projektliste oeffnen" - erscheint beim Hover bzw. bei Tastatur-Fokus.
   Auf Touch dauerhaft sichtbar (siehe Media-Query unten), sonst wuesste dort
   niemand, dass die Karte ueberhaupt anklickbar ist. */
.proj__cue {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t-2) var(--ease-out), transform var(--t-2) var(--ease-out);
}
.proj:hover .proj__cue,
.proj:focus-within .proj__cue {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: none) {
  .proj__cue { opacity: 1; transform: none; }
}
.proj__overlay {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.65) 100%);
  color: #fff;
  pointer-events: none;
}
.proj__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(16px, 1.3vw, 20px);
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.proj__meta {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.proj--w7 { grid-column: span 7; }
.proj--w5 { grid-column: span 5; }
.proj--w4 { grid-column: span 4; }
.proj--w6 { grid-column: span 6; }
.proj--w8 { grid-column: span 8; }

@media (max-width: 900px) {
  .proj--w7, .proj--w5, .proj--w4, .proj--w6, .proj--w8 { grid-column: span 12; }
}

/* Projects-Foot: Mehr-CTA + Meta-Hinweis */
.projects-foot {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.projects-foot__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background var(--t-1), color var(--t-1), transform var(--t-1);
}
.projects-foot__cta:hover { background: var(--fg); color: var(--bg); transform: translateY(-1px); }
.projects-foot__meta {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Bildnachweis CC BY-SA 3.0 - Lizenzpflicht, nicht nur Kosmetik. Bewusst klein,
   aber lesbar: eine unsichtbar gemachte Namensnennung gilt als keine. */
.projects-foot__credit {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0.75;
}
.projects-foot__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.projects-foot__credit a:hover { color: var(--accent); }

/* ===== 9. BIM-WORKFLOW (dunkle Sektion) ===== */
.workflow {
  background: var(--surface-dark);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.workflow::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111,228,199,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,228,199,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}
.workflow .container { position: relative; }
.workflow-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(40px, 5vw, 88px);
  letter-spacing: -0.028em;
  line-height: 0.98;
  margin: 24px 0 80px;
  max-width: 18ch;
}
.workflow-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent-warm); }
/* Phasen-Achse (07.07.): 7 Phasen - Vorbereitung/Betrieb als Kontext,
   Entwurf bis Ausfuehrung als Kernbereich. Linie mit Farbverlauf plus
   dezent wanderndem Lichtimpuls, auslaufender Pfeil rechts (Lebenszyklus). */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  position: relative;
}
.workflow-steps::before {
  content: '';
  position: absolute;
  top: 23px; left: 0; right: 0;
  height: 2px;
  background:
    /* Ebene 1: wandernder Lichtimpuls */
    linear-gradient(90deg, transparent 44%, rgba(232,225,208,0.8) 50%, transparent 56%)
      no-repeat 100% 0 / 300% 100%,
    /* Ebene 2: statischer Verlauf - Kern (Spalten 2-6) kraeftig, Kontext gedimmt */
    linear-gradient(90deg,
      rgba(111,228,199,0.08) 0%,  rgba(111,228,199,0.30) 12%,
      rgba(111,228,199,0.95) 20%, rgba(111,228,199,0.95) 80%,
      rgba(111,228,199,0.30) 88%, rgba(111,228,199,0.18) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 96%, transparent);
  animation: axis-beam 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes axis-beam {
  0%, 55% { background-position: 100% 0, 0 0; }
  100%    { background-position: 0% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .workflow-steps::before { animation: none; background-position: 150% 0, 0 0; }
}
/* Auslaufender Pfeil rechts: nach der Ausfuehrung geht es weiter (Betrieb, Rueckbau) */
.workflow-steps::after {
  content: '';
  position: absolute;
  top: 24px; right: -13px;
  transform: translateY(-50%);
  border-left: 8px solid rgba(111,228,199,0.55);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.step {
  position: relative;
  padding-top: 56px;
}
.step::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 0 4px rgba(111,228,199,0.2);
}
/* Kontext-Phasen (Vorbereitung, Betrieb): dezenter, hohler Punkt */
.step--context::before {
  width: 9px; height: 9px;
  top: 20px;
  background: transparent;
  border: 1px solid var(--accent-warm);
  box-shadow: none;
  opacity: 0.6;
}
.step--context .step__title { color: var(--on-dark-muted); }
.step--context .step__body { opacity: 0.75; }
.step__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.step__body { color: var(--on-dark-muted); font-size: 12.5px; line-height: 1.55; }
/* Klammer unter dem Kernbereich (Spalten 2-6) */
.workflow-range {
  grid-column: 2 / 7;
  grid-row: 2;
  margin-top: 30px;
  padding-top: 12px;
  position: relative;
  border-top: 1px solid rgba(111,228,199,0.3);
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-warm);
  opacity: 0.85;
}
.workflow-range::before,
.workflow-range::after {
  content: '';
  position: absolute;
  top: -8px;
  width: 1px; height: 8px;
  background: rgba(111,228,199,0.3);
}
.workflow-range::before { left: 0; }
.workflow-range::after { right: 0; }

@media (max-width: 900px) {
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-steps::before {
    top: 0; bottom: 0; left: 24px; right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg,
      rgba(111,228,199,0.08) 0%,  rgba(111,228,199,0.30) 10%,
      rgba(111,228,199,0.95) 18%, rgba(111,228,199,0.95) 82%,
      rgba(111,228,199,0.30) 90%, rgba(111,228,199,0.18) 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 4%, #000 97%, transparent);
            mask-image: linear-gradient(180deg, transparent, #000 4%, #000 97%, transparent);
    animation: none;
  }
  .workflow-steps::after {
    top: auto; bottom: -12px; right: auto; left: 25px;
    transform: translateX(-50%);
    border-top: 8px solid rgba(111,228,199,0.55);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 0;
  }
  .step { padding-top: 0; padding-left: 60px; }
  .step::before { top: 8px; left: 18px; transform: none; }
  .step--context::before { left: 19.5px; }
  .workflow-range {
    grid-column: 1;
    grid-row: auto;
    margin-top: 8px;
    padding-left: 60px;
    border-top: 0;
    text-align: left;
  }
  .workflow-range::before, .workflow-range::after { display: none; }
}

/* ===== 10. TEAM / BUERO ===== */
.team-section { background: var(--surface-light); }
.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.team-img {
  aspect-ratio: 4/5;
  background: #ddd;
  background-size: cover;
  background-position: center;
}
/* Portraet-Platzhalter, bis das Foto von Herrn Went vorliegt */
.team-img--portrait {
  aspect-ratio: 3/4;
  background:
    linear-gradient(135deg, rgba(14,124,110,0.10) 0%, rgba(14,124,110,0) 55%),
    linear-gradient(135deg, #2A3540 0%, #1A2530 100%);
  outline: 1px dashed rgba(14, 124, 110, 0.35);
  outline-offset: -12px;
}
.team-img__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #2A3540 0%, #1A2530 100%);
  display: grid; place-content: center;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.team-img { position: relative; overflow: hidden; }
.team-img__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  pointer-events: none;
}
.team-img__credit {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.team-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(36px, 4.5vw, 80px);
  letter-spacing: -0.028em;
  line-height: 1.0;
  margin: 24px 0 32px;
  max-width: 14ch;
}
.team-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.team-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 1.6vw, 28px);
  line-height: 1.35;
  color: var(--fg);
  margin-bottom: 24px;
  max-width: 42ch;
}
.team-body { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 50ch; margin-bottom: 12px; }
.team-sig { margin-top: 24px; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.05em; }
.team-sig strong { font-weight: 500; }
.team-sig small { color: var(--muted); display: block; margin-top: 2px; font-size: 12px; }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ===== 11. NEWS ===== */
.news-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 60px; flex-wrap: wrap; gap: 24px; }
.news-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(40px, 5vw, 88px);
  letter-spacing: -0.028em;
  line-height: 0.98;
  margin-top: 16px;
}
.news-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.news-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.news-item { padding: 30px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background var(--t-1); }
.news-item:last-child { border-right: 0; }
.news-item:hover { background: var(--surface-light); }
/* Tablet: 2x2 statt 4er-Reihe */
@media (min-width: 901px) and (max-width: 1239px) {
  .news-list { grid-template-columns: 1fr 1fr; }
  .news-item:nth-child(2n) { border-right: 0; }
}
.news-date {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.news-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.news-body { color: var(--muted); font-size: 14px; line-height: 1.55; }

@media (max-width: 900px) {
  .news-list { grid-template-columns: 1fr; }
  .news-item { border-right: 0; padding: 24px 0; }
}

/* ===== 12. KONTAKT ===== */
.contact-section { background: var(--surface-dark); color: var(--on-dark); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 5vw, 80px);
}
.contact-claim {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(48px, 7vw, 144px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.contact-claim em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent-warm); }
.contact-info { padding-top: 60px; }
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 12px;
}
.contact-info p { margin-bottom: 32px; font-size: 16px; line-height: 1.6; }
.contact-info a:hover { color: var(--accent-warm); }
.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: var(--on-dark);
  color: var(--surface-dark);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: transform var(--t-1), background var(--t-1);
  margin-top: 24px;
}
.contact-cta:hover { transform: translateY(-2px); background: var(--accent-warm); color: var(--on-dark); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===== 13. FOOTER ===== */
.footer {
  background: var(--surface-dark-2);
  color: var(--on-dark);
  padding: 60px var(--pad-x) 24px;
}
.footer .container { padding: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
}
.footer-brand { font-family: var(--font-display); font-size: 24px; font-weight: 400; letter-spacing: 0.12em; margin-bottom: 16px; }
.footer-grid h2 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 14px;
}
.footer-grid ul li { margin-bottom: 8px; font-size: 14px; }
.footer-grid a:hover { color: var(--accent-warm); }
.footer-addr { font-size: 14px; color: var(--on-dark-muted); line-height: 1.6; }
.footer-bottom {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--on-dark-muted);
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== 14. Reveal-Animation ===== */
.reveal { transition: opacity var(--t-3) var(--ease-out), transform var(--t-3) var(--ease-out); }
html.js-on .reveal { opacity: 0; transform: translateY(28px); }
html.js-on .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html.js-on .reveal { opacity: 1; transform: none; }
  .hero__image { animation: none; }
}

/* ===== 15. Cursor / Counter Helper ===== */
.counter[data-target] { font-variant-numeric: tabular-nums; }

/* ===== 16. Scroll-to-top Button (rechts unten, dezent, rund) ===== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  display: grid; place-items: center;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--t-2), transform var(--t-2), background var(--t-1);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.3);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.scroll-top:hover { background: var(--accent); }
.scroll-top svg { width: 18px; height: 18px; }

/* ===== 17. Logo in Topbar ===== */
.brand-logo {
  height: 28px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

/* ===== 18. Karte verbessert (Tooltip, Pins) ===== */
.map-canvas { position: relative; }
.map-canvas .pin {
  fill: var(--accent);
  stroke: white;
  stroke-width: 0.5;
  cursor: pointer;
  transition: fill var(--t-1), r var(--t-1);
}
.map-canvas .pin:hover { fill: var(--accent-warm); }
.map-canvas .pin--hero { fill: var(--accent-warm); r: 6; }
.map-canvas .pin--hero::after { content: ''; }

/* ===== 19. Leistungen-Section ===== */
.services-section { background: var(--bg); border-top: 1px solid var(--line); }
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 5vw, 80px);
  margin-top: 56px;
}
.services-text { max-width: 38ch; }
.services-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(36px, 4.5vw, 76px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 24px 0 32px;
  max-width: 16ch;
}
.services-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.services-text p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.service__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.service__body { color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 38ch; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; gap: 16px; }
}

/* ===== 20. BIM-Erklaersektion (oberhalb Workflow) ===== */
.bim-intro {
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 80px);
}
.bim-intro__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.25;
  color: var(--on-dark);
  max-width: 22ch;
}
.bim-intro__quote::before {
  content: '"';
  font-family: var(--font-serif);
  display: block;
  font-size: 1.6em;
  line-height: 0.6;
  color: var(--accent-warm);
  margin-bottom: 14px;
}
.bim-intro__text {
  color: var(--on-dark-muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 52ch;
}
.bim-intro__text p + p { margin-top: 16px; }

@media (max-width: 900px) {
  .bim-intro { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
}

/* ===== 21. EN-Link deaktiviert (kommt spaeter) ===== */
.lang a[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
  position: relative;
}
.lang a[aria-disabled="true"]:hover { opacity: 0.35; }

/* =====================================================================
   22. SCHRIFT-LAYER (2026-07-07)
   Durchgehend Inter - der fruehere JetBrains-Mono-Layer fuer technische
   Labels ist auf Kundenwunsch entfallen (--font-mono zeigt auf Inter).
   Hervorhebungen: Inter + Petrol-Tuerkis. Bewusst als abgegrenzter Layer
   am Dateiende - so bleibt die Typo an einer Stelle justierbar.
   ===================================================================== */

/* Einheitliche Sperrung der kleinen Label-Texte */
.eyebrow, .hero__kicker, .stat__label, .scroll-cue,
.map-count__lbl, .proj__meta, .projects-foot__meta,
.news-date, .team-img__credit, .team-img__placeholder, .contact-info h3,
.footer-grid h2 {
  letter-spacing: 0.08em;
}

/* -- Hervorhebungen: Inter + Tuerkis statt Serif-Italic -- */
.hero__title em,
.stat__value em,
.intro-claim em,
.showcase__title em,
.map-title em,
.projects-title em,
.team-title em,
.news-title em,
.services-title em,
.contact-claim em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
}
.team-quote,
.bim-intro__quote {
  font-family: var(--font-display);
  font-style: normal;
}
.bim-intro__quote::before { font-family: var(--font-display); }

/* -- Firmenlogo (HALLEN SPORT) im Header/Footer --
   Hell-Version (Mint-Akzent) auf dunklem Grund (Hero-Header, Footer),
   Dunkel-Version (Petrol-Akzent) auf hellem Grund (gescrollter Header). */
.brand { line-height: 0; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-logo--dark { display: none; }
.topbar.is-scrolled .brand-logo--light { display: none; }
.topbar.is-scrolled .brand-logo--dark  { display: block; }
.footer-logo { height: 46px; width: auto; display: block; margin-bottom: 18px; }
@media (max-width: 600px) { .brand-logo { height: 32px; } }

/* -- Tuerkis-Grundsatz (04.06.): ein Markenton in zwei Helligkeiten --
   Helle Sektionen behalten Petrol #0E7C6E (kraeftig auf hell).
   Dunkle Sektionen schalten via Token-Override auf das hellere Mint #6FE4C7,
   das auf dunklem Grund leuchtet. Greift automatisch auf ALLE
   var(--accent)/var(--accent-warm)-Stellen im dunklen Kontext (Headlines,
   Pins, Dots, Hover) - deckungsgleich mit dem hellen Mint im Logo. */
.hero,
.showcase,
.workflow,
.contact-section,
.footer,
.section--dark {
  --accent: #6FE4C7;
  --accent-warm: #6FE4C7;
}

/* -- Deutschland-Karte (04.06., echte Geo-Projektion; 07.07.: 16 Bundeslaender,
      Sachsen + Brandenburg als Schwerpunkt hervorgehoben, Rest zurueckgenommen) -- */
.map-canvas { width: 100%; margin-inline: auto; aspect-ratio: 446 / 480; }   /* breiterer viewBox: Logo separat rechts-unten ausserhalb der Karte */
.map-canvas svg { width: 100%; height: 100%; display: block; overflow: visible; }
.laender .land {                       /* Rest-Deutschland: tritt zurueck */
  fill: var(--accent-hi);
  opacity: 0.32;
  stroke: #FFFFFF;                     /* Hairline-Laendergrenzen, sehr dezent */
  stroke-width: 0.75;
  stroke-linejoin: round;
}
.laender .land--focus {                /* Sachsen + Brandenburg: hell/prominent */
  opacity: 0.95;
  stroke: var(--accent);
  stroke-width: 1;
}
.map-canvas .buero-label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; fill: var(--fg); letter-spacing: 0.02em; }
.map-canvas .buero-sub { font-family: var(--font-mono); font-size: 8.5px; fill: var(--muted); letter-spacing: 0.02em; }
#map-tooltip {
  position: absolute; pointer-events: none;
  background: var(--fg); color: var(--bg);
  padding: 8px 12px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em;
  opacity: 0; transition: opacity 160ms; z-index: 10; white-space: nowrap;
}
#map-tooltip.visible { opacity: 1; }
#map-tooltip strong { font-weight: 500; }
#map-tooltip span { opacity: 0.65; }


/* ===================================================================
   23. FINAL-LAYER (2026-06-20)
   Mobile-Navigation, Tastatur-Fokus, Responsive-Feinschliff, Druck,
   Detail-Politur. Abgegrenzter Layer am Dateiende - hier justierbar,
   ohne die Basisregeln zu zerlegen.
   =================================================================== */

/* -- Anker-Sprünge nicht unter die fixe Topbar springen lassen -- */
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* -- Anker-Sprünge: in das Innenabstand-Polster der Sektion hineinscrollen --
   Problem vorher: Der Sprung setzte die OBERKANTE der Sektion unter die Topbar.
   Weil jede Sektion oben 64-120px Innenabstand hat, begann der sichtbare Text
   erst ~160px darunter - oben blieb ein Streifen der vorherigen Sektion stehen
   (z.B. ein schwarzer Rest des Hero-Bildes), und die untere Reihe der vier
   Säulen rutschte aus dem Bild.
   Das negative scroll-margin gleicht den Innenabstand exakt aus: Der Browser
   scrollt jetzt so weit, dass die Überschrift knapp unter der Topbar sitzt -
   bei jeder Bildschirmgröße gleich, weil --section-y mitskaliert. */
section.section[id] { scroll-margin-top: calc(-1 * var(--section-y)); }

/* -- Sichtbarer Tastatur-Fokus (WCAG 2.4.7) -- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }
.hero :focus-visible, .showcase :focus-visible, .workflow :focus-visible,
.contact-section :focus-visible, .footer :focus-visible, .section--dark :focus-visible,
.mobile-menu :focus-visible { outline-color: #6FE4C7; }

/* -- Markenfarbe in der Textauswahl -- */
::selection { background: var(--accent); color: #fff; }

/* -- Skip-Link (springe zum Inhalt) -- */
.skip-link {
  position: fixed; top: -120px; left: 12px; z-index: 999;
  background: var(--fg); color: var(--bg);
  padding: 12px 20px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  transition: top 180ms var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* -- Mobile-Menü-Button -- */
.menu-btn { color: inherit; }

/* -- Mobile-Menü (per JS aus der Hauptnavigation gebaut) -- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(14, 16, 20, 0.97);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--on-dark);
  display: grid; grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: 16px var(--pad-x) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out), visibility 280ms;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.mobile-menu__brand { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em; color: var(--on-dark-muted); }
.mobile-menu__close { width: 48px; height: 48px; display: grid; place-items: center; color: var(--on-dark); margin-right: -8px; }
.mobile-menu__close svg { width: 26px; height: 26px; }
.mobile-menu__nav { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.mobile-menu__nav a {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 9vw, 46px); letter-spacing: -0.025em; line-height: 1.1;
  padding: 12px 0; color: var(--on-dark);
  display: flex; align-items: baseline; gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 160ms var(--ease-out), padding-left 200ms var(--ease-out);
}
.mobile-menu__nav a .idx { font-family: var(--font-mono); font-size: 13px; color: #6FE4C7; letter-spacing: 0.1em; flex: none; }
.mobile-menu__nav a:hover, .mobile-menu__nav a:active { color: #6FE4C7; padding-left: 8px; }
.mobile-menu__foot { font-family: var(--font-mono); font-size: 13px; color: var(--on-dark-muted); line-height: 1.8; }
.mobile-menu__foot a { color: var(--on-dark); }
.mobile-menu__foot a:hover { color: #6FE4C7; }
body.menu-open { overflow: hidden; }

/* -- Responsive-Feinschliff -- */
/* Tablet (601-900px): Säulen & Leistungen zweispaltig statt voll gestapelt */
@media (min-width: 601px) and (max-width: 900px) {
  .pillars { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .services-list { grid-template-columns: 1fr 1fr; }
}
/* Kleine Phones */
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; align-items: flex-start; }
  .projects-foot { flex-direction: column; align-items: flex-start; }
  .news-item { padding: 22px 0; }
}
/* Sehr kleine Phones */
@media (max-width: 380px) {
  .hero__stats { gap: 16px 12px; }
  .hero__stats .stat__value { font-size: 25px; }
}

/* -- Karten-Hinweis geräteneutral; Pins per Tap bedienbar (siehe JS) -- */
.map-canvas .pin { cursor: pointer; }

/* -- Druck-Stile (vor allem Impressum/Datenschutz) -- */
@media print {
  .topbar, .scroll-top, .mobile-menu, .scroll-cue, .hero__image, .menu-btn, .skip-link { display: none !important; }
  *, *::before, *::after { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  a { text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #444 !important; }
  .legal { padding-top: 0 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section { padding-block: 16px !important; }
}


/* ===================================================================
   24. FINAL-LAYER II (2026-06-20) - Audit-Nachzug
   Karten-Pins auf EINEN Markenton, Touch-Targets, Zwischen-Breakpoints,
   Headline-Schutz auf engen Phones, CTA-Hover-Konsistenz, Wide-Screens.
   =================================================================== */

/* -- Karten-Pins: ein Markenton (Petrol/Mint) statt Orange-Zweitakzent -- */
.map-canvas .pin { fill: var(--accent); opacity: 0.78; stroke: var(--surface-light); stroke-width: 0.8; }
.map-canvas .pin--hero { fill: var(--accent); opacity: 1; }
.map-canvas .pin:hover { fill: var(--accent); opacity: 1; r: 7; }
.map-canvas .pin--hero:hover { fill: var(--accent); opacity: 1; r: 8; }

/* -- CTA-Hover vereinheitlichen (alle drei Pills heben sich an) -- */
.showcase__cta { transition: background var(--t-1), color var(--t-1), transform var(--t-1); }
.showcase__cta:hover { transform: translateY(-2px); }

/* -- Touch-Targets >= 44px auf Touch-Geraeten -- */
@media (pointer: coarse) {
  .footer-grid ul li a,
  .contact-info a[href^="tel"],
  .contact-info a[href^="mailto"],
  .pidx-link,
  .pillar__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .footer-grid ul li { margin-bottom: 4px; }
  .nav a { padding-block: 10px; }
}

/* -- Workflow-Steps: Zwischenstufe 901-1239px (statt gedraengter 7er-Reihe) -- */
@media (min-width: 901px) and (max-width: 1239px) {
  .workflow-steps { grid-template-columns: repeat(4, 1fr); row-gap: 48px; column-gap: 24px; }
  .workflow-steps::before, .workflow-steps::after { display: none; }
  .step { padding-top: 44px; }
  .step::before { left: 0; transform: none; }
  .step--context::before { left: 1.5px; }
  .workflow-range {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 8px;
    border-top: 0;
    text-align: left;
  }
  .workflow-range::before, .workflow-range::after { display: none; }
}

/* -- Headline-Schutz auf engen Phones: kleinere Minima + Umbruch -- */
@media (max-width: 560px) {
  .workflow-title, .map-title, .projects-title, .news-title, .contact-claim,
  .intro-claim, .services-title, .team-title, .showcase__title, .hero__title,
  .pd-hero__title, .pidx__title {
    overflow-wrap: break-word;
    hyphens: auto;
  }
}
@media (max-width: 480px) {
  .workflow-title, .map-title, .projects-title, .news-title { font-size: clamp(30px, 8.5vw, 88px); }
  .contact-claim { font-size: clamp(34px, 12vw, 144px); }
  .intro-claim, .services-title { font-size: clamp(28px, 8.5vw, 76px); }
  .team-title, .showcase__title { font-size: clamp(28px, 8.5vw, 80px); }
  .pd-hero__title { font-size: clamp(40px, 13vw, 168px); }
  .hero__title { font-size: clamp(36px, 11vw, 104px); }
}
@media (max-width: 480px) {
  /* Ortsname "Großröhrsdorf" (13 Zeichen) braucht eine eigene Stufe,
     damit er in der 2x2-Anordnung nicht ueberlaeuft */
  .hero__stats .stat__value--place { font-size: clamp(18px, 5.4vw, 30px); }
}
@media (max-width: 420px) {
  .hero__stats .stat__value { font-size: clamp(22px, 7vw, 34px); }
  .hero__stats .stat__value--place { font-size: clamp(16px, 5.4vw, 26px); }
}

/* -- Sehr breite Screens: Premium-Wirkung auf 27"+ -- */
@media (min-width: 1800px) {
  :root { --container: 1600px; }
}

/* ===== 14. PROJEKTLISTEN JE INSTITUT (Overlay + Zeitstrahl) ===== */

/* -- Der Zeitstrahl --
   Frau Wents Handskizze: ein Keil, der von oben nach unten dicker wird. Die Kante
   zum Text hin steht senkrecht ("innen gerade"), die aeussere laeuft schraeg zu.
   Umgesetzt mit clip-path statt SVG, damit der Keil jede Hoehe automatisch mitgeht -
   die Listen sind unterschiedlich lang, eine feste Grafik wuerde verzerren.
   Polygon: oben nur --tip breit (rechts angesetzt), unten die volle Breite. */
.tl {
  --tl-w: 34px;          /* Breite unten (2026 - "heute") */
  --tl-tip: 5px;         /* Breite oben (Startjahr) */
  display: grid;
  grid-template-columns: auto var(--tl-w);
  gap: 12px;
  align-items: stretch;
  position: sticky;
  top: 24px;
  height: 380px;
}
.tl__wedge {
  position: relative;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 45%, transparent) 0%,
    var(--accent) 100%);
  clip-path: polygon(calc(100% - var(--tl-tip)) 0, 100% 0, 100% 100%, 0 100%);
}
/* Jahreszahlen sitzen prozentual auf ihrer Position im Zeitraum (--p). */
.tl__years {
  position: relative;
}
.tl__year {
  position: absolute;
  right: 0;
  top: var(--p);
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.tl__year::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--line);
}

/* -- Das Overlay --
   <dialog> liefert Esc-schliessen, Fokusfalle und ::backdrop vom Browser. */
.iv {
  width: min(1040px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  /* Zentriert das Overlay im Fenster. Ein <dialog> bekommt vom Browser eigentlich
     margin:auto mit - aber der globale Reset ganz oben (* { margin: 0 }) killt das,
     und der Dialog klebt dann oben links in der Ecke. Deshalb hier explizit. */
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}
.iv::backdrop {
  background: rgba(14, 16, 20, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.iv[open] { animation: iv-in 260ms var(--ease-out); }
@keyframes iv-in {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}
.iv__box {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}
.iv__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 32px 22px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.iv__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.iv__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.iv__addr {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.iv__close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--fg);
  cursor: pointer;
  transition: background var(--t-2) var(--ease-out), color var(--t-2) var(--ease-out);
}
.iv__close:hover { background: var(--fg); color: var(--bg); }
.iv__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Der Body scrollt, Kopf und Zeitstrahl bleiben stehen. */
.iv__body {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 32px;
  padding: 28px 32px 36px;
  overflow-y: auto;
}
.iv__lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 26px;
  max-width: 62ch;
}
.iv__text h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.iv__text h3:first-of-type { margin-top: 0; }
.iv__text p {
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 12px;
  max-width: 64ch;
}
.iv__note { color: var(--muted); font-style: italic; }
.iv__text ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.iv__text li {
  position: relative;
  padding: 7px 0 7px 20px;
  font-size: 14.5px;
  /* Feste 22px statt 1.5: 14.5 x 1.5 = 21,75px ergaebe Zeilen auf halben Pixeln, und der
     1px-Strich links wuerde ueber zwei Pixelreihen verschmiert - er sah dann von Zeile zu
     Zeile mal kraeftig, mal blass aus. Mit 22px sitzt jede Zeile auf ganzen Pixeln. */
  line-height: 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  max-width: 68ch;
}
.iv__text li:last-child { border-bottom: 0; }
.iv__text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 7px;
  height: 1px;
  background: var(--accent);
}
.iv__text li em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  white-space: nowrap;
}
.iv__text li b, .iv__text p b { font-weight: 600; }

/* Wenn der Bildschirm zu schmal wird, wandert der Zeitstrahl ueber den Text und
   legt sich quer - senkrecht neben einer schmalen Spalte wirkt er gequetscht. */
@media (max-width: 720px) {
  .iv__body {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 20px 30px;
  }
  .iv__head { padding: 24px 20px 18px; }
  .tl {
    grid-template-columns: 1fr;
    grid-template-rows: auto var(--tl-w);
    position: static;
    height: auto;
    gap: 8px;
  }
  .tl__wedge {
    /* liegend: links schmal (Start), rechts dick (heute) */
    background: linear-gradient(90deg,
      color-mix(in srgb, var(--accent) 45%, transparent) 0%,
      var(--accent) 100%);
    clip-path: polygon(0 calc(100% - var(--tl-tip)), 100% 0, 100% 100%, 0 100%);
  }
  .tl__years { height: 18px; }
  .tl__year {
    right: auto;
    top: auto;
    bottom: 0;
    left: var(--p);
    transform: translateX(-50%);
  }
  .tl__year::after { display: none; }
  .tl__year:first-child { transform: translateX(0); }
  .tl__year:last-child { transform: translateX(-100%); }
}
