/* Public user guide (/handbuch/). Tokens and layout from the approved mockup.
   Fonts are self-hosted (SIL OFL 1.1, licences next to the files). */

@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: 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: italic; font-weight: 400; font-display: swap;
  src: url(fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); }

:root {
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --accent: #c2410c; --accent-deep: #9a3412; --accent-soft: #ffedd5; --on-accent: #fff;
  /* --ink-3 is darker than in the mockup (#888184) so small text reaches 4.5:1 on paper and panel. */
  --ink: #2c2a2b; --ink-2: #5a5557; --ink-3: #6f696b;
  --paper: #fbfaf8; --panel: #f3f0ec; --line: #e3ddd8;
  --grad: linear-gradient(90deg, #ff5a1c 0%, #ff6f1f 30%, #ffa531 62%, #ffbf45 100%);
  --shadow: 0 1px 2px rgba(60,25,20,.08), 0 8px 24px rgba(60,25,20,.08);
  /* One red for every number: list steps and screenshot markers, in both themes.
     Red like the markers in the app's help drawer, dark enough for white numbers to reach 4.5:1;
     it also holds 3:1 on the dark paper. */
  --mark: #dc2f26; --badge-bg: var(--mark); --badge-ink: #fff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #fb923c; --accent-deep: #fdba74; --accent-soft: #3b2214; --on-accent: #1b0f0d;
    --ink: #ece8e5; --ink-2: #bab3af; --ink-3: #9a938f;
    --paper: #15161b; --panel: #1f2027; --line: #33343c;
    --shadow: 0 1px 2px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 17px; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: var(--sans); line-height: 1.15; margin: 0; text-wrap: balance; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
strong, b { font-weight: 600; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--ink); color: var(--paper);
  font: 600 15px/1 var(--sans); padding: 10px 14px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Masthead */
.masthead { background: var(--panel); position: relative; }
.masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); }
.masthead-inner { max-width: 1080px; margin: 0 auto; padding: 32px 24px 34px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.logo { width: 136px; height: 88px; display: block; }
/* The mark's glow suits dark backgrounds; on light ones it stays flat, like the sign-in logo. */
.logo [filter] { display: none; }
@media (prefers-color-scheme: dark) { .logo [filter] { display: inline; } }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin: 0; }
h1 { font-size: clamp(34px, 5vw, 50px); font-weight: 700; letter-spacing: -.01em; margin: 8px 0; }
h1 .bar { color: var(--accent); }
.lede { font-size: 19px; color: var(--ink-2); margin: 0; max-width: 58ch; }
.meta { font: 14px/1.4 var(--sans); color: var(--ink-3); margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.meta b { color: var(--ink-2); font-weight: 600; }
.note { font: 14px/1.4 var(--sans); color: var(--ink-3); margin: 8px 0 0; }
.note b { color: var(--ink-2); font-weight: 600; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a { padding: 3px 11px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.lang a.on { background: var(--ink); color: var(--paper); }
.cta { align-self: center; display: inline-block; font: 700 14px/1 var(--sans); letter-spacing: .06em;
  text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 15px 22px; border-radius: 999px;
  text-decoration: none; white-space: nowrap; }
.cta:hover { background: var(--accent-deep); }

/* Layout */
.wrap { max-width: 1080px; margin: 0 auto; padding: 36px 24px 48px; display: grid;
  grid-template-columns: 230px minmax(0, 1fr); gap: 48px; }
.wrap.single { max-width: 820px; grid-template-columns: minmax(0, 1fr); }
nav.toc { position: sticky; top: 20px; align-self: start; max-height: calc(100vh - 40px); overflow-y: auto;
  font: 14.5px/1.35 var(--sans); }
nav.toc .grp { font: 600 11.5px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 6px; }
nav.toc .grp:first-child { margin-top: 0; }
nav.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
nav.toc a { display: block; padding: 4px 12px; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; margin-left: -2px; }
nav.toc a:hover { color: var(--accent); border-left-color: var(--accent); }

main { min-width: 0; overflow-wrap: break-word; }
main > section { padding: 4px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
main > section:last-of-type { border-bottom: 0; margin-bottom: 0; }
section, h2, h3, h4 { scroll-margin-top: 16px; }
main h2 { font-size: 30px; font-weight: 700; margin-bottom: 14px; }
main h3 { font-size: 20px; font-weight: 600; margin: 26px 0 8px; }
main h4 { font-size: 17px; font-weight: 600; margin: 20px 0 6px; }
main p { margin: 0 0 14px; max-width: 68ch; }
main ul { max-width: 68ch; margin: 0 0 14px; padding-left: 22px; }
main ul li { margin-bottom: 6px; }

/* Callouts (markdown blockquotes) */
main blockquote { background: var(--panel); border-left: 4px solid var(--accent); padding: 12px 16px; margin: 16px 0 18px;
  max-width: 72ch; font: 15.5px/1.5 var(--sans); }
main blockquote p { margin: 0 0 8px; max-width: none; }
main blockquote p:last-child { margin-bottom: 0; }

/* Numbered steps (ordered lists; after a screenshot one item per marker) */
main ol { list-style: none; padding-left: 0; max-width: 68ch; margin: 0 0 14px; }
main ol > li { position: relative; padding-left: 40px; margin-bottom: 10px; }
main ol > li::before { content: counter(list-item); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--badge-bg); color: var(--badge-ink); font: 700 14px/26px var(--sans); text-align: center; }

/* Tables */
.table { overflow-x: auto; margin: 6px 0 18px; max-width: 100%; }
table { border-collapse: collapse; width: 100%; max-width: 680px; font: 15px/1.45 var(--sans); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

/* Code */
code { font-family: var(--mono); font-size: .86em; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 1px 4px; }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; margin: 0 0 16px;
  overflow-x: auto; font-size: 15px; line-height: 1.45; }
pre code { background: none; border: 0; padding: 0; font-size: .86em; white-space: pre; }

/* Screenshots with marker overlays */
figure.shot { margin: 20px 0 24px; max-width: 780px; }
.shotbox { display: block; position: relative; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
/* No overflow:hidden on the box, so badges that overhang the image's edge are not clipped. */
.shotbox img { display: block; width: 100%; height: auto; border-radius: 5px; }
.mark { position: absolute; display: block; border: 2.5px solid var(--mark); border-radius: 4px; pointer-events: none; }
.mark i { position: absolute; top: -12px; left: -12px; width: 23px; height: 23px; border-radius: 50%; background: var(--badge-bg); color: var(--badge-ink);
  font: 700 13px/23px var(--sans); font-style: normal; text-align: center; box-shadow: 0 0 0 2px #fff; }
figure.shot figcaption { font: 14px/1.45 var(--sans); color: var(--ink-3); margin-top: 9px; }
figure.diagram { margin: 18px 0 22px; max-width: 680px; }
figure.diagram img { display: block; width: 100%; height: auto; border-radius: 6px; }

/* Enlarged screenshot: a :target overlay, no script. */
.zoom { display: none; }
.zoom:target { display: block; position: fixed; inset: 0; z-index: 20; overflow: auto; background: rgba(12,10,10,.9); padding: 56px 16px 24px; }
.zoom-close { position: fixed; top: 12px; right: 16px; z-index: 21; font: 600 15px/1 var(--sans); color: #fff; background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 9px 16px; text-decoration: none; }
.zoom-close:focus-visible { outline: 2px solid #fff; }
.zoom-inner { width: 100%; margin: 0 auto; }
.zoom-box { position: relative; margin: 12px; }
.zoom-box img { display: block; width: 100%; height: auto; }
.zoom .mark { border-width: 2.5px; }
.zoom .mark i { top: -12px; left: -12px; width: 23px; height: 23px; font-size: 13px; line-height: 23px; }

/* Privacy notice (operator-supplied fragment) */
.notice-note { font: 15px/1.45 var(--sans); color: var(--ink-2); background: var(--panel); border-left: 4px solid var(--accent);
  padding: 10px 14px; margin: 0 0 22px; max-width: 68ch; }
.notice h2 { font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.notice h3 { font-size: 20px; font-weight: 600; margin: 26px 0 8px; }
.notice p, .notice ul { max-width: 68ch; margin: 0 0 14px; }
.notice ul { padding-left: 22px; }

/* Footer */
.foot { border-top: 1px solid var(--line); font: 14px/1.5 var(--sans); color: var(--ink-3); }
.foot-inner { max-width: 1080px; margin: 0 auto; padding: 22px 24px 40px; }
.foot p { margin: 0 0 8px; }
.legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }

@media (max-width: 860px) {
  .masthead-inner { grid-template-columns: auto 1fr; gap: 20px; padding: 24px 16px 28px; }
  .masthead-inner .cta { grid-column: 1 / -1; justify-self: start; }
  .logo { width: 96px; height: 62px; align-self: start; }
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 16px 40px; }
  nav.toc { position: static; max-height: none; overflow: visible; }
  nav.toc .grp { display: none; }
  nav.toc ol { display: flex; flex-wrap: wrap; gap: 2px 14px; border: 0; }
  nav.toc ol + ol { margin-top: 2px; }
  nav.toc a { padding: 3px 0; border: 0; margin: 0; }
  .foot-inner { padding: 20px 16px 32px; }
}
@media (max-width: 520px) {
  main h2 { font-size: 26px; }
  .lede { font-size: 17px; }
  .mark { border-width: 2px; }
  .mark i { top: -9px; left: -9px; width: 18px; height: 18px; font-size: 11px; line-height: 18px; }
}

@media print {
  .skip, nav.toc, .cta, .lang, figure.shot figcaption { display: none; }
  .masthead::after { display: none; }
  .wrap { display: block; padding: 0; }
  main > section { break-inside: auto; }
  figure.shot, pre, table { break-inside: avoid; }
}
