/* German legal pages (/de/impressum/ … /de/cookies/): additions to /legal/legal.css. Tokens from /css/brand.css. */

/* Facts only the owner can supply ([[NAME]]): highlighted so they are found on staging before go-live. */
.todo-owner { padding: 1px 5px; border-radius: 4px; background: #FFF1B8; color: #5A3E00; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; font-weight: 700; overflow-wrap: anywhere; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* German compound words are long: let the browser hyphenate body text and headings on narrow screens. */
.doc { hyphens: auto; -webkit-hyphens: auto; }
.doc h1 { hyphens: manual; overflow-wrap: anywhere; }
@media (max-width: 519px) { .doc h1 { font-size: 30px; } }
.doc a { overflow-wrap: anywhere; }

/* Table of contents on long pages. */
.toc { margin-top: 22px; padding: 14px 18px 16px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.toc > p { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--ink-3); }
.doc .toc ol { margin: 8px 0 0; padding-left: 22px; font-size: 15px; line-height: 1.45; }
.doc .toc li + li { margin-top: 5px; }
.doc .toc a { font-weight: 500; text-decoration: none; }
.doc .toc a:hover { text-decoration: underline; }
@media (min-width: 700px) { .doc .toc ol { columns: 2; column-gap: 28px; } .doc .toc li { break-inside: avoid; } }

/* Definition-style blocks for the Impressum. */
.doc dl.facts { margin: 14px 0 0; display: grid; gap: 4px 18px; }
.doc dl.facts dt { margin-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: .2px; color: var(--ink-3); }
.doc dl.facts dt:first-child { margin-top: 0; }
.doc dl.facts dd { margin: 0; }
@media (min-width: 620px) {
  .doc dl.facts { grid-template-columns: 180px minmax(0, 1fr); }
  .doc dl.facts dt, .doc dl.facts dt:first-child { margin-top: 0; padding-top: 2px; }
}

/* The Muster-Widerrufsformular and quoted declarations: set apart like a printed form. */
.doc .form-sheet { margin-top: 16px; padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); }
.doc .form-sheet > :first-child { margin-top: 0; }
.doc .form-sheet .blank { display: inline-block; min-width: 9em; border-bottom: 1px solid var(--ink-3); }
.doc blockquote.decl { margin: 14px 0 0; padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--paper-2); }
.doc blockquote.decl > :first-child { margin-top: 0; }

.doc .small { font-size: 14px; color: var(--ink-2); }
.doc button.linkish { padding: 0; border: 0; background: none; font: inherit; color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
.doc button.linkish:hover { color: var(--accent); }

/* Vertrag widerrufen: step 2 review list. */
.doc dl.review { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 16px; }
.doc dl.review dt { color: var(--ink-2); font-weight: 600; }
.doc dl.review dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.cform__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cform__actions .btn { width: auto; flex: 1 1 200px; max-width: 280px; }
@media (max-width: 519px) { .cform__actions { flex-direction: column; } .cform__actions .btn { width: 100%; max-width: none; flex: none; } }
.cform--answer { display: block; background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-1); color: var(--ink); }
.cform--answer.is-ok { background: var(--ok-soft); border-color: transparent; box-shadow: none; }
.cform--answer h2 { margin: 0; font-size: 19px; }
.cform--answer p { margin: 10px 0 0; }
.cform--answer:focus { outline: none; }
.doc .cform h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.doc .cform > p { margin: 0; }
.doc #wAnswerBody > p:first-child { margin-top: 0; }
/* Cookie choice on /de/cookies/: both answers equally prominent; the current one is marked. */
.doc .choice { margin-top: 14px; }
.doc .choice .btn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* Phone cards: the name cell may hold several cookie names; let it wrap instead of forcing one flex line. */
@media (max-width: 519px) { .doc td:first-child { display: block; } }
.doc td code { overflow-wrap: anywhere; }
/* Phone cards: German values are long sentences, so every cell stacks its label above the value. */
@media (max-width: 519px) { .doc td { display: block; } .doc td::before { display: block; margin-bottom: 2px; } }

/* Anchors (#auswahl, #s10, …) land below the sticky site header, not under it. */
.doc [id] { scroll-margin-top: 84px; }
