/* Denneng Engineering
   Farbwelt: Graphit + Stahlblau aus dem Logo. Ecken: durchgehend scharf (2px).
   Schriften lokal gehostet: Archivo (variabel, Breite + Gewicht), IBM Plex Mono. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2-variations"), url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2-variations"), url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0c0f12;
  --bg-2: #10151a;
  --surface: #151b21;
  --surface-2: #1b232b;
  --line: rgba(190, 212, 235, 0.12);
  --line-strong: rgba(190, 212, 235, 0.24);
  --text: #e8edf2;
  --text-soft: #c5cfd9;
  --muted: #98a5b2;
  --faint: #5f6c79;
  --accent: #9cc3ee;
  --accent-hover: #bad7f6;
  --accent-deep: #3f6d9b;
  --accent-ink: #0a1520;
  --logo-d: #4f80b0;
  --logo-t: #cfe0f5;
  --error: #ffa392;
  --radius: 2px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.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: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-stretch: 108%;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.section { padding-block: clamp(84px, 11vw, 150px); }
.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head p { margin-top: 20px; color: var(--muted); font-size: 18px; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 500 15.5px/1 var(--font);
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.btn .icon { transition: transform 0.35s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(12, 15, 18, 0.35); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.nav-sentinel { position: absolute; top: 0; left: 0; height: 80px; width: 1px; pointer-events: none; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.is-scrolled, body:not(.home) .site-header {
  background: rgba(12, 15, 18, 0.84);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { height: 34px; width: auto; }
.logo-d { fill: var(--logo-d); }
.logo-t { fill: var(--logo-t); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 21px; font-weight: 600; font-stretch: 104%; letter-spacing: -0.01em; }
.brand-sub { margin-top: 5px; font-size: 9.5px; font-weight: 700; font-stretch: 118%; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav ul a { position: relative; font-size: 15px; color: var(--text-soft); padding-block: 6px; transition: color 0.2s ease; }
.main-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.main-nav ul a:hover { color: var(--text); }
.main-nav ul a:hover::after { transform: scaleX(1); }
.nav-cta { padding: 12px 18px; }
.nav-contact { display: none; }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 46px; height: 46px; margin-right: -8px;
    background: none; border: 0; color: var(--text); cursor: pointer;
  }
  .nav-toggle .icon { width: 26px; height: 26px; grid-area: 1 / 1; }
  .nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 32px clamp(16px, 4vw, 40px) 40px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }
  .nav-open .main-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-open .site-header { background: var(--bg); border-bottom-color: var(--line); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; font-size: 30px; font-stretch: 108%; font-weight: 500; color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav ul a::after { display: none; }
  .nav-cta { justify-content: center; padding: 18px 22px; font-size: 16px; }
  .nav-contact { display: flex; flex-direction: column; gap: 14px; margin-top: auto; color: var(--muted); font-size: 15px; }
  .nav-contact a { display: inline-flex; align-items: center; gap: 10px; }
  .nav-contact .icon { color: var(--accent); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -3; }
.hero-media img { object-fit: cover; object-position: 72% 30%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 15, 18, 0.94) 0%, rgba(12, 15, 18, 0.78) 30%, rgba(12, 15, 18, 0.15) 58%, rgba(12, 15, 18, 0) 70%),
    linear-gradient(180deg, rgba(12, 15, 18, 0) 70%, var(--bg) 100%);
}
.hero-inner { padding-block: 48px 56px; }
.hero-copy { max-width: 640px; }
.hero .hero-title {
  font-weight: 600;
  text-wrap: balance;
  font-size: clamp(2.7rem, 5.6vw, 5.2rem);
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero .hero-title em { font-style: normal; color: var(--accent); }
.hero-lead { margin-top: 28px; max-width: 34em; font-size: clamp(17px, 1.4vw, 19.5px); color: var(--text-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-truss {
  position: relative;
  display: block;
  --tw: min(54vw, 820px);
  width: var(--tw);
  margin-top: clamp(28px, 5vh, 56px);
  margin-left: calc(var(--tw) * -0.04); /* Fachwerk beginnt bei x=40 im viewBox: bündig zum Text */
  height: auto;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
}
.hero-truss path { vector-effect: non-scaling-stroke; }
.truss-members path { stroke: rgba(156, 195, 238, 0.45); stroke-width: 1.1; }
.truss-supports path { stroke: rgba(190, 212, 235, 0.45); stroke-width: 1.1; }
.truss-dim path { stroke: rgba(190, 212, 235, 0.22); stroke-width: 1; }
.truss-load { opacity: 0; transition: opacity 0.8s ease; }
.truss-load path { stroke: var(--text); stroke-width: 1.6; }
.truss-load text { fill: var(--text); stroke: none; font: 500 17px var(--mono); }
.truss-legend { opacity: 0; transition: opacity 0.8s ease 0.3s; }
.truss-legend rect { fill: rgb(156, 195, 238); stroke: none; }
.truss-legend rect.is-druck { fill: rgb(240, 150, 108); }
.truss-legend text { fill: var(--muted); stroke: none; font: 400 13px var(--mono); }
.truss-legend .truss-hint { fill: var(--faint); }
.hero-truss.is-live .truss-load, .hero-truss.is-live .truss-legend { opacity: 1; }

@media (max-width: 767px) {
  .hero { align-items: flex-end; min-height: 100svh; }
  .hero-media img { object-position: 50% 0%; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(12, 15, 18, 0.15) 0%, rgba(12, 15, 18, 0.05) 28%, rgba(12, 15, 18, 0.82) 55%, var(--bg) 78%);
  }
  .hero-inner { padding-block: 0 56px; }
  .hero .hero-title { font-size: clamp(2.4rem, 10.5vw, 3.2rem); }
  .hero-lead { margin-top: 18px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-truss { --tw: calc(100vw - 2 * clamp(16px, 4vw, 40px)); margin-top: 24px; }
  .truss-legend text { font-size: 26px; }
  .truss-legend .truss-hint { display: none; }
  .truss-legend rect { height: 5px; width: 30px; }
  .truss-legend .leg-druck { transform: translateX(60px); }
}

/* ---------- Kennzahlen ---------- */
.facts { border-block: 1px solid var(--line); background: var(--bg-2); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: clamp(28px, 3.4vw, 44px) clamp(18px, 2.4vw, 32px); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-value { order: 0; font-family: var(--mono); font-weight: 500; font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.fact-label { order: 2; font-size: 14.5px; line-height: 1.45; color: var(--muted); max-width: 24ch; }
@media (max-width: 899px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Leistungen (Bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tile h3 { font-size: clamp(20px, 1.7vw, 24px); font-stretch: 104%; line-height: 1.2; letter-spacing: -0.01em; }
.tile p { margin-top: 12px; color: var(--muted); font-size: 15.5px; max-width: 48ch; }
.tile-main { grid-column: 1 / 8; grid-row: 1 / 3; min-height: 580px; }
.tile-static { grid-column: 8 / 13; grid-row: 1; }
.tile-detail { grid-column: 8 / 13; grid-row: 2; }
.tile-accent { grid-column: 1 / 6; grid-row: 3; }
.tile-digital { grid-column: 6 / 13; grid-row: 3; }

/* Platzhalter-Ebene: wird automatisch vom echten Bild überdeckt, sobald die Datei existiert */
.tile-bg, .exp-img::before {
  background:
    var(--img) center / cover no-repeat,
    radial-gradient(120% 90% at 78% 12%, rgba(156, 195, 238, 0.2), transparent 55%),
    linear-gradient(160deg, #1d2833 0%, #11171d 70%);
}
.tile-bg { position: absolute; inset: 0; z-index: -2; transition: transform 1.4s var(--ease-out); }
.tile-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 15, 18, 0) 35%, rgba(12, 15, 18, 0.9) 100%);
}
.tile-photo p { color: var(--text-soft); }
.tile-photo:hover .tile-bg { transform: scale(1.04); }
.tile-detail .tile-bg { background-position: 65% 40%, 0 0, 0 0; }

.tile-static { justify-content: space-between; gap: 20px; }
.beam { width: 100%; max-width: 420px; height: auto; overflow: visible; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.beam path { vector-effect: non-scaling-stroke; }
.beam-line { stroke-width: 3.2; stroke: var(--text); }
.beam-support { stroke: var(--muted); }
.beam-moment { fill: rgba(156, 195, 238, 0.12); stroke-width: 1.2; }
.beam-label { fill: var(--accent); stroke: none; font: 500 15px var(--mono); }

.tile-accent { background: linear-gradient(150deg, #2a5179 0%, #17324d 100%); border-color: rgba(156, 195, 238, 0.25); }
.tile-accent p { color: rgba(232, 237, 242, 0.82); }
.tile-digital {
  background:
    radial-gradient(90% 120% at 100% 100%, rgba(63, 109, 155, 0.35), transparent 60%),
    var(--surface);
}

@media (max-width: 899px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-main { grid-column: 1 / -1; grid-row: auto; min-height: 440px; }
  .tile-static, .tile-detail { grid-column: auto; grid-row: auto; }
  .tile-accent, .tile-digital { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 599px) {
  .bento { grid-template-columns: 1fr; }
  .tile-static, .tile-detail { grid-column: 1 / -1; }
  .tile-main { min-height: 400px; }
}

/* ---------- Zielgruppen + Branchen ---------- */
.partners { background: var(--bg-2); border-block: 1px solid var(--line); padding-bottom: 0; }
.partners-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.partners-statement p { margin-top: 22px; color: var(--muted); font-size: 18px; max-width: 46ch; }
.audience li { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: baseline; }
.audience li:last-child { border-bottom: 1px solid var(--line); }
.audience h3 { font-size: 20px; font-stretch: 104%; }
.audience p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 899px) {
  .partners-grid { grid-template-columns: 1fr; }
  .audience li { grid-template-columns: 1fr; gap: 6px; }
}

.marquee {
  margin-top: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--line);
  padding-block: 30px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; }
.marquee-list li { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-stretch: 118%; font-weight: 500; color: var(--faint); white-space: nowrap; }
.marquee-list li::after { content: "/"; margin-inline: clamp(20px, 2.4vw, 36px); color: var(--accent-deep); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Profil ---------- */
.profile-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.profile-photo { position: sticky; top: calc(var(--header-h) + 32px); }
.profile-photo img { width: 100%; aspect-ratio: 4 / 5.4; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); }
.profile-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: 1px solid var(--accent-deep);
  transform: translate(16px, 16px);
}
.profile-copy h2 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); font-stretch: 112%; }
.profile-role { margin-top: 12px; margin-bottom: 32px; font-family: var(--mono); font-size: 14px; color: var(--accent); }
.profile-copy > p:not(.eyebrow):not(.profile-role) { color: var(--text-soft); max-width: 60ch; }
.profile-copy > p + p:not(.profile-role) { margin-top: 18px; }
.timeline { margin-top: 56px; border-bottom: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 132px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.tl-year { font-family: var(--mono); font-size: 14px; color: var(--muted); padding-top: 2px; }
.timeline strong { display: block; font-weight: 600; font-size: 17px; }
.timeline div span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.tl-now .tl-year, .tl-now strong { color: var(--accent); }
@media (max-width: 899px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-photo { position: relative; top: 0; max-width: 460px; margin-right: 16px; }
  .timeline li { grid-template-columns: 96px 1fr; gap: 16px; }
}

/* ---------- Erfahrung ---------- */
.exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.exp-item:nth-child(even) { margin-top: 56px; }
.exp-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 20px; }
.exp-img::before { content: ""; position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.exp-item:hover .exp-img::before { transform: scale(1.05); }
.exp-item h3 { font-size: 20px; font-stretch: 104%; }
.exp-item p { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 899px) {
  .exp-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 72%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * clamp(16px, 4vw, 40px));
    padding-inline: clamp(16px, 4vw, 40px);
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .exp-grid::-webkit-scrollbar { display: none; }
  .exp-item { scroll-snap-align: start; }
  .exp-item:nth-child(even) { margin-top: 0; }
}

/* ---------- Arbeitsweise ---------- */
.method { background: var(--bg-2); border-top: 1px solid var(--line); }
.method-statement { font-size: clamp(2.2rem, 5vw, 4.6rem); font-stretch: 112%; line-height: 1.05; letter-spacing: -0.025em; max-width: 17ch; }
.method-statement em { font-style: normal; color: var(--accent); }
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(64px, 8vw, 104px); }
.process::before, .process::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; }
.process::before { background: var(--line-strong); }
.process::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--progress, 1)); transition: transform 1.6s var(--ease-out) 0.2s; }
.process li { position: relative; padding-top: 36px; }
.process li::before { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; background: var(--bg-2); border: 1px solid var(--accent); }
.process h3 { font-size: 20px; font-stretch: 104%; }
.process p { margin-top: 10px; color: var(--muted); font-size: 15.5px; max-width: 30ch; }
.principles { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(56px, 7vw, 88px); }
.principles li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 15px; color: var(--text-soft); }
.principles .icon { color: var(--accent); }
@media (max-width: 899px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}
@media (max-width: 599px) {
  .process { grid-template-columns: 1fr; padding-left: 24px; row-gap: 36px; }
  .process::before, .process::after { left: 4px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process::after { transform-origin: top; transform: scaleY(var(--progress, 1)); }
  .process li { padding-top: 0; }
  .process li::before { left: -24px; top: 7px; }
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-info > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 18px; max-width: 40ch; }
.contact-card { display: grid; grid-template-columns: 132px 1fr; gap: 26px; align-items: center; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-card img { width: 132px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius); }
.contact-list li + li { margin-top: 6px; }
.contact-list a, .contact-addr { display: inline-flex; align-items: flex-start; gap: 12px; padding-block: 6px; font-size: 16.5px; }
.contact-list a { transition: color 0.2s ease; }
.contact-list a:hover { color: var(--accent); }
.contact-list .icon { color: var(--accent); width: 20px; height: 20px; margin-top: 3px; }
.contact-addr { color: var(--text-soft); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-soft); }
.field label span { color: var(--accent); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  font: 400 16px/1.5 var(--font);
  color: var(--text);
  background: #0e1317;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:hover, .field textarea:hover { border-color: rgba(190, 212, 235, 0.38); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); background: #10161b; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-help { font-size: 13.5px; color: var(--muted); }
.field-error { font-size: 13.5px; color: var(--error); min-height: 0; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13.5px; color: var(--muted); }
.form-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact-form .btn { justify-self: start; padding: 16px 24px; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--accent); }
.form-status.is-error { color: var(--error); }
@media (max-width: 899px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 96px 1fr; gap: 18px; }
  .contact-card img { width: 96px; }
  .contact-form .btn { justify-self: stretch; justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 72px; padding-bottom: 32px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-claim { margin-top: 20px; color: var(--muted); }
.footer-label { display: block; margin-bottom: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.footer-services, .footer-address, .footer-contact, .footer-legal { font-size: 15px; color: var(--text-soft); line-height: 1.8; }
.footer-services a, .footer-contact a, .footer-legal a { transition: color 0.2s ease; }
.footer-services a:hover, .footer-contact a:hover, .footer-legal a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--faint); }
@media (max-width: 1199px) { .footer-grid { grid-template-columns: repeat(4, auto); justify-content: space-between; row-gap: 48px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; justify-content: stretch; } }
@media (max-width: 499px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Rechtstexte ---------- */
.legal { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 96px)); padding-bottom: clamp(80px, 10vw, 130px); }
.legal .container { max-width: 860px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-stretch: 112%; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 48px; }
.legal h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-stretch: 104%; margin-top: 52px; margin-bottom: 14px; letter-spacing: -0.01em; }
.legal h3 { font-size: 18px; margin-top: 28px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--text-soft); font-size: 16.5px; }
.legal p + p { margin-top: 12px; }
.legal ul { margin-top: 10px; padding-left: 20px; list-style: square; }
.legal li { margin-top: 6px; }
.legal li::marker { color: var(--accent-deep); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal .todo { background: rgba(255, 163, 146, 0.14); color: var(--error); padding: 1px 6px; font-family: var(--mono); font-size: 0.85em; }
.legal .legal-meta { margin-top: 56px; color: var(--faint); font-size: 14px; }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }

  .js [data-hero-in] { opacity: 0; transform: translateY(18px); animation: hero-in 1s var(--ease-out) forwards; animation-delay: calc(150ms + var(--d, 0) * 110ms); }
  @keyframes hero-in { to { opacity: 1; transform: none; } }

  .js .hero-truss path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s cubic-bezier(0.6, 0.1, 0.2, 1) forwards; }
  .js .truss-members path { animation-delay: calc(600ms + var(--i) * 32ms); }
  .js .truss-supports path { animation-delay: 1.9s; }
  .js .truss-dim path { animation-delay: 2.2s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  .js .beam path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s cubic-bezier(0.6, 0.1, 0.2, 1); }
  .js .beam .beam-line { transition-delay: 0.1s; }
  .js .beam .beam-support { transition-delay: 0.4s; }
  .js .beam .beam-load path { transition-delay: 0.7s; }
  .js .beam .beam-moment { fill-opacity: 0; transition: stroke-dashoffset 1.2s ease 1.3s, fill-opacity 0.8s ease 2s; }
  .js .beam .beam-label { opacity: 0; transition: opacity 0.6s ease 2.1s; }
  .js .tile-static.is-visible .beam path { stroke-dashoffset: 0; }
  .js .tile-static.is-visible .beam .beam-moment { fill-opacity: 1; }
  .js .tile-static.is-visible .beam .beam-label { opacity: 1; }

  .js .process:not(.is-visible) { --progress: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ---------- Verlinkte Leistungskacheln ---------- */
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile-link:focus-visible { outline: none; }
.tile.is-linked:has(.tile-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.tile.is-linked { transition: border-color 0.3s ease; }
.tile.is-linked::after {
  content: "";
  position: absolute; top: 22px; right: 22px;
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(12, 15, 18, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%239cc3ee'%3E%3Cpath d='M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform 0.35s var(--ease-out), background-color 0.25s ease, border-color 0.25s ease;
}
.tile.is-linked:hover { border-color: var(--line-strong); }
.tile.is-linked:hover::after { transform: translate(2px, -2px); border-color: var(--accent); background-color: rgba(156, 195, 238, 0.12); }
.tile-static.is-linked::after { top: auto; bottom: 22px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-inner { max-width: 920px; }
.faq-sub { margin-top: 16px; color: var(--muted); font-size: 18px; }
.faq-list { margin-top: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: clamp(17px, 1.5vw, 20px); font-stretch: 104%; line-height: 1.35; transition: color 0.2s ease; }
.faq-item summary:hover h3 { color: var(--accent); }
.faq-icon { position: relative; flex: none; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--accent); transform: translate(-50%, -50%); transition: transform 0.35s var(--ease-out); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 64px 28px 0; }
.faq-answer p { color: var(--text-soft); max-width: 68ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-answer { animation: faq-open 0.45s var(--ease-out); }
  @keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }
}
@media (max-width: 599px) { .faq-answer { padding-right: 0; } }

/* ---------- Leistungsseiten ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  overflow: hidden;
}
.page-hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: var(--img) center / cover no-repeat, var(--surface);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 15, 18, 0.92) 0%, rgba(12, 15, 18, 0.7) 45%, rgba(12, 15, 18, 0.25) 100%),
    linear-gradient(180deg, rgba(12, 15, 18, 0) 55%, var(--bg) 100%);
}
.page-hero-inner { padding-block: 72px clamp(56px, 7vw, 96px); }
.breadcrumb { display: flex; gap: 10px; margin-bottom: 24px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.breadcrumb a { transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--faint); }
.page-hero h1 { max-width: 16ch; font-size: clamp(2.4rem, 5vw, 4.4rem); font-stretch: 112%; line-height: 1.04; letter-spacing: -0.025em; }
.page-hero-lead { margin-top: 24px; max-width: 40em; font-size: clamp(17px, 1.4vw, 19.5px); color: var(--text-soft); }
.page-hero .btn-ghost .icon { transform: none; }

.service-intro-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.service-text p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65; color: var(--text-soft); max-width: 60ch; }
.service-text p:first-child { color: var(--text); }
.service-text p + p { margin-top: 24px; }
.scope { padding: clamp(26px, 3vw, 38px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.scope h2 { font-size: 21px; font-stretch: 104%; margin-bottom: 20px; }
.scope li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--text-soft); }
.scope .icon { color: var(--accent); margin-top: 3px; }
@media (max-width: 899px) { .service-intro-grid { grid-template-columns: 1fr; } }

.uses { border-block: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(56px, 7vw, 88px); }
.uses-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.uses-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 32px; border-left: 1px solid var(--line); }
.uses-grid li { padding: 22px 24px; border-right: 1px solid var(--line); font-size: clamp(17px, 1.4vw, 20px); font-stretch: 106%; font-weight: 500; }
@media (max-width: 899px) {
  .uses-grid { grid-template-columns: 1fr 1fr; border-left: 0; }
  .uses-grid li { border-right: 0; border-top: 1px solid var(--line); padding-inline: 0; }
}
@media (max-width: 499px) { .uses-grid { grid-template-columns: 1fr; } }

.cta-band { background: linear-gradient(150deg, #2a5179 0%, #17324d 100%); border-block: 1px solid rgba(156, 195, 238, 0.25); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: clamp(48px, 6vw, 72px); }
.cta-inner h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.cta-inner p { margin-top: 10px; color: rgba(232, 237, 242, 0.82); }

.related-title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-link {
  position: relative; display: flex; align-items: flex-end; min-height: 220px;
  padding: 24px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.related-img { position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover no-repeat, var(--surface); transition: transform 1.2s var(--ease-out); }
.related-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 15, 18, 0.2) 0%, rgba(12, 15, 18, 0.92) 100%); }
.related-name { font-size: 19px; font-weight: 600; font-stretch: 104%; line-height: 1.25; padding-right: 40px; }
.related-arrow { position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; color: var(--accent); transition: transform 0.35s var(--ease-out); }
.related-link:hover .related-img { transform: scale(1.05); }
.related-link:hover .related-arrow { transform: translate(2px, -2px); }
@media (max-width: 899px) { .related-grid { grid-template-columns: 1fr; } .related-link { min-height: 150px; } }

/* ---------- Kennzahlen als Bemaßung ---------- */
.fact-dim { order: 1; position: relative; display: block; height: 22px; margin: 4px 0 2px; width: min(100%, 230px); }
.fact-dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(156, 195, 238, 0.7); transform-origin: left; }
.fact-dim i, .fact-dim b { position: absolute; top: 0; bottom: 0; width: 0; }
.fact-dim i { left: 0; }
.fact-dim b { right: 0; }
/* Hilfslinie (senkrecht) und Maßstrich (45°) an beiden Enden */
.fact-dim i::before, .fact-dim b::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(190, 212, 235, 0.35); }
.fact-dim i::after, .fact-dim b::after { content: ""; position: absolute; left: -0.5px; top: 50%; width: 2px; height: 14px; margin-top: -7px; background: var(--accent); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .js .fact .fact-dim::before { transform: scaleX(0); transition: transform 1.1s var(--ease-out) calc(var(--d, 0) * 90ms + 250ms); }
  .js .fact .fact-dim b { opacity: 0; transition: opacity 0.35s ease calc(var(--d, 0) * 90ms + 1.05s); }
  .js .fact.is-visible .fact-dim::before { transform: scaleX(1); }
  .js .fact.is-visible .fact-dim b { opacity: 1; }
}

/* ---------- Röntgenblick ---------- */
@property --xr { syntax: "<length-percentage>"; inherits: true; initial-value: 0px; }
.has-xray { --mx: 50%; --my: 50%; --xr: 0px; transition: --xr 0.5s var(--ease-out); }
.has-xray.xray-on { --xr: 120px; }
.has-xray.xray-full { --xr: 150%; --mx: 50%; --my: 50%; transition-duration: 0.9s; }
.xray {
  position: absolute; inset: 0;
  background: #0c1826 center / cover no-repeat;
  clip-path: circle(var(--xr) at var(--mx) var(--my));
  pointer-events: none;
}
.tile .xray { z-index: -2; transition: transform 1.4s var(--ease-out); }
.tile-photo:hover .xray { transform: scale(1.04); }
.exp-item:hover .exp-img .xray { transform: scale(1.05); }
.exp-img .xray { transition: transform 1.2s var(--ease-out); }
.xray-ring {
  position: absolute; left: var(--mx); top: var(--my);
  width: calc(var(--xr) * 2); height: calc(var(--xr) * 2);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(156, 195, 238, 0.85), inset 0 0 40px rgba(156, 195, 238, 0.12);
}
.xray-ring::before, .xray-ring::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(156, 195, 238, 0.7); transform: translate(-50%, -50%); }
.xray-ring::before { width: 14px; height: 1px; }
.xray-ring::after { width: 1px; height: 14px; }
.xray-full .xray-ring { display: none; }
.has-xray.xray-on, .has-xray.xray-on * { cursor: crosshair; }
.xray-hint { margin-top: 14px !important; font-family: var(--mono); font-size: 13px !important; color: var(--accent) !important; }
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .hint-hover { display: none; }
  .hint-touch { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .has-xray { transition: none; }
}

/* ---------- Referenzen als Schriftfeld ---------- */
.refs { border-top: 1px solid var(--line); }
.refs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 20px; align-items: start; }
.ref { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); transition: border-color 0.3s ease; }
.ref:hover { border-color: var(--accent-deep); }
.ref-head { display: flex; justify-content: space-between; align-items: stretch; border-bottom: 1px solid var(--line-strong); }
.ref-title { padding: 18px 22px; align-self: center; min-width: 0; }
.ref-meta { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ref-title h3 { font-size: 19px; font-stretch: 104%; line-height: 1.25; hyphens: auto; }
.ref-key { flex: none; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding: 14px 20px; border-left: 1px solid var(--line-strong); min-width: 116px; text-align: right; }
.ref-key-value { font-family: var(--mono); font-weight: 500; font-size: clamp(20px, 1.8vw, 24px); line-height: 1; color: var(--accent); white-space: nowrap; }
.ref-key-label { margin-top: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ref-text { padding: 16px 22px 4px; font-size: 15px; color: var(--text-soft); }
.ref-tasks { padding: 8px 22px 20px; }
.ref-tasks li { display: flex; gap: 10px; padding: 5px 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.ref-tasks .icon { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--accent); }
.refs-toggle { margin-top: 32px; }
.js .refs-grid:not(.is-open) .ref-more { display: none; }

/* ---------- Kammer-Logo ---------- */
.kammer-badge { display: inline-block; margin-top: 40px; padding: 14px 18px; background: #f4f6f8; border-radius: var(--radius); line-height: 0; transition: transform 0.3s var(--ease-out); }
.kammer-badge:hover { transform: translateY(-2px); }
.kammer-badge img { width: 200px; height: auto; }
.footer-brand .kammer-badge { margin-top: 24px; padding: 10px 14px; }
.footer-brand .kammer-badge img { width: 160px; }

/* ---------- Handy: Bilder nicht mehr von Text überdecken ---------- */
@media (max-width: 767px) {
  /* Startbereich: Foto oben frei, Text darunter */
  .hero { display: block; min-height: 0; padding-top: var(--header-h); }
  .hero-media { position: relative; display: block; height: auto; }
  .hero-media img { position: relative; height: auto; aspect-ratio: 4 / 4.4; object-position: 50% 0%; }
  .hero-shade { background: linear-gradient(180deg, rgba(12, 15, 18, 0) 70%, var(--bg) 100%); height: calc(min(100vw, 767px) * 1.1); top: var(--header-h); bottom: auto; }
  .hero-inner { padding-block: 8px 48px; }

  /* Foto-Kacheln: Bild oben, Text darunter */
  .tile-photo { padding: 0; min-height: 0; justify-content: flex-start; }
  .tile-photo .tile-bg, .tile-photo .xray { position: relative; inset: auto; display: block; aspect-ratio: 16 / 10; width: 100%; }
  .tile-photo .xray { position: absolute; top: 0; left: 0; right: 0; height: auto; }
  .tile-photo::before { display: none; }
  .tile-photo .tile-body { padding: 22px 22px 26px; }
  .tile-main { min-height: 0; }
  .tile.is-linked::after { top: 14px; right: 14px; bottom: auto; }

  /* Leistungsseiten: Bild als Band oben, Text darunter */
  .page-hero { display: block; min-height: 0; }
  .page-hero-media { position: relative; inset: auto; height: 220px; margin-top: 0; }
  .page-hero::after { top: var(--header-h); bottom: auto; height: 220px; background: linear-gradient(180deg, rgba(12, 15, 18, 0) 55%, var(--bg) 100%); }
  .page-hero-inner { padding-block: 8px 48px; }
}
@media (max-width: 899px) {
  /* Projektbilder wie auf dem Desktop als versetztes Raster statt Wischleiste */
  .exp-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    column-gap: 14px;
    row-gap: 28px;
  }
  .exp-item:nth-child(even) { margin-top: 36px; }
  .exp-item h3 { font-size: 17px; }
  .exp-item p { font-size: 14px; }
}
@media (max-width: 767px) {
  .tile-static .beam { max-width: calc(100% - 44px); }
}

/* ---------- Referenz-Skizzen ---------- */
.ref-visual {
  position: relative;
  aspect-ratio: 2 / 1;
  border-bottom: 1px solid var(--line-strong);
  background:
    linear-gradient(rgba(156, 195, 238, 0.06) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(156, 195, 238, 0.06) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(160deg, #13202d 0%, #0e161f 100%);
  overflow: hidden;
}
.ref-svg { position: absolute; inset: 8% 6%; width: 88%; height: 84%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ref-svg path { stroke: rgba(190, 212, 235, 0.5); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ref-svg .gr { stroke: rgba(190, 212, 235, 0.22); }
.ref-svg .hl { stroke: var(--accent); stroke-width: 1.9; }
.ref-svg .ld { stroke: rgb(240, 150, 108); stroke-width: 1.6; }
.ref-svg .tmp { stroke: rgba(190, 212, 235, 0.6); stroke-dasharray: 4 4; }
.ref:hover .ref-svg .hl { stroke: var(--accent-hover); }
@media (prefers-reduced-motion: no-preference) {
  .js .ref-svg path:not(.tmp) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(0.6, 0.1, 0.2, 1); transition-delay: calc(var(--i) * 90ms + 150ms); }
  .js .ref-svg .tmp { opacity: 0; transition: opacity 0.6s ease 1.1s; }
  .js .ref.is-visible .ref-svg path:not(.tmp) { stroke-dashoffset: 0; }
  .js .ref.is-visible .ref-svg .tmp { opacity: 1; }
}
