/* buro – Website (Werbeseite + Rechtsseiten). Statisch, ohne Build-Schritt.
   Leitidee „Maßkette“: Der Auftrag wird wie eine technische Zeichnung bemaßt –
   Bemaßungslinien in Indigo auf Millimeterpapier. Alles andere bleibt ruhig. */

@font-face {
  font-family: "Archivo";
  src: url("/site/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* CI (brand/farbwerte.json) */
  --indigo: #4f46e5;
  --indigo-deep: #3730a3;
  --indigo-light: #a5b4fc;
  --ink: #0f172a;
  --mist: #eef2ff;
  /* Flächen und Text */
  --paper: #ffffff;
  --sheet: #f6f7fb;
  --text: #0f172a;
  --muted: #4b5563;
  --rule: #d9dcea;
  --grid: rgba(79, 70, 229, 0.07);
  --grid-strong: rgba(79, 70, 229, 0.13);
  --dim: var(--indigo);
  --focus: #4f46e5;

  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 11vw, 150px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f172a;
    --sheet: #131c33;
    --text: #e8ebf5;
    --muted: #a3acc2;
    --rule: #26314d;
    --mist: #141d38;
    --grid: rgba(165, 180, 252, 0.06);
    --grid-strong: rgba(165, 180, 252, 0.12);
    --dim: var(--indigo-light);
    --focus: #a5b4fc;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 14px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typografie ---------- */
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.6rem); font-weight: 760; font-stretch: 112%; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 720; font-stretch: 108%; }
h3 { font-size: 1.3rem; font-weight: 680; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; max-width: 64ch; text-wrap: pretty; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--muted); line-height: 1.55; max-width: 56ch; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-deep); }
.btn-ghost { border-color: var(--rule); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--dim); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.nav-brand { display: inline-flex; margin-right: auto; }
.nav-brand img { height: 30px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 520; color: var(--muted); font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links .btn { color: #fff; }
.nav-toggle {
  display: none; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--rule); background: transparent; color: var(--text); font: 600 .95rem var(--font);
}
/* Mobiles Menü nur mit JS einklappen – ohne JS bleiben die Links sichtbar */
@media (max-width: 900px) {
  .nav-inner { flex-wrap: wrap; }
  html:not(.js) .nav-links { flex-wrap: wrap; gap: 6px 18px; padding-bottom: 12px; }
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .nav-links {
    display: none; position: absolute; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px;
  }
  .js .nav-links.is-open { display: flex; }
  .js .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .js .nav-links .btn { margin-top: 16px; border: 0; }
}

/* ---------- Millimeterpapier ---------- */
.paper-grid {
  background-color: var(--mist);
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  background-position: -1px -1px;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 9vw, 112px) 0; overflow: hidden; }
.hero-copy { position: relative; }
.hero h1 { max-width: 20ch; }
.hero .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; align-items: center; }
.hero-note { margin-top: 16px; font-size: .95rem; color: var(--muted); }

/* Die Maßkette: Kettenbemaßung des Auftrags mit Gesamtmaß darüber.
   Schräge Maßbegrenzung (wie in der Bauzeichnung) an jeder Hilfslinie. */
.chain { margin-top: clamp(48px, 7vw, 84px); color: var(--dim); --tick: 14px; }
.chain-total { position: relative; text-align: center; padding-bottom: 10px; margin-bottom: 22px; }
.chain-total span { font-size: .9rem; font-weight: 640; font-stretch: 112%; }
.chain-total::before { /* Maßlinie Gesamtmaß */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform-origin: left; transform: scaleX(var(--draw, 1)); transition: transform 1.1s cubic-bezier(.6,.1,.2,1) .2s;
}
.chain-row {
  position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
}
.chain-row::before { /* Maßlinie Kette */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: currentColor;
  transform-origin: left; transform: scaleX(var(--draw, 1)); transition: transform 1.1s cubic-bezier(.6,.1,.2,1) .2s;
}
.chain-row::after, .chain-step::before { /* Hilfslinie */
  content: ""; position: absolute; top: -36px; width: 1.5px; height: 52px; background: currentColor;
}
.chain-row::after { right: 0; }
.chain-step::before { left: 0; }
.chain-step:not(:first-child)::before { top: -10px; height: 26px; }
.chain-step { position: relative; padding: 20px 12px 0 16px; color: var(--text);
  opacity: var(--draw, 1); transform: translateY(calc((1 - var(--draw, 1)) * 8px));
  transition: opacity .45s, transform .45s; transition-delay: calc(.4s + var(--i) * .12s);
}
.chain-step::after, .chain-end { /* schräge Maßbegrenzung */
  content: ""; position: absolute; left: -6px; top: -6px; width: 13px; height: 13px;
  background: linear-gradient(135deg, transparent calc(50% - .9px), var(--dim) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px));
  transform: rotate(90deg);
}
.chain-end { left: auto; right: -6px; top: -6px; }
.chain-total .chain-end { top: auto; bottom: -6px; }
.chain-total .chain-end-start { right: auto; left: -6px; }
.chain-step b { display: block; font-weight: 680; font-stretch: 106%; font-size: 1.02rem; }
.chain-step small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; margin-top: 4px; }
.js .chain:not(.is-drawn) { --draw: 0; }
@media (max-width: 760px) {
  .chain-total { display: none; }
  .chain-row { grid-template-columns: 1fr; margin-left: 6px; }
  .chain-row::before { top: 0; bottom: 0; left: 0; right: auto; width: 1.5px; height: auto; transform-origin: top; transform: scaleY(var(--draw, 1)); }
  .chain-row::after, .chain-row > .chain-end { display: none; }
  .chain-step { padding: 0 0 20px 24px; }
  .chain-step::before, .chain-step:not(:first-child)::before { left: -8px; top: 10px; width: 16px; height: 1.5px; }
  .chain-step::after { top: 4px; left: -6px; }
}

/* Produktbild im Hero: Browserfenster, überlappt vom Telefon */
.hero-stage { position: relative; margin-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); }
.window {
  position: relative; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 0 rgba(15,23,42,.06), 0 30px 60px -20px rgba(30,27,75,.35), 0 0 0 1px rgba(15,23,42,.08);
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #eceef5; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #cfd3e1; }
.window-bar span {
  margin-left: 14px; flex: 1; max-width: 340px; height: 20px; border-radius: 6px; background: #fff;
  font-size: .72rem; line-height: 20px; padding-left: 10px; color: #64748b;
}
.window img { width: 100%; }
.hero-stage .window { width: 86%; }
.phone {
  position: relative; border-radius: 42px; padding: 9px; background: #0b1020;
  box-shadow: 0 30px 60px -18px rgba(15,23,42,.55), inset 0 0 0 1.5px #2b3350;
}
.phone img { border-radius: 33px; width: 100%; }
.hero-stage .phone { position: absolute; right: 0; bottom: 0; width: min(25%, 250px); }
@media (max-width: 760px) {
  .hero-stage .window { width: 100%; }
  .hero-stage .phone { position: relative; width: 52%; margin: -28% 0 0 auto; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section-sheet { background: var(--sheet); }
.section-sheet + .section, .section + .section-sheet { padding-top: var(--section); }
.section-head { max-width: 760px; }
.section-head p { margin-top: 20px; }

/* Drei Orte des Betriebs */
.places { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1.5px solid var(--text); }
.place { padding: 28px 28px 0 0; }
.place + .place { padding-left: 28px; border-left: 1px solid var(--rule); }
.place h3 { margin-bottom: 18px; }
.place ul { margin: 0; padding: 0; list-style: none; }
.place li { padding: 12px 0; border-top: 1px solid var(--rule); color: var(--muted); line-height: 1.45; }
.place li:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 860px) {
  .places { grid-template-columns: 1fr; }
  .place, .place + .place { padding: 28px 0; border-left: 0; }
  .place + .place { border-top: 1px solid var(--rule); }
}

/* Werkstatt: Text + Stückliste im Schriftfeld-Stil */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.split-reverse { grid-template-columns: 7fr 5fr; }
.split-reverse > :first-child { order: 2; }
@media (max-width: 960px) { .split, .split-reverse { grid-template-columns: 1fr; } .split-reverse > :first-child { order: 0; } }
.facts { margin: 32px 0 0; padding: 0; list-style: none; }
.facts li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--rule); }
.facts li::before {
  content: ""; position: absolute; left: 2px; top: 25px; width: 14px; height: 1.5px; background: var(--dim);
  box-shadow: 0 -5px 0 -0px transparent;
}
.facts li::after { content: ""; position: absolute; left: 2px; top: 20px; width: 1.5px; height: 11px; background: var(--dim); }
.facts strong { display: block; font-weight: 650; }
.facts span { color: var(--muted); font-size: .98rem; }

.bom { border: 1.5px solid var(--text); background: var(--paper); font-size: .92rem; }
.bom-head { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1.5px solid var(--text); }
.bom-head b { font-weight: 700; font-stretch: 108%; }
.bom table { width: 100%; border-collapse: collapse; }
.bom th, .bom td { padding: 10px 18px; text-align: left; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.bom th { font-weight: 600; color: var(--muted); font-size: .82rem; }
.bom td:nth-child(n+3), .bom th:nth-child(n+3) { text-align: right; }
.bom tr.sum td { border-bottom: 0; border-top: 1.5px solid var(--text); font-weight: 700; }
.bom .group td { color: var(--dim); font-weight: 650; font-size: .82rem; padding-top: 14px; }
.bom-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--text); }
.bom-foot div { padding: 12px 18px; }
.bom-foot div + div { border-left: 1px solid var(--rule); }
.bom-foot small { display: block; color: var(--muted); font-size: .78rem; }
.bom-foot b { font-weight: 700; font-size: 1.05rem; }
.bom-scroll { overflow-x: auto; }

/* Außendienst: Telefone */
.devices { display: flex; gap: clamp(14px, 2vw, 24px); align-items: flex-end; justify-content: center; }
.devices .phone { width: min(46%, 270px); }
.devices .phone:nth-child(2) { margin-bottom: 48px; }

/* Beta: Haarlinien wie .facts, Kürzel als Bemaßungsetikett links. Link nur,
   wenn site.js eine https-URL gesetzt hat; sonst „Beta startet in Kürze“. */
.beta { margin-top: 44px; padding-top: 22px; border-top: 1.5px solid var(--text); }
.beta h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 720; font-stretch: 108%; }
.beta-intro { margin-top: 10px; color: var(--muted); font-size: .98rem; }
.beta-intro a { color: var(--dim); text-underline-offset: 3px; overflow-wrap: anywhere; }
.beta-list { margin: 20px 0 0; padding: 0; list-style: none; }
.beta-list li { display: grid; grid-template-columns: 76px 1fr; gap: 0 14px; padding: 18px 0; border-top: 1px solid var(--rule); }
.beta-list li:last-child { border-bottom: 1px solid var(--rule); }
.beta-tag {
  align-self: start; margin-top: 2px; padding: 2px 0; border-block: 1.5px solid var(--dim);
  color: var(--dim); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-align: center;
}
.beta-list strong { display: block; font-weight: 650; }
.beta-list span { display: block; margin-top: 4px; color: var(--muted); font-size: .95rem; }
.beta-cta { display: none; }
.beta-cta[href] {
  display: inline-block; padding: 10px 0; margin-top: 2px;
  color: var(--dim); font-weight: 640;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.beta-cta[href]::after { content: "→"; display: inline-block; margin-left: 8px; transition: transform .15s ease; }
.beta-cta[href]:hover::after { transform: translateX(3px); }
.beta-soon { display: inline-block; margin-top: 10px; font-style: normal; font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.beta-soon::before { content: ""; display: inline-block; width: 14px; height: 1.5px; margin: 0 8px 3px 0; vertical-align: middle; background: var(--rule); }
@media (max-width: 420px) { .beta-list li { grid-template-columns: 1fr; gap: 8px; } .beta-tag { justify-self: start; padding-inline: 8px; } }

.stores { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 18px; margin-top: 36px; }
/* Offizielle Store-Badges unverändert; „Demnächst“ nur ausgegraut mit Hinweis darunter. */
.store { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; border-radius: 9px; text-decoration: none; }
.store img { display: block; height: 48px; width: auto; }
.store small { font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); line-height: 1.2; }
.store.is-soon img { opacity: .4; }
.store[href] img { transition: opacity .15s ease; }
.store[href]:hover img { opacity: .85; }
.store-devices { margin-top: 10px; font-size: .92rem; color: var(--muted); }

/* Dateiablage */
.eyebrow { margin: 0 0 14px; font-size: .82rem; font-weight: 680; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.files { border: 1.5px solid var(--text); background: var(--paper); font-size: .92rem; min-width: 0; }
.files-head { padding: 14px 18px; border-bottom: 1.5px solid var(--text); }
.files-path { color: var(--muted); }
.files-path i { font-style: normal; margin: 0 4px; color: var(--rule); }
.files-path b { color: var(--text); font-weight: 700; font-stretch: 108%; }
.files-scroll { overflow-x: auto; }
.files table { width: 100%; border-collapse: collapse; }
.files th, .files td { padding: 10px 18px; text-align: left; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.files th { font-weight: 600; color: var(--muted); font-size: .82rem; }
.files td:nth-child(n+2) { color: var(--muted); }
.files td:last-child, .files th:last-child { text-align: right; }
.files tbody tr:last-child td { border-bottom: 0; }
.files tr.is-folder td:first-child { font-weight: 620; }
.ft {
  display: inline-block; min-width: 40px; margin-right: 12px; padding: 1px 0; text-align: center; vertical-align: 1px;
  border: 1px solid var(--dim); color: var(--dim); font-size: .66rem; font-weight: 700; letter-spacing: .04em;
}
.ft-folder { height: 14px; min-width: 18px; margin-right: 34px; padding: 0; border-radius: 1px 3px 1px 1px; background: var(--grid-strong); vertical-align: -2px; }
.files-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--text); }
.files-foot div { padding: 12px 18px; min-width: 0; }
.files-foot div + div { border-left: 1px solid var(--rule); }
.files-foot small { display: block; color: var(--muted); font-size: .78rem; }
.files-foot b { font-weight: 700; font-size: 1.05rem; }
@media (max-width: 520px) {
  .files th:nth-child(n+3), .files td:nth-child(n+3) { display: none; }
  .files { font-size: .84rem; }
  .files th, .files td { padding-inline: 10px; }
  .files td:nth-child(2), .files th:nth-child(2) { text-align: right; }
  .ft { min-width: 36px; margin-right: 8px; }
  .ft-folder { min-width: 18px; margin-right: 26px; }
  .files-foot div { padding: 10px 12px; }
  .files-foot small { font-size: .7rem; }
  .files-foot b { font-size: .92rem; }
}

.sync { display: grid; grid-template-columns: 5fr 7fr; gap: 24px clamp(40px, 6vw, 88px); margin-top: clamp(56px, 7vw, 88px); padding-top: 22px; border-top: 1.5px solid var(--text); }
.sync h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 720; font-stretch: 108%; }
.sync .beta-list { margin-top: 0; }
.sync .beta-list li:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 960px) { .sync { grid-template-columns: 1fr; } .sync .beta-list li:first-child { border-top: 1px solid var(--rule); padding-top: 18px; } }

/* Office im Browser: Tabelle im Browserfenster */
.split-office { grid-template-columns: 7fr 5fr; align-items: center; }
@media (max-width: 960px) { .split-office { grid-template-columns: 1fr; } .split-office > figure { order: 2; } }
.sheet-window { font-size: .86rem; color: #0f172a; min-width: 0; }
.sheet-presence { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #e2e5ef; }
.sheet-presence small { margin-left: 6px; color: #64748b; font-size: .78rem; }
.who { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: .66rem; font-weight: 700; }
.who-a { background: #4f46e5; }
.who-m { background: #0d9488; }
.sheet-scroll { overflow-x: auto; background: #fff; }
.sheet { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { border: 1px solid #e2e5ef; padding: 7px 10px; white-space: nowrap; text-align: left; }
.sheet thead th, .sheet tbody th { background: #f4f5f9; color: #64748b; font-weight: 600; font-size: .74rem; text-align: center; }
.sheet tbody th { width: 34px; }
.sheet .h { font-weight: 650; background: #eef2ff; }
.sheet .num { text-align: right; }
.sheet .sum td { font-weight: 700; border-top: 1.5px solid #0f172a; }
.sheet .cur { position: relative; }
.sheet .cur::after { content: ""; position: absolute; inset: -1px; border: 2px solid; pointer-events: none; }
.sheet .cur-a::after { border-color: #4f46e5; }
.sheet .cur-m::after { border-color: #0d9488; }
@media (max-width: 520px) {
  .sheet { font-size: .76rem; }
  .sheet th, .sheet td { padding: 6px 7px; }
  .sheet thead th:nth-child(2), .sheet td:nth-child(2) { display: none; }
  .sheet td:nth-child(3) { white-space: normal; }
  .sheet-presence small { font-size: .72rem; }
}

.ask { display: grid; grid-template-columns: 5fr 7fr; gap: 24px clamp(40px, 6vw, 88px); align-items: start; margin-top: clamp(56px, 7vw, 88px); padding-top: 22px; border-top: 1.5px solid var(--text); }
.ask h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 720; font-stretch: 108%; }
.ask > div:first-child > p { margin-top: 10px; color: var(--muted); }
.ask-chat { display: grid; gap: 12px; }
.ask-chat p { margin: 0; padding: 14px 18px; max-width: 52ch; line-height: 1.5; }
.ask-q { justify-self: end; background: var(--indigo); color: #fff; border-radius: 14px 14px 4px 14px; }
.ask-a { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px 14px 14px 4px; }
.ask-a b { color: var(--dim); }
@media (max-width: 960px) { .ask { grid-template-columns: 1fr; } }

/* Recht und Daten */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 56px; border-top: 1.5px solid var(--text); }
.pillar { padding: 28px 32px 32px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--rule); }
.pillar h3 { margin-bottom: 14px; }
.pillar dl { margin: 18px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; }
.pillar dt { font-weight: 650; }
.pillar dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--rule); }
  .pillar dl { grid-template-columns: 1fr; gap: 2px 0; }
  .pillar dd { margin-bottom: 10px; }
}

/* Gewerke */
.trades { display: grid; grid-template-columns: 2fr 1fr 1fr; margin-top: 56px; gap: 0; border-top: 1.5px solid var(--text); }
.trade { padding: 28px 28px 0 0; }
.trade + .trade { padding-left: 28px; border-left: 1px solid var(--rule); }
.trade h3 { font-size: 1.15rem; }
.trade-main h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 740; font-stretch: 112%; }
.trade p { margin-top: 12px; color: var(--muted); }
@media (max-width: 860px) {
  .trades { grid-template-columns: 1fr; }
  .trade, .trade + .trade { padding: 24px 0; border-left: 0; }
  .trade + .trade { border-top: 1px solid var(--rule); }
}

/* Kostenlos testen */
.offer { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 960px) { .offer { grid-template-columns: 1fr; } }
.offer ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.offer li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 4px 0; padding: 22px 0; border-top: 1px solid var(--rule); }
.offer li:first-child { border-top: 1.5px solid var(--text); }
.offer li::before {
  content: counter(s); grid-row: span 2; font-weight: 760; font-stretch: 112%; font-size: 1.6rem; line-height: 1.1; color: var(--dim);
}
.offer li strong { font-weight: 660; font-size: 1.08rem; }
.offer li span { color: var(--muted); }

.callout {
  margin-top: 56px; padding: clamp(28px, 4vw, 44px); border: 1.5px solid var(--text);
  display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center;
}
.callout h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 720; font-stretch: 110%; }
.callout p { margin-top: 10px; color: var(--muted); }
@media (max-width: 760px) { .callout { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 48px; border-top: 1.5px solid var(--text); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-weight: 640; font-size: 1.12rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  color: var(--dim); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); }
.faq a { color: var(--dim); }

/* Abschluss */
.closing { background: var(--ink); color: #fff; padding-block: clamp(80px, 10vw, 130px); }
.closing h2 { max-width: 16ch; }
.closing p { color: #c7cde0; margin-top: 20px; }
.closing .hero-actions { margin-top: 36px; }
.closing .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.closing .btn-ghost:hover { border-color: #fff; }

/* Footer */
.footer { background: var(--ink); color: #c7cde0; border-top: 1px solid rgba(255,255,255,.08); padding-block: 64px 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid img { height: 30px; width: auto; }
.footer-grid p { margin-top: 14px; }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer h2 { font-size: .95rem; font-weight: 650; color: #fff; letter-spacing: 0; margin-bottom: 6px; font-stretch: 100%; }
.footer a { text-decoration: none; color: #c7cde0; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #8f98b3; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Rechtsseiten ---------- */
.legal { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.legal-head { padding-bottom: 32px; border-bottom: 1.5px solid var(--text); }
.legal-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.legal-date { margin-top: 14px; color: var(--muted); }
.legal-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; margin-top: 40px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: .92rem; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.legal-text { max-width: 72ch; }
.legal-text h2 { font-size: 1.5rem; font-stretch: 104%; margin: 48px 0 14px; scroll-margin-top: 96px; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.legal-text p + p, .legal-text ul, .legal-text ol { margin-top: 12px; }
.legal-text li { margin-top: 6px; }
.legal-text a { color: var(--dim); }
@media (max-width: 900px) { .legal-body { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .chain:not(.is-drawn) { --draw: 1; }
}

/* Überschriften in zweispaltigen Abschnitten etwas kleiner, damit sie nicht in Einzelwörter zerfallen */
.split h2, .offer h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
/* Grid-Kinder dürfen schrumpfen – sonst drückt die Stückliste (nowrap) die Seite breiter */
.split > *, .offer > *, .places > *, .pillars > *, .trades > *, .footer-grid > * { min-width: 0; }
@media (max-width: 560px) {
  .bom { font-size: .84rem; }
  .bom th, .bom td { padding: 9px 10px; }
  .bom-head { flex-direction: column; gap: 2px; }
  .bom th:nth-child(4), .bom td:nth-child(4) { display: none; }
  .bom-foot div { padding: 10px; }
}
/* Schmale Telefone: „Schlussrechnung.“ muss in eine Zeile passen */
@media (max-width: 480px) {
  h1 { font-size: 8.9vw; font-stretch: 100%; }
}

/* Footer: lange Links (E-Mail, „Nutzungsbedingungen“) dürfen umbrechen; sehr schmal einspaltig */
.footer a { overflow-wrap: anywhere; }
.footer a[aria-current="page"] { color: #fff; }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* Rechtsseiten: FAQ direkt unter der Zwischenüberschrift */
.legal-text .faq { margin-top: 20px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

/* ---------- Bewegung ----------
   Nur mit JS und ohne „Bewegung reduzieren“ (Klasse .motion auf <html>, gesetzt in
   site.js). Ohne sie ist alles sofort sichtbar und steht still. */

/* Maßband: Scrollfortschritt unter der Navigation */
.nav-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: var(--dim); transform-origin: left; transform: scaleX(var(--progress, 0));
}
.nav-progress::after { /* Teilstriche wie auf einem Maßband */
  content: ""; position: absolute; inset: -3px 0 auto; height: 3px;
  background: repeating-linear-gradient(90deg, var(--dim) 0 1px, transparent 1px 16px);
  opacity: .5;
}

/* Einblenden beim Scrollen */
.motion [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* Parallax und Neigung: nur transform, damit nichts neu umbricht */
.motion [data-parallax] { will-change: transform; }
/* Parallax-Elemente blenden nur über die Deckkraft ein; transform gehört dem Scrollen */
.motion [data-parallax][data-reveal] { transform: none; transition: opacity .9s ease; }
.motion .hero-stage { perspective: 1600px; }
.motion .hero-stage .window { transition: transform .5s cubic-bezier(.2,.7,.2,1); transform-origin: 50% 60%; }

/* Dateiablage: Zeichnung wird gespeichert, Geräte ziehen nach */
.files tr[data-saved] td { transition: background-color .6s ease; }
.files tr[data-saved].is-saving td { background: var(--grid-strong); }
.files .is-flip { animation: flip .5s cubic-bezier(.2,.7,.2,1); }
@keyframes flip { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.files td.is-flip { animation: fade .6s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.motion .files-foot div { position: relative; }
.motion .files-foot b::after {
  content: "aktuell"; position: absolute; bottom: 16px; right: 14px; padding: 1px 7px;
  border: 1px solid var(--dim); color: var(--dim); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  opacity: 0; transform: scale(.8); transition: opacity .35s ease, transform .35s cubic-bezier(.3,1.6,.5,1);
}
.motion .files-foot div.is-synced b::after { opacity: 1; transform: none; }
@media (max-width: 1100px) { .motion .files-foot b::after { position: static; display: block; width: max-content; margin-top: 6px; } }

/* Office: Wert wird getippt, Summe zählt hoch */
.sheet td.is-typing::before {
  content: ""; display: inline-block; width: 1.5px; height: 1em; margin-right: 2px; vertical-align: -2px;
  background: #0d9488; animation: caret .9s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.sheet td.is-counting { color: #4f46e5; }
.motion .who { animation: presence 2.8s ease-in-out infinite; }
.motion .who-m { animation-delay: 1.4s; }
@keyframes presence { 0%, 100% { box-shadow: 0 0 0 0 rgba(79,70,229,0); } 50% { box-shadow: 0 0 0 4px rgba(79,70,229,.18); } }

/* buro-KI: tippt, dann kommt die Antwort */
.ask-typing { display: none; }
.motion .ask-typing {
  display: inline-flex; gap: 5px; justify-self: start; padding: 16px 18px; margin: 0;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px 14px 14px 4px;
}
.motion .ask-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s ease-in-out infinite; }
.motion .ask-typing i:nth-child(2) { animation-delay: .15s; }
.motion .ask-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.motion .ask-chat:not(.is-answered) .ask-a { display: none; }
.motion .ask-chat.is-answered .ask-typing { display: none; }
.motion .ask-chat.is-answered .ask-a { animation: flip .5s cubic-bezier(.2,.7,.2,1); }
.motion .ask-chat:not(.is-asked) .ask-typing { visibility: hidden; }

/* Knöpfe: kleiner Lichtreflex beim Überfahren */
.motion .btn-primary { position: relative; overflow: hidden; }
.motion .btn-primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transition: transform .7s ease;
}
.motion .btn-primary:hover::after { transform: translateX(120%) skewX(-20deg); }
