/* paperless-ocr.de – Grundstil. Keine externen Ressourcen, keine Cookies. */

@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #0f1a2a;
  --ink-2: #33415a;
  --ink-3: #66728a;
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --card: #ffffff;
  --line: #ddd8cc;
  --line-2: #e8e4da;
  --accent: #1d4f91;
  --accent-ink: #ffffff;
  --gold: #c9a227;
  --ok: #187052;
  --ok-bg: #e3f1ea;
  --bad: #b3261e;
  --bad-bg: #fbe7e5;
  --warn: #8a5a00;
  --warn-bg: #fbf0d9;
  --de-black: #1a1a1a;
  --de-red: #d00000;
  --de-gold: #ffce00;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 14px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgb(15 26 42 / .06), 0 8px 24px rgb(15 26 42 / .07);
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; font-family: var(--sans); font-weight: 650; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 40em; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: inline-flex; gap: 10px; align-items: center; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
code, pre, .mono { font-family: var(--mono); font-size: .88em; }

/* Deutschland-Akzent: schmale Trikolore */
.flag { display: inline-flex; flex-direction: column; width: 18px; height: 12px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); flex: none; }
.flag i { flex: 1; }
.flag i:nth-child(1) { background: var(--de-black); }
.flag i:nth-child(2) { background: var(--de-red); }
.flag i:nth-child(3) { background: var(--de-gold); }
.tricolore { height: 3px; background: linear-gradient(90deg, var(--de-black) 0 33.33%, var(--de-red) 33.33% 66.66%, var(--de-gold) 66.66%); }

/* Kopf */
.site-head { position: sticky; top: 0; z-index: 20; background: rgb(247 245 240 / .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -.01em; font-size: 1.05rem; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand span b { color: var(--accent); font-weight: 650; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav { display: none; } .site-head .btn { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 600 .97rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1c2a40; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-s { padding: 9px 16px; font-size: .9rem; }

/* Abschnitte */
section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }
.section-head { max-width: 760px; margin-bottom: 44px; }
.alt { background: var(--paper-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.dark { background: var(--ink); color: #e9edf4; }
.dark h2, .dark h3 { color: #fff; }
.dark .lead, .dark .muted { color: #b9c3d3; }
.dark .eyebrow { color: var(--gold); }

/* Hero */
.hero { padding: 84px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 44px; } }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { margin-bottom: 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; color: var(--ink-2); }
.facts svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--ok); }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* Hero-Visual: Dokument mit Scanlinie und erkanntem Text */
.doc-visual { position: relative; aspect-ratio: 4 / 4.6; max-width: 470px; margin-left: auto; width: 100%; }
@media (max-width: 960px) { .doc-visual { margin: 0 auto; } }
.doc-sheet { position: absolute; inset: 0 12% 6% 0; background: #fbfaf6; border-radius: 6px; box-shadow: var(--shadow); transform: rotate(-2.2deg); overflow: hidden; border: 1px solid var(--line-2); }
.doc-sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(.2) contrast(.95); }
.doc-sheet::after { content: ""; position: absolute; left: 0; right: 0; height: 26%; top: -26%; background: linear-gradient(180deg, transparent, rgb(29 79 145 / .12) 70%, rgb(29 79 145 / .55) 98%, transparent); animation: scan 4.8s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes scan { 0% { top: -26%; } 70%, 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .doc-sheet::after { animation: none; display: none; } html { scroll-behavior: auto; } }
.doc-result { position: absolute; right: 0; bottom: 0; width: 64%; background: var(--card); border-radius: var(--radius); box-shadow: 0 14px 40px rgb(15 26 42 / .16); border: 1px solid var(--line-2); padding: 18px 18px 14px; font-size: .86rem; }
.doc-result h4 { margin: 0 0 10px; font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: flex; justify-content: space-between; }
.doc-result dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.doc-result dt { color: var(--ink-3); }
.doc-result dd { margin: 0; font-family: var(--mono); font-size: .92em; text-align: right; color: var(--ink); }
.doc-result dd::after { content: " ✓"; color: var(--ok); font-family: var(--sans); font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font: 600 .72rem/1 var(--sans); letter-spacing: .02em; text-transform: none; }

/* Vergleich */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 960px) { .compare { grid-template-columns: 1fr; } }
.scan-figure { position: sticky; top: 92px; margin: 0; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.scan-figure img { border-radius: 6px; }
.scan-figure figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 10px; }
.tabs { display: inline-flex; padding: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 16px; }
.tabs button { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font: 600 .9rem/1 var(--sans); color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.fields { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .93rem; }
.fields th, .fields td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.fields thead th { background: var(--paper); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.fields tr:last-child td { border-bottom: 0; }
.fields td.v { font-family: var(--mono); font-size: .86rem; white-space: nowrap; }
.fields .ok { color: var(--ok); }
.fields .bad { color: var(--bad); background: var(--bad-bg); }
.fields .meh { color: var(--warn); background: var(--warn-bg); }
.mark { font-family: var(--sans); font-weight: 700; margin-right: 6px; }
[data-show="tesseract"] .col-ours, [data-show="ours"] .col-tess { display: none; }
@media (max-width: 520px) { .fields { font-size: .84rem; table-layout: fixed; } .fields td.v { font-size: .74rem; white-space: normal; overflow-wrap: normal; } .fields th, .fields td { padding: 9px 7px; } .fields thead th { font-size: .62rem; letter-spacing: .03em; overflow-wrap: anywhere; } .fields .mark { margin-right: 3px; } }

details.raw { margin-top: 22px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); }
details.raw summary { cursor: pointer; padding: 14px 18px; font-weight: 600; }
details.raw .raw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 18px 18px; }
@media (max-width: 760px) { details.raw .raw-grid { grid-template-columns: 1fr; } }
details.raw pre { margin: 0; max-height: 360px; overflow: auto; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 12px; font-size: .78rem; line-height: 1.5; white-space: pre-wrap; }
details.raw h4 { margin: 0 0 8px; font-size: .85rem; }
.footnote { font-size: .85rem; color: var(--ink-3); margin-top: 18px; max-width: 60em; }

/* Karten-Raster */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #e8eef7; color: var(--accent); margin-bottom: 14px; }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .96rem; }
.dark .card { background: #16243a; border-color: #23344f; }
.dark .card p { color: #b9c3d3; }
.dark .card .ico { background: #1f3352; color: var(--gold); }

/* Vergleichstabelle Ansätze */
.matrix { width: 100%; border-collapse: collapse; font-size: .94rem; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); }
.matrix th, .matrix td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix thead th { font-size: .8rem; font-weight: 600; color: var(--ink-2); background: var(--paper); }
.matrix thead th.us { background: var(--ink); color: #fff; }
.matrix td.us { background: #f2f6fc; font-weight: 600; }
.matrix tr:last-child td { border-bottom: 0; }
.y { color: var(--ok); font-weight: 700; }
.n { color: var(--bad); font-weight: 700; }
.p { color: var(--warn); font-weight: 700; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.table-scroll .matrix { min-width: 720px; }

/* Schritte */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 32px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { list-style: none; counter-increment: s; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px 22px 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 .95rem/1 var(--sans); margin-bottom: 14px; }
.steps { padding: 0; }
.code { position: relative; background: #0d1626; color: #dfe7f3; border-radius: var(--radius); padding: 22px 22px; overflow-x: auto; box-shadow: var(--shadow); }
.code pre { margin: 0; font-size: .9rem; line-height: 1.7; }
.code .k { color: #8fb7ff; }
.code .s { color: #f2d48a; }
.code .c { color: #7d8aa3; }
.copy { position: absolute; top: 12px; right: 12px; background: #1d2a40; color: #dfe7f3; border: 1px solid #2c3c58; border-radius: 8px; padding: 6px 10px; font: 600 .8rem/1 var(--sans); cursor: pointer; }
.copy:hover { background: #26375a; }

/* Preise */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; max-width: 460px; } }
.price { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.price.featured { border: 2px solid var(--ink); box-shadow: var(--shadow); position: relative; }
.price.featured::before { content: "Empfohlen für Unternehmen"; position: absolute; top: -13px; left: 24px; background: var(--ink); color: #fff; font: 600 .74rem/1 var(--sans); padding: 6px 10px; border-radius: 999px; }
.price .for { font: 600 .78rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.price h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin: 8px 0 14px; }
.price .amount { font: 650 2.5rem/1 var(--sans); letter-spacing: -.02em; }
.price .amount small { font-size: 1rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price .tax { font-size: .85rem; color: var(--ink-3); margin: 6px 0 20px; }
.price .pages { font-weight: 650; padding: 12px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-bottom: 16px; }
.price ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; font-size: .95rem; color: var(--ink-2); }
.price li { display: flex; gap: 9px; }
.price li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.price .btn { margin-top: auto; }
.price-note { margin-top: 22px; font-size: .9rem; color: var(--ink-3); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.6rem/1 var(--sans); color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); }

/* Fuß */
.site-foot { background: var(--ink); color: #b9c3d3; padding: 56px 0 40px; font-size: .92rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }
.site-foot a { color: #dfe7f3; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.site-foot .brand { color: #fff; margin-bottom: 12px; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid #23344f; padding-top: 22px; margin-top: 8px; font-size: .82rem; color: #8d9ab0; }

/* Textseiten (Impressum, Datenschutz) */
.prose { max-width: 760px; padding: 64px 0 96px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
@media (max-width: 960px) { .scan-figure { position: static; } }
@media (max-width: 520px) {
  .doc-result { width: 82%; padding: 14px; font-size: .8rem; }
  .doc-result dd { white-space: nowrap; }
}
.compare > * { min-width: 0; }

/* Kennzahlen unter dem Vergleich */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 18px; }
.stat-head { font-size: .82rem; font-weight: 600; margin-bottom: 10px; }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; color: var(--ink-2); font-size: .92rem; }
.stat-row b { font: 650 1.5rem/1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.stat-row small { font-size: .85rem; font-weight: 500; }
.stat-row.ours b { color: var(--accent); }
