/* SimpleXRechnung – Website
   Papier und Tinte: kühles Grau als Grund, weißes Papier, Tintenblau der App,
   Textmarker-Gelb nur für markierte Werte und den Kaufen-Button. */

/* ---------- Schriften (lokal, SIL Open Font License) ---------- */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Code Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-code-pro-latin-400-normal.woff2") format("woff2"); }

/* ---------- Farben ---------- */
:root {
  --bg: #eef1f5;
  --tint: #e3e9f1;
  --paper: #ffffff;
  --ink: #14202e;
  --muted: #4a5869;
  --line: #d3dbe5;
  --line-strong: #b9c5d3;
  --blue: #1f4e8c;
  --blue-hover: #173d6f;
  --link: #1f4e8c;
  --mark: #ffe066;
  --mark-hover: #ffd633;
  --focus: #e0a100;
  --code-bg: #172435;
  --code-text: #e6edf6;
  --code-tag: #87a3c6;
  --code-attr: #b9c9dd;
  --code-comment: #6c8098;
  --shadow: 0 1px 2px rgb(20 32 46 / 6%), 0 22px 44px -22px rgb(20 32 46 / 38%);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Source Code Pro", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1822;
    --tint: #142131;
    --paper: #18263a;
    --ink: #e6edf5;
    --muted: #a3b4c7;
    --line: #2a3b50;
    --line-strong: #3b4f68;
    --blue: #2c63ad;
    --blue-hover: #3a73c0;
    --link: #8db6ea;
    --code-bg: #0b131d;
    --code-border: #2a3b50;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 22px 44px -22px rgb(0 0 0 / 70%);
    color-scheme: dark;
  }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3vw, 3.6rem); line-height: 1.07; }
h2 { font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.7rem); line-height: 1.12; }
h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
p { margin: 0; }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1200px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 8px 14px; background: var(--paper); border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .62em 1.05em;
  border: 1px solid var(--line-strong); border-radius: 7px;
  background: var(--paper); color: var(--ink);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { border-color: var(--blue); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-mark { background: var(--mark); border-color: var(--mark); color: #14202e; }
.btn-mark:hover { background: var(--mark-hover); border-color: var(--mark-hover); }
.btn-ghost { background: transparent; border-color: rgb(255 255 255 / 45%); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgb(255 255 255 / 8%); }
.btn-large { padding: .8em 1.3em; font-size: 1.0625rem; }
.btn-small { padding: .45em .85em; font-size: .9375rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Kopf ---------- */
.masthead { border-bottom: 1px solid var(--line); }
.masthead-in { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.1875rem; font-weight: 600; letter-spacing: -.005em; }
.brand b { color: var(--link); font-weight: 700; }
.mainnav { display: flex; gap: 26px; margin-left: auto; }
.mainnav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9875rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.mainnav a:hover { border-bottom-color: var(--blue); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
.hero-text { padding-top: clamp(0px, 2vw, 28px); }
.hero h1 { max-width: 14ch; }
.nobr { white-space: nowrap; }
.hero .lead { margin-top: 24px; }
.hero .cta { margin-top: 32px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .9875rem; }

.stage { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.xml {
  background: var(--code-bg); color: var(--code-text);
  border-radius: 10px; padding: 14px 0 64px;
  box-shadow: var(--shadow);
  min-width: 0; width: 94%;
  border: 1px solid var(--code-border, transparent);
}
.xml-file { display: flex; align-items: center; gap: 8px; padding: 0 20px 10px; margin-bottom: 12px; border-bottom: 1px solid rgb(255 255 255 / 10%); color: var(--code-attr); font: 600 .8125rem/1.4 var(--sans); }
.xml pre { margin: 0; padding: 0 20px; overflow-x: auto; font: 400 .78rem/1.75 var(--mono); tab-size: 2; }
.xml .t { color: var(--code-tag); }
.xml .a { color: var(--code-attr); }
.xml .v { color: var(--code-attr); }
.xml .c { color: var(--code-comment); font-style: italic; }
.xml mark { background: var(--mark); color: #14202e; padding: 1px 3px; margin: 0 -1px; border-radius: 2px; }
/* Das Blatt: bis zum Gesamtbetrag sichtbar, unten ausgeblendet */
.paper {
  width: 74%; margin: -40px 0 0 auto;
  aspect-ratio: 1100 / 1250; overflow: hidden;
  background: #fff; border-radius: 3px 3px 0 0;
  box-shadow: 0 1px 1px rgb(20 32 46 / 10%), 0 30px 60px -24px rgb(20 32 46 / 45%), 0 12px 20px -14px rgb(20 32 46 / 25%);
  -webkit-mask-image: linear-gradient(#000 86%, transparent);
  mask-image: linear-gradient(#000 86%, transparent);
  animation: paper-in .9s cubic-bezier(.2, .7, .2, 1) .25s both;
}
.stage figcaption { margin-top: 14px; color: var(--muted); font-size: .9375rem; max-width: 46ch; align-self: flex-end; text-align: right; }
@keyframes paper-in { from { transform: translateY(36px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Abschnitte ---------- */
.block { padding: clamp(64px, 8vw, 112px) 0; }
.block-tint { background: var(--tint); }
.block > .wrap > h2 { margin-bottom: 40px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(40px, 6vw, 88px); align-items: start; margin-bottom: 48px; }
.split-head .lead { margin-top: 20px; }
.split > .lead { padding-top: 8px; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
.facts li, .more li { display: flex; gap: 14px; align-items: flex-start; }
.facts .ico, .more .ico { width: 26px; height: 26px; color: var(--link); margin-top: 1px; }
.facts p, .more p { color: var(--muted); margin-top: 4px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li strong { color: var(--ink); font-weight: 700; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 15px; height: 8px;
  border-left: 2.4px solid var(--link); border-bottom: 2.4px solid var(--link);
  transform: rotate(-45deg);
}

.shot { margin: 0; }
.shot img { border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.shots-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; align-items: start; }
.shot-strip + .shot-strip { margin-top: 36px; }

/* Schritte (echte Reihenfolge) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font: 600 3rem/1 var(--serif); color: var(--link); margin-bottom: 14px; }
.steps p { margin-top: 8px; color: var(--muted); }

.more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(40px, 6vw, 88px); }
.more li { padding: 22px 0; border-top: 1px solid var(--line); }

/* ---------- Ihre Daten ---------- */
.block-private { background: var(--paper); border-block: 1px solid var(--line); }
.flow { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 24px 26px; }
.flow-title { font-weight: 700; font-size: .9375rem; margin-bottom: 10px; }
.flow-title:not(:first-child) { margin-top: 24px; }
.flow-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow-row li:not(.flow-arrow) { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 7px; font-size: .9375rem; line-height: 1.3; background: var(--paper); border: 1px solid var(--line-strong); }
.flow-row .ico { width: 18px; height: 18px; }
.flow-away li:not(.flow-arrow) { color: var(--muted); border-style: dashed; }
.flow-home li:not(.flow-arrow) { border-color: var(--blue); }
.flow-home li .ico { color: var(--link); }
.flow-home .flow-end { background: var(--mark); border-color: var(--mark) !important; color: #14202e; font-weight: 600; }
.flow-home .flow-end .ico { color: #14202e; }
.flow-arrow { position: relative; width: 24px; height: 2px; background: currentColor; color: var(--line-strong); }
.flow-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid currentColor; border-right: 0; }
.flow-home .flow-arrow { color: var(--blue); }
.facts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }

/* ---------- Preis ---------- */
.block-ink { background: var(--blue); color: #fff; }
@media (prefers-color-scheme: dark) { .block-ink { background: #163a69; } }
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(40px, 6vw, 96px); align-items: center; }
.price .lead { color: rgb(255 255 255 / 82%); margin-top: 20px; }
.ticks-light { margin-top: 28px; }
.ticks-light li { color: #fff; }
.ticks-light li::before { border-color: var(--mark); }
.price .cta { margin-top: 36px; }
.price :focus-visible { outline-color: var(--mark); }

.receipt {
  background: #fff; color: #14202e;
  border-radius: 4px; padding: 30px 32px 28px;
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / 55%);
  font-size: .9375rem;
}
.receipt-head { font: 700 1.5rem/1.2 var(--sans); color: #1f4e8c; letter-spacing: -.01em; }
.receipt-big { margin: 14px 0 22px; font: 600 3.4rem/1 var(--serif); letter-spacing: -.02em; }
.receipt-big span { display: block; margin-top: 8px; font: 400 1rem/1.3 var(--sans); color: #4a5869; letter-spacing: 0; }
.receipt table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.receipt th { text-align: left; font-weight: 600; font-size: .8125rem; color: #4a5869; padding: 6px 0; border-bottom: 1px solid #d3dbe5; background: #f2f5f8; padding-inline: 6px; }
.receipt td { padding: 8px 6px; vertical-align: top; }
.receipt tbody td { border-bottom: 1px solid #d3dbe5; }
.receipt tbody td span { color: #4a5869; font-size: .875rem; }
.receipt tfoot td { padding-block: 4px; }
.receipt tfoot tr:first-child td { padding-top: 12px; }
.receipt .total td { font-weight: 700; border-top: 1.5px solid #14202e; padding-top: 8px; }
.receipt .num { text-align: right; white-space: nowrap; }

/* ---------- Download ---------- */
.dl { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.dl-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) minmax(0, 290px); gap: 16px 36px; align-items: start; padding: 28px; }
.dl-row + .dl-row { border-top: 1px solid var(--line); }
.dl-os h3 { font: 600 1.5rem/1.2 var(--serif); }
.dl-os p { color: var(--muted); font-size: .9375rem; margin-top: 4px; }
.dl-info { font-size: .9375rem; }
.dl-info p + p { margin-top: 6px; }
.dl-note { color: var(--muted); }
.dl-file { color: var(--muted); font-family: var(--mono); font-size: .8125rem; overflow-wrap: anywhere; }
.dl-sha { color: var(--muted); font-size: .75rem; }
.dl-sha code { font-family: var(--mono); overflow-wrap: anywhere; }
.dl-files { margin-top: 10px; }
.dl-files summary { cursor: pointer; color: var(--link); font-size: .875rem; width: fit-content; }
.dl-files ul { list-style: none; margin: 8px 0 0; padding: 0; }
.dl-files li + li { margin-top: 8px; }
.dl-files li > span { display: block; }
.dl-btns { display: flex; flex-direction: column; gap: 8px; }
.dl-btns .btn { white-space: normal; }
.dl-meta { margin-top: 20px; color: var(--muted); font-size: .9375rem; }

/* ---------- Fragen ---------- */
.faq-wrap { max-width: 860px; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 700; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--link); border-bottom: 2px solid var(--link);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 68ch; }
.faq-more { margin-top: 28px; color: var(--muted); }

/* ---------- Fuß ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: .9375rem; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; }
.foot-brand { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-nav a { color: var(--ink); }
.foot-small { grid-column: 1 / -1; color: var(--muted); font-size: .8125rem; }

/* ---------- Rechtliches ---------- */
.legal { max-width: 760px; padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); margin-bottom: 28px; }
.legal h2 { font: 700 1.1875rem/1.35 var(--sans); letter-spacing: 0; margin: 36px 0 10px; }
.legal p + p { margin-top: 12px; }
.legal-lead { font-size: 1.1875rem; color: var(--muted); }
.legal-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 24px; margin: 0; }
.legal-dl dt { color: var(--muted); }
.legal-dl dd { margin: 0; }
.legal-date { margin-top: 36px; color: var(--muted); font-size: .9375rem; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
  .stage { max-width: 680px; }
  .split, .price { grid-template-columns: minmax(0, 1fr); }
  .facts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-row { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); }
  .dl-btns { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
  .price .receipt { max-width: 440px; }
}
@media (max-width: 860px) {
  .masthead-in { flex-wrap: wrap; gap: 4px 20px; padding: 10px 0; }
  .masthead-in .btn { margin-left: auto; }
  .mainnav { order: 3; width: 100%; margin-left: 0; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .facts, .more, .shots-two, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 28px; }
  .facts-4 { grid-template-columns: minmax(0, 1fr); }
  .dl-row { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
  .dl-btns { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .flow { padding: 20px 18px; }
  .flow-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .flow-arrow { width: 2px; height: 14px; margin-left: 22px; }
  .flow-arrow::after { right: auto; top: auto; left: -4px; bottom: -3px; border: 5px solid transparent; border-top: 7px solid currentColor; border-bottom: 0; }
  body { font-size: 1rem; }
  .lead { font-size: 1.0625rem; }
  .xml { width: 100%; }
  .xml pre { font-size: .72rem; }
  .paper { width: 84%; }
  .stage figcaption { text-align: left; align-self: flex-start; }
  .cta .btn { width: 100%; justify-content: center; }
  .receipt { padding: 24px 20px; }
  .receipt-big { font-size: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .paper { animation: none; }
  * { transition: none !important; }
}

@media print {
  .masthead, .foot, .cta, .stage { display: none; }
  body { background: #fff; color: #000; }
}
