/* rechpost.com: fonts, palette and the page CSS the kit leaves to the page.
   Everything that used to be an inline <style> or style="" attribute lives here, so the site runs under
   a CSP with style-src 'self' (no 'unsafe-inline'). Fonts are self-hosted (OFL, see assets/fonts). */

@font-face { font-family: "Funnel Display"; src: url("assets/fonts/funnel-display.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("assets/fonts/funnel-sans.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/dm-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap; }

/* the :root block exactly as start.mjs printed it (palette blue-black-cornflower, type funnel) */
:root {
  --p-bg: #0a0d14; --p-surface: #131824; --p-ink: #e9edf3; --p-muted: #8891a1;
  --p-accent: #5ab9fc; --p-accent-ink: #0a0d14; --p-action: #5ab9fc; --p-action-ink: #0a0d14;
  --p-inv-bg: #e9edf3; --p-inv-surface: #d7dbe1; --p-inv-ink: #0a0d14; --p-inv-muted: #54575f;
  --p-inv-accent: #0a0d14; --p-inv-accent-ink: #e9edf3; --p-inv-action: #0a0d14; --p-inv-action-ink: #e9edf3;
  --font-display: "Funnel Display", system-ui, sans-serif;
  --font-text: "Funnel Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 400;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
  --ly-scale: 0.98;
}

/* ---- section heights (were style="--h: 2") */
#ablauf { --h: 2; }
/* the steps at rest (under 1024px, where the moment does not pin): exactly two screens */
@media (max-width: 1023px) { main > #ablauf[data-moment]:not(.is-live) { height: calc(2 * 100svh); } }
@media (max-width: 639px) {
  main > #ablauf[data-moment]:not(.is-live) { height: auto; min-height: calc(2 * 100lvh); }
  #preis, #daten, #fragen { --hm: 2; }
}

/* ---- the hero: its grey line lighter than --muted so it reads at 7:1; the dealt mark (dots) in the h1 */
.hero--centred .hero__lead { color: #c3cad6; }
.ly-mark.ly-mark--dots { border-radius: 0; background: var(--action);
  -webkit-mask: var(--dots) center / contain no-repeat; mask: var(--dots) center / contain no-repeat;
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='6.5' cy='6.5' r='4.5'/%3E%3Ccircle cx='17.5' cy='6.5' r='4.5'/%3E%3Ccircle cx='6.5' cy='17.5' r='4.5'/%3E%3Crect x='13' y='13' width='9' height='9' rx='1.5'/%3E%3C/svg%3E"); }
.ly-mark.ly-mark--dots::before, .ly-mark.ly-mark--dots::after { display: none; }
/* the pause buttons on the light window and the lit frame: a dark ring reads there */
.hero__window .ui-pause:focus-visible, .hero__window .loop-pause:focus-visible { outline: 2px solid #0a0d14; outline-offset: 2px; }

/* ---- the close: the name set wide, with room for the face's tall capitals */
.close__word { line-height: 1.02; }
@media (max-width: 379px) { .close__word { font-size: 56px; } }

/* ---- hero window: the relay's inbox beside one invoice going through (light UI on the lit frame) */
.d-win { background: #fff; color: #16181a; border-radius: 12px; overflow: hidden; font: 400 14px/1.4 var(--font-text);
         box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 24px 60px -28px rgb(0 0 0 / .45); text-align: left; }
.d-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(0 0 0 / .07); font-size: 13px; color: #555a60; }
.d-win__bar b { color: #16181a; font-weight: 500; }
.d-win__bar .sp { flex: 1; }
.d-win__dots { display: flex; gap: 6px; } .d-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dcdfe2; }
.d-win__body { display: grid; grid-template-columns: 250px 1fr; min-height: 420px; padding-top: 14px; }
.hero__window { background:
  radial-gradient(120% 60% at 70% 118%, #2e4a6b 0 40%, transparent 41%),
  radial-gradient(90% 50% at 10% 108%, #23374f 0 42%, transparent 43%),
  radial-gradient(80% 40% at 60% 92%, #6d8fb3 0 40%, transparent 41%),
  linear-gradient(#3b6ea5, #8db3d9 70%, #b5c9dc); }
.inbox { border-right: 1px solid rgb(0 0 0 / .07); padding: 0 10px 10px; display: grid; align-content: start; gap: 2px; }
.inbox .q { height: 34px; margin-bottom: 6px; border-radius: 9px; background: #f1f2f4; display: flex; align-items: center; padding: 0 10px; color: #5f646a; font-size: 13px; }
.inbox .t { display: grid; grid-template-columns: 30px 1fr auto; gap: 1px 10px; padding: 9px 8px; border-radius: 9px; font-size: 13px; }
.inbox .t.is-on { background: #eef4fb; }
.inbox .t i { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--font-text); font-style: normal; color: #0c0d0f; }
.inbox .t i.av1 { background: #a9c4f0; } .inbox .t i.av2 { background: #9fd3b5; } .inbox .t i.av3 { background: #f3c98b; }
.inbox .t b { font-weight: 500; color: #16181a; } .inbox .t time { color: #5f646a; font-size: 13px; }
.inbox .t span { grid-column: 2 / -1; color: #5f646a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo { display: grid; min-width: 0; align-content: start; }
.d-chat { display: grid; gap: 8px; align-content: start; padding: 0 18px 14px; font-size: 14px; }
.d-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; }
.d-msg--me { justify-self: end; background: #eef4fb; color: #121314; border-bottom-right-radius: 6px; }
.d-msg--bot { background: #f2f3f5; color: #16181a; border-bottom-left-radius: 6px; }
.d-msg small { display: inline; margin: 0 0 0 8px; font-size: 13px; color: #5f646a; white-space: nowrap; }
.d-msg--me small { display: none; }
.d-tool { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555a60; }
.d-tool::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
/* the answer's attachment, a file line (never a button look) */
.d-att { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #555a60; }
.d-att b { font-weight: 500; color: #16181a; margin-right: 6px; }
.d-att__file { width: 24px; height: 30px; border-radius: 3px; background: #d93a3a; color: #fff; display: grid; place-items: end center; padding-bottom: 4px; font: 600 8px/1 var(--font-text); flex: none; }
@media (max-width: 639px) {
  .d-win__body { grid-template-columns: 1fr; } .inbox { display: none; }
  .d-win__bar .sp ~ span { display: none; }
  .d-chat { font-size: 13px; padding: 12px 14px; }
  .d-msg small, .d-tool { display: none; }
}

/* ---- pinned chapters: the drawn mail windows of steps 1 and 3, and the check list of step 2 */
.mo-pc__visual { margin: 0; }
.mail { --mail-w: 520px; width: min(var(--mail-w), 100% - 48px); margin: 0 auto; }
.mail__row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-3); padding: 10px 16px; border-bottom: 1px solid var(--u-line); font-size: 14px; }
.mail__row > span:first-child { color: var(--u-soft); }
.mail__body { padding: 16px; font-size: 14px; line-height: 1.5; color: var(--u-ink); }
.mail__body p + p { margin-top: 8px; }
.mail__att { display: flex; align-items: center; gap: 12px; margin: 0 16px 16px; padding: 10px 12px; border: 1px solid var(--u-line); border-radius: 10px; font-size: 14px; }
.mail__att b { font-weight: 500; display: block; }
.mail__att small { color: var(--u-soft); font-size: 13px; }
.mail__file { width: 32px; height: 40px; border-radius: 4px; background: #d93a3a; color: #fff; display: grid; place-items: end center; padding-bottom: 5px; font: 600 9px/1 var(--font-text); flex: none; }
.mail__ok { display: inline-flex; align-items: center; gap: 6px; color: var(--u-accent-text); font-size: 13px; font-weight: 500; }
.mail__ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mo-pc__visual .ui-checks { margin: 0 auto; width: min(380px, 100% - 48px); }
#ablauf [data-checks-bar] { --k: 0.6; }

/* ---- app-frame (sections-library.md, app-frame: the whole recipe) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr); overflow: clip; margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.app .app__pane--open > .ui-doc { width: 100%; padding: var(--s-6) calc(200px + var(--s-6) + var(--s-4)) var(--s-6) var(--s-6); }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .app .ui-win__side { display: none; } .app .ui-win__body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
  .app .app__pane--open > .ui-doc { padding: var(--s-4); }
  .app .ui-doc__note { position: static; width: auto; margin-top: var(--s-3); }
}

/* ---- data section: the diagram panel beside the rows */
#daten .panel { --p-h: 560px; }
@media (max-width: 639px) { #daten .panel { --p-h: 300px; } }

/* ---- legal pages (datenschutz.html, impressum.html) */
.legal { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); min-height: 100svh; }
.legal h1 { font: var(--display-weight) var(--t-h2)/1.1 var(--font-display); letter-spacing: var(--display-tracking); margin-bottom: var(--s-6); }
.legal h2 { font: 500 var(--t-lead)/1.4 var(--font-text); margin: var(--s-7) 0 var(--s-3); }
.legal p, .legal li { max-width: 64ch; }
.legal p + p { margin-top: var(--s-3); }
.legal ul { display: grid; gap: var(--s-2); padding-left: 1.2em; list-style: disc; }
.draft { border: 1px solid var(--action); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-7); max-width: 64ch; }

/* ---- the price section: the upload page of the account beside the plan */
.upload { margin-top: var(--s-5); }
.upload__head { display: flex; justify-content: space-between; gap: var(--s-3); padding: 12px 16px; border-bottom: 1px solid var(--u-line); font-size: 14px; }
.upload__head b { font-weight: 500; } .upload__head span { color: var(--u-soft); font-size: 13px; }
.upload__addr { display: grid; gap: 2px; padding: 12px 16px; font-size: 14px; }
.upload__addr span { color: var(--u-soft); font-size: 13px; } .upload__addr b { font-weight: 500; font-family: var(--font-mono); font-size: 13px; }
.upload__drop { display: flex; align-items: center; gap: 12px; margin: 0 16px 16px; padding: 18px 16px; border: 1px dashed var(--u-line-2); border-radius: 10px; font-size: 14px; color: var(--u-soft); }
.card--plan { transition: border-color 200ms ease; }
.card--plan:hover { border-color: var(--line-strong); }
@media (max-width: 1023px) { #preis .card--plan { grid-column: 1 / -1; } }

/* ---- narrow screens */
.mail__row > span { overflow-wrap: anywhere; }
@media (max-width: 639px) { .hero--centred .pill { width: 100%; justify-content: center; flex-wrap: wrap; white-space: normal; } }
@media (max-width: 379px) { .btn { white-space: normal; height: auto; min-height: 44px; padding-block: 8px; line-height: 1.25; text-align: center; } }
@media (max-height: 820px) and (min-width: 640px) { .hero__window .d-tool, .hero__window .inbox .t:nth-of-type(3) { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) { #daten .panel { --p-h: 300px; } #daten .rows > li { padding-block: var(--s-3); } }
@media (max-width: 639px) { footer.closing { --hm: 2; } }

/* the diagram on the dark surface: its labels are drawn for the page's dark tone */
#daten .panel { background: var(--p-surface); }
/* the FAQ's mail: the real message a sender gets when an invoice is blocked */
.mail.mail--left { margin: var(--s-5) 0 0; width: 100%; }
.mail__link { color: var(--u-accent-text); text-decoration: underline; text-underline-offset: 3px; }
/* the legal row stacks on the left line below 1024 */
@media (max-width: 1023px) { .footer__legal { flex-direction: column; align-items: flex-start; } }
/* the steps at rest on a tablet: each visual full width under its text, so three steps fill the two screens */
@media (min-width: 640px) and (max-width: 1023px) {
  #ablauf:not(.is-live) .mo-pc__step { grid-template-columns: minmax(0, 1fr); }
  #ablauf:not(.is-live) .mo-pc__step .mo-pc__visual { grid-column: 1; grid-row: auto; margin-top: var(--s-4); aspect-ratio: 16 / 9; }
}
/* the FAQ on a tablet: the heading and the mail side by side on the page's columns, the questions under them */
@media (min-width: 640px) and (max-width: 1023px) {
  #fragen .grid > .span-5 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  #fragen .grid > .span-5 > h2 { grid-column: 1 / span 5; }
  #fragen .grid > .span-5 > p { display: none; }
  #fragen .grid > .span-5 > .mail--left { grid-column: 6 / -1; margin-top: 0; }
  #fragen .faq > .faq__item { padding-block: var(--s-3); }
}
@media (max-width: 639px) { #ablauf:not(.is-live) .mo-pc__visual--lit { aspect-ratio: auto; } .mo-pc__visual--lit .mail, .mo-pc__visual--lit .ui-checks { width: 100%; } }
@media (max-width: 1023px) { .d-win__body { grid-template-columns: minmax(0, 1fr); } .inbox { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) and (min-height: 1100px) { #ablauf:not(.is-live) .mo-pc__step .mo-pc__visual { aspect-ratio: 3 / 2; } }
/* a passed check is ticked, never struck through */
.ui-checks .ui-check__label::after { display: none; }
.ui-checks .ui-check.is-done .ui-check__label { color: var(--u-ink); }
/* live steps: the sticky stage keeps its one screen (system.css lets a section's .wrap grow under 1280px) */
main > #ablauf.is-live > .mo-pc__grid { flex: none; }
