/* =====================================================================
   Markdown-Inhalt – Dokumente im Team, öffentliche Seiten und die Verpflichtung sehen gleich aus.
   Dazu das Inhaltsverzeichnis neben einem Dokument (.doc-toc im Team, .pub-aside öffentlich).
   ===================================================================== */
.md { font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md h1, .md h2, .md h3, .md h4 { margin: 1.6em 0 .5em; line-height: 1.25; scroll-margin-top: 90px; }
.md h1 { font-size: 1.9em; font-weight: 800; } .md h2 { font-size: 1.45em; font-weight: 800; } .md h3 { font-size: 1.2em; font-weight: 700; } .md h4 { font-size: 1.05em; }
.md p, .md ul, .md ol, .md blockquote, .md pre, .md .md-table, .md .md-notice { margin: 0 0 1em; }
.md ul, .md ol { padding-left: 1.5em; } .md li { margin: .25em 0; } .md li > ul, .md li > ol { margin: .25em 0; }
.md ul.md-tasks { list-style: none; padding-left: .3em; }
.md .md-check { font-size: 1.1em; margin-right: 4px; } .md .md-check.done { color: var(--green); }
.md a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.md a:hover { text-decoration-color: currentColor; }
.md blockquote { padding: .6em 1em; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--muted); }
.md blockquote > :last-child { margin-bottom: 0; }
.md pre { padding: 14px 16px; border-radius: var(--r-sm); background: #1d1530; color: #f3ecff; overflow-x: auto; font: 13.5px/1.55 var(--mono); }
.md pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.md hr { border: 0; border-top: 2px dashed var(--border-strong); margin: 2em 0; }
.md .md-table { overflow-x: auto; }
.md table { border-collapse: collapse; width: 100%; font-size: .95em; }
.md th, .md td { border: 1.5px solid var(--border-strong); padding: 8px 12px; text-align: left; vertical-align: top; }
.md th { background: var(--surface-2); }
.md .md-c { text-align: center; } .md .md-r { text-align: right; }
.md .md-notice { padding: 12px 16px; border-radius: var(--r-md); border: 2px solid; }
.md .md-notice > :last-child { margin-bottom: 0; }
.md .md-info, .md .md-note { border-color: color-mix(in srgb, var(--blue) 45%, transparent); background: color-mix(in srgb, var(--blue) 8%, var(--surface)); }
.md .md-tip, .md .md-success { border-color: color-mix(in srgb, var(--green) 45%, transparent); background: var(--green-soft); }
.md .md-warning, .md .md-danger { border-color: color-mix(in srgb, var(--amber) 55%, transparent); background: var(--amber-soft); }
.md .md-img { font-weight: var(--fw-semibold); }


/* ---------- Inhaltsverzeichnis & Seitenlisten ---------- */
.doc-toc ol, .pub-aside ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-sm); }
.doc-toc a, .pub-aside a { color: var(--muted); text-decoration: none !important; }
.doc-toc a:hover, .pub-aside a:hover { color: var(--accent-text); }
.doc-toc .l3, .pub-aside .l3 { padding-left: 12px; font-size: var(--fs-xs); }
