/* ==========================================================================
   Waigel-Baukoordination – Stylesheet
   Farbwelt: Anthrazit / Beton / warmes Sand-Weiß + Logo-Blau als Akzent
   ========================================================================== */

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

:root {
  --anthrazit: #1c1e21;
  --anthrazit-2: #26292d;
  --anthrazit-3: #32363b;
  --beton: #8b8d8f;
  --beton-hell: #d9d6d0;
  --sand: #f4f1ec;
  --sand-2: #ebe6de;
  --weiss: #ffffff;
  --text: #22252a;
  --text-soft: #5b5f66;
  --blau: #0b4ea2;
  --blau-hell: #2f6fd0;
  --blau-glow: rgba(47, 111, 208, .35);

  --font-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 11vw, 140px);
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.65;
  color: var(--text);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  /* Kein overflow-x am body: das macht ihn zu einem eigenen Scrollbereich und
     bricht das Springen zu Abschnitten (#neubau, #sanierung, #ablauf).
     Seitliches Scrollen verhindert stattdessen html { overflow-x: clip }. */
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--blau); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: inherit;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.6rem); font-stretch: 88%; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); font-stretch: 90%; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--dark { background: var(--anthrazit); color: var(--sand); }
.section--sand2 { background: var(--sand-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blau); margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: currentColor;
  box-shadow: 34px 0 0 -0px transparent;
}
.eyebrow--square::after { content: ""; width: 7px; height: 7px; background: currentColor; order: -1; margin-right: -4px; }
.section--dark .eyebrow { color: var(--blau-hell); }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--text-soft); max-width: 60ch; }
.section--dark .lead { color: #b7b9bc; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blau); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: var(--radius);
  background: var(--bg); color: var(--fg);
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  border: 1.5px solid var(--bg); cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--anthrazit); transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--blau-glow); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--ghost::before { background: var(--sand); }
.btn--ghost:hover { color: var(--anthrazit); box-shadow: none; }
.section--dark .btn::before, .hero .btn::before { background: var(--sand); }
.section--dark .btn:not(.btn--ghost):hover, .hero .btn:not(.btn--ghost):hover { color: var(--anthrazit); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blau-hell); outline-offset: 3px;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  color: var(--blau);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .4s var(--ease), gap .3s var(--ease);
  padding-bottom: 2px;
}
.link-arrow:hover { background-size: 100% 1.5px; gap: 14px; }
.section--dark .link-arrow { color: var(--blau-hell); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: height .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { position: relative; width: 168px; height: 46px; flex-shrink: 0; transition: width .4s var(--ease); }
.nav__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .35s var(--ease); }
.nav__logo .logo-dark { opacity: 0; }
.nav__links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative; font-family: var(--font-head); font-weight: 600; font-size: .93rem;
  color: rgba(244, 241, 236, .88); transition: color .3s;
  padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--blau-hell); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__links a:hover { color: #fff; }
.nav__cta { padding: 12px 20px; font-size: .88rem; }
.nav__links .nav__invest { color: rgba(244, 241, 236, .6); font-weight: 500; }

.nav.is-scrolled {
  height: 68px;
  /* Deckend statt durchscheinend: ein Weichzeichner hinter einer Leiste, die beim
     Scrollen immer sichtbar ist, kostet auf dem Handy jeden einzelnen Frame. */
  background: #f7f5f1;
  box-shadow: 0 1px 0 rgba(28, 30, 33, .08), 0 10px 30px -18px rgba(28, 30, 33, .3);
}
@media (hover: hover) and (pointer: fine) {
  .nav.is-scrolled {
    background: rgba(244, 241, 236, .88);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  }
}
.nav.is-scrolled .nav__logo { width: 140px; }
.nav.is-scrolled .logo-light { opacity: 0; }
.nav.is-scrolled .logo-dark { opacity: 1; }
.nav.is-scrolled .nav__links a { color: var(--text); }
.nav.is-scrolled .nav__links .nav__invest { color: var(--text-soft); }
.nav.is-scrolled .nav__links a::after { background: var(--blau); }

.nav__toggle {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
  position: relative; z-index: 130; margin-right: -10px; border-radius: 50%;
  transition: background .3s;
}
.nav__toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--sand);
  transition: transform .4s var(--ease), opacity .3s, background .3s, top .4s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 22px; }
.nav__toggle span:nth-child(3) { top: 28px; }
.nav.is-scrolled .nav__toggle span { background: var(--anthrazit); }

@media (max-width: 960px) {
  :root { --nav-h: 72px; }
  .nav__toggle { display: block; }
  .nav__logo { width: 140px; height: 40px; }
  .nav__links {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: 100px var(--gutter) 40px;
    background: var(--anthrazit);
    /* Kein clip-path: das ruckelt auf dem Handy, weil der Browser bei jedem
       Schritt die ganze Fläche neu zeichnen muss. Opacity und Verschiebung
       laufen dagegen auf der Grafikeinheit. */
    transform: translateX(100%); will-change: transform;
    transition: transform .34s var(--ease-out), visibility 0s .34s;
    visibility: hidden; overscroll-behavior: contain;
  }
  .nav__links li { opacity: 0; transition: opacity .3s ease; }
  .nav__links a { font-size: 2rem; font-weight: 800; color: var(--sand) !important; }
  .nav__links .nav__invest { font-size: 1.2rem; font-weight: 500; color: #9a9da1 !important; margin-top: 10px; display: inline-block; }
  .nav__links .nav__cta { margin-top: 26px; font-size: 1rem; }
  body.menu-open .nav__links { transform: none; visibility: visible; transition: transform .34s var(--ease-out), visibility 0s; }
  body.menu-open .nav__links li { opacity: 1; }
  body.menu-open .nav__links li:nth-child(1) { transition-delay: .06s; }
  body.menu-open .nav__links li:nth-child(2) { transition-delay: .1s; }
  body.menu-open .nav__links li:nth-child(3) { transition-delay: .14s; }
  body.menu-open .nav__links li:nth-child(4) { transition-delay: .18s; }
  body.menu-open .nav__links li:nth-child(5) { transition-delay: .22s; }
  body.menu-open .nav__links li:nth-child(6) { transition-delay: .26s; }
  body.menu-open { overflow: hidden; }
  /* Bei offenem Menue bleibt das Kreuz sichtbar – sonst kommt man nicht mehr raus */
  body.menu-open .nav__toggle { background: rgba(244, 241, 236, .12); }
  body.menu-open .nav__toggle span { background: #fff; height: 2.5px; }
  body.menu-open .nav__toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
  body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav__toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--anthrazit); color: var(--sand);
  overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__bg { position: absolute; inset: -10% 0 0 0; z-index: -2; will-change: transform; }
.hero__bg::before {
  /* Betonstruktur: feines Rauschen + Licht */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 700px at 78% 30%, rgba(47, 111, 208, .16), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgba(255, 255, 255, .05), transparent 60%),
    linear-gradient(180deg, #1c1e21 0%, #202327 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: overlay;
  /* wird auf Touch-Geraeten ausgeblendet, siehe unten */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .6 0 0 0 0 .6 0 0 0 0 .6 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__grid {
  /* Bauplan-Raster */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 241, 236, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 236, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  animation: gridDrift 90s linear infinite;
}
@keyframes gridDrift { to { background-position: 64px 64px; } }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.1s var(--ease-out) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
/* Ein Lichtstreifen wandert einmal über das hervorgehobene Wort */
.hero h1 em {
  font-style: normal; color: var(--blau-hell);
  background: linear-gradient(100deg, var(--blau-hell) 38%, #cfe0ff 50%, var(--blau-hell) 62%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2.2s 1.1s var(--ease-out) forwards;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.hero .lead { color: #b9bbbe; margin-bottom: 38px; }
.hero .eyebrow { color: var(--blau-hell); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.fade-in { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease-out) forwards; }
.d1 { animation-delay: .45s; } .d2 { animation-delay: .6s; } .d3 { animation-delay: .75s; } .d4 { animation-delay: .95s; }

@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Rohbau auf der Startseite: isometrisch, baut sich Geschoss für Geschoss auf.
   Startet erst, wenn er im Bild ist (Klasse .is-drawing aus main.js).
   Bewusst anders als die gezeichnete Seitenansicht auf den Unterseiten. */
.hero__visual { position: relative; will-change: transform; }
.blueprint { width: 100%; height: auto; overflow: visible; transform: translateZ(0); }

.blueprint .iso-grid { stroke: rgba(244, 241, 236, .09); stroke-width: 1; }
.blueprint .iso-slab { fill: rgba(47, 111, 208, .22); stroke: rgba(244, 241, 236, .55); stroke-width: 1.2; }
.blueprint .iso-slab-side { fill: rgba(20, 22, 25, .75); stroke: rgba(244, 241, 236, .4); stroke-width: 1; }
.blueprint .iso-wall { fill: rgba(244, 241, 236, .07); stroke: rgba(244, 241, 236, .5); stroke-width: 1.2; }
.blueprint .iso-wall--dark { fill: rgba(10, 12, 14, .45); }
.blueprint .iso-win { fill: rgba(47, 111, 208, .3); stroke: rgba(120, 170, 255, .55); stroke-width: 1; }
.js .blueprint .iso-win { opacity: 0; }
.blueprint.is-drawing .iso-win { animation: winOn .45s var(--ease-out) forwards; }
.blueprint.is-drawing .iso-p1 .iso-win:nth-of-type(1) { animation-delay: .95s; }
.blueprint.is-drawing .iso-p1 .iso-win:nth-of-type(2) { animation-delay: 1.02s; }
.blueprint.is-drawing .iso-p1 .iso-win:nth-of-type(3) { animation-delay: 1.09s; }
.blueprint.is-drawing .iso-p1 .iso-win:nth-of-type(4) { animation-delay: 1.16s; }
.blueprint.is-drawing .iso-p2 .iso-win:nth-of-type(1) { animation-delay: 1.1s; }
.blueprint.is-drawing .iso-p2 .iso-win:nth-of-type(2) { animation-delay: 1.17s; }
.blueprint.is-drawing .iso-p2 .iso-win:nth-of-type(3) { animation-delay: 1.24s; }
.blueprint.is-drawing .iso-p2 .iso-win:nth-of-type(4) { animation-delay: 1.31s; }
.blueprint.is-drawing .iso-p3 .iso-win:nth-of-type(1) { animation-delay: 1.25s; }
.blueprint.is-drawing .iso-p3 .iso-win:nth-of-type(2) { animation-delay: 1.32s; }
.blueprint.is-drawing .iso-p3 .iso-win:nth-of-type(3) { animation-delay: 1.39s; }
.blueprint.is-drawing .iso-p3 .iso-win:nth-of-type(4) { animation-delay: 1.46s; }
@keyframes winOn { from { opacity: 0; } to { opacity: 1; } }
.blueprint .iso-edge { stroke: rgba(244, 241, 236, .55); stroke-width: 1.2; }
.blueprint .iso-edge--accent { stroke: var(--blau-hell); stroke-width: 2; }
.blueprint .iso-dim { stroke: rgba(120, 170, 255, .6); stroke-width: 1.2; }
.blueprint .iso-pulse { fill: var(--blau-hell); opacity: 0; }

/* Ausgangszustand: Baugrund blass, Geschosse noch nicht gesetzt */
.js .blueprint .iso-ground { opacity: 0; }
.js .blueprint .iso-part { opacity: 0; }

.blueprint.is-drawing .iso-ground { animation: isoGround .7s var(--ease-out) forwards; }
.blueprint.is-drawing .iso-part { animation: isoDrop .7s var(--ease-out) forwards; }
.blueprint.is-drawing .iso-p0 { animation-delay: .2s; }
.blueprint.is-drawing .iso-p1 { animation-delay: .42s; }
.blueprint.is-drawing .iso-p2 { animation-delay: .64s; }
.blueprint.is-drawing .iso-p3 { animation-delay: .86s; }
.blueprint.is-drawing .iso-dimgroup { animation-delay: 1.45s; }
.blueprint.is-drawing .iso-pulse { animation: isoPulse 3s 1.8s var(--ease) infinite; }

/* Zeichnet Linien: stroke-dasharray steht auf 1, der Versatz laeuft auf 0 */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes isoGround { to { opacity: 1; } }
@keyframes isoDrop {
  from { opacity: 0; transform: translateY(-34px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes isoPulse {
  0%, 100% { opacity: .2; transform: scale(.7); }
  45% { opacity: .9; transform: scale(1.15); }
}
.blueprint .iso-pulse { transform-box: fill-box; transform-origin: 50% 50%; }

}

.hero__badge {
  position: absolute; left: -6%; bottom: 6%;
  background: rgba(38, 41, 45, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 241, 236, .1); border-radius: var(--radius-lg);
  padding: 18px 22px; display: flex; align-items: center; gap: 16px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  opacity: 0; animation: fadeUp 1s 2.1s var(--ease-out) forwards;
}
.hero__badge strong { font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1; color: #fff; }
.hero__badge span { font-size: .85rem; line-height: 1.35; color: #aeb1b5; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid rgba(244, 241, 236, .3); border-radius: 14px;
  opacity: 0; animation: fadeUp 1s 2.4s forwards;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px;
  background: var(--sand); border-radius: 2px; animation: scrollDot 1.8s infinite var(--ease);
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 960px) {
  .hero { padding-top: calc(var(--nav-h) + 30px); padding-bottom: 64px; align-items: flex-start; min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; width: 100%; margin: 10px auto 0; }
  .hero__badge { left: 0; bottom: -4%; padding: 14px 16px; }
  .hero__badge strong { font-size: 1.6rem; }
  .scroll-hint { display: none; }
}
@media (max-width: 560px) {
  .eyebrow { letter-spacing: .12em; font-size: .72rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Kennzahlen ---------- */
.stats { background: var(--anthrazit-2); color: var(--sand); padding: 0; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: clamp(34px, 5vw, 56px) clamp(16px, 2.5vw, 34px); border-left: 1px solid rgba(244, 241, 236, .08); position: relative; }
.stat:first-child { border-left: 0; }
.stat::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--blau-hell);
  transition: width 1.2s var(--ease-out) .2s;
}
.stat.is-visible::before { width: 44px; }
.stat__num {
  font-family: var(--font-head); font-weight: 800; font-stretch: 85%;
  font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: #fff; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: .5em; color: var(--blau-hell); margin-left: 2px; font-weight: 700; }
.stat__label { margin-top: 10px; font-size: .92rem; color: #a8abaf; line-height: 1.45; }
@media (max-width: 640px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(244, 241, 236, .08); display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px; padding: 26px 0; }
  .stat:first-child { border-top: 0; }
  .stat__label { margin: 0; }
  .stat__label br { display: none; }
}

/* ---------- Section Header ---------- */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; align-items: end; margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Leistungs-Karten ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service {
  position: relative; display: flex; flex-direction: column;
  background: var(--weiss); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 1px 0 rgba(28, 30, 33, .06), 0 20px 40px -30px rgba(28, 30, 33, .25);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.service:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(28, 30, 33, .06), 0 40px 60px -30px rgba(28, 30, 33, .35); }
.service__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.service__media .ph { transition: transform 1.2s var(--ease-out); }
.service:hover .service__media .ph { transform: scale(1.05); }
.service__num {
  position: absolute; top: 18px; left: 20px; z-index: 2;
  font-family: var(--font-head); font-weight: 800; font-size: .85rem; letter-spacing: .15em; color: #fff;
  background: var(--blau); padding: 6px 10px; border-radius: 2px;
}
.service__body { padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; flex: 1; }
.service__body h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.service__body > p { color: var(--text-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 6px 0 28px; }
.tags li {
  font-size: .85rem; font-weight: 500; padding: 7px 13px; border-radius: 40px;
  background: var(--sand); color: var(--text); border: 1px solid var(--sand-2);
  transition: background .3s, color .3s, border-color .3s;
}
.service:hover .tags li { border-color: var(--beton-hell); }
.service__body .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

/* ---------- Fotos ---------- */
.foto {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  background: var(--sand-2);
}
.service__media .foto, .ref-card__media .foto, .split__media .foto, .ref__media .foto,
.gallery .foto { transition: transform 1.2s var(--ease-out); }
.service:hover .service__media .foto,
.ref-card:hover .ref-card__media .foto,
.split__media:hover .foto,
.ref:hover .ref__media .foto { transform: scale(1.04); }
@media (hover: none) {
  .service:hover .service__media .foto, .ref-card:hover .ref-card__media .foto,
  .split__media:hover .foto, .ref:hover .ref__media .foto { transform: none; }
}

/* ---------- Foto-Platzhalter ---------- */
.ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 20px;
  background:
    repeating-linear-gradient(135deg, rgba(28, 30, 33, .045) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #cfcbc4, #b9b6b0);
  color: #4c4f54;
}
.ph--dark {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #3a3e44, #2a2d31);
  color: #a3a6aa;
}
.ph svg { width: 34px; height: 34px; opacity: .7; }
.ph b {
  font-family: var(--font-head); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  background: #e8b400; color: #1c1e21; padding: 4px 8px; border-radius: 2px;
}
.ph span { font-size: .88rem; max-width: 30ch; line-height: 1.4; }

/* ---------- Werte / Warum ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.why__sticky { position: sticky; top: 120px; }
.why__list { display: grid; gap: 0; counter-reset: why; }
.why__item {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 32px 0;
  border-top: 1px solid rgba(244, 241, 236, .12);
}
.why__item:last-child { border-bottom: 1px solid rgba(244, 241, 236, .12); }
.why__icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(244, 241, 236, .18); color: var(--blau-hell);
  transition: background .4s var(--ease), color .4s, border-color .4s, transform .5s var(--ease-out);
}
.why__item:hover .why__icon { background: var(--blau); color: #fff; border-color: var(--blau); transform: rotate(-8deg) scale(1.05); }
.why__icon svg { width: 24px; height: 24px; }
.why__item h3 { margin-bottom: 8px; color: #fff; }
.why__item p { margin: 0; color: #a9acb0; }
@media (max-width: 860px) {
  .why { grid-template-columns: 1fr; }
  .why__sticky { position: static; }
  .why__item { grid-template-columns: 52px 1fr; gap: 16px; padding: 26px 0; }
  .why__icon { width: 48px; height: 48px; }
}

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; list-style: none; padding: 0; margin: 0; }
/* Die Linie endet an der Mitte des letzten Kreises – nicht am Rand.
   --line-x / --line-y setzt main.js auf die Mitte des letzten Kreises. */
.steps::before {
  content: ""; position: absolute; top: 27px; left: 28px; height: 2px;
  width: calc(var(--line-x, 100%) - 28px);
  background: var(--beton-hell);
}
.steps::after {
  content: ""; position: absolute; top: 27px; left: 28px; height: 2px; width: 0;
  background: var(--blau); transition: width 1.8s var(--ease-out) .2s;
}
.steps.is-visible::after { width: calc(var(--line-x, 100%) - 28px); }
.step { position: relative; padding-right: 26px; }
.step__dot {
  position: relative; z-index: 2; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand); border: 2px solid var(--beton-hell);
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--text-soft);
  transition: background .5s var(--ease), border-color .5s, color .5s, transform .5s var(--ease-out);
  margin-bottom: 26px;
}
.steps.is-visible .step__dot { background: var(--blau); border-color: var(--blau); color: #fff; }
.steps.is-visible .step:nth-child(1) .step__dot { transition-delay: .2s; }
.steps.is-visible .step:nth-child(2) .step__dot { transition-delay: .7s; }
.steps.is-visible .step:nth-child(3) .step__dot { transition-delay: 1.2s; }
.steps.is-visible .step:nth-child(4) .step__dot { transition-delay: 1.7s; }
.step:hover .step__dot { transform: scale(1.08); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-soft); font-size: .96rem; margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before, .steps::after { top: 28px; left: 27px; right: auto; width: 2px; }
  .steps::before { height: calc(var(--line-y, 100%) - 28px); }
  .steps::after { height: 0; bottom: auto; transition: height 1.8s var(--ease-out) .2s; }
  .steps.is-visible::after { width: 2px; height: calc(var(--line-y, 100%) - 28px); }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 0 0 34px; }
  .step:last-child { padding-bottom: 0; }
  .step__dot { margin: 0; }
}

/* ---------- Referenz ---------- */
.ref { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; background: var(--weiss); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(28, 30, 33, .4); }
.ref__media { position: relative; min-height: 420px; overflow: hidden; }
.ref__media .ph { transition: transform 1.4s var(--ease-out); }
.ref:hover .ref__media .ph { transform: scale(1.04); }
.ref__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.ref__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 24px 0 32px; padding: 24px 0; border-top: 1px solid var(--sand-2); border-bottom: 1px solid var(--sand-2); }
.ref__facts dt { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--beton); font-family: var(--font-head); font-weight: 700; }
.ref__facts dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
@media (max-width: 860px) {
  .ref { grid-template-columns: 1fr; }
  .ref__media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Investoren-Teaser (klar getrennt) ---------- */
.invest-teaser {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg);
  border: 1px solid var(--beton-hell); background: transparent;
  transition: border-color .4s, background .4s;
}
.invest-teaser:hover { border-color: var(--blau); background: rgba(11, 78, 162, .03); }
.invest-teaser__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--anthrazit); color: #fff; display: grid; place-items: center; }
.invest-teaser__icon svg { width: 28px; height: 28px; }
.invest-teaser h3 { margin-bottom: 6px; }
.invest-teaser p { margin: 0; color: var(--text-soft); }
.invest-teaser small { display: block; font-family: var(--font-head); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--beton); margin-bottom: 6px; font-weight: 700; }
@media (max-width: 760px) { .invest-teaser { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--blau); color: #fff; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.cta__inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta h2 { margin-bottom: 16px; }
.cta p { color: rgba(255, 255, 255, .8); margin: 0; font-size: 1.1rem; }
.cta__contact { display: grid; gap: 14px; justify-items: start; }
.cta .btn { --bg: #fff; --fg: var(--anthrazit); }
.cta .btn::before { background: var(--anthrazit); }
.cta .btn:hover { color: #fff; }
.cta__phone {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: #fff; transition: opacity .3s;
}
.cta__phone:hover { opacity: .8; }
.cta__phone svg { width: 26px; height: 26px; }
@media (max-width: 860px) { .cta__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--anthrazit); color: #a4a7ab; padding: clamp(60px, 8vw, 96px) 0 30px; font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__logo { width: 190px; margin-bottom: 20px; }
.footer h4 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 18px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { transition: color .3s; }
.footer a:hover { color: #fff; }
.footer__bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: .85rem; }
.footer__bottom nav { display: flex; gap: 22px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Mobile Call-Leiste ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    /* Weiches Einblenden mit nur kleiner Bewegung – die Leiste rauschte vorher
       über die volle Hoehe herein, das wirkt auf dem Handy hakelig. */
    opacity: 0; transform: translateY(14px);
    transition: opacity .45s ease, transform .45s var(--ease-out);
    pointer-events: none; will-change: transform, opacity; backface-visibility: hidden;
  }
  .callbar.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px;
    border-radius: 8px; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
    background: var(--anthrazit); color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
  }
  .callbar a:last-child { background: var(--blau); }
  .callbar svg { width: 18px; height: 18px; }
  body.menu-open .callbar { opacity: 0; transform: translateY(14px); pointer-events: none; }
}

/* ---------- Scroll-Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--delay, 0s); }
.js .reveal--left { transform: translateX(-32px); }
.js .reveal--right { transform: translateX(32px); }
.js .reveal--scale { transform: scale(.96); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-mask { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-out); transition-delay: var(--delay, 0s); }
.js .reveal-mask.is-visible { clip-path: inset(0 0 0 0); }

/* ---------- Entwurfs-Hinweis (vor Livegang entfernen) ---------- */
.draft-note {
  position: fixed; left: 16px; bottom: 16px; z-index: 95;
  background: #e8b400; color: #1c1e21; font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 30px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4); white-space: nowrap;
}
@media (max-width: 760px) { .draft-note { bottom: auto; top: calc(var(--nav-h) + 6px); left: auto; right: 12px; transform: none; font-size: .66rem; padding: 4px 9px; opacity: .85; } }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-mask { opacity: 1; transform: none; clip-path: none; }
  /* Dauerschleifen ganz abschalten statt sie nur zu beschleunigen */
  .blueprint.is-drawing .iso-pulse,
  .page-hero__deco.is-drawing .deco-pulse,
  .hero__grid,
  .region-note__radius::after { animation: none !important; }
  .blueprint .iso-pulse, .page-hero__deco .deco-pulse { opacity: .7; }
  .js .blueprint .iso-ground, .js .blueprint .iso-part, .js .blueprint .iso-win { opacity: 1; }
}

/* ---------- Barrierefreiheit ---------- */
.sr-only { position: absolute; left: -9999px; top: 0; }
.sr-only:focus { left: 16px; top: 16px; z-index: 200; background: #fff; color: var(--anthrazit); padding: 10px 16px; border-radius: var(--radius); }

/* Nav-CTA behält Button-Optik */
.nav__links a.btn, .nav.is-scrolled .nav__links a.btn { color: #fff; padding: 12px 20px; }
.nav__links a.btn::after { display: none; }
.nav__links a.btn:hover { color: #fff; }
.nav.is-scrolled .nav__links a.btn::before { background: var(--anthrazit); }

/* ==========================================================================
   Unterseiten
   ========================================================================== */

/* ---------- Seiten-Hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--anthrazit); color: var(--sand);
  padding: calc(var(--nav-h) + clamp(60px, 9vw, 120px)) 0 clamp(60px, 8vw, 100px);
}
.page-hero .hero__bg { inset: -20% 0 0 0; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 16ch; margin-bottom: 24px; }
.page-hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.page-hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.1s var(--ease-out) forwards; }
.page-hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.page-hero h1 em { font-style: normal; color: var(--blau-hell); }
.page-hero .lead { color: #b9bbbe; margin: 0; }
.page-hero .eyebrow { color: var(--blau-hell); }
.crumbs { display: flex; gap: 10px; font-size: .84rem; color: #8f9296; margin-bottom: 26px; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }
.page-hero__deco {
  transform: translateZ(0);
  position: absolute; right: -40px; bottom: -30px; width: min(48vw, 580px); z-index: -1; pointer-events: none;
}
.page-hero__deco path { fill: none; stroke: rgba(244, 241, 236, .28); stroke-width: 1.5; }
.page-hero__deco .acc { stroke: rgba(47, 111, 208, .8); stroke-width: 2; }
.page-hero__deco [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.page-hero__deco.is-drawing [pathLength],
html:not(.js) .page-hero__deco [pathLength] { animation: draw 1.5s var(--ease) forwards; }
/* Die Teile zeichnen sich nacheinander – Gelände, Gebäude, Details, Akzent */
.page-hero__deco.is-drawing path:nth-child(1) { animation-delay: .15s; }
.page-hero__deco.is-drawing path:nth-child(2) { animation-delay: .45s; }
.page-hero__deco.is-drawing path:nth-child(3) { animation-delay: .75s; }
.page-hero__deco.is-drawing path:nth-child(4) { animation-delay: 1.05s; }
.page-hero__deco .deco-pulse { fill: var(--blau-hell); opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.page-hero__deco.is-drawing .deco-pulse { animation: isoPulse 3s 2.2s var(--ease) infinite; }
@media (max-width: 760px) {
  /* Auf dem Handy läuft die Zeichnung NICHT hinter dem Text, sondern in einem
     eigenen Streifen darunter – sonst leidet die Lesbarkeit und man sieht beides schlecht. */
  .page-hero__deco { width: 88vw; max-width: none; right: auto; left: 50%; transform: translateX(-50%); bottom: -6px; }
  .page-hero__deco path { stroke: rgba(244, 241, 236, .42); stroke-width: 2; }
  .page-hero__deco .acc { stroke: rgba(74, 140, 235, .95); stroke-width: 2.4; }
  /* Hintergrundraster steht still, damit nichts hinter der Schrift wandert */
  .hero__grid { animation: none; }
}

/* ---------- Unter-Navigation (Sprungmarken) ---------- */
.subnav { position: sticky; top: 68px; z-index: 50; background: #f7f5f1; border-bottom: 1px solid var(--sand-2); }
@media (hover: hover) and (pointer: fine) {
  .subnav { background: rgba(244, 241, 236, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.subnav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; white-space: nowrap; padding: 9px 16px; border-radius: 40px;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--text-soft);
  transition: background .3s, color .3s;
}
.subnav a:hover { color: var(--text); background: var(--sand-2); }
.subnav a.is-active { background: var(--anthrazit); color: #fff; }

/* ---------- Split-Layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.split__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; }
.split__media--wide { aspect-ratio: 4 / 3; }
.split__media .ph { transition: transform 1.4s var(--ease-out); }
.split__media:hover .ph { transform: scale(1.04); }
.split__media-tag {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  background: var(--anthrazit); color: #fff; padding: 12px 16px; border-radius: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__media { aspect-ratio: 4 / 3; } .split--reverse .split__media { order: -1; } }
@media (min-width: 861px) { .split--reverse .split__media { order: 2; } }

/* ---------- Leistungsliste ---------- */
.svc-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--beton-hell); }
.svc-list li { border-bottom: 1px solid var(--beton-hell); }
.svc-item { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px 0; transition: padding .4s var(--ease-out); }
.svc-item:hover { padding-left: 8px; }
.svc-item__num { font-family: var(--font-head); font-weight: 800; color: var(--blau); font-size: .95rem; padding-top: 3px; }
.svc-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.svc-item p { margin: 0; color: var(--text-soft); font-size: .97rem; }
.section--dark .svc-list, .section--dark .svc-list li { border-color: rgba(244, 241, 236, .12); }
.section--dark .svc-item p { color: #a9acb0; }
.section--dark .svc-item__num { color: var(--blau-hell); }

.note {
  display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start;
  margin-top: 32px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--weiss);
  box-shadow: 0 20px 40px -32px rgba(28, 30, 33, .4);
}
.note__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--blau); color: #fff; display: grid; place-items: center; }
.note__icon svg { width: 22px; height: 22px; }
.note strong { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 4px; }
.note p { margin: 0; color: var(--text-soft); font-size: .95rem; }
.note--dark { background: var(--anthrazit-2); box-shadow: none; }
.note--dark strong { color: #fff; }
.note--dark p { color: #a9acb0; }

/* ---------- Karten-Raster ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; padding: clamp(26px, 3vw, 36px); border-radius: var(--radius-lg);
  background: var(--weiss); box-shadow: 0 1px 0 rgba(28, 30, 33, .05), 0 20px 40px -32px rgba(28, 30, 33, .35);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--blau); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 1px 0 rgba(28, 30, 33, .05), 0 34px 50px -30px rgba(28, 30, 33, .4); }
.card:hover::after { transform: scaleX(1); }
.card__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--sand); color: var(--blau); display: grid; place-items: center; margin-bottom: 22px; transition: background .4s, color .4s; }
.card:hover .card__icon { background: var(--blau); color: #fff; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-soft); font-size: .97rem; }
.section--dark .card { background: var(--anthrazit-2); box-shadow: none; }
.section--dark .card h3 { color: #fff; }
.section--dark .card p { color: #a9acb0; }
.section--dark .card__icon { background: rgba(47, 111, 208, .14); color: var(--blau-hell); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards, .cards--2 { grid-template-columns: 1fr; } }

/* ---------- Timeline (Projektentwicklung, 5 Schritte) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; counter-reset: tl; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 28px; width: 2px; height: calc(var(--line-y, 100%) - 28px); background: rgba(244, 241, 236, .12); }
.timeline__fill { position: absolute; left: 27px; top: 28px; width: 2px; height: 0; background: var(--blau-hell); transition: height .15s linear; }
.timeline li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 26px; padding: 0 0 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline__dot {
  position: relative; z-index: 2; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--anthrazit); border: 2px solid rgba(244, 241, 236, .2);
  font-family: var(--font-head); font-weight: 800; color: #a9acb0;
  transition: background .5s var(--ease), border-color .5s, color .5s;
}
.timeline li.is-visible .timeline__dot { background: var(--blau); border-color: var(--blau); color: #fff; }
.timeline h3 { color: #fff; margin: 12px 0 8px; }
.timeline p { margin: 0; color: #a9acb0; max-width: 58ch; }

/* ---------- Hinweis-Box rechtlich ---------- */
.disclaimer {
  border-left: 3px solid var(--beton); padding: 18px 22px; background: var(--sand-2);
  font-size: .9rem; color: var(--text-soft); border-radius: 0 var(--radius) var(--radius) 0;
}
.disclaimer strong { color: var(--text); }

/* ---------- Referenzen ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; aspect-ratio: 16 / 9; }
.gallery > div { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.gallery > div:first-child { grid-row: span 2; }
.gallery .ph { transition: transform 1.2s var(--ease-out); }
.gallery > div:hover .ph { transform: scale(1.05); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; } .gallery > div { aspect-ratio: 4 / 3; } .gallery > div:first-child { grid-column: 1 / -1; grid-row: auto; } }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ref-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--weiss); transition: transform .5s var(--ease-out); }
.ref-card:hover { transform: translateY(-5px); }
.ref-card__media { position: relative; aspect-ratio: 4 / 3; }
.ref-card__body { padding: 22px 24px 26px; }
.ref-card__body small { font-family: var(--font-head); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--beton); font-weight: 700; }
.ref-card__body h3 { margin: 6px 0 0; font-size: 1.15rem; }
.ref-card--empty { border: 1.5px dashed var(--beton-hell); background: transparent; display: grid; place-items: center; text-align: center; padding: 30px; min-height: 280px; color: var(--text-soft); }
@media (max-width: 960px) { .ref-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ref-grid { grid-template-columns: 1fr; } }

/* ---------- Über uns ---------- */
.quote {
  font-family: var(--font-head); font-weight: 700; font-stretch: 92%;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.2; letter-spacing: -.01em;
  margin: 0; padding-left: 28px; border-left: 3px solid var(--blau);
}
.quote cite { display: block; margin-top: 18px; font-style: normal; font-family: var(--font-body); font-weight: 500; font-size: .95rem; color: var(--text-soft); letter-spacing: 0; }
.section--dark .quote cite { color: #a9acb0; }
/* Einsatzgebiet: bewusst keine Chip-/Button-Optik, damit es nicht anklickbar wirkt */
.region-note {
  display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: center;
  margin-top: 18px; padding: 20px 22px; border-radius: var(--radius-lg);
  background: var(--weiss); box-shadow: 0 20px 40px -34px rgba(28, 30, 33, .45);
}
.region-note p { margin: 0; color: var(--text-soft); font-size: .96rem; }
.region-note__more { margin-top: 12px; font-size: .88rem; color: var(--beton); }
.region-note__radius { position: relative; width: 92px; height: 92px; }
.region-note__radius svg { width: 100%; height: 100%; overflow: visible; }
.region-note__ring { fill: none; stroke: var(--beton-hell); stroke-width: 1.5; }
.region-note__ring--2 { stroke: rgba(11, 78, 162, .35); }
.region-note__dot { fill: var(--blau); }
.region-note__radius::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border: 1.5px solid var(--blau); border-radius: 50%; opacity: 0;
  animation: radarPulse 3.4s var(--ease-out) infinite;
}
.region-note__radius strong {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  background: var(--weiss); padding: 0 6px;
  font-family: var(--font-head); font-size: .92rem; font-weight: 800; color: var(--blau); white-space: nowrap;
}
@keyframes radarPulse {
  0% { opacity: .55; transform: scale(.45); }
  70% { opacity: 0; transform: scale(1.25); }
  100% { opacity: 0; transform: scale(1.25); }
}
.section--dark .region-note { background: var(--anthrazit-2); box-shadow: none; }
.section--dark .region-note p { color: #a9acb0; }
.section--dark .region-note__ring { stroke: rgba(244, 241, 236, .2); }
.section--dark .region-note__dot { fill: var(--blau-hell); }
.section--dark .region-note__radius strong { background: var(--anthrazit-2); color: var(--blau-hell); }
@media (max-width: 380px) { .region-note { grid-template-columns: 76px 1fr; gap: 14px; padding: 18px; } .region-note__radius { width: 76px; height: 76px; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.contact__info { display: grid; gap: 14px; }
.contact__item {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center;
  padding: 18px; border-radius: var(--radius-lg); background: var(--weiss);
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
a.contact__item:hover { transform: translateX(4px); box-shadow: 0 20px 40px -30px rgba(28, 30, 33, .45); }
.contact__item .card__icon { margin: 0; width: 52px; height: 52px; }
.contact__item small { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--beton); font-family: var(--font-head); font-weight: 700; }
.contact__item strong { font-family: var(--font-head); font-size: 1.08rem; word-break: break-word; }

.form { background: var(--weiss); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: 0 30px 60px -40px rgba(28, 30, 33, .4); }
.form h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }
.field { position: relative; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field label .opt { font-weight: 400; color: var(--beton); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 14px 16px; border-radius: 6px; border: 1.5px solid var(--beton-hell); background: var(--sand);
  transition: border-color .25s, background .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b5f66' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--beton); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blau); background: #fff; box-shadow: 0 0 0 4px rgba(11, 78, 162, .12); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #c0392b; background: #fff6f5; }
.field__error { display: none; font-size: .82rem; color: #c0392b; margin-top: 6px; }
.field.is-invalid .field__error { display: block; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: flex; align-items: center; justify-content: center; text-align: center; gap: 8px;
  padding: 14px 10px; border-radius: 6px; border: 1.5px solid var(--beton-hell); background: var(--sand);
  font-weight: 600; font-size: .92rem; cursor: pointer; margin: 0;
  transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease);
}
.choice label:hover { border-color: var(--beton); }
.choice input:checked + label { border-color: var(--blau); background: var(--blau); color: #fff; }
.choice input:focus-visible + label { outline: 2px solid var(--blau-hell); outline-offset: 2px; }
@media (max-width: 480px) { .choice { grid-template-columns: 1fr; } }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: .88rem; color: var(--text-soft); align-items: start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blau); }
.consent a { color: var(--blau); text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__submit { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__submit small { color: var(--beton); font-size: .82rem; }
.btn[disabled] { opacity: .7; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn.is-loading .spinner { display: block; }
.btn.is-loading .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__status { display: none; margin-top: 18px; padding: 16px 18px; border-radius: 6px; font-size: .95rem; }
.form__status.is-ok { display: block; background: #eaf5ee; color: #1e6b3a; }
.form__status.is-error { display: block; background: #fdecea; color: #a02c20; }
.form__status.is-info { display: block; background: #fff6d9; color: #6b5300; }
.form-success { text-align: center; padding: 40px 10px; display: none; }
.form-success svg { width: 64px; height: 64px; margin: 0 auto 18px; color: #1e8a4a; }
.form-success svg path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.form.is-sent .form-success { display: block; }
.form.is-sent .form-success svg path { animation: dash .8s .2s var(--ease-out) forwards; }
.form.is-sent form { display: none; }
@keyframes dash { to { stroke-dashoffset: 0; } }

/* ---------- Rechtstexte ---------- */
.legal > * { max-width: 780px; }
.legal h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 48px 0 14px; }
.legal h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text-soft); }
.legal a { color: var(--blau); text-decoration: underline; }
.todo { background: #fff3c4; color: #5c4700; padding: 1px 6px; border-radius: 3px; font-weight: 600; font-size: .92em; }
.legal-alert { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 20px; border-radius: var(--radius-lg); background: #fff3c4; color: #5c4700; margin-bottom: 36px; font-size: .95rem; }
.legal-alert svg { width: 24px; height: 24px; }
.timeline__list { list-style: none; padding: 0; margin: 0; }
.choice--2 { grid-template-columns: 1fr 1fr; } @media (max-width: 480px) { .choice--2 { grid-template-columns: 1fr; } }
@media (min-width: 861px) { .sticky-col { position: sticky; top: 140px; } }
@media (max-width: 760px) { .draft-note { top: auto; bottom: 76px; } }

/* ==========================================================================
   Smartphone-Feinschliff
   ========================================================================== */
/* Hover-Effekte nur bei echter Maus – verhindert „hängende“ Zustände nach dem Antippen */
@media (hover: none) {
  .btn:hover, .service:hover, .card:hover, .ref-card:hover, a.contact__item:hover { transform: none; box-shadow: inherit; }
  .btn:hover::before { transform: translateY(101%); }
  .btn:hover { color: var(--fg); }
  .service:hover .service__media .ph, .ref:hover .ref__media .ph, .split__media:hover .ph, .gallery > div:hover .ph { transform: none; }
  .svc-item:hover { padding-left: 0; }
  .card:hover::after { transform: scaleX(0); }
  .why__item:hover .why__icon { transform: none; background: transparent; color: var(--blau-hell); border-color: rgba(244, 241, 236, .18); }
  .card:hover .card__icon { background: var(--sand); color: var(--blau); }
  .section--dark .card:hover .card__icon { background: rgba(47, 111, 208, .14); color: var(--blau-hell); }
}
/* Antipp-Feedback auf Touch-Geräten */
.btn:active, .callbar a:active, .contact__item:active, .choice label:active { transform: scale(.98); }
a, button, label { -webkit-tap-highlight-color: transparent; }

@media (max-width: 760px) {
  :root { --section: 72px; }
  body { font-size: 16px; }
  h2 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .lead { font-size: 1.05rem; }
  .sec-head { margin-bottom: 36px; gap: 16px; }
  .eyebrow { margin-bottom: 14px; }

  /* Hero */
  .hero { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 48px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.1rem); margin-bottom: 20px; }
  .hero .lead { margin-bottom: 28px; }
  .hero__visual { max-width: 380px; margin-top: 26px; }
  /* Auf kleinen Displays kräftiger, sonst geht der Rohbau unter */
  .blueprint .iso-slab { stroke-width: 1.4; stroke: rgba(244, 241, 236, .7); }
  .blueprint .iso-wall { stroke-width: 1.4; stroke: rgba(244, 241, 236, .62); }
  .blueprint .iso-edge { stroke-width: 1.4; stroke: rgba(244, 241, 236, .7); }
  .blueprint .iso-edge--accent { stroke-width: 2.4; }
  .blueprint .iso-grid { stroke: rgba(244, 241, 236, .13); }
  .page-hero { padding: calc(var(--nav-h) + 44px) 0 236px; }
  .page-hero h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .crumbs { margin-bottom: 18px; }

  /* Karten & Abstände */
  .service__body { padding: 24px 20px 26px; }
  .service__body h3 { font-size: 1.6rem; }
  .tags { margin-bottom: 22px; }
  .tags li { font-size: .82rem; padding: 6px 11px; }
  .card { padding: 24px 20px; }
  .ref__body { padding: 26px 20px; }
  .ref__facts { gap: 14px 16px; }
  .note { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; }
  .note__icon { width: 40px; height: 40px; }
  .split__media { aspect-ratio: 4 / 3; }
  .why__item h3 { font-size: 1.15rem; }
  .quote { padding-left: 18px; }

  /* Formular */
  .form { padding: 24px 18px; border-radius: 8px; }
  .form__submit .btn { width: 100%; justify-content: center; }
  .contact__item { padding: 14px; grid-template-columns: 46px 1fr; gap: 14px; }
  .contact__item .card__icon { width: 46px; height: 46px; }

  /* CTA */
  .cta__contact { justify-items: stretch; }
  .cta .btn { justify-content: center; }
  .cta__phone { font-size: 1.35rem; }

  /* Footer: Platz für die Anruf-Leiste */
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .footer__bottom { flex-direction: column; margin-top: 40px; }
  .callbar { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .draft-note { bottom: calc(78px + env(safe-area-inset-bottom)); }

  /* Unter-Navigation */
  .subnav ul { padding: 10px 0; }
  .subnav a { padding: 8px 14px; font-size: .88rem; }

  /* Zeitleisten */
  .timeline li { grid-template-columns: 48px 1fr; gap: 18px; padding-bottom: 34px; }
  .timeline__dot { width: 48px; height: 48px; font-size: .95rem; }
  .timeline::before, .timeline__fill { left: 23px; top: 24px; }
  .timeline::before { height: calc(var(--line-y, 100%) - 24px); }
  .timeline h3 { margin-top: 8px; font-size: 1.15rem; }
  .step { grid-template-columns: 48px 1fr; gap: 18px; }
  .step__dot { width: 48px; height: 48px; font-size: .95rem; }
  .steps::before, .steps::after { left: 23px; top: 24px; }

  /* Mobiles Menü */
  .nav__links a { font-size: 1.85rem; }
}
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .nav__logo { width: 124px; }
  .hero h1 { font-size: 2.15rem; }
  .page-hero h1 { font-size: 2rem; }
  .ref__facts { grid-template-columns: 1fr; }
  .callbar a { font-size: .88rem; padding: 13px 8px; }
}
@media (hover: none) {
  .hero .btn:not(.btn--ghost):hover, .section--dark .btn:not(.btn--ghost):hover, .cta .btn:hover, .btn--ghost:hover { color: var(--fg); }
}
html { overflow-x: clip; }
@media (max-width: 860px) {
  .js .reveal--left, .js .reveal--right { transform: translateY(32px); }
  .js .reveal--left.is-visible, .js .reveal--right.is-visible { transform: none; }
  .link-arrow { padding: 12px 0; margin: -12px 0; background-position: 0 calc(100% - 10px); }
}

/* Kontakt: Formular auf dem Handy direkt nach den Kontaktdaten */
.contact { grid-template-areas: "aside form" "region form"; grid-template-rows: auto 1fr; }
.contact__aside { grid-area: aside; }
.contact__form { grid-area: form; }
.contact__region { grid-area: region; margin-top: 40px; }
@media (max-width: 960px) { .contact { grid-template-areas: "aside" "form" "region"; grid-template-rows: auto; } .contact__region { margin-top: 0; } }
.choice--2 { grid-template-columns: 1fr 1fr !important; }

/* Mobiles Menü: Logo sichtbar, Kontakt unten */
.nav__mobile-contact { display: none; }
@media (max-width: 960px) {
  .nav__logo { z-index: 120; }
  body.menu-open .nav__logo .logo-light { opacity: 1; }
  body.menu-open .nav__logo .logo-dark { opacity: 0; }
  body.menu-open .nav { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__links { justify-content: flex-start; padding-top: 120px; }
  .nav__mobile-contact {
    display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 28px; width: 100%;
    border-top: 1px solid rgba(244, 241, 236, .12);
  }
  .nav__links .nav__mobile-contact a { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: #a9acb0 !important; padding: 8px 0; }
  .nav__links .nav__mobile-contact a::after { display: none; }
}
@media (max-width: 560px) { .hide-sm { display: none; } }

/* Referenzen auf dem Handy als wischbare Leiste */
@media (max-width: 640px) {
  .ref-grid {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%;
    gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .ref-grid::-webkit-scrollbar { display: none; }
  .ref-grid > * { scroll-snap-align: start; }
  .js .ref-grid .reveal { opacity: 1; transform: none; }
  .ref-card--empty { min-height: 0; }
  .swipe-hint { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--beton); margin-top: 6px; }
}
.swipe-hint { display: none; }

/* ==========================================================================
   Leistung auf dem Handy
   Touch-Geräte zeichnen jeden Frame selbst. Alles, was den Browser zwingt,
   große Flächen neu zu mischen (Mischmodi, Masken, Weichzeichner), fliegt
   deshalb raus – das ist der Unterschied zwischen ruckelig und flüssig.
   ========================================================================== */
@media (hover: none), (max-width: 960px) {
  /* Rausch-Textur über dem Hero: Mischmodus über die volle Fläche */
  .hero__bg::after { display: none; }
  /* Weiche Maske über dem Bauplan-Raster */
  .hero__grid { mask-image: none; -webkit-mask-image: none; opacity: .5; }
  .cta::before { mask-image: none; -webkit-mask-image: none; opacity: .5; }
  /* Kein Parallax: der Hintergrund wurde bei jedem Frame neu skaliert */
  .hero__bg, .hero__visual { transform: none !important; }
  /* Achtung: hier KEIN transform auf .nav__links oder .callbar setzen –
     beide werden über transform bewegt und bekommen dadurch ohnehin eine
     eigene Ebene. Ein translateZ(0) hier würde ihre Position überschreiben. */

  /* Zeichnungen: gleicher Effekt wie am Rechner. Damit das flüssig bleibt,
     zeichnet sich immer nur ein Teil zur Zeit – die Abstände sind so gewählt,
     dass sich die Bewegungen kaum überlappen. */
  .page-hero__deco.is-drawing [pathLength] { animation-duration: 1.1s; }
  .page-hero__deco.is-drawing path:nth-child(1) { animation-delay: .1s; }
  .page-hero__deco.is-drawing path:nth-child(2) { animation-delay: .95s; }
  .page-hero__deco.is-drawing path:nth-child(3) { animation-delay: 1.8s; }
  .page-hero__deco.is-drawing path:nth-child(4) { animation-delay: 2.65s; }
  .hero__badge { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(38, 41, 45, .95); }
}
