/* =========================================================
   Optimo Bauträger GmbH – Stylesheet (ENTWURF)
   Farbschema: Grauflächen (#b2b2b2), Schrift einfarbig in Anthrazit (#2b2e33).
   Optimo-Blau (#001a72 aus dem Logo) nur für Buttons, Links und die aktive Navigation.
   Schrift: Inter überall, gerade (keine Kursive).
   0.5px-Haarlinien statt Schatten, eckige Kanten.
   ========================================================= */

:root {
  --ink: #001a72;        /* Optimo-Blau: nur Buttons, Links, aktive Navigation */
  --text: #2b2e33;       /* Anthrazit: alle Texte */
  --text-2: #464a50;     /* Anthrazit hell: längere Texte auf Weiß */
  --graphite: #2b2e33;   /* (Alt-Token, jetzt = Anthrazit) */
  --steel: #676b72;      /* gedämpftes Grau: Labels, Nebentexte */
  --silver: #c9ced6;
  --mist: #f2f3f5;
  --paper: #ffffff;
  --surface: #b2b2b2;    /* Grau für die großen Flächen */
  --surface-2: #a6a6a6;

  --line: 0.5px solid var(--silver);
  --line-dark: 0.5px solid rgba(43, 46, 51, 0.25);
  --line-dark-soft: 0.5px solid rgba(43, 46, 51, 0.14);

  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; -webkit-hyphens: manual; hyphens: manual; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
button { font: inherit; color: inherit; }
address { font-style: normal; }
em { font-style: normal; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--paper); color: var(--ink); padding: 10px 16px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .2em;
  border: var(--line);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
@media (min-width: 768px) { .container { padding-inline: 40px; } }
@media (min-width: 1024px) { .container { padding-inline: 48px; } }

.narrow { max-width: 72rem; margin-inline: auto; }
.narrow-5 { max-width: 64rem; margin-inline: auto; }
.narrow-3 { max-width: 48rem; margin-inline: auto; }

.section-y { padding-block: clamp(4rem, 8vw, 7rem); }
.bg-ink { background: var(--surface); color: var(--text); }
.bg-mist { background: var(--mist); }
.bg-paper { background: var(--paper); }

/* ---------- Typografie ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  color: inherit;
}
.display em, h1 em, h2 em, h3 em { font-style: normal; font-weight: inherit; color: inherit; }

.h2 { font-size: 28px; line-height: 1.2; }
@media (min-width: 640px) { .h2 { font-size: 34px; } }
@media (min-width: 768px) { .h2 { font-size: 42px; } }

.smallcaps { font-variant: normal; }

.crest {
  font-family: var(--font-sans); font-size: 10px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: var(--steel);
  margin-bottom: 18px;
}
.bg-ink .crest { color: var(--text); }

.crest-sep { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 24px; }
.crest-sep::before, .crest-sep::after { content: ""; width: 48px; height: .5px; background: var(--silver); }
.crest-sep span { font-family: var(--font-sans); font-size: 13px; color: var(--steel); }
.bg-ink .crest-sep::before, .bg-ink .crest-sep::after { background: rgba(43, 46, 51, .3); }
.bg-ink .crest-sep span { color: var(--text); }
.crest-sep.left { justify-content: flex-start; }
.crest-sep.left::after { display: none; }

.section-head { text-align: center; max-width: 46rem; margin-inline: auto; }
.section-head.left { text-align: left; margin-inline: 0; }
.intro {
  margin: 20px auto 0; max-width: 36rem;
  font-size: 16px; font-weight: 400; line-height: 1.65; color: var(--steel);
}
.section-head.left .intro { margin-left: 0; }
.bg-ink .intro { color: var(--text); }
.mt-16 { margin-top: 64px; }
.mt-10 { margin-top: 40px; }
.center { text-align: center; }

/* ---------- Buttons & Links (Blau) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border: .5px solid var(--ink); border-radius: 0;
  font-family: var(--font-sans); font-size: 11px; font-weight: 600; line-height: 1.4;
  letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--ink); color: var(--paper); }
.bg-ink .btn-light, .hero .btn-light { border-color: var(--paper); }
.bg-ink .btn-light:hover, .hero .btn-light:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-light:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-block { width: 100%; padding-block: 16px; }
.btn-cta { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  padding-bottom: 3px; border-bottom: .5px solid var(--ink); color: var(--ink);
  transition: gap .2s var(--ease), opacity .2s var(--ease);
}
.link-arrow svg { width: 14px; height: 8px; }
.link-arrow:hover { gap: 14px; }
.bg-ink .link-arrow, .card-feature .link-arrow { border-color: var(--ink); color: var(--ink); }

/* ---------- Platzhalter (Entwurf) ---------- */
mark.ph {
  background: #fff1a8; color: var(--text);
  padding: 0 .3em; font-style: normal; font-family: var(--font-sans);
  font-size: .92em; font-weight: 400; letter-spacing: 0; outline: 1px dashed #c9a400; outline-offset: 0;
}
.ph-soft { border-bottom: 1px dashed #c9a400; cursor: help; }

.draft-badge {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  background: #fff1a8; color: var(--text); border: .5px solid #c9a400;
  font-size: 10px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  padding: 8px 12px; pointer-events: none;
}

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 21px; letter-spacing: .22em; }
.brand-sub { font-size: 8.5px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; margin-top: 6px; opacity: .8; }
.brand-icon { height: 46px; width: auto; }
.brand-word { height: 30px; width: auto; }
@media (max-width: 379px) { .brand-icon { height: 38px; } .brand-word { height: 24px; } }
.brand-full img { height: 120px; width: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--text);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: .5px solid transparent;
}
.site-header.is-scrolled { background: rgba(178, 178, 178, .97); border-bottom: var(--line-dark-soft); }
.menu-open .site-header { background: transparent; border-color: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.nav-links { display: none; gap: 36px; }
.nav-links a {
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text); padding-block: 6px; border-bottom: .5px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.btn-header { display: none; padding: 11px 24px; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-header:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.burger {
  width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.burger span { width: 24px; height: 1.4px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .btn-header { display: inline-flex; }
  .burger { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--surface); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  padding: calc(var(--header-h) + 24px) 24px 48px; overflow-y: auto;
}
.mobile-menu ul { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mobile-menu a:not(.btn) { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.mobile-menu a[aria-current="page"] { color: var(--ink); }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--surface); color: var(--text); }
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--surface) center/cover no-repeat; opacity: .95; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 30s ease-in-out infinite alternate; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(178, 178, 178,.72) 0%, rgba(178, 178, 178,.8) 50%, rgba(178, 178, 178,.96) 100%);
}
.hero-inner { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding-top: 176px; padding-bottom: 96px; }
@media (min-width: 768px) { .hero-inner { padding-top: 224px; padding-bottom: 128px; } }

.hero-crest { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 36px; }
.hero-crest::before, .hero-crest::after { content: ""; width: 48px; height: .5px; background: rgba(43, 46, 51, .3); }
.hero-crest span { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--text); }

.hero h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); line-height: 1.12; color: var(--text); }
@media (min-width: 640px) { .hero h1 { font-size: clamp(2.2rem, 4.6vw, 56px); } }
.hero h1 span { display: block; }
.hero-lead { font-family: var(--font-sans); font-size: 17px; line-height: 1.65; max-width: 42rem; margin: 28px auto 0; color: var(--text); }
@media (min-width: 640px) { .hero-lead { font-size: 19px; } }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

.stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 48px;
  margin-top: 56px; padding-top: 32px; border-top: .5px solid rgba(43, 46, 51, .22);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat strong { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; color: var(--text); }
.stat span { font-size: 9.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--text); }

/* ---------- Subpage Hero ---------- */
.page-hero { text-align: center; padding-top: 160px; padding-bottom: 80px; }
@media (min-width: 768px) { .page-hero { padding-top: 192px; padding-bottom: 96px; } }
.page-hero .eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--text); margin-bottom: 24px; }
.page-hero h1 { font-size: 34px; line-height: 1.12; }
@media (min-width: 640px) { .page-hero h1 { font-size: 44px; } }
@media (min-width: 768px) { .page-hero h1 { font-size: 54px; } }
.page-hero .lead { font-family: var(--font-sans); font-size: 17px; line-height: 1.65; max-width: 40rem; margin: 24px auto 0; color: var(--text); }
@media (min-width: 640px) { .page-hero .lead { font-size: 19px; } }
.page-hero.has-image { position: relative; isolation: isolate; overflow: hidden; }
.page-hero.has-image .hero-media img { animation: none; }

/* ---------- Dunkles Startbild / Video (Startseite, Leistungen, Goethestraße 7) ---------- */
.hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.dark-hero .hero-media { opacity: 1; background: #1e2023 center/cover no-repeat; }
.dark-hero .hero-overlay { background: rgba(30, 32, 35, .58) !important; }
.dark-hero, .dark-hero h1, .dark-hero h1 em, .dark-hero .lead, .dark-hero .hero-lead, .dark-hero .eyebrow,
.dark-hero .crest-sep span, .dark-hero .hero-crest span, .dark-hero .stat strong, .dark-hero .stat span { color: #fff; }
.dark-hero .crest-sep::before, .dark-hero .crest-sep::after,
.dark-hero .hero-crest::before, .dark-hero .hero-crest::after { background: rgba(255, 255, 255, .6); }
.dark-hero .stats { border-top-color: rgba(255, 255, 255, .35); }
.dark-hero .btn-ghost-light { color: #fff; border-color: #fff; }
.dark-hero .btn-ghost-light:hover { background: #fff; color: var(--text); border-color: #fff; }

/* Fokus aufs Projekt: Rand des Videos weich unscharf + leicht dunkler, Mitte bleibt scharf.
   Position/Größe der scharfen Zone über die Variablen anpassen. */
.hero-focus {
  --focus-x: 50%;      /* Mitte der scharfen Zone (waagerecht) */
  --focus-y: 56%;      /* Mitte der scharfen Zone (senkrecht) */
  --focus-w: 21%;      /* halbe Breite der scharfen Zone */
  --focus-h: 32%;      /* halbe Höhe der scharfen Zone */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: blur(7px) saturate(.85);
          backdrop-filter: blur(7px) saturate(.85);
  background: radial-gradient(ellipse var(--focus-w) var(--focus-h) at var(--focus-x) var(--focus-y), transparent 55%, rgba(20, 22, 25, .28) 100%);
  -webkit-mask-image: radial-gradient(ellipse calc(var(--focus-w) * 1.7) calc(var(--focus-h) * 1.7) at var(--focus-x) var(--focus-y), transparent 50%, #000 100%);
          mask-image: radial-gradient(ellipse calc(var(--focus-w) * 1.7) calc(var(--focus-h) * 1.7) at var(--focus-x) var(--focus-y), transparent 50%, #000 100%);
}
@media (max-width: 767px) { .hero-focus { --focus-w: 42%; --focus-h: 30%; } }

/* Kopfzeile über dem dunklen Startbild weiß, nach dem Scrollen wieder normal */
.has-dark-hero .site-header:not(.is-scrolled) { color: #fff; }
.has-dark-hero .site-header:not(.is-scrolled) .nav-links a { color: #fff; }
.has-dark-hero .site-header:not(.is-scrolled) .nav-links a[aria-current="page"] { border-bottom-color: #fff; }
.has-dark-hero .site-header:not(.is-scrolled) .brand img { filter: brightness(0) invert(1); }
.has-dark-hero.menu-open .site-header { color: var(--text); }
.has-dark-hero.menu-open .site-header .brand img { filter: none; }

/* ---------- Bento (Leistungen) ---------- */
.bento { display: grid; gap: 28px; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(3, 1fr); } .bento .card-feature { grid-column: span 2; grid-row: span 2; } }

.card {
  display: flex; flex-direction: column; gap: 14px; padding: 32px;
  background: var(--paper); border: var(--line); transition: background-color .2s var(--ease);
}
.card:hover { background: var(--mist); }
.card .num { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--steel); }
.card h3 { font-size: 20px; line-height: 1.25; }
.card p { font-size: 14px; line-height: 1.6; color: var(--steel); }
.card .link-arrow { margin-top: auto; align-self: flex-start; }

.card-feature {
  background: var(--surface); color: var(--text); border-color: var(--surface);
  padding: 40px; gap: 22px;
}
@media (min-width: 768px) { .card-feature { padding: 56px; } }
.card-feature:hover { background: var(--surface-2); }
.card-feature h3 { font-size: 30px; line-height: 1.15; }
@media (min-width: 768px) { .card-feature h3 { font-size: 38px; } }
.card-feature p { color: var(--text); font-size: 15px; line-height: 1.7; max-width: 34rem; }
.card-feature .crest { color: var(--text); margin: 0; }

.dash-list { display: grid; gap: 12px; margin-block: 8px 12px; }
@media (min-width: 640px) { .dash-list.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.dash-list li { display: flex; align-items: baseline; gap: 14px; font-size: 14px; line-height: 1.55; color: var(--text); }
.dash-list li::before { content: ""; flex: none; width: 12px; height: .5px; background: var(--text); transform: translateY(-4px); }
.dash-list.dark li { color: var(--text-2); }
.dash-list.dark li::before { background: var(--steel); }

/* ---------- Marquee ---------- */
.strip { border-block: var(--line); display: grid; gap: 20px; padding-block: 28px; align-items: center; }
@media (min-width: 768px) { .strip { grid-template-columns: auto 1fr; gap: 48px; } }
.strip-label { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.3; max-width: 15rem; }
.marquee {
  overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track ul { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.marquee-track li {
  font-family: var(--font-sans); font-size: 18px; font-weight: 500; color: var(--steel); white-space: nowrap; height: 28px;
  display: flex; align-items: center;
}
.marquee-track li.sans { font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Prinzipien 2x2 ---------- */
.principles { display: grid; }
.principle { padding: 40px 8px; border-top: var(--line); }
.principle:first-child { border-top: 0; }
@media (min-width: 768px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .principle { padding: 48px; }
  .principle:nth-child(odd) { border-right: var(--line); }
  .principle:nth-child(-n+2) { border-top: 0; }
}
.principle .num { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--steel); display: block; margin-bottom: 18px; }
.principle h3 { font-size: 22px; line-height: 1.25; margin-bottom: 14px; }
.principle p { font-size: 15px; line-height: 1.7; color: var(--steel); }

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .team-grid.team-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.team-card { border: var(--line-dark); transition: background-color .2s var(--ease); display: flex; flex-direction: column; }
.team-card:hover { background: rgba(43, 46, 51, .05); }
.team-photo {
  aspect-ratio: 1 / 1; max-width: 100%; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #a2a2a2 0%, #acacac 55%, #bababa 100%);
  display: grid; place-items: center; border-bottom: var(--line-dark);
}
.team-photo .mono { font-family: var(--font-display); font-weight: 600; font-size: 64px; color: rgba(43, 46, 51, .3); letter-spacing: .02em; }
.team-photo .tag { position: absolute; bottom: 14px; left: 14px; font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--text); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.team-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.team-body h3 { font-size: 22px; }
.team-role { font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--text); }
.team-body p { font-size: 14px; line-height: 1.65; color: var(--text); margin-top: 6px; }
.team-body .link-arrow { margin-top: auto; align-self: flex-start; padding-top: 14px; }

/* ---------- Prozess ---------- */
.process { display: grid; border: var(--line); counter-reset: step; }
@media (min-width: 768px) { .process { grid-template-columns: repeat(5, 1fr); } }
.process li { padding: 32px 28px; border-top: var(--line); display: flex; flex-direction: column; gap: 14px; }
.process li:first-child { border-top: 0; }
@media (min-width: 768px) {
  .process li { border-top: 0; border-left: var(--line); }
  .process li:first-child { border-left: 0; }
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%; border: var(--line); color: var(--text);
  display: grid; place-items: center; font-family: var(--font-sans); font-size: 14px; font-weight: 600;
}
.process h3 { font-size: 18px; line-height: 1.3; }
.process p { font-size: 14px; line-height: 1.6; color: var(--steel); }

/* ---------- Projekt-Karussell ---------- */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border: var(--line); background: var(--paper); }
.carousel-track { display: flex; transition: transform .6s var(--ease); }
.carousel-track > * { flex: 0 0 100%; }
@media (min-width: 768px) { .carousel-track > * { flex-basis: 50%; } }
@media (min-width: 1024px) { .carousel-track > * { flex-basis: 33.3333%; } }
.carousel-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.carousel-btns { display: flex; gap: 8px; }
.sq-btn {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  background: var(--paper); border: var(--line); color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.sq-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sq-btn:disabled { opacity: .35; cursor: default; }
.sq-btn svg { width: 16px; height: 16px; }
.carousel-count { font-size: 13px; color: var(--steel); }

.project-card { display: flex; flex-direction: column; border-left: var(--line); background: var(--paper); transition: background-color .2s var(--ease); }
.carousel-track .project-card:first-child { border-left: 0; }
.project-card:hover { background: var(--mist); }
.project-img { aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #d9d9d9, #efefef); border-bottom: var(--line); position: relative; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project-card:hover .project-img img { transform: scale(1.04); }
.status {
  position: absolute; top: 14px; left: 14px; background: var(--paper); color: var(--text);
  font-size: 9px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; padding: 6px 10px; border: var(--line);
}
.status.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.project-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.meta { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.meta em { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--steel); }
.project-body h3 { font-size: 20px; line-height: 1.3; }
.project-body p { font-size: 14px; line-height: 1.6; color: var(--steel); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.facts li { font-size: 11px; letter-spacing: .04em; padding: 5px 10px; border: var(--line); background: var(--paper); }
.project-body .link-arrow { margin-top: auto; align-self: flex-start; padding-top: 8px; }

/* Projekt-Grid (Projekte-Seite) */
.project-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-grid .project-card { border: var(--line); }
@media (min-width: 768px) { .project-grid.two { grid-template-columns: repeat(2, 1fr); } }
.project-grid.one { max-width: 34rem; margin-inline: auto; grid-template-columns: 1fr; }

/* Bild-Platzhalter (echte Fotos/Visualisierungen folgen) */
.img-ph { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 16px; }
.split-img .img-ph, .project-img .img-ph { position: absolute; inset: 0; }
.split-img { position: relative; }
.card-actions { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: auto; padding-top: 8px; }
.project-body .card-actions .link-arrow { margin-top: 0; padding-top: 0; }

/* Datentabellen (Projektseite) */
.table-wrap { overflow-x: auto; border: var(--line); background: var(--paper); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.data-table th, .data-table td { text-align: left; padding: 14px 18px; border-bottom: var(--line); vertical-align: top; }
.data-table th { font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); background: var(--mist); }
.data-table tr:last-child td { border-bottom: 0; }
.facts-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts-table th, .facts-table td { text-align: left; padding: 14px 0; border-bottom: var(--line); vertical-align: top; }
.facts-table th { width: 40%; padding-right: 16px; font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }

.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.filter button {
  background: var(--paper); border: var(--line); padding: 10px 18px; cursor: pointer;
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.filter button:hover { background: var(--mist); }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Zitat ---------- */
.quote-block { max-width: 48rem; margin-inline: auto; text-align: center; }
.quote-mark { font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 1; color: var(--silver); display: block; height: 36px; }
.quote-block blockquote p { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.45; letter-spacing: -.01em; color: var(--text); }
@media (min-width: 768px) { .quote-block blockquote p { font-size: 28px; } }
.quote-block figcaption { margin-top: 24px; font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--steel); }

/* ---------- Region / Standort ---------- */
.region { display: grid; gap: 28px; }
@media (min-width: 1024px) { .region { grid-template-columns: 1fr 1.2fr; } }
.office { background: var(--paper); border: var(--line); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.office h3 { font-size: 22px; }
.office address, .office p { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.office .row { display: flex; gap: 14px; align-items: baseline; font-size: 15px; }
.office .row > :last-child { min-width: 0; overflow-wrap: anywhere; }
.office .row a { color: var(--ink); }
@media (max-width: 479px) { .office { padding: 28px 24px; } }
.office .row span:first-child { width: 64px; flex: none; font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.map-ph {
  aspect-ratio: 16 / 10; border: var(--line); position: relative; overflow: hidden;
  background:
    linear-gradient(0deg, rgba(150, 156, 166,.35) .5px, transparent .5px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(150, 156, 166,.35) .5px, transparent .5px) 0 0 / 28px 28px,
    var(--mist);
  display: grid; place-items: center;
}
.map-ph::before { content: ""; position: absolute; left: -10%; right: -10%; top: 58%; height: 14px; background: rgba(150, 156, 166,.4); transform: rotate(-12deg); }
.map-ph::after { content: ""; position: absolute; left: 35%; top: -10%; bottom: -10%; width: 8px; background: rgba(150, 156, 166,.32); transform: rotate(18deg); }
.map-ph .pin {
  position: relative; z-index: 1; background: var(--text); color: var(--paper); padding: 8px 14px;
  font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
/* Erfahrung (Über uns): Kennzahlen Denis Bau */
.exp-stats { display: grid; margin-top: 56px; border-top: 1px solid rgba(43, 46, 51, .22); }
@media (min-width: 768px) { .exp-stats { grid-template-columns: repeat(3, 1fr); } }
.exp-stat { padding: 36px 16px; text-align: center; border-bottom: 1px solid rgba(43, 46, 51, .22); }
@media (min-width: 768px) { .exp-stat + .exp-stat { border-left: 1px solid rgba(43, 46, 51, .22); } }
.exp-stat strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.01em; color: var(--text); }
.exp-stat span { display: block; margin-top: 12px; font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--text); }

/* Grundrisse (Projektseite) */
.plan-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }
.plan-card { margin: 0; border: var(--line); background: #fff; display: flex; flex-direction: column; scroll-margin-top: 96px; }
.plan-card a { display: block; aspect-ratio: 1 / 1; padding: 10px; background: #fff; }
.plan-card img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s var(--ease); }
.plan-card a:hover img { transform: scale(1.03); }
.plan-card figcaption { margin-top: auto; padding: 14px 16px; border-top: 1px solid #e3e3e3; font-size: 13px; line-height: 1.6; color: #2b2e33; background: #fff; }
.plan-card figcaption strong { font-weight: 600; }
.plan-price { display: inline-block; margin-top: 6px; font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.plan-status { float: right; font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #6b6f76; margin-top: 10px; }

/* Karte: Zwei-Klick-Lösung (OpenStreetMap erst nach Einwilligung) */
.map-consent { position: relative; z-index: 1; max-width: 26rem; padding: 20px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.office .map-consent p { font-size: 13px; line-height: 1.6; }
.map-consent a { border-bottom: .5px solid currentColor; }
.map-ph.is-loaded::before, .map-ph.is-loaded::after { display: none; }
.map-ph iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.areas { display: grid; background: var(--paper); border: var(--line); }
@media (min-width: 640px) { .areas { grid-template-columns: 1fr 1fr; } }
.area { padding: 32px; border-top: var(--line); }
.area:first-child { border-top: 0; }
@media (min-width: 640px) {
  .area:nth-child(-n+2) { border-top: 0; }
  .area:nth-child(odd) { border-right: var(--line); }
}
.area h3 { font-size: 19px; margin-bottom: 10px; }
.area p { font-size: 14px; line-height: 1.6; color: var(--steel); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { background: var(--paper); border: var(--line); padding: 8px 16px; font-size: 12px; letter-spacing: .04em; color: var(--text-2); }

/* ---------- Split / Bildtext ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.reverse > :first-child { order: 2; } }
.split-img { aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(145deg, #d4d4d4, #efefef); border: var(--line); }
.split-img.wide { aspect-ratio: 4 / 3; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Fließtext ---------- */
.prose { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 24px; line-height: 1.25; color: var(--text); margin-top: 56px; }
.prose h3 { font-size: 19px; line-height: 1.3; color: var(--text); margin-top: 36px; }
.prose h2 + *, .prose h3 + * { margin-top: 14px; }
.prose a { color: var(--ink); border-bottom: .5px solid var(--ink); }
.prose ul { display: grid; gap: 8px; }
.prose ul li { display: flex; gap: 14px; align-items: baseline; }
.prose ul li::before { content: ""; flex: none; width: 12px; height: .5px; background: var(--steel); transform: translateY(-4px); }
.lead-p { font-family: var(--font-sans); font-size: 19px; font-weight: 500; line-height: 1.6; color: var(--text); }

.draft-note {
  border: .5px dashed #c9a400; background: #fffbe6; padding: 18px 22px; font-size: 14px; line-height: 1.6; color: var(--text-2);
}
.draft-note strong { font-weight: 600; }

/* ---------- Service-Liste (Leistungen-Seite) ---------- */
.service-list { border-top: var(--line); }
.service {
  display: grid; gap: 16px 48px; padding-block: 40px; border-bottom: var(--line);
}
@media (min-width: 768px) { .service { grid-template-columns: 80px 1fr 1.3fr; } }
.service .num { font-family: var(--font-sans); font-size: 22px; font-weight: 600; color: var(--steel); line-height: 1; }
.service h3 { font-size: 22px; line-height: 1.25; }
.service p { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.service .dash-list { margin-top: 14px; }

/* Qualitäts-Trio */
.trio { display: grid; border: var(--line); }
@media (min-width: 768px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio > div { padding: 40px 32px; border-top: var(--line); background: var(--paper); transition: background-color .2s var(--ease); }
.trio > div:first-child { border-top: 0; }
@media (min-width: 768px) { .trio > div { border-top: 0; border-left: var(--line); } .trio > div:first-child { border-left: 0; } }
.trio > div:hover { background: var(--mist); }
.trio .icon { width: 36px; height: 36px; color: var(--text); margin-bottom: 22px; }
.trio h3 { font-size: 20px; margin-bottom: 12px; }
.trio p { font-size: 14.5px; line-height: 1.7; color: var(--steel); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 48px; }
@media (min-width: 1024px) { .faq { grid-template-columns: .9fr 1.1fr; gap: 72px; } }
.faq-list { border-top: var(--line); }
.faq-list details { border-bottom: var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 24px; font-family: var(--font-sans); font-weight: 600; font-size: 16px; line-height: 1.45; color: var(--text);
  transition: background-color .2s var(--ease);
}
@media (min-width: 768px) { .faq-list summary { font-size: 17px; } }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: var(--mist); }
.faq-list summary .plus { font-size: 24px; font-weight: 400; line-height: 1; color: var(--text); transition: transform .25s var(--ease); flex: none; }
.faq-list details[open] summary .plus { transform: rotate(45deg); }
.faq-list .answer { padding: 0 24px 26px; font-size: 15px; line-height: 1.75; color: var(--steel); max-width: 40rem; }

/* ---------- CTA ---------- */
.cta { display: grid; gap: 56px; }
@media (min-width: 1024px) { .cta { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.cta .intro { margin-left: 0; }
.cta-steps { margin-top: 40px; border-top: var(--line-dark-soft); }
.cta-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding-block: 20px; border-bottom: var(--line-dark-soft); }
.cta-steps .rn { font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--text); }
.cta-steps strong { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.cta-steps span.t { font-size: 14px; line-height: 1.6; color: var(--text); }
.cta-box { background: rgba(255, 255, 255,.35); border: var(--line-dark); padding: 28px 24px; }
@media (min-width: 640px) { .cta-box { padding: 36px; } }
.cta-box h3 { font-size: 22px; margin-bottom: 20px; }
.check-list { display: grid; gap: 14px; margin-bottom: 32px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; color: var(--text); }
.check-list svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--text); }
.cta-box .small { margin-top: 16px; font-size: 12px; color: var(--text); text-align: center; }

/* ---------- Kontaktformular ---------- */
.form-grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--steel); margin-bottom: 10px; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: var(--line); border-radius: 0; background: transparent;
  padding: 10px 0; font: inherit; font-size: 16px; color: var(--text); outline: none;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom: 1px solid var(--ink); }
.field textarea { resize: vertical; min-height: 130px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--steel); }
.consent input { margin-top: 4px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.form-note { margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--steel); }
.form-status { margin-top: 18px; padding: 14px 18px; border: .5px dashed #c9a400; background: #fffbe6; font-size: 14px; }

.contact-wrap { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact-wrap { grid-template-columns: 1fr 1.3fr; gap: 72px; } }
.form-box { border: var(--line); padding: 32px; background: var(--paper); }
@media (min-width: 768px) { .form-box { padding: 44px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); color: var(--text); border-top: var(--line-dark-soft); }
.footer-top { padding-top: 56px; }
.footer-top .brand svg { width: 30px; height: 30px; }
.footer-grid { display: grid; gap: 40px; margin-top: 40px; padding-bottom: 64px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(5, 1fr); } }
.footer-h { font-family: var(--font-sans); font-size: 10px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--text); }
.footer-h::after { content: ""; display: block; width: 32px; height: .5px; background: rgba(43, 46, 51, .4); margin: 12px 0 20px; }
.footer-h.mini { font-size: 10px; letter-spacing: .28em; margin-top: 28px; }
.site-footer ul { display: grid; gap: 12px; }
.site-footer li a, .site-footer p, .site-footer address { font-size: 14px; line-height: 1.65; color: var(--text); transition: color .2s var(--ease); }
.site-footer li a:hover, .site-footer p a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .muted { color: var(--text); }
.footer-bottom {
  border-top: var(--line-dark-soft); padding-block: 24px; display: flex; flex-direction: column; gap: 14px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer .footer-bottom p { font-size: 10px; line-height: 1.6; color: var(--text); }
.footer-bottom a { font-size: 10px !important; color: var(--text) !important; }
.footer-bottom a:hover { color: var(--ink) !important; }
.site-footer mark.ph { font-size: 12px; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Logo-Akzente (dezent) ----------
   Das Bildzeichen aus dem Logo als Maske, damit es die Farbe des Umfelds annimmt
   (Navy auf hellen, Weiß auf dunklen Flächen). */
.page-hero .eyebrow::before,
.section-head .crest::before,
.cta::after {
  content: "";
  -webkit-mask: url("../img/logo-icon.png") center / contain no-repeat;
  mask: url("../img/logo-icon.png") center / contain no-repeat;
}
.page-hero .eyebrow::before { display: block; width: 24px; height: 32px; margin: 0 auto 22px; background: var(--ink); }
.section-head .crest::before { display: block; width: 13px; height: 18px; margin: 0 auto 16px; background: currentColor; opacity: .5; }
.section-head.left .crest::before { margin-left: 0; }
.cta { position: relative; isolation: isolate; }
.cta::after { position: absolute; z-index: -1; right: -3%; top: 50%; width: min(34vw, 340px); aspect-ratio: 119 / 160; transform: translateY(-50%); background: currentColor; opacity: .05; pointer-events: none; }
@media (max-width: 767px) { .cta::after { width: 58vw; right: -12%; opacity: .04; } }

/* Navigation mit fünf Punkten: nie umbrechen, zwischen 1024 und 1279 px etwas enger */
.nav-links a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-links { gap: 22px; }
  .nav-links a { letter-spacing: .14em; }
  .brand-word { height: 26px; }
  .btn-header { padding: 11px 18px; }
}
/* Auf Fotos (Kopfbild mit Bild) das Zeichen in der Schriftfarbe statt Navy */
.page-hero.has-image .eyebrow::before { background: currentColor; }
