:root {
  --bg: #f5f6f8; --card: #fff; --text: #1c2330; --muted: #6b7587; --line: #e3e6ec; --accent: #2563eb;
  --ok: #16a34a; --warn: #d97706; --fail: #dc2626; --info: #2563eb; --skip: #94a3b8;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11151c; --card: #1a202b; --text: #e6e9ef; --muted: #98a2b3; --line: #2a3242; --accent: #5b8def; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
.top { display: flex; align-items: center; gap: 14px; padding: 10px 20px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { font-weight: 700; } .spacer { flex: 1; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { padding: 6px 12px; border-radius: 8px; color: var(--text); }
nav a.active { background: var(--accent); color: #fff; } nav a:hover { text-decoration: none; background: var(--line); } nav a.active:hover { background: var(--accent); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }
h1 { font-size: 22px; margin: 0 0 16px; } h2 { font-size: 16px; margin: 0 0 10px; } h3 { font-size: 14px; margin: 14px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.kpi b { display: block; font-size: 26px; } .kpi span { color: var(--muted); font-size: 13px; }
.btn, button { font: inherit; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.btn:hover, button:hover { border-color: var(--accent); } button.primary { background: var(--accent); border-color: var(--accent); color: #fff; } button.danger { color: var(--fail); } button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
textarea { width: 100%; min-height: 110px; font-family: inherit; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--skip); } .dot.ok { background: var(--ok); } .dot.err { background: var(--fail); }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
tr.click { cursor: pointer; } tr.click:hover td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.muted { color: var(--muted); } .small { font-size: 13px; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; word-break: break-all; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; color: #fff; white-space: nowrap; }
.tag { display: inline-block; padding: 1px 8px; margin: 1px 3px 1px 0; border-radius: 6px; font-size: 12px; background: var(--line); }
.score { display: inline-block; min-width: 90px; } .score i { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 3px; } .score i u { display: block; height: 100%; background: var(--ok); }
pre { background: color-mix(in srgb, var(--text) 6%, transparent); padding: 10px 12px; border-radius: 8px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 6px 0; max-height: 360px; }
.bars .r { display: grid; grid-template-columns: 170px 1fr 48px; gap: 8px; align-items: center; margin: 5px 0; font-size: 14px; }
.bars .t { height: 14px; background: var(--line); border-radius: 7px; overflow: hidden; display: flex; } .bars .t u { display: block; height: 100%; }
.bars .v { text-align: right; color: var(--muted); }
.cols { display: flex; align-items: flex-end; gap: 3px; height: 130px; margin-top: 6px; } .cols div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; font-size: 11px; color: var(--muted); }
.cols u { display: block; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 1px; } .cols span { margin-top: 3px; white-space: nowrap; }
.finding { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.finding:last-child { border: 0; } .ico { width: 22px; height: 22px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.ico.ok { background: var(--ok); } .ico.warn { background: var(--warn); } .ico.fail { background: var(--fail); } .ico.info { background: var(--info); } .ico.skip { background: var(--skip); }
.hint { color: var(--muted); font-size: 13.5px; } .pts { color: var(--muted); font-size: 13px; white-space: nowrap; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1c2330; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 20; max-width: 90vw; } .toast.err { background: var(--fail); }
.missing td { color: var(--muted); } .alert { border-left: 4px solid var(--fail); }
@media (max-width: 700px) { .bars .r { grid-template-columns: 110px 1fr 36px; } .kv { grid-template-columns: 1fr; } }
.md p { margin: 0 0 10px; } .md ul { margin: 0 0 10px; padding-left: 22px; } .md code { background: color-mix(in srgb, var(--text) 9%, transparent); padding: 1px 5px; border-radius: 5px; font-size: 13px; word-break: break-all; }
.login { max-width: 440px; margin: 8vh auto; padding: 0 16px; }
.field { margin-bottom: 14px; } .field label { display: block; font-weight: 600; margin-bottom: 4px; } .field input[type=text], .field input[type=number], .field input[type=email], .field select { width: 100%; }
.choices label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 3px 0; } .field .help { color: var(--muted); font-size: 13px; }
.exgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
h2.group { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 0 0 12px; }
.ex { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--card); } .ex.locked { opacity: .6; }
.tasklist a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--text); } .tasklist a:last-child { border: 0; }
.result { margin-top: 14px; } .big { font-size: 24px; font-weight: 700; }
.matrix td, .matrix th { text-align: center; white-space: nowrap; } .matrix td:first-child, .matrix th:first-child { text-align: left; }
.cell { display: inline-block; min-width: 46px; padding: 2px 6px; border-radius: 6px; font-size: 13px; } .cell.lock { color: var(--muted); background: transparent; }
.dl a { margin-right: 10px; }

/* Lab-Terminal und Editor (Let's-Encrypt-Labor) */
.term { background: #0f1419; color: #d8e1e8; border-radius: 10px; padding: 10px 12px; font: 13px/1.45 ui-monospace, Menlo, Consolas, monospace; max-height: 420px; min-height: 160px; overflow: auto; }
.term pre { background: none; padding: 0; margin: 0; max-height: none; color: inherit; white-space: pre-wrap; word-break: break-word; }
.term .cmd { color: #8bd5a0; } .term .err { color: #f0a0a0; } .term .prompt { color: #8bd5a0; user-select: none; }
.term-in { display: flex; gap: 6px; align-items: center; background: #0f1419; border-radius: 0 0 10px 10px; padding: 6px 12px; margin-top: -2px; }
.term-in input { flex: 1; background: transparent; border: 0; color: #d8e1e8; font: 13px ui-monospace, Menlo, Consolas, monospace; outline: none; padding: 4px 0; }
.editor textarea { min-height: 260px; font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace; tab-size: 4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; } .chips span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, transparent); }
