/* terra.construct — One-Pager */

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/syne-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/syne-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg: #fbf7f4;          /* fertiger Putz */
  --bg-subtle: #f3ede8;
  --island: #1f2327;      /* dunkle Inseln: HUD, Dashboard, Kontakt */
  --island-fg: #fbf7f4;
  --island-mid: rgba(251, 247, 244, 0.66);
  --island-line: rgba(251, 247, 244, 0.12);
  --fg: #1f2327;
  --fg-mid: #4d4743;
  --fg-light: #6e6761;
  --line: rgba(31, 35, 39, 0.12);
  --line-strong: rgba(31, 35, 39, 0.28);
  --accent: #ff6047;
  --accent-ink: #c43c25;  /* Koralle als kleiner Text auf hellem Grund */
  --nav-bg: rgba(251, 247, 244, 0.86);
  --wall: #dad7d1;        /* Gipskartonplatten im Rohbau, Fallback hinter dem Canvas */
  --field: #ffffff;

  --f-d: "Syne", "Avenir Next", system-ui, sans-serif;
  --f-b: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-display: clamp(2.5rem, 7.4vw, 6rem);
  --t-h2: clamp(2.1rem, 4.4vw, 3.5rem);
  --t-h3: 1.3rem;
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-label: 0.75rem;

  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(88px, 11vw, 144px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1e1b18;
    --bg-subtle: #252220;
    --island: #121110;
    --fg: #f0ebe6;
    --fg-mid: #c2b9b0;
    --fg-light: #9d948c;
    --line: rgba(240, 235, 230, 0.12);
    --line-strong: rgba(240, 235, 230, 0.3);
    --accent-ink: #ff7a63;
    --nav-bg: rgba(30, 27, 24, 0.86);
    --wall: #383633;
    --field: #2a2724;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1e1b18;
  --bg-subtle: #252220;
  --island: #121110;
  --fg: #f0ebe6;
  --fg-mid: #c2b9b0;
  --fg-light: #9d948c;
  --line: rgba(240, 235, 230, 0.12);
  --line-strong: rgba(240, 235, 230, 0.3);
  --accent-ink: #ff7a63;
  --nav-bg: rgba(30, 27, 24, 0.86);
  --wall: #383633;
  --field: #2a2724;
  color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-b);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #1f2327; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html { scrollbar-color: var(--line-strong) var(--bg); }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--fg); color: var(--bg); padding: 10px 16px;
  font-size: var(--t-small); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ── Buttons & Links ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-b); font-size: 0.9375rem; font-weight: 600;
  letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  padding: 15px 28px; border: 0; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #1f2327; }
.btn-accent { background: var(--accent); color: #1f2327; }
.btn-accent:hover { background: #0f1012; color: #fbf7f4; }
.dot { font-style: normal; color: var(--accent); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-small); font-weight: 500; color: var(--fg-mid);
  text-decoration: none; padding-block: 6px;
  transition: color 0.2s;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
.link-arrow:hover { color: var(--fg); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ── Nav ────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  max-width: 1240px; margin: 0 auto;
  padding: 16px max(var(--gutter), env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: inline-flex; color: var(--fg); padding-block: 4px; }
.nav-logo svg { height: 16px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; list-style: none; }
.nav-links a {
  font-size: var(--t-small); font-weight: 500; color: var(--fg-mid);
  text-decoration: none; padding-block: 6px; position: relative;
  transition: color 0.2s;
}
.nav-links 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.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--fg); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-cta { padding: 10px 20px; font-size: var(--t-small); }

/* ── Hero / Rohbau-Wand ─────────────────────────────── */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex; flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.js .hero { background: var(--wall); }
.hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero .plaster { z-index: 1; }
.hero .wall { z-index: 0; }
.hero.is-troweling { cursor: none; }
.hero.is-troweling a, .hero.is-troweling button { cursor: pointer; }

.trowel {
  position: absolute; left: 0; top: 0; z-index: 4;
  width: 132px; height: 92px; margin: -46px 0 0 -66px;
  pointer-events: none; opacity: 0;
  transition: opacity 0.18s;
  will-change: transform;
  filter: drop-shadow(2px 5px 4px rgba(31, 35, 39, 0.24));
}
.trowel-blade { fill: var(--bg); stroke: var(--fg); }
.trowel-line { stroke: var(--fg); }
.trowel-grip { fill: var(--fg); }

.stamp {
  position: absolute; z-index: 1; left: 0; top: 0;
  width: clamp(104px, 11vw, 160px); color: var(--accent);
  opacity: 0; transform: rotate(-9deg) scale(1.3);
  pointer-events: none;
}
.stamp svg { width: 100%; height: auto; }
.stamp text { fill: currentColor; font-family: var(--f-b); }
.hero.is-done .stamp {
  opacity: 0.9; transform: rotate(-9deg) scale(1);
  transition: opacity 0.2s ease-out 0.5s, transform 0.42s cubic-bezier(0.3, 1.5, 0.5, 1) 0.5s;
}
.trowel.is-on { opacity: 1; }

.hero-inner {
  position: relative; z-index: 2;
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  width: 100%;
  padding-top: clamp(132px, 22vh, 220px);
  padding-bottom: clamp(36px, 5vw, 64px);
  gap: 64px;
  pointer-events: none;
}
.hero-inner a, .hero-inner button, .hud a, .hud button { pointer-events: auto; }

.hero h1 {
  font-family: var(--f-d);
  font-size: clamp(2.4rem, 9.4vw, 8.5rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--fg);
  user-select: none;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .line-light { font-weight: 500; letter-spacing: -0.035em; }
.hero h1 .dot { font-style: normal; color: var(--accent); }

.hero-foot { display: flex; align-items: flex-end; }
/* Musterfläche: ein Stück fertig gespachtelte Wand trägt Text und Aktion */
.hero-card {
  max-width: 600px; background: var(--bg);
  padding: clamp(22px, 2.6vw, 34px) clamp(22px, 2.8vw, 36px);
  box-shadow: 0 1px 0 rgba(31, 35, 39, 0.06), 0 30px 60px -30px rgba(31, 35, 39, 0.45);
}
.hero-lede { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--fg); text-wrap: pretty; }
.hero-lede strong { font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 24px; }
.btn-lg { padding: 17px 30px; font-size: 1rem; }

/* Bauschritt: schmale Fortschrittsleiste am unteren Rand */
.hud { position: relative; z-index: 3; border-top: 1px solid var(--line-strong); }
.hud-row { display: flex; align-items: center; gap: 12px 20px; min-height: 60px; padding-block: 12px; }
.hud-step {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg);
}
.hud-hint { flex: none; font-size: var(--t-small); color: var(--fg-mid); }
.hud-bar { flex: 1; min-width: 80px; height: 2px; background: var(--line-strong); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 0.25s var(--ease-out); }
.hud-pct {
  flex: none; min-width: 3.4em; text-align: right;
  font-family: var(--f-d); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.hud-btn {
  flex: none; background: none; border: 0; padding: 4px 0; cursor: pointer;
  font-size: var(--t-small); font-weight: 600; color: var(--fg);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s, color 0.2s;
}
.hud-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.hud-btn[hidden] { display: none; }
.hud-check { display: none; width: 15px; height: 15px; color: var(--accent); }
.hud.is-done .hud-check { display: inline-block; }
.hud.is-done .hud-step { color: var(--accent-ink); }
.no-js .hud { display: none; }

/* Pop-up bei 99 %: den Rest macht der Profi */
.pro-pop {
  position: absolute; z-index: 5; bottom: 96px;
  right: max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter)));
  width: min(320px, calc(100% - 2 * var(--gutter)));
  background: var(--island); color: var(--island-fg);
  padding: 22px 22px 20px;
  box-shadow: 0 24px 60px -24px rgba(31, 35, 39, 0.6);
  opacity: 0; transform: translateY(14px) scale(0.96); transform-origin: bottom right;
  transition: opacity 0.25s ease-out, transform 0.5s var(--ease-out);
}
.pro-pop.is-open { opacity: 1; transform: none; }
.pro-pop[hidden] { display: none; }
.pro-pop-title { font-family: var(--f-d); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 8px; padding-right: 28px; }
.pro-pop-title .dot { font-style: normal; color: var(--accent); }
.pro-pop-text { color: var(--island-mid); font-size: var(--t-small); line-height: 1.55; margin-bottom: 20px; max-width: 32ch; }
.pro-pop-close {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px;
  display: grid; place-items: center; background: none; border: 0; cursor: pointer;
  color: var(--island-mid); transition: color 0.2s;
}
.pro-pop-close:hover { color: var(--island-fg); }
.pro-pop-close svg { width: 16px; height: 16px; }

/* ── Sections ───────────────────────────────────────── */
.section { padding-block: var(--section); border-bottom: 1px solid var(--line); }
.section-subtle { background: var(--bg-subtle); }
.h2 {
  font-family: var(--f-d); font-size: var(--t-h2); font-weight: 700;
  line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance;
}
.lede { font-size: 1.0625rem; color: var(--fg-mid); line-height: 1.7; max-width: 46ch; }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px);
}

/* Datenfluss */
.flow {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px) minmax(0, 1fr);
  grid-template-areas: "in engine team" "out out out";
  gap: clamp(80px, 9vw, 120px) clamp(56px, 8vw, 130px); align-items: center;
}
.flow-in { grid-area: in; }
.engine { grid-area: engine; }
.flow-team { grid-area: team; }
.flow-out { grid-area: out; position: relative; z-index: 1; }
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-line { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.flow-line.out { stroke: rgba(255, 96, 71, 0.4); }
.flow-dot.in { fill: var(--fg-mid); }
.flow-dot.out { fill: var(--accent); }
.flow-dot.team { fill: var(--fg); }
.flow-col { position: relative; z-index: 1; }
.flow-label { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg); margin-bottom: 14px; }
.flow-label span { color: var(--fg-light); margin-left: 8px; }
.flow-band {
  list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong);
}
.band-step { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px 20px; background: var(--bg); }
.band-step svg { width: 20px; height: 20px; color: var(--accent-ink); margin-bottom: 8px; }
.band-step b { font-family: var(--f-d); font-weight: 700; font-size: 1rem; letter-spacing: -0.015em; line-height: 1.25; }
.band-step small { font-size: 0.8125rem; color: var(--fg-light); }
.flow-list { list-style: none; display: grid; gap: 8px; }
.flow-item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; background: var(--bg); border: 1px solid var(--line);
  transition: border-color 0.25s;
}
.flow-item:hover { border-color: var(--line-strong); }
.flow-item svg { flex: none; width: 20px; height: 20px; color: var(--fg); }
.flow-item span { display: flex; flex-direction: column; min-width: 0; }
.flow-item b { font-family: var(--f-d); font-weight: 700; font-size: 1rem; letter-spacing: -0.015em; line-height: 1.25; }
.flow-item small { font-size: 0.8125rem; color: var(--fg-light); font-variant-numeric: tabular-nums; }
[data-flow-team] .flow-item svg { color: var(--fg); }

.engine {
  position: relative; z-index: 1; overflow: hidden;
  background: var(--island); color: var(--island-fg);
  padding: 24px 24px 20px;
  box-shadow: 0 30px 60px -32px rgba(31, 35, 39, 0.65);
}
.engine::after {
  content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(255, 96, 71, 0.09), transparent);
  animation: engineScan 3.6s linear infinite; pointer-events: none;
}
.engine-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.engine-logo { font-family: var(--f-d); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.engine-logo b { color: var(--accent); }
.engine-state { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--island-mid); }
.engine-tasks { list-style: none; }
.engine-tasks li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--island-line);
  font-size: var(--t-small); color: var(--island-mid);
  transition: color 0.35s;
}
.engine-tasks li::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--island-line); transition: background-color 0.35s, transform 0.35s var(--ease-out);
}
.engine-tasks li.is-active { color: var(--island-fg); }
.engine-tasks li.is-active::before { background: var(--accent); transform: scale(1.35); }
.engine-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--island-line); font-size: 0.75rem; color: var(--island-mid); }
.flow-close { margin-top: clamp(40px, 5vw, 64px); font-family: var(--f-d); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.75rem); letter-spacing: -0.025em; line-height: 1.25; max-width: 32ch; text-wrap: balance; }
@keyframes engineScan { to { transform: translateY(350%); } }

/* Leistungen */
.services { list-style: none; border-top: 1px solid var(--line-strong); }
.service {
  position: relative;
  display: grid; grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.6fr) 140px;
  gap: 12px 48px; align-items: baseline;
  padding: 34px 0; border-bottom: 1px solid var(--line);
}
.service::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -0.6);
  background: var(--bg-subtle); opacity: 0; z-index: -1;
  transition: opacity 0.25s;
}
.service:hover::before { opacity: 1; }
.service h3 {
  font-family: var(--f-d); font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
  display: flex; align-items: baseline; gap: 12px;
}
.service h3 { position: relative; }
.service h3::before {
  content: ""; position: absolute; left: -18px; top: 0.5em; width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
  transform: scale(0); transition: transform 0.3s var(--ease-out);
}
.service:hover h3::before { transform: scale(1); }
.service p { color: var(--fg-mid); font-size: 0.975rem; line-height: 1.7; max-width: 62ch; }
.service .tag {
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-light); text-align: right; white-space: nowrap;
}

/* Ablauf */
.steps {
  --progress: 0;
  position: relative; list-style: none;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
  padding-top: 44px;
}
.steps::before, .steps::after {
  content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px;
}
.steps::before { background: var(--line); }
.steps::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--progress)); }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; top: -40px; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong);
  transition: background-color 0.3s, border-color 0.3s;
}
.step.is-reached::before { background: var(--accent); border-color: var(--accent); }
.step-n { font-family: var(--f-d); font-weight: 700; font-size: var(--t-small); color: var(--fg-light); font-variant-numeric: tabular-nums; }
.step h3 { font-family: var(--f-d); font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 10px; line-height: 1.2; min-height: 2.4em; }
.step p { font-size: 0.875rem; color: var(--fg-mid); line-height: 1.6; min-height: 6.4em; }
.step-time {
  display: inline-block; margin-top: 14px;
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink);
}

/* Technologie + Dashboard */
.tech-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 56px clamp(48px, 7vw, 96px); align-items: center;
}
.tech-grid .lede { margin: 24px 0 32px; }
.points { list-style: none; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 0.975rem; line-height: 1.5; }
.points svg { width: 16px; height: 16px; color: var(--accent-ink); margin-top: 3px; }

.dash {
  background: var(--island); color: var(--island-fg);
  font-size: 0.8125rem;
  box-shadow: 0 30px 70px -36px rgba(31, 35, 39, 0.7);
  overflow: hidden;
}
.dash-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--island-line);
  color: var(--island-mid);
}
.dash-brand { font-family: var(--f-d); font-weight: 700; color: var(--island-fg); }
.dash-brand b { color: var(--accent); }
.dash-sep { opacity: 0.4; }
.dash-cur { color: var(--island-fg); }
.dash-tag {
  margin-left: auto; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--island-line); padding: 3px 8px; color: var(--island-mid);
}
.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--island-line); }
.dash-kpi { padding: 16px 20px; border-right: 1px solid var(--island-line); }
.dash-kpi:last-child { border-right: 0; }
.dash-kpi > span { display: block; color: var(--island-mid); font-size: 0.75rem; }
.dash-kpi strong.hot { font-size: 1.05rem; line-height: 1.35; }
.dash-kpi strong { display: block; margin-top: 4px; font-family: var(--f-d); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dash-kpi .ok { color: #8fd49a; }
.dash-kpi .hot { color: var(--accent); }

.gantt { padding: 16px 20px 8px; }
.gantt-scale, .gantt-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; }
.gantt-scale { color: var(--island-mid); font-size: 0.6875rem; margin-bottom: 6px; }
.gantt-scale .months { position: relative; height: 1.2em; font-variant-numeric: tabular-nums; }
.gantt-scale .months span { position: absolute; left: calc(var(--x) * 100%); transform: translateX(-50%); white-space: nowrap; }
.gantt-scale .months span:first-child { transform: none; }
.gantt-row { padding: 6px 0; }
.gantt-row > span { color: var(--island-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-track { position: relative; height: 10px; }
.gantt-track::before { content: ""; position: absolute; inset: 4px 0; background: var(--island-line); height: 1px; top: 4px; }
.gantt-bar {
  position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 100%); width: calc(var(--w) * 100%);
  background: rgba(251, 247, 244, 0.34);
  transform-origin: left; transform: scaleX(var(--grow, 1));
  transition: transform 0.9s var(--ease-out) var(--d, 0s);
}
.gantt-bar.now { background: var(--accent); }
.gantt-bar.plan { background: transparent; border: 1px solid rgba(251, 247, 244, 0.32); }
.gantt-today {
  position: absolute; width: 1px; background: var(--accent);
  left: calc(var(--t) * 100%);
}
.gantt-lanes { position: relative; }
.gantt-overlay { position: absolute; inset: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; pointer-events: none; }
.gantt-overlay > div { position: relative; }
.gantt-overlay .gantt-today { top: 0; bottom: 0; }
.gantt-today::after {
  content: "heute"; position: absolute; top: 2px; left: 6px;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.gantt-legend { display: flex; gap: 18px; padding: 10px 20px 16px; color: var(--island-mid); font-size: 0.6875rem; }
.gantt-legend i { display: inline-block; width: 14px; height: 6px; margin-right: 6px; vertical-align: middle; background: rgba(251, 247, 244, 0.34); }
.gantt-legend i.now { background: var(--accent); }
.gantt-legend i.plan { background: transparent; border: 1px solid rgba(251, 247, 244, 0.32); }

.diary { border-top: 1px solid var(--island-line); padding: 14px 20px 18px; }
.diary-title { display: flex; justify-content: space-between; color: var(--island-mid); font-size: 0.75rem; margin-bottom: 8px; }
.diary-title .live { display: inline-flex; align-items: center; gap: 6px; color: #8fd49a; }
.diary-title .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.diary ul { list-style: none; display: grid; }
.diary li {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px;
  padding: 8px 0; border-top: 1px solid rgba(251, 247, 244, 0.06);
}
.diary li:first-child { border-top: 0; }
.diary time { color: var(--island-mid); font-variant-numeric: tabular-nums; }
.diary .meta { color: var(--island-mid); }
.diary li.is-new { animation: diaryIn 0.7s var(--ease-out) both; }
.diary li.is-new time { color: var(--accent); }

@keyframes diaryIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Projekte */
.projects { list-style: none; border-top: 1px solid var(--line-strong); }
.project {
  display: grid; grid-template-columns: minmax(200px, 0.85fr) minmax(0, 1.5fr) minmax(200px, 0.6fr);
  gap: 12px 48px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.project h3 { font-family: var(--f-d); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.project .where { display: block; margin-top: 4px; font-size: var(--t-small); color: var(--fg-light); font-variant-numeric: tabular-nums; }
.project-scope { color: var(--fg-mid); font-size: 0.975rem; line-height: 1.65; max-width: 60ch; }
.project-figs { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.project-qm { font-family: var(--f-d); font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.project-qm[data-todo] { color: var(--fg-light); }
.project-split { font-size: 0.8125rem; color: var(--fg-light); font-variant-numeric: tabular-nums; white-space: nowrap; }
.project .kind { margin-top: 6px; font-size: var(--t-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mid); }

/* Projektfotos: aufklappbarer Fotostreifen, Vorschau beim Hovern, Vollbild */
.project.has-photos { cursor: pointer; }
.project.has-photos .project-gallery { cursor: default; }
.project-name {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; letter-spacing: inherit; color: inherit; text-align: left; cursor: pointer;
}
.project-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.project.has-photos:hover h3 { color: var(--accent-ink); }
.project h3 { transition: color 0.2s; }

.status {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  padding: 4px 10px 4px 9px; border: 1px solid var(--line-strong);
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.shot { position: relative; }
.shot-tag, .teaser span {
  position: absolute; left: 10px; top: 10px;
  background: rgba(31, 35, 39, 0.82); color: #fbf7f4;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px;
}
.teaser span:empty { display: none; }

.project-gallery {
  grid-column: 1 / -1;
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}
.project-gallery.is-open { grid-template-rows: 1fr; }
.project-gallery-inner { overflow: hidden; min-height: 0; }
.strip {
  list-style: none; display: flex; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 18px 0 10px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.strip li { flex: none; scroll-snap-align: start; }
.shot {
  display: block; height: clamp(220px, 24vw, 340px); padding: 0; border: 0; overflow: hidden;
  background: var(--bg-subtle); cursor: zoom-in;
}
.shot img { height: 100%; width: auto; opacity: 0; transition: opacity 0.4s ease-out, transform 0.7s var(--ease-out); }
.shot img.is-loaded { opacity: 1; }
.shot:hover img { transform: scale(1.03); }

.teaser {
  position: fixed; left: 0; top: 0; z-index: 150;
  width: 240px; height: 176px; pointer-events: none;
  clip-path: inset(100% 0 0 0); opacity: 0;
  transition: clip-path 0.4s var(--ease-out), opacity 0.2s;
  box-shadow: 0 18px 40px -16px rgba(31, 35, 39, 0.45);
  will-change: transform;
}
.teaser.is-on { clip-path: inset(0 0 0 0); opacity: 1; }
.teaser img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(18, 17, 16, 0.96); color: #fbf7f4; overflow: hidden;
}
.lightbox::backdrop { background: transparent; }
.lightbox figure {
  position: absolute; inset: 64px 88px 56px; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.lightbox img { max-width: 100%; max-height: calc(100% - 36px); object-fit: contain; }
.lightbox figcaption { font-size: var(--t-small); color: rgba(251, 247, 244, 0.7); text-align: center; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center;
  background: none; border: 1px solid rgba(251, 247, 244, 0.2); color: #fbf7f4; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-btn svg { width: 16px; height: 16px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 20px; top: calc(50% - 24px); }
.lb-next { right: 20px; top: calc(50% - 24px); }
.lb-count { position: absolute; top: 30px; left: 24px; font-size: var(--t-small); color: rgba(251, 247, 244, 0.7); font-variant-numeric: tabular-nums; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }

/* Kontakt: kleine Überschrift, das Formular steht im Mittelpunkt */
.contact {
  background: var(--island); color: var(--island-fg);
  padding-block: var(--section);
}
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px clamp(48px, 7vw, 112px); align-items: start;
}
.contact-intro { padding-top: 8px; }
.contact h2 {
  font-family: var(--f-d); font-weight: 800; font-size: clamp(2rem, 2.9vw, 2.6rem);
  line-height: 1.04; letter-spacing: -0.035em;
}
.contact h2 em { font-style: normal; color: var(--accent); }
.contact-lede { color: var(--island-mid); margin-top: 20px; max-width: 38ch; line-height: 1.7; }
.contact-direct { margin-top: 28px; font-size: var(--t-small); color: var(--island-mid); }
.contact-direct a { color: var(--island-fg); text-decoration: none; border-bottom: 1px solid var(--island-line); padding-bottom: 2px; transition: border-color 0.2s; }
.contact-direct a:hover { border-color: var(--accent); }

.form-panel {
  background: var(--bg); color: var(--fg);
  padding: clamp(24px, 3.4vw, 44px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.form-head { margin-bottom: 28px; }
.form-head h3 { font-family: var(--f-d); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.15; }
.form-head p { margin-top: 6px; font-size: var(--t-small); color: var(--fg-mid); }

.form { display: grid; gap: 20px; }
.form fieldset { border: 0; }
.form legend, .field label {
  display: block; font-size: var(--t-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-mid); margin-bottom: 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 9px 14px; font-size: var(--t-small); font-weight: 500;
  border: 1px solid var(--line-strong); color: var(--fg); background: transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip input:hover + span { border-color: var(--fg-mid); }
.chip input:checked + span { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field input, .field textarea {
  width: 100%; background: var(--field); border: 1px solid var(--line-strong); border-radius: 0;
  padding: 13px 14px; font-size: 1rem; color: var(--fg); caret-color: var(--accent);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-light); }
.field input:hover, .field textarea:hover { border-color: var(--fg-light); }
.field input:focus, .field textarea:focus { outline: none; background: var(--field); border-color: var(--fg); box-shadow: 0 0 0 3px rgba(255, 96, 71, 0.25); }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--fg-light); }
.field [aria-invalid="true"] { border-color: #c4321c; }
.err { display: none; margin-top: 6px; font-size: 0.8125rem; color: #b42318; }
.err.is-shown { display: block; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: var(--t-small); color: var(--fg-mid); line-height: 1.55; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--fg); }
.consent a { color: var(--fg); text-underline-offset: 3px; text-decoration-color: var(--accent); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-submit { display: grid; gap: 12px; margin-top: 4px; }
.btn-block { width: 100%; justify-content: center; padding-block: 17px; }
.form-status { font-size: var(--t-small); color: var(--fg-mid); }
.form-status a { color: var(--fg); }
.form-done { padding-top: 4px; }
.form-done h3 { font-family: var(--f-d); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; }
.form-done p { color: var(--fg-mid); max-width: 44ch; }

/* Footer */
.footer { background: var(--island); color: var(--island-mid); border-top: 1px solid var(--island-line); font-size: var(--t-small); }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px 48px; padding-block: clamp(48px, 6vw, 72px) clamp(36px, 4vw, 48px);
}
.footer-logo { color: var(--island-fg); display: inline-flex; padding-block: 4px; }
.footer-logo svg { height: 16px; width: auto; }
.footer-brand p { margin-top: 16px; max-width: 32ch; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-h { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--island-fg); margin-bottom: 4px; }
.footer a { color: var(--island-mid); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--island-fg); }
.footer-col span { line-height: 1.6; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  padding-block: 20px 28px; border-top: 1px solid var(--island-line); font-size: 0.8125rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Datenschutz-Einstellungen: eigene Klassen, damit nichts mit dem Formular kollidiert */
.cookie-banner {
  position: fixed; z-index: 400; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: min(400px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  display: flex; flex-direction: column; gap: 0;
  background: var(--island); color: var(--island-fg);
  padding: 22px 22px 18px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  font-family: var(--f-b); text-align: left;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.25s ease-out, transform 0.45s var(--ease-out);
}
.cookie-banner.is-open { opacity: 1; transform: none; }
.cookie-title { font-family: var(--f-d); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 8px; }
.cookie-text { margin: 0; font-size: var(--t-small); line-height: 1.55; color: var(--island-mid); }
.cookie-text a { color: var(--island-fg); text-underline-offset: 3px; text-decoration-color: var(--accent); }
.cookie-cats { display: grid; gap: 0; margin-top: 14px; border-top: 1px solid var(--island-line); }
.cookie-cat {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 11px 0; border-bottom: 1px solid var(--island-line); cursor: pointer;
}
.cookie-cat input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.cookie-cat input:disabled { cursor: not-allowed; }
.cookie-cat span { display: flex; flex-direction: column; gap: 2px; }
.cookie-cat b { font-size: var(--t-small); font-weight: 600; color: var(--island-fg); }
.cookie-cat small { font-size: 0.8125rem; color: var(--island-mid); line-height: 1.45; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.cookie-btn {
  padding: 12px 10px; font-family: var(--f-b); font-size: var(--t-small); font-weight: 600; cursor: pointer;
  background: transparent; color: var(--island-fg); border: 1px solid rgba(251, 247, 244, 0.35);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.cookie-btn:hover { background: var(--island-fg); color: var(--island); border-color: var(--island-fg); }
.cookie-btn:focus-visible, .cookie-save:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cookie-save {
  align-self: center; margin-top: 12px; padding: 4px 0; background: none; border: 0; cursor: pointer;
  font-family: var(--f-b); font-size: 0.8125rem; font-weight: 500; color: var(--island-mid);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--island-line);
}
.cookie-save:hover { color: var(--island-fg); text-decoration-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; transform: none; } }
.footer-consent { background: none; border: 0; padding: 0; font: inherit; color: var(--island-mid); cursor: pointer; text-align: left; transition: color 0.2s; }
.footer-consent:hover { color: var(--island-fg); }

/* ── Bewegung: Reveals (Inhalt ohne JS sichtbar) ────── */
.js .rv { opacity: 0; transition: opacity 0.6s ease-out; transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; }
.js .rv-line { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .rv-line.in { clip-path: inset(0 0 0 0); }

.js .hero h1 .line > span { transform: translateY(105%); animation: lineUp 1s var(--ease-out) 0.1s forwards; }
.js .hero h1 .line:nth-child(2) > span { animation-delay: 0.22s; }
.js .hero h1 .dot { display: inline-block; transform: scale(0); animation: dotIn 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; animation-delay: 0.85s; }
.js .hero h1 .line:nth-child(2) .dot { animation-delay: 1s; }
.js .hero-foot, .js .hud { opacity: 0; animation: fadeIn 0.8s ease-out 0.7s forwards; }
@keyframes lineUp { to { transform: none; } }
@keyframes dotIn { to { transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ── Platzhalter: sichtbar, bis Felix die Angabe bestätigt und data-todo entfernt ── */
[data-todo] { outline: 1.5px dashed var(--accent-ink); outline-offset: 4px; }
[data-todo]::after {
  content: "Platzhalter · " attr(data-todo);
  display: block; grid-column: 1 / -1; margin-top: 8px;
  font-family: var(--f-b); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1080px) {
  .flow-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; }
  .steps::before, .steps::after { display: none; }
  .step::before { top: -26px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hud-row { flex-wrap: wrap; }
  .hud-pct { order: 1; margin-left: auto; }
  .hud-bar { order: 2; flex-basis: 100%; }
  .hud-hint { order: 3; }
  .hud-btn { order: 4; margin-left: auto; }
  .sec-head, .tech-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); grid-template-areas: "in" "engine" "team" "out"; gap: 56px; }
  .flow-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engine { max-width: 420px; width: 100%; justify-self: center; }
  .service { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .service .tag { text-align: left; order: -1; }
  .project { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .project-figs { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; text-align: left; }
  .strip { margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scroll-padding-left: 0; }
  .project .kind { margin-top: 0; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; padding-top: 0; padding-left: 34px; }
  .steps::before, .steps::after { display: block; left: 6px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--progress)); }
  .step { padding-bottom: 36px; }
  .step h3, .step p { min-height: 0; }
  .step::before { top: 2px; left: -34px; }
  .field-row { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: minmax(0, 1fr); }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-kpi:nth-child(2) { border-right: 0; }
  .dash-kpi:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--island-line); }
  .gantt-scale, .gantt-row, .gantt-overlay { grid-template-columns: 92px minmax(0, 1fr); }
  .diary li { grid-template-columns: 88px minmax(0, 1fr); }
  .diary time { white-space: nowrap; }
  .gantt-scale .months span:nth-child(2n) { visibility: hidden; }
  .diary .meta { display: none; }
  .lightbox figure { inset: 60px 12px 88px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .rv-line, .js .hero h1 .line > span, .js .hero h1 .dot, .js .hero-foot, .js .hud {
    opacity: 1; transform: none; filter: none; clip-path: none; animation: none; transition: none;
  }
  .gantt-bar { transition: none; }
  .hero.is-done .stamp { transition: none; }
  .project-gallery, .shot img, .teaser { transition: none; }
  .pro-pop { transition: none; transform: none; }
  .engine::after { animation: none; display: none; }
  .diary li.is-new { animation: none; }
}

/* ── Rechtliche Seiten & 404 ─────────────────────────── */
.legal { padding: clamp(120px, 16vw, 168px) 0 var(--section); }
.legal .wrap { max-width: 860px; }
.legal h1 {
  font-family: var(--f-d); font-weight: 800; font-size: clamp(2.1rem, 6vw, 4.25rem);
  letter-spacing: -0.04em; line-height: 0.98; margin-bottom: 20px; text-wrap: balance;
  hyphens: auto; overflow-wrap: break-word;
}
.legal .legal-lede { color: var(--fg-mid); max-width: 60ch; margin-bottom: 56px; }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 12px 40px; }
.legal h2 { font-family: var(--f-d); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.legal section > div { display: grid; gap: 14px; max-width: 64ch; }
.legal p, .legal li { color: var(--fg-mid); font-size: 0.975rem; line-height: 1.7; }
.legal strong { color: var(--fg); font-weight: 600; }
.legal ul { padding-left: 1.1em; display: grid; gap: 6px; }
.legal a { color: var(--fg); text-underline-offset: 3px; text-decoration-color: var(--accent); }
.legal .todo-note { font-size: var(--t-small); color: var(--fg-light); }
.nav-back { margin-left: auto; }
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: left; background: var(--wall); }
.notfound .wrap { max-width: 760px; }
.notfound h1 { font-family: var(--f-d); font-weight: 800; font-size: clamp(3rem, 9vw, 6rem); letter-spacing: -0.04em; line-height: 0.94; color: var(--fg); }
.notfound p { color: var(--fg-mid); margin: 20px 0 32px; max-width: 44ch; }
@media (max-width: 700px) { .legal section { grid-template-columns: 1fr; } }
