/* =====================================================================
   legal-doc – the long reading page (Datenschutz) on top of legal-v3.css (23 Nov 2026).
   One clear thing: "Kurz und knapp" as two plain sentences.
   Everything else is quiet: a table of contents that moves along, numbers in the margin, calm lines.
   No cards, no glow. Works without JavaScript (the script only marks where you are).
   30 Nov 2026 (Nick: "sieht ein bisschen KI-billig aus"): calmer – the ticks/crosses became two plain sentences,
   title in normal writing instead of CAPITALS, no green glow, no lines between the sections, brighter text,
   volt only for links and "you are here" in the table of contents.
   ===================================================================== */
body.doc { background: #0b0b0d; }                     /* (no green glow at the top) */
.doc main { max-width: 1080px; padding: 56px 20px 96px !important; }

/* ---------- top: the title + date ---------- */
/* the title in normal writing, condensed; it always fits on one line: sized from the REAL free width of the page
   (cqi = width of <main> without padding – measured: the word is 8.24 letter-heights wide, 8.7 leaves a little room) */
.doc main { container-type: inline-size; }
.doc h1 { text-transform: none !important; letter-spacing: -0.005em; line-height: 0.95 !important; margin: 0 0 14px !important;
  font-variation-settings: "wdth" 66 !important; font-stretch: 66% !important; hyphens: none; overflow-wrap: normal;
  font-size: clamp(22px, calc((100vw - 64px) / 8.7), 66px) !important; }
@supports (font-size: 1cqi) { .doc h1 { font-size: clamp(22px, calc(100cqi / 8.7), 66px) !important; } }
.doc .stand { margin: 0; font-size: 14.5px; color: #8e8e98; letter-spacing: 0.01em; }

/* ---------- "Kurz und knapp": two plain sentences, the second one quieter ---------- */
.lead { margin: 56px 0 0; max-width: 820px; }
.lead p { margin: 0; font: 600 clamp(22px, 2.6vw, 31px)/1.3 "Inter", sans-serif; letter-spacing: -0.015em; color: #f4f4f6; }
.lead p + p { margin-top: 0.55em; color: #8e8e98; }
.doc .under { margin: 28px 0 0; max-width: 60ch; color: #a3a3ad; font-size: 16px; }

/* ---------- below: table of contents (left) + the text (right) ---------- */
.cols { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 72px; margin-top: 72px; align-items: start; }
.toc { position: sticky; top: 96px; max-height: calc(100vh - 128px); overflow-y: auto; }
.toc summary { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: grid; grid-template-columns: 30px 1fr; padding: 6px 0; color: #8e8e98; font-size: 14.5px; line-height: 1.35; text-decoration: none; transition: color 0.15s; }
.toc a:hover { color: #f4f4f6; }
.toc a.on { color: #d4ff3f; }                          /* where you are right now */
.toc a span { font-variant-numeric: tabular-nums; color: #5f5f69; }
.toc a.on span { color: inherit; }

.doc section { scroll-margin-top: 88px; padding: 40px 0 8px; }
.doc section:first-child { padding-top: 0; border-top: 0; }
.doc section h2 { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; margin: 0 0 14px !important; font: 650 22px/1.25 "Inter", sans-serif; letter-spacing: -0.01em; color: #f4f4f6; }
.doc section h2 .no { font: 900 22px/1 "Archivo", "Inter", sans-serif; font-stretch: 66%; font-variation-settings: "wdth" 66; color: #5f5f69; }
.doc section > p, .doc section > ul { margin: 0 0 14px 52px; max-width: 66ch; color: #cfcfd6; font-size: 17px; line-height: 1.72;
  hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }   /* (only long words are split – never "Tippduel-le") */
.doc section b { color: #f4f4f6; font-weight: 600; }
.doc section a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.doc section > ul { padding-left: 18px; }
.doc section li { margin: 0 0 8px; color: #cfcfd6; }
.doc section li::marker { color: #6c6c76; }
.doc section > :last-child { margin-bottom: 0; }

/* ---------- the end: other pages ---------- */
.doc-foot { max-width: 1080px; margin: 0 auto; padding: 28px 20px 56px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-wrap: wrap; gap: 10px 28px; }
.doc-foot a { color: #a3a3ad; text-decoration: none; font-size: 14.5px; }
.doc-foot a:hover { color: #f4f4f6; }

/* ---------- phone + small tablet ---------- */
@media (max-width: 860px) {
  .doc main { padding-top: 40px !important; padding-bottom: 64px !important; }
  .cols { display: block; margin-top: 44px; }
  /* the table of contents becomes a row you can open */
  .toc { position: static; max-height: none; overflow: visible; margin-bottom: 40px; border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .toc summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; cursor: pointer; font-weight: 600; color: #f4f4f6; list-style: none; }
  .toc summary::-webkit-details-marker { display: none; }
  .toc summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border: solid #a3a3ad; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
  .toc details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .toc ol { padding: 0 0 14px; }
  .toc a { padding: 11px 0; font-size: 16px; }
  .toc a.on { color: #a3a3ad; }
  .doc section > p, .doc section > ul { margin-left: 0; }
  .doc section h2 { grid-template-columns: 40px 1fr; }
  .doc section { padding-top: 32px; }
}
/* phone */
@media (max-width: 620px) {
  .lead { margin-top: 36px; }
  .doc section > p, .doc section > ul { font-size: 16.5px; }
}
@media (min-width: 861px) { .toc details > ol { display: block; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  body { background: #fff !important; } .lbar, .toc, .doc-foot { display: none !important; } .cols { display: block; }
  .doc, .doc * { color: #000 !important; }
}
