/* Unterlagen zu docMan (/docman/wo-docman-laeuft, /docman/technik-und-sicherheit, /docman/docman-und-ki).
   Gleiche Farben und Schrift wie uci.group und /docman, aber ruhiger Lesesatz für längere Texte. */
:root {
  --bg: #1f2836; --surface: #2a3445; --border: #3d4a5e; --text: #ffffff; --muted: #a3adbd;
  --accent: #f08c00; --accent-2: #ffb547; --on-accent: #111;
  --good: #5fd39a; --weak: #ff9466;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { font-family: "Inter", system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* Navigation wie auf /docman */
nav { padding: 28px 0; }
nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1040px; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; }
.logo .word span { color: var(--accent); }
.logo .mark { width: 26px; height: 26px; display: block; }
nav a.link { color: var(--muted); font-size: 15px; transition: color .2s; }
nav a.link:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 20px; }
@media (max-width: 440px) { nav a.link { display: none; } }
.lang { display: flex; gap: 2px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.lang button { font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); background: none; border: 0; border-radius: 6px; padding: 4px 8px; cursor: pointer; transition: color .2s, background .2s; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--accent); color: #111; }

/* Nur die gewählte Sprache zeigen (siehe unterlagen.js) */
html.js [data-l] { display: none; }
html.js [data-l].on { display: block; }
html:not(.js) [data-l]:not([data-l="de"]) { display: none; }

/* Kopf */
.doc-head { padding: 48px 0 8px; }
.crumb { display: inline-block; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumb:hover { color: var(--text); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 500; color: var(--accent); border: 1px solid rgba(240,140,0,.3); background: rgba(240,140,0,.08); padding: 6px 14px; border-radius: 999px; margin: 0 0 22px 12px; }
.doc h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.doc .meta { color: var(--muted); font-size: 14px; margin-top: 14px; }
.doc .lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); margin-top: 22px; }
.doc .lead b, .doc .lead a { color: var(--text); }
.pdf { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 12px 22px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; transition: transform .2s, opacity .2s; }
.pdf:hover { transform: translateY(-2px); opacity: .9; }
.pdf small { font-weight: 500; opacity: .75; }

/* Fließtext */
.doc { padding-bottom: 72px; }
.doc h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em; line-height: 1.25; margin: 56px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.doc h3 { font-size: 18px; letter-spacing: -0.01em; margin: 32px 0 10px; }
.doc p { margin: 0 0 14px; color: #dfe4ec; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; color: #dfe4ec; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--accent); }
.doc b, .doc strong { color: var(--text); }
.doc a.ref { color: var(--text); border-bottom: 1px solid var(--accent); }
.doc a.ref:hover { color: var(--accent-2); }
.doc .small { font-size: 13px; color: var(--muted); }

/* Kästen */
.box { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 14px; padding: 22px 26px; margin: 28px 0; }
.box > p:first-child { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.box > p:first-child b { color: inherit; }
.box ul:last-child, .box p:last-child { margin-bottom: 0; }
.note { background: rgba(240,140,0,.08); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 22px 0; }
.note p:last-child { margin-bottom: 0; }
.chain { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 10px 0 18px; overflow-x: auto; white-space: nowrap; }

/* Tabellen: breite Tabellen scrollen auf dem Handy seitlich in ihrem Kasten */
.tbl { overflow-x: auto; margin: 8px 0 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.03); }
.doc td:first-child { color: var(--text); }
.doc .two td:first-child { width: 30%; }
.doc .cmp { font-size: 14px; min-width: 860px; }
.doc .cmp td:first-child { font-weight: 600; width: 15%; }
.doc .num td:nth-last-child(-n+2), .doc .num th:nth-last-child(-n+2) { text-align: right; white-space: nowrap; }
.doc .month td:nth-child(n+2), .doc .month th:nth-child(n+2) { text-align: right; }
.good { color: var(--good) !important; font-weight: 600; }
.mid { color: var(--accent-2) !important; font-weight: 600; }
.weak { color: var(--weak) !important; font-weight: 600; }
.n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #111; font-size: 11px; font-weight: 700; margin-right: 8px; vertical-align: 1px; }
th .n { display: grid; margin: 0 0 6px; }
.sw { display: inline-block; width: 16px; height: 5px; border-radius: 3px; margin: 0 8px 3px 0; vertical-align: middle; }

/* Die Möglichkeiten */
.opt { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 26px; margin: 16px 0; }
.opt h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 12px; font-size: 20px; }
.opt h3 .nr { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #111; font-size: 15px; }
.opt > p { color: var(--muted); }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
@media (max-width: 640px) { .pc { grid-template-columns: 1fr; gap: 10px; } }
.pc b { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.pc ul { margin: 0; font-size: 15px; }
.plus b { color: var(--good); } .minus b { color: var(--weak); }

/* Schritte */
.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #111; font-weight: 700; font-size: 14px; display: grid; place-items: center; }

/* Grafik: unverändert aus der Vorlage, auf hellem Grund, auf dem Handy seitlich scrollbar */
.chart { background: #fff; border-radius: 14px; padding: 16px; margin: 18px 0 8px; overflow-x: auto; }
.chart svg { display: block; min-width: 600px; }

/* Fuß und Kontakt */
.more { border-top: 1px solid var(--border); padding: 48px 0 64px; }
.more h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 18px; font-weight: 600; }
.docs { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.docs a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; font-weight: 600; transition: border-color .2s, transform .2s; }
.docs a:hover { border-color: rgba(240,140,0,.45); transform: translateY(-2px); }
.docs a span { display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 4px; }
.docs a[aria-current] { border-color: var(--accent); }
.talk { margin-top: 36px; color: var(--muted); }
.talk a { color: var(--text); border-bottom: 1px solid var(--accent); }
footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1040px; }
@media (max-width: 600px) { .doc-head { padding-top: 24px; } .box, .opt { padding: 18px 18px; } .doc table { font-size: 14px; } }
@media print { nav, .lang, .pdf, .more, footer { display: none; } }
