/* lohnbrief. – gemeinsame Gestaltung aller Seiten.
   Farben, Schrift und Radien laut CI-Leitfaden (ventures/lohnbrief/brand/), Statusfarben eigenständig. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #173748; --petrol: #247185; --teal: #35b3c8; --ice: #eaf2f3; --off: #f7f9fa;
  --bg: #ffffff; --surface: #ffffff; --surface-2: var(--off); --band: var(--ice);
  --ink: var(--navy); --ink-2: #3d5866; --ink-3: #5a7380; --line: #d4e2e6;
  --brand: var(--petrol); --brand-ink: #ffffff; --brand-soft: #dcecef; --dot: var(--petrol);
  --ok: #1e7a4f; --ok-soft: #dff1e7; --warn: #8a5a00; --warn-soft: #fbefd5; --bad: #b3321f; --bad-soft: #f8e1dc;
  --shadow: 0 1px 2px rgba(23,55,72,.06), 0 8px 24px rgba(23,55,72,.07);
  --font: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 8px; --r-md: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1f29; --surface: #132a37; --surface-2: #10242f; --band: #163242;
    --ink: #e8f1f3; --ink-2: #b6c9d0; --ink-3: #8ea6af; --line: #24404f;
    --brand: var(--teal); --brand-ink: #0b1a22; --brand-soft: #173a47; --dot: var(--teal);
    --ok: #5cc48f; --ok-soft: #15301f; --warn: #e5b44f; --warn-soft: #3a2d12; --bad: #f0806b; --bad-soft: #3a1c17;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1f29; --surface: #132a37; --surface-2: #10242f; --band: #163242;
  --ink: #e8f1f3; --ink-2: #b6c9d0; --ink-3: #8ea6af; --line: #24404f;
  --brand: var(--teal); --brand-ink: #0b1a22; --brand-soft: #173a47; --dot: var(--teal);
  --ok: #5cc48f; --ok-soft: #15301f; --warn: #e5b44f; --warn-soft: #3a2d12; --bad: #f0806b; --bad-soft: #3a1c17;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.5rem); font-weight: 760; }
h1 .hl { color: var(--brand); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 740; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
section { padding: 72px 0; }
.eyebrow { font-size: .85rem; font-weight: 700; color: var(--brand); margin-bottom: .7em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }

/* Kopf */
header.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 760; font-size: 1.35rem; letter-spacing: -0.04em; }
.logo .dot { color: var(--dot); }
.logo svg { flex: none; }
.nav-links { display: none; gap: 24px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--brand); }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; width: 40px; height: 40px; cursor: pointer; font-size: 1rem; }

/* Knöpfe und Felder */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--r-md); font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
input[type=text], input[type=email], input[type=number], select, textarea { font: inherit; font-size: 1rem; min-height: 48px; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
textarea { min-height: 120px; resize: vertical; }
label.f { display: grid; gap: 6px; font-size: .92rem; font-weight: 650; }
.cb { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.cb input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form.f { display: grid; gap: 16px; }
@media (min-width: 720px) { form.f.two { grid-template-columns: 1fr 1fr; } form.f.two .full { grid-column: 1 / -1; } }
.msg:empty { display: none; }
.msg { margin: 0; padding: 14px 16px; border-radius: var(--r-sm); font-weight: 650; }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.msg.err { background: var(--bad-soft); color: var(--bad); }

/* Bausteine */
.pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }
.grid-3 { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.ico { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.band { background: var(--band); }
.alt { background: var(--surface-2); }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.trust li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 6px; }
.endorse { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); text-decoration: none; }
.endorse b { color: var(--ink); }
.endorse:hover b { color: var(--brand); }
.on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .on-dark { display: inline; } :root:not([data-theme="light"]) .on-light { display: none; } }
:root[data-theme="dark"] .on-dark { display: inline; }
:root[data-theme="dark"] .on-light { display: none; }

/* Produkt-Illustration: Postfach einer Mitarbeiterin */
.phone { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; max-width: 400px; margin: 0 auto; width: 100%; }
.phone .hello { font-size: .85rem; color: var(--ink-3); margin-bottom: 4px; }
.phone .new { background: var(--band); border-radius: var(--r-md); padding: 16px; margin: 12px 0 16px; }
.phone .new b { display: block; font-size: 1.05rem; }
.phone .new .btn { width: 100%; margin-top: 12px; }
.doclist { list-style: none; margin: 0; padding: 0; }
.doclist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line); font-size: .93rem; }
.doclist .emp { display: block; font-size: .8rem; color: var(--ink-3); }
.status { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.status.read { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); }
.caption { font-size: .8rem; color: var(--ink-3); text-align: center; margin-top: 10px; }

/* Ablauf */
.flow { display: grid; gap: 14px; margin-top: 32px; counter-reset: s; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(5, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 12px; }
.step h3 { margin-bottom: .35em; }
.step p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.who { display: block; font-size: .78rem; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }

/* Prüfbericht */
.split { display: grid; gap: 32px; align-items: start; margin-top: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; }
.report .head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-weight: 700; }
.report ul { list-style: none; margin: 0; padding: 6px 18px 14px; }
.report li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.report li:last-child { border-bottom: 0; }
.report .k { font-weight: 800; }
.report .ok { color: var(--ok); }
.report .warn { color: var(--warn); }
.report .foot { padding: 12px 18px; background: var(--surface-2); font-size: .85rem; color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .8rem; margin-top: 2px; }
.checks b { display: block; }
.checks span { color: var(--ink-2); }

/* Sicherheit: Onboarding über zwei Kanäle */
.channels { display: grid; gap: 14px; margin: 24px 0; }
@media (min-width: 720px) { .channels { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; } }
.channel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.channel b { display: block; margin-bottom: 4px; }
.channel p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.plus { display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: var(--brand); }
.auth { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.auth span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .88rem; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.auth span.min { border-color: var(--brand); color: var(--brand); }

/* Preise und Rechner */
.price-grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 900px) { .price-grid { grid-template-columns: .9fr 1.1fr; } }
.price .amount { font-size: 2.4rem; font-weight: 780; letter-spacing: -0.03em; line-height: 1.1; }
.price .amount small { font-size: 1rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.price .plusline { margin: 10px 0; font-weight: 800; color: var(--brand); }
.price ul { padding-left: 1.1em; color: var(--ink-2); margin: 18px 0 0; }
.calc-in { display: grid; gap: 14px; }
@media (min-width: 560px) { .calc-in { grid-template-columns: 1fr 1fr; } }
.calc-out { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.calc-out .row { display: flex; justify-content: space-between; gap: 12px; }
.calc-out .row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-out .total { font-size: 1.2rem; }
.calc-out .total b { color: var(--brand); }

/* Pilot */
.pilot { display: grid; gap: 32px; }
@media (min-width: 900px) { .pilot { grid-template-columns: 1.2fr .8fr; align-items: center; } }
.offer .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.offer .row b { text-align: right; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); }

/* Teaser */
.teaser-hero { padding: 64px 0 56px; min-height: min(680px, calc(100svh - 64px)); display: flex; align-items: center; }
.teaser-hero .wrap { width: 100%; }
form.code { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 540px; }
form.code input { flex: 1 1 220px; letter-spacing: .08em; text-transform: uppercase; }
.code-err { color: var(--bad); font-weight: 650; margin: 10px 0 0; }

/* Rechtstexte */
.legal { padding: 40px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4.4vw, 2.5rem); }
.legal h2 { font-size: 1.2rem; margin-top: 2em; }
.legal dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px 20px; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }
.back { display: inline-block; margin-bottom: 20px; font-weight: 600; text-decoration: none; }

/* Fuß */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: .9rem; color: var(--ink-3); }
footer .wrap { display: grid; gap: 20px; }
@media (min-width: 820px) { footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
footer nav { display: flex; gap: 20px; }
footer a { color: inherit; }

/* Markenwerte */
.values-band { border-top: 1px solid var(--line); padding: 56px 0; }
.grid-4 { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.value { border-top: 3px solid var(--brand); padding-top: 18px; }
.value h3 { margin-bottom: .35em; }
.value p { color: var(--ink-2); margin: 0; font-size: .95rem; }
