/* The legal pages (impressum.html, datenschutz.html) in the product page's tokens: light and dark, German and English,
   the language and theme the visitor chose there. The product page keeps its own copy inline (an artifact export). */
:root {
  --ground: #f3f7f6; --paper: #ffffff; --wash: #e9f1ef; --ink: #0c1a1c; --ink-2: #46575a; --ink-3: #66767a;
  --rule: #d9e3e1; --rule-2: #c3d1ce; --enter: #00a38c; --enter-ink: #007a69; --enter-wash: #dcf2ed;
  --change: #2e6bf0; --time: #f2a31b; --time-ink: #9a5b00; --time-wash: #fcefd6;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0b1312; --paper: #121d1b; --wash: #192725; --ink: #e6efec; --ink-2: #aabbb7; --ink-3: #82958f;
    --rule: #233431; --rule-2: #31463f; --enter: #36c2ae; --enter-ink: #5ad6c3; --enter-wash: #10352f;
    --change: #79a5f4; --time: #f0b24a; --time-ink: #f4c46f; --time-wash: #3a2b10;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0b1312; --paper: #121d1b; --wash: #192725; --ink: #e6efec; --ink-2: #aabbb7; --ink-3: #82958f;
  --rule: #233431; --rule-2: #31463f; --enter: #36c2ae; --enter-ink: #5ad6c3; --enter-wash: #10352f;
  --change: #79a5f4; --time: #f0b24a; --time-ink: #f4c46f; --time-wash: #3a2b10;
  color-scheme: dark;
}
html:not([data-lang="en"]) [data-l="en"], html[data-lang="en"] [data-l="de"] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2 { margin: 0; font-family: var(--display); color: var(--ink); text-wrap: balance; }
p { margin: 0; }
a { color: var(--enter-ink); text-underline-offset: 3px; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--change); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.ico { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* header, as on the product page */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ground) 86%, transparent); -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 20px/1 var(--display); font-stretch: 112%; }
.brand svg { flex: none; }
.tools { display: flex; align-items: center; gap: 10px; }
.back { margin-right: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.back:hover { color: var(--ink); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--rule-2); border-radius: 999px; background: var(--paper); }
.seg-btn { min-width: 36px; min-height: 30px; padding: 4px 9px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 12.5px/1 var(--mono); cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--enter-wash); color: var(--enter-ink); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--rule-2); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover, .seg-btn:hover { color: var(--ink); }
@media (max-width: 560px) { .back { display: none; } }

/* the text */
.legal { padding-block: clamp(44px, 7vw, 96px) clamp(64px, 9vw, 120px); }
.doc { max-width: 760px; }
.eyebrow { font: 600 12.5px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--enter-ink); }
.doc h1 { margin: 12px 0 16px; font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; font-stretch: 106%; line-height: 1.04; letter-spacing: -0.012em;
  hyphens: auto; overflow-wrap: break-word; }  /* "Datenschutzerklärung" is wider than a phone */
.doc .lead { font-size: 18.5px; color: var(--ink-2); max-width: 62ch; }
.doc section { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--rule); }
.doc h2 { margin-bottom: 10px; font-size: 21px; font-weight: 700; font-stretch: 104%; line-height: 1.25; }
.doc p + p, .doc p + ul, .doc ul + p, .doc p + dl, .doc dl + p { margin-top: 10px; }
.doc ul { margin: 0; padding-left: 1.2em; }
.doc li + li { margin-top: 4px; }
.doc address { font-style: normal; }
.doc address + p { margin-top: 10px; }
.doc dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 22px; margin: 0; }
.doc dt { color: var(--ink-3); }
.doc dd { margin: 0; overflow-wrap: anywhere; }
.doc .company + .company { margin-top: 18px; }
.doc .company b { display: block; }
.doc .stand { margin-top: 40px; color: var(--ink-3); font-size: 15px; }
@media (max-width: 560px) { .doc dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .doc dd + dt { margin-top: 8px; } }
/* An open point: make check fails while one is left on a page. */
.todo { padding: 1px 6px; border-radius: 6px; background: var(--time-wash); color: var(--time-ink); font-weight: 600; }

/* footer, as on the product page */
footer { padding-block: 28px 40px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
footer a { color: var(--ink-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a[aria-current="page"] { color: var(--ink); text-decoration: none; font-weight: 600; }
