@font-face { font-family: "Plex Sans"; src: url(assets/fonts/plex-sans-var.woff2?v=HodYVmAKNMtE) format("woff2"); font-weight: 100 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(assets/fonts/plex-mono-400.woff2?v=CJSfco3FLVKO) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #12151c;
  --desk: #e8e9e3;
  --paper: #fff;
  --rule: #cfd1c8;
  --field: #80858f;
  --soft: #4d525c;
  --pick: #17703f;
  --draft: #a8540c;
  --on-dark: #f2f2ec;
  --soft-on-dark: #b9bdc6;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(64px, 9vw, 136px);
  --sans: "Plex Sans", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 1.125rem/1.5 var(--sans); overflow-wrap: break-word; }
picture { display: block; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--on-dark); }

/* Moved out by its own height, so it stays out of sight at any text size. */
.skip { position: absolute; left: 16px; top: 0; z-index: 5; padding: 10px 16px; background: var(--ink); color: var(--on-dark); border-radius: 8px; transform: translateY(-120%); }
.skip:focus { top: 16px; transform: none; }

.wrap { width: min(100%, 1208px); margin-inline: auto; padding-inline: var(--gutter); }

/* Kopf */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; width: min(100%, 1208px); margin-inline: auto; padding: 34px var(--gutter) 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 1.375rem; letter-spacing: -0.01em; text-decoration: none; }
.top nav { display: flex; gap: 4px 24px; margin-left: auto; }
.top .brand + .login { margin-left: auto; }
.top nav a, .login { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; font-weight: 500; text-decoration: none; }
.top nav a:hover, .login:hover { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; background: var(--ink); color: var(--on-dark); border-radius: 10px; font-weight: 600; font-size: 1.125rem; text-decoration: none; transition: transform .12s ease-out; }
/* As a button of a form it looks like the link. */
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.btn.light { background: var(--on-dark); color: var(--ink); }

/* Schrift */
h1, h2 { margin: 0; font-weight: 600; font-stretch: 84%; letter-spacing: -0.022em; text-wrap: balance; }
/* The floor follows the width too, so text enlarged to 200 % still fits a phone line. */
h1 { max-width: 12.5em; font-size: clamp(min(2.75rem, 16vw), 7.4vw, 6rem); line-height: 1.12; }
h2 { max-width: 17em; font-size: clamp(1.875rem, 3.9vw, 3.25rem); line-height: 1.08; }
.lead { max-width: 34em; margin: clamp(48px, 5vw, 64px) 0 0; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; }
.intro { max-width: 36em; margin: 20px 0 0; color: var(--soft); }
.fine { max-width: 36em; margin: 16px 0 0; font-size: 1rem; color: var(--soft); }
.dark .intro, .dark .fine { color: var(--soft-on-dark); }

/* Der Rahmen mit Beschriftung stammt aus der Belegansicht der App. */
.pick { position: relative; display: inline-block; padding: 0 .14em; margin: 0 .02em; border-radius: .08em; box-shadow: inset 0 0 0 .05em var(--pick); line-height: 1.02; color: inherit; text-decoration: none; white-space: nowrap; }
.pick::after { content: attr(data-tag); position: absolute; left: 0; top: calc(100% + .1em); padding: 4px 10px; background: var(--pick); color: #fff; border-radius: 5px; font: 600 clamp(.8125rem, 1.1vw, 1rem)/1.3 var(--sans); font-stretch: 100%; letter-spacing: 0; white-space: nowrap; }
.pick:hover { background: rgb(23 112 63 / .1); }

/* Einstieg */
.hero { padding: clamp(32px, 6vw, 88px) 0 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.note { margin: 0; font-size: 1rem; color: var(--soft); }
.dark .note { color: var(--soft-on-dark); }

/* Waitlist: one field, posted to the app, no script. */
.join { display: grid; grid-template-columns: minmax(0, 22em) auto minmax(0, 1fr); gap: 8px 12px; margin-top: 32px; }
.join > label, .join > .note, .join > .reply { grid-column: 1 / -1; }
.join > label { font-size: 1rem; font-weight: 600; }
.join input[type="email"] { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--field); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.5 var(--sans); }
.join .note { max-width: 42em; margin-top: 6px; }
.join .reply { max-width: 36em; margin: 0 0 8px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.shot { background: var(--paper); border-radius: 12px; box-shadow: 0 0 0 1px rgb(18 21 28 / .08), 0 28px 56px -28px rgb(18 21 28 / .32); }
.shot.pad { padding: 20px 20px 8px; }
.stage { position: relative; margin-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(24px, 4vw, 56px); }
.stage .wide { width: 92%; }
.stage .phone { position: absolute; right: var(--gutter); bottom: 0; width: 21%; border: 7px solid var(--ink); border-radius: 26px; background: var(--paper); box-shadow: 0 28px 56px -24px rgb(18 21 28 / .45); }

/* Abschnitte */
section { padding: var(--gap) 0 0; }
section.dark { margin-top: var(--gap); padding: var(--gap) 0; background: var(--ink); color: var(--on-dark); }
main > section:last-child { margin-bottom: 0; }
.head { margin-bottom: clamp(32px, 4vw, 56px); }

.split { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.split > .shot { justify-self: end; width: min(100%, 468px); }
.narrow-media { align-items: center; }
.narrow-media > .shot { width: min(100%, 380px); }

/* Funktionen wie Positionen einer Rechnung */
.pos { margin: clamp(32px, 4vw, 48px) 0 0; border-bottom: 1px solid var(--rule); }
.pos > div { display: grid; grid-template-columns: minmax(0, 11.5em) minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; border-top: 1px solid var(--rule); }
.pos dt { font-weight: 600; }
.pos dd { margin: 0; color: var(--soft); }
.split.below { margin-top: clamp(24px, 3vw, 40px); }
.split.below .pos { margin-top: 0; }
.split.below > .side { justify-self: end; width: min(100%, 440px); }

/* Zwei Listen nebeneinander, Begriff über dem Text */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); align-items: start; }
.pair .pos { margin-top: 0; }
.pair .pos > div { grid-template-columns: minmax(0, 1fr); }

/* Befehl */
.term { margin: 14px 0 0; background: var(--ink); color: var(--on-dark); border-radius: 12px; }
.term figcaption { padding: 12px 20px 0; font-size: .9375rem; color: var(--soft-on-dark); }
/* The size follows the width on phones, so both lines of the command stay whole. */
.term pre { margin: 0; padding: 10px 20px 18px; font: 400 clamp(.6875rem, 3.3vw, .9375rem)/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }

/* Preis als Blatt */
.sheet { position: relative; justify-self: end; width: min(100%, 500px); padding: clamp(24px, 3vw, 40px); background: var(--paper); border-radius: 4px; box-shadow: 0 0 0 1px rgb(18 21 28 / .06), 0 28px 56px -28px rgb(18 21 28 / .34); }
.sheet .draft { margin: 0 0 20px; text-align: right; font-size: .875rem; color: var(--draft); }
.sheet h3 { margin: 0 0 16px; font-size: 1.75rem; font-weight: 600; font-stretch: 84%; letter-spacing: -0.02em; }
.sheet ul { margin: 0; padding: 0; list-style: none; }
/* Two fixed columns, so the right one never drops below the text. */
.sheet li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid #e2e3dd; font-size: 1rem; hyphens: auto; }
.sheet li span { font: 400 .875rem/1.4 var(--mono); color: var(--soft); }
.sheet .total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; padding-top: 18px; border-top: 2px solid var(--ink); font-size: 1rem; font-weight: 600; }
.sheet .total strong { flex: none; margin-left: auto; font: 400 clamp(2.25rem, 4vw, 3rem)/1 var(--mono); letter-spacing: -0.04em; }
.sheet .alt { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin: 8px 0 0; font-size: 1rem; color: var(--soft); }

.closing h2 { max-width: 14em; }
.closing .reply { max-width: 36em; }
.closing .note a { color: var(--on-dark); }

.foot { padding: 28px 0 40px; font-size: 1rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.foot span:first-child { font-weight: 600; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); }
.foot .aside { margin-left: auto; color: var(--soft); }

/* Rechtstexte */
.legal { width: min(100%, 808px); margin-inline: auto; padding: 8px var(--gutter) 48px; }
.legal .sheet { justify-self: auto; width: 100%; padding: clamp(24px, 5vw, 56px); }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); hyphens: auto; }
.legal h2 { margin-top: 36px; font-size: 1.375rem; font-stretch: 100%; letter-spacing: -0.01em; }
.legal p, .legal ul { margin: 12px 0 0; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li { display: list-item; padding: 0; border: 0; font-size: inherit; hyphens: manual; overflow-wrap: break-word; }
.legal li + li { margin-top: 6px; }
.legal .draft { margin: 20px 0 0; padding: 12px 16px; text-align: left; font-size: 1rem; color: var(--ink); background: #fbeed5; border-radius: 8px; }
.legal mark { padding: 1px 4px; background: #ffe45c; color: var(--ink); border-radius: 3px; }
/* Pages made from docs/recht by scripts/legal-pages.ts */
.legal h3 { margin: 28px 0 0; font-size: 1.125rem; font-weight: 600; }
.legal ol { margin: 12px 0 0; padding-left: 1.6em; }
.legal blockquote { margin: 12px 0 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--rule); }
.legal blockquote p { margin: 0; }
.legal hr { margin: 40px 0 0; border: 0; border-top: 1px solid var(--rule); }
.legal code { padding: 1px 4px; background: #f0f1ec; border-radius: 4px; font: .875em/1.4 var(--mono); overflow-wrap: anywhere; }
.legal .table { margin: 16px 0 0; overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.legal th, .legal td { padding: 10px 16px 10px 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.legal thead th { border-top: 0; font-weight: 600; }
.legal tbody th { font-weight: 600; }
.legal td:last-child, .legal th:last-child { padding-right: 0; }
/* Words break at syllables; a column never gets narrower than its longest syllable. */
.legal td, .legal th { hyphens: auto; overflow-wrap: break-word; }
/* The row heading of a two-column table keeps its words whole. */
.legal tbody th { hyphens: manual; overflow-wrap: normal; }
@media (max-width: 700px) {
  .legal table { font-size: .9375rem; }
  .legal th, .legal td { padding-right: 12px; }
  /* Three columns and more scroll sideways instead of squeezing every word. */
  .legal table:has(tr > :nth-child(3)) { min-width: 30em; }
  .legal table:has(tr > :nth-child(4)) { min-width: 36em; }
}

@media (max-width: 860px) {
  .top { gap: 8px 16px; }
  .top nav { display: none; }
  .top .login { margin-left: auto; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > .shot, .split.below > .side, .sheet { justify-self: start; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair .pos:first-child { border-bottom: 0; }
  .foot .aside { margin-left: 0; flex-basis: 100%; }
}

/* Tablets: the left part of the editor, large enough to read. */
@media (min-width: 701px) and (max-width: 860px) {
  .stage .wide { aspect-ratio: 6 / 5; object-fit: cover; object-position: left top; }
}

@media (max-width: 700px) {
  .stage { padding-bottom: 0; }
  .stage .wide { display: none; }
  .stage .phone { position: static; width: min(82%, 330px); margin-inline: auto; }
  .pos > div { grid-template-columns: minmax(0, 1fr); }
  h1, h2 { hyphens: auto; }
  h1 { overflow-wrap: anywhere; }
  .pick { white-space: normal; }
  .pick::after { white-space: normal; }
  /* The wide receipt would get too small: phones show the original file with its frames, cut from the picture
     (816 x 834 px starting at 1168, 26 of 2064 x 1120). */
  .crop.right { overflow: hidden; aspect-ratio: 816 / 834; border-radius: 12px; box-shadow: 0 0 0 1px rgb(18 21 28 / .08), 0 28px 56px -28px rgb(18 21 28 / .32); }
  .crop.right img { width: 252.94%; max-width: none; margin: -3.19% 0 0 -143.14%; border-radius: 0; box-shadow: none; }
  /* The phone shot of the EÜR ends in the middle of a row; cut it after the last whole one. */
  .shot.rows { aspect-ratio: 1170 / 1902; object-fit: cover; object-position: top; }
  .join { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .top { gap: 8px 10px; }
  .btn.small { padding: 0 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}

/* Contact form: works without scripts. Sent leads to #gesendet; on an error the app answers with the page itself, the note shown and the input kept. */
.contact { display: grid; gap: 18px; margin-top: 24px; }
.contact label { display: grid; gap: 6px; font-weight: 600; font-size: 1rem; }
.contact .opt { font-weight: 400; color: var(--soft); }
.contact input, .contact textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--field); border-radius: 8px; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--sans); }
.contact textarea { resize: vertical; min-height: 9em; }
.contact input:focus-visible, .contact textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.contact button { justify-self: start; }
.contact .fine { margin: 0; font-size: .875rem; color: var(--soft); }
.reply { display: none; margin: 20px 0 0; padding: 14px 16px; border-radius: 8px; font-size: 1rem; }
.reply:target, .reply.shown { display: block; }
.contact .reply { margin: 0; }
.contact [aria-invalid="true"], .join [aria-invalid="true"] { border-color: #a8320c; box-shadow: 0 0 0 1px #a8320c; }
.reply.ok { background: #e3f1e8; color: #0f4d2b; }
.reply.bad { background: #fbeadb; color: #7a3b08; }
.reply.ok:target ~ .contact, .reply.ok:target ~ .join { display: none; }

@media print {
  :root { --desk: #fff; }
  .top, .skip, .join, .reply { display: none; }
  .shot, .sheet, .crop.right { box-shadow: none; border: 1px solid var(--rule); }
  section.dark { background: none; color: var(--ink); }
  .dark .intro, .dark .fine, .dark .note { color: var(--soft); }
  .btn { background: none; color: var(--ink); border: 1px solid var(--ink); }
  .term { background: none; color: var(--ink); border: 1px solid var(--rule); }
  .term figcaption { color: var(--soft); }
  .pick::after { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .legal { width: auto; padding: 0; }
  .legal .sheet { padding: 0; border: 0; }
  /* Browsers leave backgrounds out, so the notice gets a line around it. */
  .legal .draft { border: 1px solid var(--draft); }
  .legal .table { overflow: visible; }
  .legal table { min-width: 0 !important; }
  h2, h3 { break-after: avoid; }
  tr, .pos > div, .sheet li { break-inside: avoid; }
}
