@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("/fonts/fraunces-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+A720-A7FF; }
@font-face { font-family: "Commit Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/commit-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Commit Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/commit-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #f7f4ec;
  --paper-2: #efeadd;
  --card: #fffdf7;
  --ink: #1c1a16;
  --ink-2: #4a453b;
  --line: #d9d1bd;
  --gold: #b08a2e;
  --gold-ink: #7a5e17;
  --gold-soft: #efe2bf;
  --ok: #3f6b3a;
  --header-h: 60px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Commit Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16140f;
    --paper-2: #1e1b15;
    --card: #221f18;
    --ink: #efe9da;
    --ink-2: #bdb4a0;
    --line: #3a352a;
    --gold: #d4b25a;
    --gold-ink: #e3c77d;
    --gold-soft: #3a3020;
    --ok: #8fbf86;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 2rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1rem; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.mono { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.02em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--card); padding: 8px 12px; }

/* Buttons */
.btn, button:not([class]), input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.2rem;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 4px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease;
}
.btn:hover { background: var(--gold-ink); border-color: var(--gold-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1c1a16; }
.btn-gold:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-small { min-height: 40px; padding: .45rem .9rem; font-size: .92rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.brand-by { display: block; font-family: var(--mono); font-size: .75rem; color: var(--ink-2); margin-top: 3px; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.progress-fill { height: 100%; width: 0; background: var(--gold); transform-origin: left; }
.progress-label { display: none; }
@media (min-width: 720px) { .progress-label { display: inline; color: var(--ink-2); } }
.head-right { display: flex; align-items: center; gap: 14px; }

/* Hero */
.hero { padding: 16px 0 48px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; padding-top: 28px; } }
.eyebrow { color: var(--gold-ink); margin-bottom: 8px; display: block; }
.hero h1 { font-size: clamp(1.75rem, 6.4vw, 3.3rem); }
.hero-lead { color: var(--ink-2); margin-top: 10px; max-width: 34rem; font-size: 1rem; line-height: 1.5; }
@media (min-width: 960px) { .hero-lead { font-size: 1.125rem; line-height: 1.6; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 18px; }
.hero-cta .note { color: var(--ink-2); }

/* Demo board: incoming mail -> draft */
.board { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.board-tag { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-2); padding: 2px 4px 8px; }
.board-tag b { color: var(--gold-ink); font-weight: 700; }
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
@media (min-width: 720px) { .sheet { padding: 12px 14px; } }
.sheet + .sheet { margin-top: 10px; }
.sheet-head { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-2); border-bottom: 1px dashed var(--line); padding-bottom: 6px; margin-bottom: 8px; }
.sheet p { font-size: .95rem; margin-bottom: .5rem; }
.sheet p:last-child { margin-bottom: 0; }
.sheet .subject { font-weight: 600; }
.arrow-row { display: flex; align-items: center; gap: 8px; color: var(--gold-ink); padding: 8px 4px 0; }
.summary { list-style: none; margin: 0 0 8px; padding: 0; font-size: .93rem; }
.summary li { padding-left: 1.1rem; position: relative; }
.summary li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: 2px; background: var(--gold); }
.draft { border-left: 3px solid var(--gold); padding-left: 10px; }
.status { display: inline-block; background: var(--gold-soft); color: var(--gold-ink); border-radius: 3px; padding: 1px 6px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--gold-soft); color: var(--ink); border-color: var(--gold); }
.hide-sm { display: none; }
@media (min-width: 720px) { .hide-sm { display: block; } }

/* Steps */
.step { padding: 64px 0; border-bottom: 1px solid var(--line); }
.step-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .step-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } .step-grid.flip > :first-child { order: 2; } }
.step-no { color: var(--gold-ink); display: block; margin-bottom: 10px; }
.step h2 { font-size: clamp(1.6rem, 4.6vw, 2.5rem); margin-bottom: 14px; }
.step .lead { color: var(--ink-2); }
.facts { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Chat line */
.chat { display: grid; gap: 10px; }
.bubble { background: var(--ink); color: var(--paper); border-radius: 14px 14px 2px 14px; padding: 10px 14px; justify-self: end; max-width: 92%; }
.reply { background: var(--card); border: 1px solid var(--line); border-radius: 14px 14px 14px 2px; padding: 12px 14px; max-width: 96%; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0 0; font-size: .95rem; }
.kv dt { color: var(--ink-2); font-family: var(--mono); font-size: .8rem; padding-top: 2px; }
.kv dd { margin: 0; }

/* Invoice */
.invoice table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.invoice th, .invoice td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.invoice th { font-family: var(--mono); font-size: .74rem; font-weight: 400; color: var(--ink-2); }
.invoice td.num, .invoice th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.invoice tfoot td { border-bottom: 0; font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 10px 0 0; font-size: .9rem; }
.checks li { display: flex; gap: 8px; align-items: baseline; }
.checks li span { color: var(--ok); font-family: var(--mono); }
.table-wrap { overflow-x: auto; }

/* Search answer */
.source { display: inline-block; margin-top: 6px; color: var(--gold-ink); }
.search-q { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: var(--card); border-radius: 4px; padding: 10px 12px; margin-bottom: 10px; }

/* Phone share */
.share { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.share .tile { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 12px; }
.share .tile b { display: block; font-family: var(--serif); font-size: 1.05rem; margin-top: 4px; }

/* Honest box */
.honest { background: var(--paper-2); }
.honest-list { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.honest-list div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
@media (min-width: 720px) { .honest-list div { grid-template-columns: 14rem 1fr; gap: 24px; } }
.honest-list b { font-family: var(--serif); font-size: 1.1rem; }

/* Finale */
.finale { padding: 72px 0 80px; text-align: left; position: relative; overflow: hidden; }
.finale h2 { font-size: clamp(1.8rem, 5.5vw, 3rem); max-width: 22ch; }
.finale .result { display: inline-block; font-family: var(--mono); background: var(--gold-soft); color: var(--gold-ink); padding: 4px 10px; border-radius: 3px; margin-bottom: 16px; }
.finale.is-done .result { animation: pop .5s ease-out; }
.finale.is-done .wrap { animation: shake .4s ease-in-out; }
@keyframes pop { 0% { transform: scale(.85); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-2); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { min-height: 40px; display: inline-flex; align-items: center; }

/* Reveal */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .finale.is-done .result, .finale.is-done .wrap { animation: none; }
}

.status-wip { background: var(--ink); color: var(--paper); }
.chatline { background: var(--gold-soft); border-radius: 10px 10px 10px 2px; padding: 8px 10px; }
.mini { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mini td { padding: 5px 0; border-bottom: 1px solid var(--line); }
.mini td.num { text-align: right; font-family: var(--mono); white-space: nowrap; padding-left: 10px; }
.mini tr.sum td { border-bottom: 0; font-weight: 600; }

/* Kopfzeilen-Logo public/logo-kopf.svg (ohne Tagline), erzeugt per scripts/make-icons.mjs */
.brand-logo { display: block; width: 149px; height: 40px; }
@media (min-width: 720px) { .brand-logo { width: 186px; height: 50px; } }
@media (prefers-color-scheme: dark) {
  .brand-logo { background: #f7f4ec; border-radius: 6px; padding: 2px 4px; box-sizing: content-box; }
}

.anlage { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--gold); border-radius: 4px; background: var(--card); }
.anlage .status { margin-bottom: 8px; }
.anlage p { font-size: .98rem; margin: 0 0 .6rem; }
.anlage p:last-child { margin-bottom: 0; }
.anlage a { color: var(--gold-ink); font-weight: 600; text-underline-offset: 3px; }

.since { margin: 10px 0 0; color: var(--gold-ink); }
.team h2 { max-width: 20ch; }

.direkt { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 44rem; }
.direkt p { margin-bottom: 12px; }
.direkt-links { display: flex; flex-wrap: wrap; gap: 8px; }

.nowrap { white-space: nowrap; }

/* Warteliste */
.wl-form { margin-top: 24px; max-width: 44rem; }
.wl-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.wl-fields { display: grid; gap: 12px; }
@media (min-width: 720px) { .wl-fields { grid-template-columns: 1fr 1fr; } .wl-fields .wl-field:first-child { grid-column: 1 / -1; } }
.wl-field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .95rem; }
.wl-field i { font-style: normal; font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.wl-req { font-family: var(--mono); font-weight: 400; font-size: .75rem; color: var(--gold-ink); }
.wl-field input {
  min-height: 46px; padding: .6rem .75rem; font: 400 1rem/1.3 var(--sans);
  color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 4px;
}
.wl-field input:focus-visible, .wl-check input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.wl-field input[aria-invalid="true"] { border-color: #a3402a; }
.wl-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .95rem; line-height: 1.45; }
.wl-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--gold-ink); }
.wl-msg { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid #a3402a; background: var(--card); font-size: .95rem; }
.wl-msg a { font-weight: 600; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }
.btn.is-loading::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: wl-spin .7s linear infinite;
}
@keyframes wl-spin { to { transform: rotate(360deg); } }
.wl-done { margin-top: 24px; max-width: 44rem; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 4px; }
.wl-done:focus { outline: none; }
.wl-done-head { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--ok); margin-bottom: 6px; }
.wl-done p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .btn.is-loading::before { animation: none; } }
