/* ============================================================
   Angebots-Blitz — „Werkstatt-Premium"
   Anthrazit + Signalgelb, kräftig & clean, durchgehend animiert.
   ============================================================ */

:root {
  --bg: #14161b;
  --bg-2: #1b1e25;
  --panel: #20242d;
  --panel-2: #272c37;
  --line: #323845;
  --ink: #f2f3f5;
  --ink-dim: #aab1bd;
  --ink-faint: #7c8492;
  --accent: #ffc814;
  --accent-deep: #e8a200;
  --accent-ink: #14161b;
  --paper: #ffffff;
  --paper-ink: #1d2129;
  --paper-dim: #5c6470;
  --paper-line: #e3e6ea;
  --brand-color: #1f6feb;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; }
.accent { color: var(--accent); }

/* ---------- Reveals ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(20, 22, 27, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.blitz-mark { width: 30px; height: 30px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border-radius: 8px; }
.blitz-mark svg { width: 22px; height: 22px; }
.topbar-word { font-family: var(--font-display); font-weight: 900; letter-spacing: .04em; font-size: 15px; }
.topbar-word em { font-style: normal; color: var(--accent); }
.topbar-cta {
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: var(--accent-ink); background: var(--accent);
  padding: 8px 14px; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.topbar-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 200, 20, .35); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 11vw, 130px) clamp(20px, 5vw, 48px) clamp(48px, 7vw, 90px); overflow: hidden; }
.hero-grain {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 200, 20, .13), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(31, 111, 235, .10), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.014) 0 2px, transparent 2px 9px);
}
.hero-inner { position: relative; max-width: 980px; margin: 0 auto; }
.hero-kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(255, 200, 20, .4); border-radius: 999px; padding: 6px 14px;
  margin-bottom: 22px; background: rgba(255, 200, 20, .07);
}
.hero-claim {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(38px, 7.4vw, 84px); line-height: 1.02; letter-spacing: -.015em;
  text-wrap: balance;
}
.hero-sub { max-width: 620px; margin-top: 24px; color: var(--ink-dim); font-size: clamp(16px, 2vw, 19px); }
.hero-sub strong { color: var(--ink); }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px 16px; position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: .9; }
.stat-num { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 4vw, 44px); color: var(--ink); }
.stat-unit { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2.4vw, 24px); color: var(--accent); margin-left: 2px; }
.stat-label { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-dim); line-height: 1.45; }
.stat-src { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-faint); }

/* ---------- Sections ---------- */
.section-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 4.6vw, 44px); line-height: 1.08; letter-spacing: -.01em; text-align: center; }
.section-sub { text-align: center; color: var(--ink-dim); margin-top: 12px; font-size: 15.5px; }
.mobile-br { display: none; }

/* ---------- Tiles ---------- */
.tiles-section { padding: clamp(30px, 5vw, 60px) clamp(20px, 5vw, 48px) clamp(40px, 6vw, 70px); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1020px; margin: 34px auto 0; }
.tile {
  text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 18px; color: var(--ink); display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.tile::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(255, 200, 20, .09), transparent 45%);
  opacity: 0; transition: opacity .3s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-4px); border-color: rgba(255, 200, 20, .55); box-shadow: var(--shadow); }
.tile:hover::before { opacity: 1; }
.tile.playing { border-color: var(--accent); }
.tile-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 200, 20, .12); color: var(--accent); }
.tile-icon svg { width: 23px; height: 23px; }
.tile-trade { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.tile-title { font-family: var(--font-display); font-weight: 700; font-size: 17.5px; line-height: 1.3; }
.tile-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.tile-play {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); flex: none;
  transition: transform .2s ease;
}
.tile:hover .tile-play { transform: scale(1.1); }
.tile-play svg { width: 17px; height: 17px; margin-left: 2px; }
.tile.audio-on .tile-play { animation: eq-pulse 1s ease-in-out infinite; }
.tile.audio-on .tile-play svg { margin-left: 0; }
@keyframes eq-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.tile-dur { font-size: 12.5px; color: var(--ink-dim); }

/* ---------- Stage ---------- */
.stage-section { padding: 0 clamp(16px, 4vw, 48px) clamp(44px, 6vw, 80px); }
.stage-section[hidden] { display: none; }
.stage { display: grid; grid-template-columns: minmax(290px, 380px) minmax(0, 1fr); gap: 20px; max-width: 1120px; margin: 0 auto; align-items: start; }

/* Voice panel */
.voice-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; position: sticky; top: 74px;
}
.voice-head { display: flex; align-items: center; gap: 12px; }
.voice-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,200,20,.13); color: var(--accent); display: grid; place-items: center; flex: none; }
.voice-avatar svg { width: 20px; height: 20px; }
.voice-title-wrap { display: flex; flex-direction: column; min-width: 0; }
.voice-title { font-weight: 700; font-size: 14.5px; }
.voice-state { font-size: 12px; color: var(--accent); }
.voice-wave { margin-left: auto; display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.voice-wave i { width: 3.5px; background: var(--accent); border-radius: 2px; height: 6px; animation: wave 1s ease-in-out infinite; }
.voice-wave i:nth-child(2) { animation-delay: .15s; } .voice-wave i:nth-child(3) { animation-delay: .3s; }
.voice-wave i:nth-child(4) { animation-delay: .45s; } .voice-wave i:nth-child(5) { animation-delay: .6s; }
.voice-wave.idle i { animation-play-state: paused; height: 5px; opacity: .35; }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 19px; } }
.voice-transcript {
  margin-top: 14px; font-size: 14.5px; color: var(--ink-dim); line-height: 1.65; min-height: 90px;
  border-left: 3px solid rgba(255, 200, 20, .4); padding-left: 12px; white-space: pre-wrap;
}
.voice-transcript .caret { display: inline-block; width: 8px; height: 16px; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.ki-steps { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.ki-step { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-dim); opacity: 0; transform: translateX(-8px); transition: opacity .4s ease, transform .4s ease; }
.ki-step.in { opacity: 1; transform: none; }
.ki-step .tick { width: 17px; height: 17px; border-radius: 50%; background: rgba(82, 196, 120, .15); color: #52c478; display: grid; place-items: center; flex: none; font-size: 11px; }

/* Skip-Button */
.skip-btn {
  margin-top: 14px; width: 100%;
  background: transparent; border: 1px dashed var(--line); color: var(--ink-faint);
  font-size: 12.5px; font-weight: 600; padding: 9px 12px; border-radius: 9px;
  transition: color .2s ease, border-color .2s ease;
}
.skip-btn:hover { color: var(--accent); border-color: rgba(255, 200, 20, .5); }

/* Stage-Tabs */
.stage-tabs { display: flex; justify-content: center; gap: 8px; max-width: 1120px; margin: 0 auto 16px; flex-wrap: wrap; }
.stage-tab {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink-dim);
  font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 999px;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.stage-tab:hover { transform: translateY(-1px); color: var(--ink); }
.stage-tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Doc toolbar */
.doc-wrap { min-width: 0; }
.doc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.brand-switch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand-switch-label { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.brand-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.brand-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink-dim);
  font-size: 12.5px; font-weight: 600; padding: 6px 12px 6px 7px; border-radius: 999px;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.brand-chip:hover { transform: translateY(-1px); }
.brand-chip .chip-dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 8.5px; font-weight: 800; color: #fff; }
.brand-chip.active { border-color: var(--accent); color: var(--ink); background: var(--panel-2); }
.pdf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); border: none;
  font-size: 13.5px; font-weight: 700; padding: 10px 16px; border-radius: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pdf-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 200, 20, .3); }
.pdf-btn svg { width: 16px; height: 16px; }

/* ---------- Das Dokument ---------- */
.doc {
  scroll-margin-top: 64px;
  background: var(--paper); color: var(--paper-ink); border-radius: 10px;
  padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow);
  font-size: 13.5px; line-height: 1.5; position: relative; overflow: hidden;
}
.doc-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 3px solid var(--brand-color); padding-bottom: 16px; }
.doc-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.doc-logo {
  width: 46px; height: 46px; border-radius: 10px; background: var(--brand-color); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 18px;
  flex: none; transition: background .35s ease;
}
.doc-brand-text { display: flex; flex-direction: column; min-width: 0; }
.doc-brand-text strong { font-size: 16.5px; font-family: var(--font-display); letter-spacing: -.01em; }
.doc-brand-text span { font-size: 11.5px; color: var(--paper-dim); }
.doc-firm-meta { font-size: 10.5px; color: var(--paper-dim); text-align: right; line-height: 1.6; flex: none; }

.doc-address-row { display: flex; justify-content: space-between; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
.doc-address { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.doc-address-label { font-size: 9px; color: var(--paper-dim); border-bottom: 1px solid var(--paper-line); padding-bottom: 3px; }
.doc-meta-table { border-collapse: collapse; font-size: 12px; }
.doc-meta-table td { padding: 2px 0 2px 18px; }
.doc-meta-table td:first-child { color: var(--paper-dim); padding-left: 0; }
.doc-meta-table td:last-child { font-weight: 600; text-align: right; }

.doc-title { font-family: var(--font-display); font-size: 19px; margin-top: 24px; letter-spacing: -.01em; }
.doc-intro { margin-top: 10px; color: var(--paper-ink); }

.doc-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.doc-table th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--paper-dim); border-bottom: 2px solid var(--paper-ink); padding: 6px 8px 6px 0;
}
.doc-table th.num, .doc-table td.num { text-align: right; }
.doc-table td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.doc-table td:last-child, .doc-table th:last-child { padding-right: 0; }
.doc-table .pos-row { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.doc-table .pos-row.in { opacity: 1; transform: none; }
.pos-desc { max-width: 420px; }
.pos-typ { display: inline-block; margin-top: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.pos-typ.material { background: #e8f0fe; color: #1a56b8; }
.pos-typ.lohn { background: #fef3dc; color: #946200; }
.pos-typ.pauschale { background: #eceff3; color: #5c6470; }
.unit-inline { display: none; } /* nur < 480px: Einheit wandert in die Mengen-Zelle („8 Std.") */

.doc-sums { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.doc-split { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; font-size: 11.5px; color: var(--paper-dim); align-self: flex-start; }
.doc-split .split-item { white-space: nowrap; }
.doc-split b { color: var(--paper-ink); font-weight: 600; }
.doc-sums-table { border-collapse: collapse; min-width: 240px; margin-left: auto; }
.doc-sums-table td { padding: 5px 0 5px 26px; font-size: 13.5px; }
.doc-sums-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.doc-sums-table .doc-total td {
  border-top: 2px solid var(--paper-ink); font-family: var(--font-display); font-weight: 900; font-size: 16.5px; padding-top: 9px;
}
.doc-sums-table .doc-total td.num { color: var(--brand-color); transition: color .35s ease; }

.doc-terms { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--paper-line); font-size: 11.5px; color: var(--paper-dim); display: grid; gap: 5px; }
.doc-terms strong { color: var(--paper-ink); }
.doc-sign { margin-top: 20px; font-size: 12.5px; }
.doc-sign-name { font-family: "Snell Roundhand", "Segoe Script", cursive; font-size: 21px; margin-top: 6px; color: var(--brand-color); transition: color .35s ease; }
.doc-sign-meta { font-size: 10px; color: var(--paper-dim); margin-top: 10px; }
.doc-demo-stamp {
  position: absolute; right: -34px; top: 26px; transform: rotate(38deg);
  background: rgba(194, 64, 58, .12); color: rgba(194, 64, 58, .55);
  font-family: var(--font-display); font-weight: 900; font-size: 13px; letter-spacing: .35em;
  padding: 5px 50px; border: 1px solid rgba(194, 64, 58, .25);
}

/* Fertig-Badge */
.done-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  background: rgba(82, 196, 120, .12); color: #52c478; border: 1px solid rgba(82, 196, 120, .3);
  font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  animation: pop .45s cubic-bezier(.2,.9,.3,1.4);
}
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Calc details */
.calc-details { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.calc-details summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 18px; font-weight: 700; font-size: 14.5px; cursor: pointer; user-select: none;
}
.calc-details summary::-webkit-details-marker { display: none; }
.calc-details summary svg { width: 18px; height: 18px; color: var(--accent); transition: transform .3s ease; flex: none; }
.calc-details[open] summary svg { transform: rotate(180deg); }
.calc-body { padding: 0 18px 18px; display: grid; gap: 10px; color: var(--ink-dim); font-size: 14px; }
.calc-body strong { color: var(--ink); }
.calc-src { font-size: 12px; color: var(--ink-faint); }

/* ---------- Live ---------- */
.live-section { padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 48px); background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.live-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.live-box { margin-top: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; }
.rec-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--panel-2); color: var(--ink); border: 2px solid var(--accent);
  font-size: 16px; font-weight: 700; padding: 14px 26px; border-radius: 999px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.rec-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 200, 20, .22); }
.rec-btn .rec-dot { width: 13px; height: 13px; border-radius: 50%; background: #e3473d; flex: none; }
.rec-btn.recording { background: #2c1a18; border-color: #e3473d; }
.rec-btn.recording .rec-dot { animation: recpulse 1.1s ease-in-out infinite; }
@keyframes recpulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.45); opacity: .55; } }
.rec-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.rec-timer { font-family: var(--font-display); font-weight: 900; font-size: 30px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.live-status { margin-top: 12px; font-size: 14px; color: var(--ink-dim); min-height: 21px; }
.live-status.error { color: #f0a8a3; }
.live-hint { margin-top: 10px; font-size: 12.5px; color: var(--ink-faint); font-style: italic; }
.dsgvo-line { margin-top: 14px; font-size: 12px; color: var(--ink-faint); }

/* ---------- CTA ---------- */
.cta-section { padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 48px); position: relative; overflow: hidden; }
.cta-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 50% 0%, rgba(255, 200, 20, .1), transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.cta-kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.cta-claim { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 5vw, 50px); line-height: 1.08; margin-top: 16px; letter-spacing: -.015em; text-wrap: balance; }
.cta-compare { margin-top: 20px; color: var(--ink-dim); font-size: 16px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-compare strong { color: var(--ink); }
.cta-btn {
  display: inline-block; margin-top: 30px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(16px, 2.4vw, 20px);
  padding: 17px 34px; border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 14px 38px rgba(255, 200, 20, .25);
}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(255, 200, 20, .4); }
.cta-sub { margin-top: 14px; font-size: 13px; color: var(--ink-faint); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 22px clamp(20px, 5vw, 48px); }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-note { font-size: 12px; color: var(--ink-faint); }
.footer-brand { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-dim); text-decoration: none; font-size: 13px; }
.footer-brand img { border-radius: 5px; }
.footer-brand strong { color: var(--ink); }
.footer-legal { color: var(--ink-dim); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-legal:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-page { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 48px) clamp(48px, 8vw, 90px); }
.legal-page h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 5vw, 46px); letter-spacing: -.015em; }
.legal-lead { margin-top: 14px; color: var(--ink-dim); font-size: 15.5px; }
.legal-page h2 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-top: 34px; }
.legal-page p, .legal-page ul { margin-top: 10px; color: var(--ink-dim); font-size: 14.5px; line-height: 1.7; }
.legal-page ul { padding-left: 20px; display: grid; gap: 6px; }
.legal-page strong { color: var(--ink); }
.legal-page a { color: var(--accent); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; }
  .voice-panel { position: static; }
  .tiles { grid-template-columns: 1fr; max-width: 460px; }
  .hero-stats { grid-template-columns: 1fr; gap: 10px; }
  .stat { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; column-gap: 4px; padding: 14px 16px; }
  .stat-label { margin-top: 0; margin-left: 12px; }
  .mobile-br { display: inline; }
}
@media (max-width: 480px) {
  .doc { padding: 18px 14px; font-size: 12px; }
  .doc-head { flex-direction: column; }
  .doc-firm-meta { text-align: left; }
  .doc-table th:nth-child(4), .doc-table td:nth-child(4) { display: none; } /* Einheit-Spalte auf sehr schmal ausblenden … */
  .unit-inline { display: inline; } /* … und stattdessen in der Mengen-Zelle zeigen („8 Std.") */
  .pos-desc { max-width: none; }
  .doc-toolbar { flex-direction: column; align-items: stretch; }
  .pdf-btn { justify-content: center; }
  .topbar-cta { font-size: 12px; padding: 7px 11px; }
  .doc-demo-stamp { display: none; }
}

/* ---------- Print: nur das Dokument, als echtes Angebot ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  .topbar, .hero, .tiles-section, .live-section, .cta-section, .footer,
  .voice-panel, .doc-toolbar, .calc-details, .done-badge { display: none !important; }
  .stage-section { padding: 0; }
  .stage { display: block; max-width: none; }
  .doc { box-shadow: none; border-radius: 0; padding: 0; font-size: 12px; }
  .doc-demo-stamp { display: none; }
  .pos-typ { display: none; } /* UI-Chips gehören nicht aufs gedruckte Angebot */
  .doc-table .pos-row { opacity: 1 !important; transform: none !important; }
}
