/* neXart BLOG — Stylesheet
   Dunkel zuerst. Helles Theme über prefers-color-scheme oder data-theme. */

:root {
  color-scheme: dark;
  --bg: #0e1720;
  --panel: #122029;
  --panel-2: #172733;
  --line: #203240;
  --line-strong: #2d4252;
  --text: #dfe6ee;
  --text-2: #a9b7c6;
  --muted: #71869a;
  --accent: #3fa9f5;
  --accent-soft: rgba(63, 169, 245, .12);
  --accent-ink: #06121c;
  --ok: #6cc3a0;
  --sec: #ef8a7a;
  --dsn: #b3a6ec;
  --ki: #5fd0c0;
  --gen: #9fb2c4;
  --grid: rgba(63, 169, 245, .05);
  --code-bg: #0c141c;
  --hover: rgba(63, 169, 245, .05);
  --logo-text: #eef3f8;
  --sig-blue: #3fa9f5;
  --sig-green: #6cd9a8;
  --sig-white: #ffffff;
  --glow-o: 1;
  --trace-o: .13;
  --logo-navy: #203240;
  --f-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-2xs: .6875rem;
  --fs-xs: .75rem;
  --fs-sm: .8125rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;

  --r: 6px;
  --r-sm: 4px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 56px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f8fa;
    --panel: #ffffff;
    --panel-2: #f1f5f8;
    --line: #dde5ec;
    --line-strong: #c3d0db;
    --text: #0f1c26;
    --text-2: #34485a;
    --muted: #566b80;
    --accent: #1570b0;
    --accent-soft: rgba(21, 112, 176, .08);
    --accent-ink: #ffffff;
    --ok: #1b7a55;
    --sec: #b23a2e;
    --dsn: #5b4ab0;
    --ki: #0e7266;
  --gen: #566b80;
    --gen: #566b80;
    --grid: rgba(32, 50, 64, .05);
    --code-bg: #f6f9fb;
    --hover: rgba(21, 112, 176, .04);
    --logo-text: #0f1c26;
  --sig-blue: #1570b0;
  --sig-green: #1b8a5f;
  --sig-white: #203240;
  --glow-o: .7;
  --trace-o: .1;
    --sig-blue: #1570b0;
    --sig-green: #1b8a5f;
    --sig-white: #203240;
    --glow-o: .7;
    --trace-o: .1;
    --logo-navy: #203240;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fa;
  --panel: #ffffff;
  --panel-2: #f1f5f8;
  --line: #dde5ec;
  --line-strong: #c3d0db;
  --text: #0f1c26;
  --text-2: #34485a;
  --muted: #566b80;
  --accent: #1570b0;
  --accent-soft: rgba(21, 112, 176, .08);
  --accent-ink: #ffffff;
  --ok: #1b7a55;
  --sec: #b23a2e;
  --dsn: #5b4ab0;
  --ki: #0e7266;
  --grid: rgba(32, 50, 64, .05);
  --code-bg: #f6f9fb;
  --hover: rgba(21, 112, 176, .04);
  --logo-text: #0f1c26;
  --logo-navy: #203240;
}
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-base)/1.65 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Hintergrund in drei Ebenen: Lichtschein, Leiterbahn-Muster, feines Raster.
   Alles fixe Pseudo-Elemente mit reinen Verläufen, ohne filter/blur, damit es
   auch auf Mobilgeräten flüssig bleibt. */
body { position: relative; isolation: isolate; }
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 45% at 78% 8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(45% 35% at 8% 70%, color-mix(in srgb, var(--ki) 12%, transparent), transparent 70%),
    radial-gradient(35% 30% at 55% 100%, color-mix(in srgb, var(--dsn) 9%, transparent), transparent 70%);
  opacity: var(--glow-o);
  animation: glow-drift 38s ease-in-out infinite alternate;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    url("../img/bg-traces.svg"),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 320px 320px, 24px 24px, 24px 24px;
  opacity: var(--trace-o);
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.55) 40%, rgba(0,0,0,.25) 100%);
          mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.55) 40%, rgba(0,0,0,.25) 100%);
}
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.2; margin: 0; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

kbd {
  display: inline-block; min-width: 1.6em; text-align: center;
  font: 500 var(--fs-2xs)/1 var(--f-mono); color: var(--text-2);
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 3px;
  padding: 3px 5px; background: var(--panel);
}

.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--accent); color: var(--accent-ink); border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Panels ---------- */
.panel { background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 8px 0 0; border-bottom: 1px solid var(--line); background: var(--panel-2); min-height: 36px;
}
.panel-tab {
  align-self: stretch; display: inline-flex; align-items: center;
  font: 500 var(--fs-xs)/1 var(--f-mono); color: var(--text);
  padding: 0 14px; border-right: 1px solid var(--line); background: var(--panel);
  box-shadow: inset 0 2px 0 var(--accent);
}
.badge {
  font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-strong); border-radius: 3px; padding: 4px 6px;
}
.badge-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 var(--fs-sm)/1 var(--f-sans); color: var(--text-2); text-decoration: none;
  padding: 8px 10px; border-radius: var(--r-sm);
}
.site-nav a kbd { min-width: 0; padding: 2px 4px; color: var(--muted); }
.site-nav a:hover { color: var(--text); background: var(--hover); }
.site-nav a:hover kbd { color: var(--accent); border-color: var(--accent); }
.nav-sep { width: 1px; height: 20px; background: var(--line); margin-inline: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 var(--fs-xs)/1 var(--f-mono); color: var(--text-2);
  background: transparent; border: 1px solid transparent; border-radius: var(--r-sm);
  padding: 6px 8px; cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.theme-toggle { border-color: var(--line); }
.tt-label { color: var(--muted); }
.tt-value { color: var(--accent); min-width: 4ch; text-align: left; }

.nav-toggle { display: none; }
@media (max-width: 820px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--text);
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -5px; } .bars::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 18px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 8px; font-size: 1rem; }
  .nav-sep { width: auto; height: 1px; margin: 8px 0; }
  #help-open { display: none; }
  .theme-toggle { align-self: flex-start; padding: 10px 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 var(--fs-sm)/1 var(--f-sans);
  padding: 11px 16px; border-radius: var(--r-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 8px 12px; font-size: var(--fs-xs); }
.link-btn { background: none; border: 0; padding: 0; font: 500 var(--fs-sm)/1.4 var(--f-mono); color: var(--accent); cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px);
}
.prompt-line { font: 400 var(--fs-sm)/1 var(--f-mono); color: var(--text-2); }
.p-user { color: var(--accent); } .p-sep { color: var(--muted); } .p-path { color: var(--dsn); } .p-sym { color: var(--muted); margin-right: .6ch; }
.hero-title {
  font: 600 clamp(1.75rem, 1.1rem + 2.6vw, 3rem)/1.12 var(--f-sans);
  letter-spacing: -.025em; margin-block: 18px 20px; max-width: 18em;
}
.hl { white-space: nowrap; background-image: linear-gradient(transparent 88%, var(--c) 88%, var(--c) 96%, transparent 96%); }
.hl-security { --c: color-mix(in srgb, var(--sec) 70%, transparent); }
.hl-technik  { --c: color-mix(in srgb, var(--ki) 70%, transparent); }
.hl-howto    { --c: color-mix(in srgb, var(--dsn) 70%, transparent); }
.lead { font-size: var(--fs-md); line-height: 1.6; color: var(--text-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 32px 0 0; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta dt { font: 400 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero-meta dd { margin: 0; font: 500 var(--fs-sm)/1.2 var(--f-mono); color: var(--text); font-variant-numeric: tabular-nums; }

.term-body {
  margin: 0; padding: 16px 18px; overflow-x: auto; background: var(--code-bg);
  font: 400 var(--fs-sm)/1.75 var(--f-mono); color: var(--text-2);
}
.t-prompt { color: var(--accent); }
.t-key { color: var(--ki); }
.t-dim { color: var(--muted); }
.panel-foot { border-top: 1px solid var(--line); padding: 12px 18px 14px; }
.panel-foot-label { display: block; font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.surface { width: 100%; border-collapse: collapse; font: 400 var(--fs-sm)/1.4 var(--f-mono); }
.surface th { text-align: left; font-weight: 400; color: var(--text-2); padding: 4px 0; border-bottom: 1px dotted var(--line-strong); }
.surface td { text-align: right; color: var(--ok); font-weight: 600; padding: 4px 0; border-bottom: 1px dotted var(--line-strong); font-variant-numeric: tabular-nums; }
.surface tr:last-child th, .surface tr:last-child td { border-bottom: 0; }

@media (max-width: 980px) { .hero { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sektionen ---------- */
.section { position: relative; padding-block: clamp(56px, 7vw, 88px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 24px; }
.h2 { display: flex; align-items: baseline; gap: 12px; font: 600 var(--fs-xl)/1.2 var(--f-sans); letter-spacing: -.02em; }
.sec-no { font: 500 var(--fs-sm)/1 var(--f-mono); color: var(--accent); }
.section-sub { color: var(--muted); font-size: var(--fs-sm); }
.h3 { font: 600 var(--fs-md)/1.3 var(--f-sans); }

.cat {
  display: inline-block; font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 6px; border-radius: 3px; border: 1px solid currentColor; white-space: nowrap;
}
.cat-security  { color: var(--sec); }
.cat-technik   { color: var(--ki); }
.cat-howto     { color: var(--dsn); }
.cat-allgemein { color: var(--gen); }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--panel); }
.seg button {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 var(--fs-xs)/1 var(--f-mono); color: var(--text-2);
  background: transparent; border: 0; border-right: 1px solid var(--line); padding: 10px 12px; cursor: pointer;
}
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--text); background: var(--hover); }
.seg button[aria-pressed="true"] { color: var(--text); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--accent); }
.seg .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.sw { width: 7px; height: 7px; border-radius: 1px; }
.sw-security { background: var(--sec); } .sw-technik { background: var(--ki); } .sw-howto { background: var(--dsn); } .sw-allgemein { background: var(--gen); }

.search {
  display: flex; align-items: center; gap: 8px; flex: 1 1 240px; max-width: 320px; min-width: 0;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 8px 0 12px;
}
.search:focus-within { border-color: var(--accent); }
.search-cmd { font: 500 var(--fs-xs)/1 var(--f-mono); color: var(--accent); white-space: nowrap; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 400 var(--fs-sm)/1 var(--f-mono); padding: 10px 0; outline: none; }
.search input::placeholder { color: var(--muted); }

/* Beitragsliste als Tabelle */
.listing { border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--panel) 94%, transparent); overflow: hidden; }
.listing-head, .post-link { display: grid; grid-template-columns: 28px 104px 52px minmax(0, 1fr) 44px; gap: 20px; }
.listing-head {
  padding: 10px 18px; background: var(--panel-2); border-bottom: 1px solid var(--line);
  font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.r { text-align: right; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post + .post { border-top: 1px solid var(--line); }
.post-link { position: relative; padding: 18px; color: inherit; text-decoration: none; align-items: baseline; }
.post-link:hover, .post-link:focus-visible { background: var(--hover); outline-offset: -2px; }
.post-no { font: 500 var(--fs-sm)/1.5 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; transition: color .15s; }
.post-link:hover .post-no, .post-link:focus-visible .post-no { color: var(--accent); }
.post-date, .post-min { font: 400 var(--fs-sm)/1.5 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.post-min { text-align: right; }
.post-title { font: 600 var(--fs-md)/1.35 var(--f-sans); color: var(--text); letter-spacing: -.01em; }
.post-link:hover .post-title { color: var(--accent); }
.post-excerpt { color: var(--text-2); font-size: .9375rem; margin-top: 6px; max-width: 70ch; }
.post-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font: 400 var(--fs-xs)/1.4 var(--f-mono); color: var(--muted); }
.post-empty { padding: 24px 18px; color: var(--muted); font: 400 var(--fs-sm)/1.5 var(--f-mono); }
.listing-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  padding: 10px 18px; border-top: 1px solid var(--line); background: var(--panel-2);
  font: 400 var(--fs-xs)/1.4 var(--f-mono); color: var(--muted);
}
.listing-foot .hint { display: inline-flex; align-items: center; gap: 4px; }
.error { color: var(--sec); }

@media (max-width: 720px) {
  .listing-head { display: none; }
  .post-link { grid-template-columns: auto auto auto 1fr; gap: 6px 12px; padding: 16px; }
  .post-body { grid-column: 1 / -1; grid-row: 2; }
  .post-min { text-align: right; }
  .listing-foot .hint { display: none; }
  .search { max-width: none; }
}

/* ---------- Reader ---------- */
.reader { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.reader-main { max-width: 740px; min-width: 0; }
.back { display: inline-flex; gap: 8px; font: 500 var(--fs-sm)/1 var(--f-mono); color: var(--text-2); text-decoration: none; margin-bottom: 28px; }
.back:hover { color: var(--accent); }
.reader-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font: 400 var(--fs-sm)/1.2 var(--f-mono); color: var(--muted); }
.reader-title { font: 600 clamp(1.6rem, 1.1rem + 2vw, 2.4rem)/1.15 var(--f-sans); letter-spacing: -.025em; margin-block: 16px 14px; outline: none; }
.reader-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 400 var(--fs-xs)/1.4 var(--f-mono); color: var(--muted); }
.reader-head { padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }

.reader-side { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.side-block { border-left: 1px solid var(--line); padding-left: 16px; }
.side-title { font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; gap: 8px; font-size: var(--fs-sm); line-height: 1.4; }
.toc li::before { content: counter(toc, decimal-leading-zero); font: 400 var(--fs-xs)/1.6 var(--f-mono); color: var(--muted); }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--accent); }
.fileinfo { margin: 0; display: flex; flex-direction: column; gap: 6px; font: 400 var(--fs-xs)/1.4 var(--f-mono); }
.fileinfo div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.fileinfo dt { color: var(--muted); }
.fileinfo dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fileinfo .hash { color: var(--ok); }
.side-link { display: inline-block; margin-top: 12px; font: 500 var(--fs-xs)/1 var(--f-mono); text-decoration: none; }
.side-link:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .reader { grid-template-columns: minmax(0, 1fr); }
  .reader-side { position: static; order: -1; display: none; }
}

.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--text); letter-spacing: -.01em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2 { font-size: 1.375rem; margin-top: 2.1em; padding-top: .2em; }
.prose h3 { font-size: 1.1875rem; margin-top: 1.8em; }
.prose h4 { font-size: 1.0625rem; margin-top: 1.6em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a.ext::after { content: "↗"; font-size: .8em; margin-left: 2px; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: .35em; }
.prose ul > li::marker { content: "– "; color: var(--muted); font-family: var(--f-mono); }
.prose ol > li::marker { color: var(--muted); font: 500 .9em var(--f-mono); }
.prose li.task { list-style: none; margin-left: -1.5em; }
.prose li.task input { margin-right: .6em; accent-color: var(--accent); }
.prose blockquote { margin-inline: 0; padding-left: 18px; border-left: 2px solid var(--line-strong); color: var(--muted); }
.prose :not(pre) > code {
  font: 400 .875em/1 var(--f-mono); color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); padding: .15em .4em; border-radius: 3px; overflow-wrap: anywhere;
}
.prose figure { margin-inline: 0; }
.prose figure.img img { border-radius: var(--r); border: 1px solid var(--line); display: block; }
.prose figcaption { font: 400 var(--fs-sm)/1.4 var(--f-mono); color: var(--muted); margin-top: 10px; }

.code { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--code-bg); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.code-lang { font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.code-copy { font: 500 var(--fs-2xs)/1 var(--f-mono); color: var(--text-2); background: transparent; border: 1px solid var(--line-strong); border-radius: 3px; padding: 5px 8px; cursor: pointer; }
.code-copy:hover { border-color: var(--accent); color: var(--accent); }
.code-body { display: flex; align-items: stretch; }
.code-ln {
  flex: none; padding: 14px 10px 14px 14px; text-align: right; user-select: none;
  font: 400 .84375rem/1.7 var(--f-mono); color: var(--muted); border-right: 1px solid var(--line);
  white-space: pre; font-variant-numeric: tabular-nums;
}
.code pre { flex: 1; min-width: 0; margin: 0; padding: 14px 16px; overflow-x: auto; font: 400 .84375rem/1.7 var(--f-mono); color: var(--text); tab-size: 2; }
.code-head-l { display: inline-flex; align-items: baseline; gap: 10px; }
.code-lines { font: 400 var(--fs-2xs)/1 var(--f-mono); color: var(--muted); opacity: .8; }
.tk-c { color: var(--muted); font-style: italic; }
.tk-s { color: var(--ki); }
.tk-n { color: var(--dsn); }
.tk-k { color: var(--accent); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 var(--fs-2xs)/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose td { font-variant-numeric: tabular-nums; }
.prose .al-right { text-align: right; } .prose .al-center { text-align: center; }

.callout { --c: var(--accent); position: relative; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-sm); padding: 14px 18px 14px 30px; }
.callout > * + * { margin-top: .5em; }
.callout-title { font: 600 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.callout-note { --c: var(--ki); }
.callout-tip { --c: var(--dsn); }
.callout-warning, .callout-caution { --c: var(--sec); }
.callout-important { --c: var(--accent); }

.loading { color: var(--muted); font-family: var(--f-mono); font-size: var(--fs-sm); }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager-link { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); background: var(--panel); }
.pager-link:hover { border-color: var(--accent); }
.pager-next { grid-column: 2; text-align: right; }
.pager-label { font: 500 var(--fs-2xs)/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pager-title { font-weight: 600; line-height: 1.35; }
@media (max-width: 560px) {
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager-next { grid-column: auto; }
}

/* ---------- Themen ---------- */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); }
.topic { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.topic + .topic { border-left: 1px solid var(--line); }
.topic-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.topic-n { font: 400 var(--fs-xs)/1 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.topic h3 { font-size: var(--fs-lg); letter-spacing: -.015em; }
.topic p { color: var(--text-2); font-size: .9375rem; }
.topic .topic-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 400 var(--fs-xs)/1.5 var(--f-mono); color: var(--muted) !important; }
.topic .link-btn { margin-top: auto; padding-top: 10px; }
.topics { gap: 1px; background: var(--line); }
.topic { background: color-mix(in srgb, var(--panel) 94%, transparent); }
.topic + .topic { border-left: 0; }
@media (max-width: 1000px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .topics { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Über ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-copy { display: flex; flex-direction: column; gap: 14px; color: var(--text-2); max-width: 62ch; }
.specs { margin: 0; padding: 6px 18px; }
.specs div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 9px 0; border-bottom: 1px dotted var(--line-strong); }
.specs div:last-child { border-bottom: 0; }
.specs dt { font: 400 var(--fs-sm)/1.4 var(--f-mono); color: var(--muted); }
.specs dd { margin: 0; font: 500 var(--fs-sm)/1.4 var(--f-mono); color: var(--text); }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 12px; font-size: var(--fs-md); max-width: 52ch; }
.contact-copy .muted { font-size: var(--fs-base); }
.contact-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
.contact-cmd { font: 400 var(--fs-sm)/1 var(--f-mono); color: var(--text-2); }
.contact-out { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font: 500 var(--fs-md)/1.4 var(--f-mono); min-height: 1.6em; overflow-wrap: anywhere; }
.contact-out .mail { color: var(--text); }
.badge.is-open { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.redacted { color: var(--line-strong); letter-spacing: -.05em; user-select: none; }
.redacted.is-revealed { color: inherit; letter-spacing: normal; user-select: text; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Rechtliches ---------- */
.legal { font-size: var(--fs-sm); }
.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 64px); }
.legal-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.legal p { color: var(--muted); max-width: 70ch; }
.legal-sub { font: 400 var(--fs-xs)/1 var(--f-mono); }
.imprint { display: flex; flex-direction: column; font: normal 400 var(--fs-sm)/1.7 var(--f-mono); color: var(--text-2); }
@media (max-width: 760px) { .legal-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Statuszeile ---------- */
.statusline { border-top: 1px solid var(--line); background: var(--panel-2); padding-bottom: env(safe-area-inset-bottom, 0px); }
.statusline-row { display: flex; flex-wrap: wrap; align-items: stretch; font: 400 var(--fs-xs)/1 var(--f-mono); color: var(--muted); }
.statusline-row > * { padding: 12px 12px; border-right: 1px solid var(--line); }
.sl-mode { background: var(--accent); color: var(--accent-ink); font-weight: 600; border-right: 0; }
.sl-spacer { flex: 1; border-right: 0; padding: 0; }
.statusline a { color: var(--muted); text-decoration: none; }
.statusline a:hover { color: var(--accent); }
.statusline-row > :last-child { border-right: 0; }
@media (max-width: 560px) { .sl-hide-sm { display: none; } }

/* ---------- Hilfe-Dialog ---------- */
.help {
  width: min(420px, calc(100vw - 32px)); padding: 0; color: var(--text);
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r);
}
.help::backdrop { background: rgba(6, 14, 22, .65); }
.keys { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.keys td { padding: 9px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.keys tr:last-child td { border-bottom: 0; }
.keys td:first-child { white-space: nowrap; width: 1%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Logo ---------- */
.logo { display: block; height: 36px; width: auto; }
.lg-blue { fill: #3fa9f5; }
.lg-slate { fill: #566b80; }
.lg-navy { fill: var(--logo-navy); }
.lg-text { fill: var(--logo-text); }
.lg-navy { transition: fill .2s; }
.brand:hover .lg-navy, .brand:focus-visible .lg-navy { fill: #ffffff; }
.hero { position: relative; }
.sl-mode { background: var(--accent); }
@media (max-width: 420px) { .logo { height: 26px; } }

/* ---------- Hero-Animation: Platine ---------- */
.board { margin: 0; position: relative; min-width: 0; }
.board::before { content: ""; position: absolute; inset: 10% 15%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent); }
.circuit { display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; overflow: visible; }
.cb-grid circle { fill: var(--line-strong); opacity: .5; }
.cb-trace { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cb-pulse {
  fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 10 200; stroke-dashoffset: 10;
  filter: drop-shadow(0 0 4px var(--accent));
  animation: cb-flow 3.2s cubic-bezier(.45, 0, .55, 1) infinite;
}
.cb-pulse.p1 { animation-delay: -.4s; animation-duration: 3.8s; }
.cb-pulse.p2 { animation-delay: -1.1s; stroke: var(--ki); filter: drop-shadow(0 0 4px var(--ki)); }
.cb-pulse.p3 { animation-delay: -1.9s; animation-duration: 4.4s; }
.cb-pulse.p4 { animation-delay: -2.6s; animation-duration: 2.9s; }
.cb-pulse.p5 { animation-delay: -.8s; animation-duration: 4.1s; stroke: var(--gen); filter: none; }
.cb-pulse.p6 { animation-delay: -3.1s; animation-duration: 3.5s; }
.cb-pulse.p7 { animation-delay: -1.5s; animation-duration: 5s; stroke: var(--ki); filter: drop-shadow(0 0 4px var(--ki)); }
@keyframes cb-flow {
  0%   { stroke-dashoffset: 10; opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}
.cb-pad { fill: var(--bg); stroke: var(--line-strong); stroke-width: 2; }
.cb-pin { fill: var(--line-strong); }
.cb-chip { fill: var(--panel-2); stroke: var(--line-strong); stroke-width: 1.5; }
.cb-core { fill: var(--panel); stroke: var(--line); stroke-width: 1; }
.cb-glow { fill: var(--accent); opacity: .12; filter: blur(14px); animation: cb-breathe 4s ease-in-out infinite; }
.cb-scan { fill: var(--accent); opacity: .18; animation: cb-scan 3.6s linear infinite; }
.cb-dot { fill: var(--ok); animation: cb-blink 1.6s steps(2, jump-none) infinite; }
@keyframes cb-breathe { 50% { opacity: .28; } }
@keyframes cb-scan { from { transform: translateY(-6px); } to { transform: translateY(96px); } }
@keyframes cb-blink { 50% { opacity: .2; } }
@media (max-width: 980px) { .circuit { max-width: 440px; } }
@media (prefers-reduced-motion: reduce) { .cb-pulse, .cb-scan { display: none; } }

/* ---------- Platinen-Stil auf der ganzen Seite ---------- */
/* Leiterbahn: Linie mit Lötpunkten an den Enden und einem wandernden Signal */
.section::before, .prose .rule {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 9px; transform: translateY(-4px);
  background:
    radial-gradient(circle at 4.5px 4.5px, var(--bg) 2.5px, var(--line-strong) 3px, var(--line-strong) 4.5px, transparent 5px) left center / 9px 9px no-repeat,
    radial-gradient(circle at 4.5px 4.5px, var(--bg) 2.5px, var(--line-strong) 3px, var(--line-strong) 4.5px, transparent 5px) right center / 9px 9px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) center / calc(100% - 18px) 1.5px no-repeat;
}
.section::after {
  content: ""; position: absolute; top: -1px; left: calc(var(--gutter) + 9px); width: 64px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  box-shadow: 0 0 8px var(--accent);
  opacity: 0; animation: trace-run 9s linear infinite;
}
html:not(.sig-js) #blog::after { animation-delay: -1s; }
html:not(.sig-js) #themen::after { animation-delay: -4s; }
html:not(.sig-js) #ueber::after { animation-delay: -6.5s; }
html:not(.sig-js) #kontakt::after { animation-delay: -2.5s; }
html:not(.sig-js) #impressum::after { animation-delay: -7.5s; }
@keyframes trace-run {
  0% { left: calc(var(--gutter) + 9px); opacity: 0; }
  4% { opacity: .9; }
  36% { opacity: .9; }
  40% { left: calc(100% - var(--gutter) - 73px); opacity: 0; }
  100% { left: calc(100% - var(--gutter) - 73px); opacity: 0; }
}
.section { max-width: var(--wrap); margin-inline: auto; }
.prose .rule { position: relative; left: auto; right: auto; transform: none; margin-block: 2.6em; width: 100%; }
.prose .rule::after {
  content: ""; position: absolute; top: 3.5px; left: 9px; width: 56px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--sig-c, var(--accent))); box-shadow: 0 0 8px var(--sig-c, var(--accent));
}
@keyframes rule-go {
  0% { left: 9px; opacity: 0; } 12% { opacity: .95; } 88% { opacity: .95; } 100% { left: calc(100% - 65px); opacity: 0; }
}
html.sig-js .prose .rule.sig::after { animation: rule-go var(--sig-dur) cubic-bezier(.4, 0, .6, 1) var(--sig-delay) 1 both; }

/* Abschnitts-Überschriften: Nummer als Chip mit Pins */
.sec-no {
  position: relative; display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px;
  font: 600 var(--fs-xs)/1 var(--f-mono); color: var(--accent);
  background: var(--panel-2); border: 1.5px solid var(--line-strong); border-radius: 5px;
  box-shadow: 0 0 0 3px var(--bg), 0 0 14px -2px color-mix(in srgb, var(--accent) 45%, transparent);
  align-self: center;
}
.sec-no::before, .sec-no::after {
  content: ""; position: absolute; left: 50%; width: 10px; height: 4px; transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 2px, transparent 2px 4px);
}
.sec-no::before { top: -6px; } .sec-no::after { bottom: -6px; }

/* Beitrags-Überschriften: Lötpunkt + Leiterbahn */
.prose h2 { position: relative; padding-left: 26px; }
.prose h2::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--accent); background: var(--bg);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.prose h2::after {
  content: ""; position: absolute; left: 13px; top: calc(.5em + 5px); width: 9px; height: 1.5px; background: var(--accent);
}
.prose h3 { position: relative; padding-left: 26px; }
.prose h3::before {
  content: ""; position: absolute; left: 2px; top: .52em; width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--bg);
}

/* Code-Boxen: Signal läuft entlang der Kopfzeile, Pins an der Seite */
.code { position: relative; }
.code-head { position: relative; padding-left: 26px; }
.code-head::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%);
  background: var(--ok); box-shadow: 0 0 6px var(--ok); animation: cb-blink 2.4s steps(2, jump-none) infinite;
}
.code-head::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent)); box-shadow: 0 0 6px var(--accent);
  opacity: 0; animation: code-run 5s ease-in-out infinite;
}
@keyframes code-run {
  0% { left: 0; opacity: 0; } 10% { opacity: 1; } 55% { opacity: 1; } 65% { left: calc(100% - 56px); opacity: 0; } 100% { left: calc(100% - 56px); opacity: 0; }
}

/* Callouts: Leiterbahn links mit Lötpunkt und Signal nach unten */
.callout::before {
  content: ""; position: absolute; left: 13px; top: 16px; bottom: 16px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--c), color-mix(in srgb, var(--c) 20%, transparent));
}
.callout::after {
  content: ""; position: absolute; left: 9px; top: 12px; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--c); background: var(--panel); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .section::after, .code-head::after { display: none; }
}

/* ---------- Zufällige Signale (per JS gesteuert) ---------- */
@keyframes trace-go {
  0% { left: calc(var(--gutter) + 9px); opacity: 0; }
  10% { opacity: .95; }
  88% { opacity: .95; }
  100% { left: calc(100% - var(--gutter) - 73px); opacity: 0; }
}
@keyframes code-go {
  0% { left: 0; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 56px); opacity: 0; }
}
@keyframes callout-go {
  0% { top: 16px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 22px); opacity: 0; }
}
/* Laufender Punkt auf der Callout-Leiterbahn (nur mit JS sichtbar) */
.callout-title::before {
  content: ""; position: absolute; left: 12px; top: 16px; width: 4px; height: 12px; border-radius: 2px;
  background: var(--sig-c, var(--c)); box-shadow: 0 0 8px var(--sig-c, var(--c)); opacity: 0;
}
html.sig-js .section.sig::after {
  background: linear-gradient(90deg, transparent, var(--sig-c));
  box-shadow: 0 0 8px var(--sig-c);
  animation: trace-go var(--sig-dur) cubic-bezier(.4, 0, .6, 1) var(--sig-delay) 1 both;
}
html.sig-js .code-head.sig::after {
  background: linear-gradient(90deg, transparent, var(--sig-c));
  box-shadow: 0 0 6px var(--sig-c);
  animation: code-go var(--sig-dur) ease-in-out var(--sig-delay) 1 both;
}
html.sig-js .callout-title.sig::before {
  animation: callout-go var(--sig-dur) ease-in-out var(--sig-delay) 1 both;
}
html.sig-js .cb-pulse.sig {
  stroke: var(--sig-c) !important;
  filter: drop-shadow(0 0 4px var(--sig-c)) !important;
  animation: cb-flow var(--sig-dur) cubic-bezier(.45, 0, .55, 1) var(--sig-delay) 1 both !important;
}
html.sig-js .sig-off.cb-pulse,
html.sig-js .sig-off::after,
html.sig-js .sig-off::before { animation: none !important; }

/* ---------- Feinschliff ---------- */
/* Weicher Wechsel des Farbschemas */
html.theme-fade, html.theme-fade * { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }

/* Suchtreffer */
mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; border-radius: 2px; padding: 0 .1em; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }

/* Prompt-Zeile: Tipp-Cursor */
#prompt-cmd.typing::after { content: ""; display: inline-block; width: .6ch; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--accent); animation: cb-blink 1s steps(2, jump-none) infinite; }
.post-empty .p-sym { color: var(--accent); }
.post-empty .muted { display: inline-block; margin-top: 4px; }

/* Bauteile auf der Platine */
.cb-smd rect { fill: var(--panel-2); stroke: var(--line-strong); stroke-width: 1; }
.cb-smd .cb-smd-cap { fill: var(--line-strong); stroke: none; }

/* Reader: Werkzeuge, EOF, 404 */
.reader-share { font-size: var(--fs-xs); color: var(--muted); }
.reader-share:hover { color: var(--accent); }
.eof { margin-top: 40px; font: 400 var(--fs-xs)/1.4 var(--f-mono); color: var(--muted); }
.eof::before { content: ""; display: block; width: 100%; height: 1px; margin-bottom: 14px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.nf-term { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--code-bg); font: 400 var(--fs-sm)/1.7 var(--f-mono); color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.nf-err { color: var(--sec); }
.reader[data-state="404"] .reader-head { border-bottom-style: dashed; }
.loading::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; background: var(--accent); animation: cb-blink .8s steps(2, jump-none) infinite; }

/* Inhaltsverzeichnis: aktiver Abschnitt */
.toc a.is-active { color: var(--accent); }
.toc li:has(a.is-active)::before { color: var(--accent); }

/* Statuszeile: Uhr */
.sl-clock { font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .sl-clock { display: none; } }

/* Kopfzeile: aktiver Bereich subtil */
.site-nav a:focus-visible { outline-offset: -2px; }

/* Drucken */
@media print {
  .site-header, .statusline, .progress, .skip, .board, .cta-row, .pager, .back, .reader-share, .reader-side, .seg, .search, .listing-foot, .help, #themen, #ueber, #kontakt, #impressum { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  body::before { display: none; }
  .section { border: 0; padding-block: 12pt; }
  .section::before, .section::after { display: none; }
  .prose a::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
  .code, .callout, .table-wrap { break-inside: avoid; border-color: #999; }
  .code pre, .code-ln { font-size: 9pt; }
}
