/* ============================================================
   TEXTSEITEN  (app/pages/document.php)
   Impressum, Datenschutz, Nachhaltigkeit, Verhaltenskodex
   ============================================================ */

.doc-head { padding: 28px 0 clamp(44px, 5vw, 72px); background: #fff; }
.doc-head .breadcrumbs { margin-bottom: clamp(28px, 4vw, 52px); }
.doc-head-inner { max-width: 860px; }
.doc-h1 { margin: 0; font-family: var(--f-display); font-stretch: 94%; font-weight: 500; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.026em; color: var(--ink); text-wrap: balance; }
.doc-lead { margin: 20px 0 0; max-width: 720px; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.7; color: var(--text); }
.doc-stand { display: inline-block; margin: 22px 0 0; padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--ink); background: var(--surface); }

.doc-layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 820px); justify-content: space-between; gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.doc-layout--single { grid-template-columns: minmax(0, 860px); justify-content: start; }
.doc-aside-inner { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 28px; }
.doc-aside-title { margin: 0 0 12px; font-size: 11.5px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.doc-facts { padding: 24px; background: #fff; border: 1px solid var(--line); }
.doc-facts dl { display: grid; gap: 14px; margin: 0; }
.doc-facts dt { margin-bottom: 2px; font-size: 12.5px; color: var(--muted); }
.doc-facts dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.doc-facts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.doc-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line-2); counter-reset: doc; max-height: calc(100vh - var(--header-h) - 140px); overflow-y: auto; }
.doc-toc a { display: block; margin-left: -1px; padding: 6px 0 6px 16px; font-size: 14px; line-height: 1.4; color: var(--muted); border-left: 2px solid transparent; }
.doc-toc a:hover { color: var(--ink); border-left-color: var(--accent); }

.doc-body { display: grid; gap: 16px; }
.doc-block { padding: clamp(24px, 3vw, 36px); background: #fff; scroll-margin-top: calc(var(--header-h) + 20px); }
.doc-block h2 { margin: 0 0 16px; font-family: var(--f-display); font-stretch: 94%; font-weight: 500; font-size: clamp(21px, 1.7vw, 25px); line-height: 1.25; letter-spacing: -0.012em; color: var(--ink); }
.doc-block h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.doc-block p, .doc-block li { font-size: 15.5px; line-height: 1.72; color: var(--text); }
.doc-block p { margin: 0 0 14px; }
.doc-block > :last-child { margin-bottom: 0; }
.doc-block ul { margin: 0 0 14px; padding: 0; list-style: none; }
.doc-block li { position: relative; margin: 0 0 6px; padding-left: 22px; }
.doc-block li::before { content: ""; position: absolute; left: 3px; top: .8em; width: 7px; height: 2px; background: var(--accent); }
.doc-block a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.doc-block a:hover { color: var(--accent); text-decoration-color: currentColor; }
.doc-dl { display: grid; gap: 0; margin: 0 0 14px; border-top: 1px solid var(--line); }
.doc-dl > div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc-dl dt { font-size: 14px; font-weight: 600; color: var(--ink); }
.doc-dl dd { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text); }
.doc-note { padding: 14px 16px; font-size: 14.5px !important; background: var(--surface); border-left: 3px solid var(--line-2); }
.doc-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.doc-links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; }

@media (max-width: 1000px) {
    .doc-layout { grid-template-columns: minmax(0, 1fr); }
    .doc-aside-inner { position: static; }
    .doc-toc ol { max-height: none; }
}
@media (max-width: 640px) {
    .doc-dl > div { grid-template-columns: minmax(0, 1fr); }
}
@media print {
    .site-header, .site-footer, .doc-aside .doc-toc, .breadcrumbs { display: none !important; }
    .doc-layout { display: block; }
    .doc-block { padding: 0 0 12pt; }
}
