/* ============================================================
   thatcomputerguy – Stylesheet
   Aufbau: 1 Tokens · 2 Basis · 3 Layout · 4 Header/Nav
           5 Komponenten · 6 Seiten · 7 Footer · 8 Responsive
   Keine externen Ressourcen (DSGVO-freundlich, Systemschriften).
   ============================================================ */

/* ---------- 1. Design-Tokens ---------- */
:root {
  --bg: #f3f4f6;
  --bg-alt: #e9ecef;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --text: #1c2228;
  --text-muted: #56616c;
  --border: #d9dee3;
  --accent: #e8730c;          /* dekorativ */
  --accent-ink: #b35200;      /* Text & Links (AA-Kontrast) */
  --accent-btn: #c45a00;
  --accent-btn-text: #ffffff;
  --accent-soft: #fdf0e4;
  --ok: #2f8a4c;
  --info: #2c6aa8;
  --warn: #b26b00;
  --code-bg: #1e2227;
  --code-text: #e6e8ea;

  --chrome: #1f2226;          /* Header/Footer, angelehnt an Admin-Oberflächen */
  --chrome-2: #2a2e33;
  --chrome-3: #353a40;
  --chrome-text: #e8eaec;
  --chrome-muted: #a5adb5;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16,24,32,.06), 0 4px 16px rgba(16,24,32,.06);
  --shadow-lg: 0 10px 40px rgba(16,24,32,.16);
  --maxw: 1200px;
  --header-h: 64px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15181b; --bg-alt: #1b1f23; --surface: #1f2328; --surface-2: #252a30;
    --text: #e6e9ec; --text-muted: #a1aab3; --border: #333a41;
    --accent-ink: #ff9d47; --accent-btn: #e8730c; --accent-btn-text: #15181b;
    --accent-soft: #33261a; --ok: #5cc27e; --info: #6aa8e6; --warn: #e3a440;
    --code-bg: #111417; --chrome: #101215; --chrome-2: #191c20; --chrome-3: #24282d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15181b; --bg-alt: #1b1f23; --surface: #1f2328; --surface-2: #252a30;
  --text: #e6e9ec; --text-muted: #a1aab3; --border: #333a41;
  --accent-ink: #ff9d47; --accent-btn: #e8730c; --accent-btn-text: #15181b;
  --accent-soft: #33261a; --ok: #5cc27e; --info: #6aa8e6; --warn: #e3a440;
  --code-bg: #111417; --chrome: #101215; --chrome-2: #191c20; --chrome-3: #24282d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
  color-scheme: dark;
}

/* ---------- 2. Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--font); min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; outline: none; }
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--border); padding: .1em .35em; border-radius: 4px; }
pre { position: relative; background: var(--code-bg); color: var(--code-text); padding: 1rem 1.1rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: .9rem; line-height: 1.55; margin: 0 0 1.2em; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--accent-btn); color: var(--accent-btn-text); padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: .75rem; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .6rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.page-head { background: var(--chrome); color: var(--chrome-text); padding: 2.5rem 0 2.25rem; border-bottom: 3px solid var(--accent); }
.page-head h1 { margin-bottom: .3em; }
.page-head p { color: var(--chrome-muted); max-width: 720px; margin: 0; font-size: 1.05rem; }
.page-head .breadcrumbs a, .page-head .breadcrumbs { color: var(--chrome-muted); }

/* ---------- 4. Header & Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--chrome); color: var(--chrome-text); border-bottom: 1px solid var(--chrome-3); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--chrome-text); text-decoration: none; font-weight: 700; font-size: 1.08rem; white-space: nowrap; }
.brand .icon { width: 30px; height: 30px; color: var(--accent); }
.brand small { color: var(--chrome-muted); font-weight: 500; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: .15rem; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: .3rem; padding: .5rem .8rem; color: var(--chrome-text); text-decoration: none; border-radius: var(--radius-sm); font-weight: 500; font-size: .95rem; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav-link:hover, .nav-item.open > .nav-link { background: var(--chrome-2); }
.nav-link[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.nav-link .icon { width: 1em; height: 1em; transition: transform .2s; }
.nav-item.open > .nav-link .icon { transform: rotate(180deg); }

.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 320px; background: var(--chrome-2); border: 1px solid var(--chrome-3); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem; display: none; }
.nav-item.open > .dropdown { display: block; }
.dropdown.mega { min-width: 560px; display: none; grid-template-columns: 1fr 1fr; gap: .25rem; }
.nav-item.open > .dropdown.mega { display: grid; }
.dropdown a { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .7rem; color: var(--chrome-text); text-decoration: none; border-radius: var(--radius-sm); }
.dropdown a:hover { background: var(--chrome-3); }
.dropdown a .icon { color: var(--accent); margin-top: .15rem; }
.dropdown a span { display: block; font-weight: 600; font-size: .93rem; }
.dropdown a small { display: block; color: var(--chrome-muted); font-size: .8rem; line-height: 1.4; }
.dropdown .dropdown-all { grid-column: 1 / -1; border-top: 1px solid var(--chrome-3); margin-top: .25rem; padding-top: .7rem; color: var(--accent); font-weight: 600; font-size: .9rem; }

.header-actions { display: flex; align-items: center; gap: .35rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); color: var(--chrome-text); background: none; border: 0; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--chrome-2); }
.btn-portal { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border: 1px solid var(--chrome-3); border-radius: var(--radius-sm); color: var(--chrome-text); text-decoration: none; font-size: .9rem; font-weight: 600; }
.btn-portal:hover { border-color: var(--accent); }
.nav-toggle { display: none; }

/* ---------- 5. Komponenten ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .97rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn-primary { background: var(--accent-btn); color: var(--accent-btn-text); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(127,127,127,.12); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text-muted); }
.card-link { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-link:hover h3 { color: var(--accent-ink); }
.card .card-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 1rem; }
.card .card-icon .icon { width: 24px; height: 24px; }
.card-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .88rem; color: var(--text-muted); flex-wrap: wrap; }
.more { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent-ink); font-weight: 600; }

.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
.badge-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.badge-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.badge-info { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, transparent); }
.badge .icon { width: .9em; height: .9em; }

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { display: flex; gap: .55rem; align-items: flex-start; padding: .25rem 0; }
.checklist .icon { color: var(--ok); margin-top: .2rem; }

.callout { border: 1px solid var(--border); border-left: 4px solid var(--info); background: var(--surface-2); padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin: 0 0 1.2em; }
.callout.warn { border-left-color: var(--warn); }
.callout.tip { border-left-color: var(--ok); }

.breadcrumbs { font-size: .88rem; margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; gap: .35rem; }
.breadcrumbs li + li::before { content: "/"; opacity: .6; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"], .chip.active { background: var(--accent-btn); border-color: var(--accent-btn); color: var(--accent-btn-text); }

.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .65rem .85rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.copy-btn { position: absolute; top: .45rem; right: .45rem; display: inline-flex; align-items: center; gap: .3rem; background: rgba(255,255,255,.08); color: var(--code-text); border: 1px solid rgba(255,255,255,.15); border-radius: 5px; padding: .25rem .5rem; font: 600 .75rem var(--font); cursor: pointer; opacity: .8; }
.copy-btn:hover { opacity: 1; }

/* Formulare */
.form { display: grid; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field input, .field textarea, .field select { width: 100%; padding: .7rem .85rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field textarea { min-height: 150px; resize: vertical; }
.field-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.field-check input { margin-top: .3rem; accent-color: var(--accent-btn); }
.form-note { font-size: .85rem; color: var(--text-muted); }
.hp { position: absolute; left: -9999px; }
.form-status { padding: .8rem 1rem; border-radius: var(--radius-sm); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.form-status.err { background: color-mix(in srgb, var(--warn) 16%, transparent); }

.search-box { position: relative; max-width: 640px; }
.search-box .icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-box input { width: 100%; padding: .9rem 1rem .9rem 2.8rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 1.05rem; }
.search-results { margin-top: 1.5rem; display: grid; gap: .75rem; }
.result { display: block; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: inherit; }
.result:hover { border-color: var(--accent); }
.result strong { color: var(--accent-ink); display: block; }
.result small { color: var(--text-muted); }
mark { background: var(--accent-soft); color: inherit; padding: 0 .1em; border-radius: 2px; }

.back-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent-btn); color: var(--accent-btn-text); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s; }
.back-top.show { opacity: 1; pointer-events: auto; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }

/* ---------- 6. Seiten ---------- */
/* Hero */
.hero { background: var(--chrome); color: var(--chrome-text); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 300px at 85% 10%, rgba(232,115,12,.22), transparent 70%),
  linear-gradient(transparent 0 calc(100% - 1px), rgba(255,255,255,.04) 0) 0 0 / 100% 32px,
  linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(255,255,255,.04) 0) 0 0 / 32px 100%; pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: clamp(3rem, 8vw, 5.5rem) 0; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.hero h1 .accent { color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: var(--chrome-muted); max-width: 560px; margin-bottom: 1.6rem; }
.hero .eyebrow { color: var(--accent); }
.hero-points { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--chrome-muted); font-size: .92rem; }
.hero-points li { display: flex; gap: .4rem; align-items: center; }
.hero-points .icon { color: var(--accent); }
.hero .btn-ghost { color: var(--chrome-text); }

.console { background: var(--chrome-2); border: 1px solid var(--chrome-3); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-family: var(--mono); font-size: .84rem; overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; border-bottom: 1px solid var(--chrome-3); color: var(--chrome-muted); font-size: .78rem; }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--chrome-3); }
.console-bar span { margin-left: .5rem; }
.console-body { padding: 1rem 1.1rem; display: grid; gap: .55rem; }
.console-row { display: flex; justify-content: space-between; gap: 1rem; }
.console-row b { font-weight: 500; color: var(--chrome-text); }
.console-row em { font-style: normal; color: #6fd38f; }
.console-row em.warn { color: #f2b45a; }
.console-meter { display: block; width: 100%; height: 6px; }
.console-meter .bg { fill: var(--chrome-3); }
.console-meter .fg { fill: var(--accent); }

/* Portal-Teaser */
.portal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: center; box-shadow: var(--shadow); }
.portal-features { display: grid; gap: 1rem; }
.feature { display: flex; gap: .9rem; align-items: flex-start; }
.feature .card-icon { margin: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.feature h3 { font-size: 1rem; margin: 0 0 .15rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: .93rem; }

.cta { background: var(--chrome); color: var(--chrome-text); border-radius: var(--radius); padding: clamp(1.8rem, 5vw, 3rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; border-left: 4px solid var(--accent); }
.cta h2 { margin: 0 0 .3rem; }
.cta p { color: var(--chrome-muted); margin: 0; }

/* Produkt-Detail */
.detail { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.aside-card { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.aside-card dl { margin: 0 0 1.2rem; display: grid; gap: .6rem; }
.aside-card dt { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.aside-card dd { margin: 0; font-weight: 600; }

/* Leitfäden */
.subcat-block { margin-bottom: 2.5rem; }
.subcat-block > h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 1.3rem; border-bottom: 1px solid var(--border); padding-bottom: .5rem; margin-bottom: 1rem; }
.subcat-block > h2 a { font-size: .88rem; font-weight: 600; text-decoration: none; }
.article-list { display: grid; gap: .75rem; }
.article-item { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: inherit; }
.article-item:hover { border-color: var(--accent); }
.article-item strong { font-size: 1.03rem; }
.article-item:hover strong { color: var(--accent-ink); }
.article-item p { grid-column: 1; margin: 0; color: var(--text-muted); font-size: .93rem; }
.article-item .meta { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.subcat-list { list-style: none; padding: 0; margin: .25rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }

.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.sidenav { position: sticky; top: calc(var(--header-h) + 1.5rem); font-size: .92rem; max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; }
.sidenav h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 1.2rem 0 .5rem; }
.sidenav h4:first-child { margin-top: 0; }
.sidenav ul { list-style: none; padding: 0; margin: 0; }
.sidenav a { display: block; padding: .3rem .7rem; border-left: 2px solid var(--border); color: var(--text-muted); text-decoration: none; }
.sidenav a:hover { color: var(--text); }
.sidenav a.active { border-left-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.prose { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem); max-width: 820px; }
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .3em; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.article-meta .badge { background: var(--chrome-2); border-color: var(--chrome-3); color: var(--chrome-muted); }
.toc { margin-bottom: 1.5rem; padding: 1rem 1.2rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.toc strong { display: block; font-size: .85rem; margin-bottom: .4rem; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .93rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; max-width: 820px; }
.pager a { display: block; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: inherit; }
.pager a:hover { border-color: var(--accent); }
.pager small { color: var(--text-muted); display: flex; align-items: center; gap: .3rem; }
.pager strong { color: var(--accent-ink); }
.pager .next { text-align: right; grid-column: 2; }
.pager .next small { justify-content: flex-end; }
.disclaimer { max-width: 820px; margin-top: 1.5rem; font-size: .85rem; color: var(--text-muted); }

/* Login / Portal */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.auth-card { max-width: 440px; width: 100%; }
.auth-card .card-icon { margin-bottom: .75rem; }

.notfound { text-align: center; padding: 5rem 1rem; }
.notfound .code { font: 700 5rem/1 var(--mono); color: var(--accent); }
.noscript { padding: 3rem 16px; }

/* ---------- 7. Footer ---------- */
.site-footer { background: var(--chrome); color: var(--chrome-muted); font-size: .92rem; margin-top: auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; padding: 3rem 0 2rem; }
.site-footer h3 { color: var(--chrome-text); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--chrome-muted); text-decoration: none; }
.site-footer a:hover { color: var(--chrome-text); text-decoration: underline; }
.site-footer .brand { margin-bottom: .8rem; }
.footer-bottom { border-top: 1px solid var(--chrome-3); padding: 1.25rem 0 1.5rem; display: grid; gap: .5rem; font-size: .82rem; }

/* ---------- 8. Responsive ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--chrome); flex-direction: column; align-items: stretch; padding: 1rem 16px 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; margin: 0; }
  .nav.open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; gap: .2rem; }
  .nav-link { width: 100%; justify-content: space-between; padding: .85rem 1rem; font-size: 1.02rem; }
  .dropdown, .dropdown.mega { position: static; min-width: 0; box-shadow: none; border: 0; background: var(--chrome-2); margin: .25rem 0 .5rem; grid-template-columns: 1fr; }
  .header-actions { margin-left: auto; }
  .nav .btn-portal { margin-top: 1rem; justify-content: center; padding: .8rem; }
  body.nav-open { overflow: hidden; }
  .hero-inner { grid-template-columns: 1fr; }
  .detail, .article-layout, .auth-wrap, .portal { grid-template-columns: minmax(0, 1fr); }
  .aside-card, .sidenav { position: static; max-height: none; }
  .sidenav { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1021px) { .header-actions .btn-portal-mobile { display: none; } .nav .btn-portal { display: none; } }
@media (max-width: 1020px) { .header-actions .btn-portal { display: none; } }
@media (max-width: 560px) {
  .brand small { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .article-item { grid-template-columns: 1fr; }
  .article-item .meta { grid-row: auto; grid-column: 1; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .console { font-size: .78rem; }
}
@media print {
  .site-header, .site-footer, .back-top, .sidenav, .pager, .copy-btn { display: none !important; }
  .page-head { background: none; color: #000; border: 0; }
  .prose { border: 0; padding: 0; }
}

/* Hilfsklassen (statt Inline-Styles → strenge CSP möglich) */
.mt { margin-top: 1.5rem; }
.btn-row.center { justify-content: center; }
.latest-head { margin: 2.5rem 0 1rem; }
@media (min-width: 1021px) { .nav-item:nth-last-child(-n+3) > .dropdown { left: auto; right: 0; } }
