/* ============================================================
   ProSec Service-Portal – Frontend
   Design-Tokens & Basis
   ============================================================ */

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/Archivo-Variable.woff2') format('woff2');
    font-weight: 400 800;
    font-display: swap;
}
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('../fonts/IBMPlexMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

:root {
    /* Farbwelt */
    --ink:          #1F2328;   /* Anthrazit: Header, Footer, Headlines */
    --ink-soft:     #3A4046;
    --paper:        #F4F5F6;   /* Seitenhintergrund */
    --surface:      #FFFFFF;
    --text:         #24292E;
    --text-muted:   #6B7280;
    --line:         #DDE0E3;   /* 1-px-Trennlinien */
    --line-strong:  #C3C8CD;
    --accent:       #D15000;   /* einzige Akzentfarbe */
    --accent-dark:  #A84000;
    --accent-tint:  #FBEEE4;
    /* Semantische Statusfarben, gedeckt */
    --ok:           #2E6B3F;
    --ok-tint:      #EAF3ED;
    --warn:         #8A6410;
    --warn-tint:    #F7F1E1;
    --err:          #9A2B2B;
    --err-tint:     #F8ECEC;

    /* Typografie */
    --font-head: 'Archivo', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

    /* Geometrie */
    --radius: 4px;
    --container: 1160px;
    --speed: 160ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: 90px; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
}

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

/* Fokus sichtbar, WCAG */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

a { color: var(--accent-dark); text-decoration: none; transition: color var(--speed); }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-weight: 700;
}
h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h3 { font-size: 1.1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 40px 0 64px; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.lead { color: var(--text-muted); max-width: 62ch; margin-top: 10px; }
.muted { color: var(--text-muted); }

/* ── Spec-Labels (Signatur-Element) ─────────────────────── */
.spec {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1;
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--surface);
    color: var(--ink-soft);
    white-space: nowrap;
}
.spec--type {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.06em;
}
.spec--locked {
    border-color: var(--accent);
    color: var(--accent-dark);
    background: var(--accent-tint);
}

/* ── Announcement-Banner ────────────────────────────────── */
.announcement {
    background: var(--ink);
    border-bottom: 2px solid var(--accent);
}
.announcement__inner {
    display: flex; align-items: center; gap: 14px;
    padding-top: 9px; padding-bottom: 9px;
    font-size: 0.88rem;
}
.announcement__label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    flex-shrink: 0;
}
.announcement a { color: #E8EAEC; }
.announcement a:hover { color: #fff; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
    background: var(--ink);
    position: sticky; top: 0; z-index: 40;
}
.site-header__inner {
    display: flex; align-items: center; gap: 32px;
    height: 64px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { text-decoration: none; }
.brand__mark {
    width: 12px; height: 26px;
    background: var(--accent);
    flex-shrink: 0;
}
.brand__logo { height: 32px; width: auto; max-width: 240px; display: block; }
.brand__name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.02rem;
    color: #fff;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
    color: #B8BEC4;
    font-size: 0.92rem;
    padding: 8px 13px;
    border-radius: var(--radius);
    transition: color var(--speed), background var(--speed);
}
.main-nav a:hover { color: #fff; text-decoration: none; }
.main-nav a.is-active {
    color: #fff;
    box-shadow: inset 0 -2px 0 var(--accent);
    border-radius: 0;
}
.site-header__actions { display: flex; align-items: center; gap: 16px; }
.header-search { position: relative; }
.header-search input {
    width: 210px;
    background: var(--ink-soft);
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.88rem;
    padding: 8px 12px;
    font-family: inherit;
    transition: border-color var(--speed), width var(--speed);
}
.header-search input::placeholder { color: #9AA1A8; }
.header-search input:focus { border-color: var(--accent); outline: none; width: 260px; }
.header-search__results {
    position: absolute; top: calc(100% + 6px); right: 0;
    width: 380px; max-width: 88vw;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(31, 35, 40, 0.18);
    max-height: 60vh; overflow-y: auto;
    z-index: 60;
}
.header-search__results h3 {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 16px 4px;
    font-weight: 400;
}
.header-search__results a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}
.header-search__results a:last-child { border-bottom: none; }
.header-search__results a:hover,
.header-search__results a.is-focused { background: var(--accent-tint); text-decoration: none; }
.header-search__results .no-results { padding: 14px 16px; font-size: 0.88rem; color: var(--text-muted); }
.header-user { color: #B8BEC4; font-size: 0.85rem; white-space: nowrap; }
.header-user:hover { color: #fff; text-decoration: none; }
.header-user--admin {
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    color: #fff;
    padding: 5px 11px;
}
.header-user--admin:hover { background: var(--accent); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 72px 0 56px;
}
.hero h1 { max-width: 26ch; }
.hero-search { display: flex; max-width: 560px; margin-top: 28px; }
.hero-search input {
    flex: 1;
    border: 1px solid var(--line-strong);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 13px 16px;
    font-size: 0.95rem;
    font-family: inherit;
}
.hero-search input:focus { outline: none; border-color: var(--accent); }
.hero-search button {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0 26px;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: background var(--speed);
}
.hero-search button:hover { background: var(--accent-dark); }

/* ── Einstiegskarten ────────────────────────────────────── */
.entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    background: var(--surface);
}
.entry-card {
    padding: 30px 28px 26px;
    border-right: 1px solid var(--line);
    color: var(--text);
    display: flex; flex-direction: column; gap: 8px;
    transition: background var(--speed);
    position: relative;
}
.entry-card:last-child { border-right: none; }
.entry-card::before {
    content: "";
    position: absolute; top: -1px; left: 0; right: 0;
    height: 2px;
    background: transparent;
    transition: background var(--speed);
}
.entry-card:hover { background: #FAFBFB; text-decoration: none; color: var(--text); }
.entry-card:hover::before { background: var(--accent); }
.entry-card p { color: var(--text-muted); font-size: 0.92rem; flex: 1; }
.entry-card__cta {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--accent-dark);
    letter-spacing: 0.04em;
}
.entry-card:hover .entry-card__cta { color: var(--accent); }

/* ── Startseite: Splits & Listen ────────────────────────── */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 10px; margin-bottom: 18px;
}
.section-head--gap { margin-top: 40px; }
.section-head__more { font-size: 0.85rem; font-family: var(--font-mono); }
.news-teaser { padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-teaser:last-of-type { border-bottom: none; }
.news-teaser__date { margin-bottom: 6px; }
.news-teaser h3 { margin-bottom: 4px; }
.news-teaser h3 a { color: var(--ink); }
.news-teaser p { color: var(--text-muted); font-size: 0.92rem; }
.link-list { list-style: none; }
.link-list li {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.94rem;
}
.link-list li:last-child { border-bottom: none; }
.link-list a { color: var(--text); }
.link-list a:hover { color: var(--accent-dark); }
.link-list__meta { display: flex; gap: 6px; flex-shrink: 0; }
.link-list--compact li { padding: 7px 0; font-size: 0.88rem; }

/* ── Seitenkopf & Sidebar-Layout ────────────────────────── */
.page-head { margin-bottom: 32px; }
.layout-sidebar { display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: start; }
.filter-panel__title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 400;
    margin: 22px 0 8px;
}
.filter-panel__title:first-child { margin-top: 0; }
.cat-nav { list-style: none; }
.cat-nav a {
    display: block;
    padding: 6px 10px;
    font-size: 0.9rem;
    color: var(--text);
    border-left: 2px solid transparent;
    transition: border-color var(--speed), color var(--speed);
}
.cat-nav a:hover { color: var(--accent-dark); text-decoration: none; }
.cat-nav a.is-active {
    border-left-color: var(--accent);
    color: var(--accent-dark);
    font-weight: 600;
}
.cat-nav ul { list-style: none; margin-left: 12px; }

/* ── Downloads ──────────────────────────────────────────── */
.list-search { display: flex; gap: 0; margin-bottom: 22px; }
.list-search--standalone { max-width: 560px; margin-bottom: 32px; }
.list-search input {
    flex: 1;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 10px 14px;
    font-size: 0.92rem;
    font-family: inherit;
}
.list-search input:only-child { border-radius: var(--radius); }
.list-search input:focus { outline: none; border-color: var(--accent); }
.list-search button {
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    padding: 0 20px;
    font-size: 0.88rem;
    font-family: var(--font-head);
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: background var(--speed);
}
.list-search button:hover { background: var(--ink-soft); }

.dl-list { list-style: none; border: 1px solid var(--line); background: var(--surface); }
.dl-item {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    padding: 22px 26px;
    border-bottom: 1px solid var(--line);
}
.dl-item:last-child { border-bottom: none; }
.dl-item__cat {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.dl-item__title { font-size: 1.05rem; margin-bottom: 6px; }
.dl-item__desc { font-size: 0.9rem; color: var(--text-muted); max-width: 64ch; margin-bottom: 12px; }
.dl-item__desc p { margin-bottom: 6px; }
.dl-item__desc p:last-child { margin-bottom: 0; }
.dl-item__specs { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-item__files { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.dl-file {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 9px 12px;
    color: var(--text);
    font-size: 0.88rem;
    transition: border-color var(--speed), background var(--speed);
}
.dl-file:hover {
    border-color: var(--accent);
    background: var(--accent-tint);
    text-decoration: none;
    color: var(--ink);
}
.dl-file__label { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dl-file__label .spec--type { flex-shrink: 0; }
.dl-item__nofile { font-size: 0.85rem; color: var(--text-muted); }

/* ── Leerzustand / Meldungen ────────────────────────────── */
.empty-state {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 36px 28px;
    background: var(--surface);
    margin-bottom: 24px;
}
.empty-state h2 { margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); font-size: 0.94rem; }
.empty { color: var(--text-muted); font-size: 0.92rem; }
.alert {
    border: 1px solid;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 0.92rem;
    margin: 16px 0;
}
.alert--error { border-color: var(--err); background: var(--err-tint); color: var(--err); }
.alert--success { border-color: var(--ok); background: var(--ok-tint); color: var(--ok); }

/* ── Wiki ───────────────────────────────────────────────── */
.article-list { list-style: none; }
.article-item {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 20px 24px;
    margin-bottom: -1px;
}
.article-item__cat {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.article-item h2, .article-item h3 { font-size: 1.05rem; margin-bottom: 5px; }
.article-item a { color: var(--ink); }
.article-item a:hover { color: var(--accent-dark); }
.article-item__teaser { font-size: 0.9rem; color: var(--text-muted); max-width: 68ch; margin-bottom: 10px; }
.article-item__specs { display: flex; gap: 6px; flex-wrap: wrap; }

.breadcrumbs {
    display: flex; gap: 8px; align-items: center;
    font-size: 0.82rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 26px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-dark); }

.article-layout { display: grid; grid-template-columns: 1fr 250px; gap: 48px; align-items: start; }
.wiki-article {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 40px 44px;
}
.wiki-article__head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 26px; }
.wiki-article__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.print-link {
    background: none; border: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-dark);
    cursor: pointer;
    padding: 4px 2px;
}
.print-link:hover { color: var(--accent); text-decoration: underline; }
.wiki-article__tags { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 30px; display: flex; gap: 6px; }
.tag {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    padding: 3px 8px;
    color: var(--text-muted);
}

.article-side { position: sticky; top: 90px; }
.toc { border-left: 2px solid var(--line-strong); padding-left: 16px; margin-bottom: 30px; }
.toc__title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 10px;
}
.toc ul { list-style: none; }
.toc li { margin: 6px 0; font-size: 0.86rem; line-height: 1.4; }
.toc__level-3 { padding-left: 14px; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--accent-dark); }

/* ── Rich-Text (Markdown-Ausgabe) ───────────────────────── */
.rich-text h2 {
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.rich-text h2:first-child { margin-top: 0; }
.rich-text h3 { margin: 24px 0 10px; }
.rich-text p { margin-bottom: 14px; }
.rich-text ul, .rich-text ol { margin: 0 0 16px 22px; }
.rich-text li { margin-bottom: 6px; }
.rich-text code {
    font-family: var(--font-mono);
    font-size: 0.84em;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 1px 5px;
}
.rich-text pre {
    background: var(--ink);
    color: #E8EAEC;
    border-radius: var(--radius);
    padding: 16px 18px;
    overflow-x: auto;
    margin-bottom: 18px;
    font-size: 0.85rem;
    line-height: 1.55;
}
.rich-text pre code { background: none; border: none; padding: 0; color: inherit; }
.rich-text blockquote {
    border-left: 3px solid var(--accent);
    background: var(--accent-tint);
    padding: 12px 18px;
    margin-bottom: 16px;
}
.rich-text blockquote p:last-child { margin-bottom: 0; }
.rich-text table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 0.9rem; }
.rich-text th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 400;
    border-bottom: 2px solid var(--line-strong);
    padding: 8px 10px;
}
.rich-text td { border-bottom: 1px solid var(--line); padding: 9px 10px; }
.rich-text img { max-width: 100%; height: auto; border: 1px solid var(--line); }
.rich-text hr { border: none; border-top: 1px solid var(--line-strong); margin: 28px 0; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-topic { margin-bottom: 36px; }
.faq-topic__title {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-strong);
    margin-bottom: 0;
}
.faq-entry {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: none;
}
.faq-entry summary {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    padding: 16px 22px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
    font-size: 0.98rem;
    transition: color var(--speed);
}
.faq-entry summary::-webkit-details-marker { display: none; }
.faq-entry summary::before {
    content: "+";
    font-family: var(--font-mono);
    color: var(--accent);
    margin-right: 12px;
    flex-shrink: 0;
}
.faq-entry[open] summary::before { content: "–"; }
.faq-entry summary:hover { color: var(--accent-dark); }
.faq-entry__q { flex: 1; }
.faq-entry__anchor {
    font-family: var(--font-mono);
    color: var(--line-strong);
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity var(--speed);
}
.faq-entry summary:hover .faq-entry__anchor { opacity: 1; }
.faq-entry__a { padding: 2px 22px 20px 44px; max-width: 75ch; }
.faq-entry:target { border-left: 3px solid var(--accent); }

/* ── News ───────────────────────────────────────────────── */
.news-list { border-top: 1px solid var(--line-strong); }
.news-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 28px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.news-row__meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.news-row__body h2 { font-size: 1.15rem; margin-bottom: 6px; }
.news-row__body a { color: var(--ink); }
.news-row__body a:hover { color: var(--accent-dark); }
.news-row__body p { color: var(--text-muted); font-size: 0.94rem; max-width: 70ch; }
.news-article { background: var(--surface); border: 1px solid var(--line); padding: 40px 44px; max-width: 860px; }
.news-article__meta { margin-bottom: 14px; }
.news-article header { margin-bottom: 24px; }
.news-article__image { max-width: 100%; height: auto; border: 1px solid var(--line); margin-bottom: 24px; }

/* ── Suche ──────────────────────────────────────────────── */
.result-group { margin-bottom: 40px; }
.result-group__title {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-strong);
    margin-bottom: 14px;
}
.result-group__title span { color: var(--text-muted); font-weight: 400; font-size: 0.9em; }

/* ── Formulare / Login ──────────────────────────────────── */
.auth-box {
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    padding: 36px 38px;
    margin: 30px auto;
}
.form label { display: block; font-weight: 600; font-size: 0.88rem; margin: 18px 0 6px; color: var(--ink); }
.form input[type="text"],
.form input[type="password"],
.form input[type="email"],
.form input[type="date"],
.form input[type="search"],
.form select,
.form textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--speed);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 0.88rem; margin: 16px 0; cursor: pointer; }
.check input { width: auto; margin-top: 3px; accent-color: var(--accent); }

.btn {
    display: inline-block;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 9px 18px;
    cursor: pointer;
    transition: border-color var(--speed), background var(--speed), color var(--speed);
    text-align: center;
}
.btn:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--block { display: block; width: 100%; margin-top: 18px; }

/* ── Pagination ─────────────────────────────────────────── */
.pagination { display: flex; gap: 4px; margin-top: 28px; flex-wrap: wrap; }
.page-link {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--text);
    background: var(--surface);
}
.page-link:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }
.page-link.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-link.is-disabled { color: var(--line-strong); pointer-events: none; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--ink); margin-top: 48px; border-top: 3px solid var(--accent); }
.site-footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 40px;
    padding-top: 40px; padding-bottom: 44px;
    color: #9AA1A8;
    font-size: 0.88rem;
}
.site-footer__brand { color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: 6px; }
.site-footer__meta a { color: #B8BEC4; }
.site-footer__nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer__nav a { color: #B8BEC4; }
.site-footer a:hover { color: #fff; }

/* ── Wartung / Minimal ──────────────────────────────────── */
.minimal-page { display: grid; place-items: center; min-height: 100vh; background: var(--paper); }
.minimal-page__main { width: 100%; max-width: 560px; padding: 24px; }
.maintenance { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 44px 46px; }
.maintenance h1 { margin-bottom: 12px; }
.maintenance p { color: var(--text-muted); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
    .layout-sidebar { grid-template-columns: 1fr; gap: 28px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-side { position: static; order: -1; }
    .split { grid-template-columns: 1fr; gap: 36px; }
    .site-footer__inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
    .site-header__inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
    .main-nav { order: 3; width: 100%; overflow-x: auto; }
    .header-search input, .header-search input:focus { width: 160px; }
    .dl-item { grid-template-columns: 1fr; }
    .news-row { grid-template-columns: 1fr; gap: 8px; }
    .news-row__meta { flex-direction: row; }
    .wiki-article, .news-article { padding: 26px 20px; }
    .entry-card { border-right: none; border-bottom: 1px solid var(--line); }
    .entry-card:last-child { border-bottom: none; }
}
@media (max-width: 400px) {
    .container { padding: 0 16px; }
    .hero { padding: 44px 0 36px; }
    .hero-search { flex-direction: column; }
    .hero-search input { border-right: 1px solid var(--line-strong); border-radius: var(--radius); margin-bottom: 8px; }
    .hero-search button { border-radius: var(--radius); padding: 12px; }
}

/* ── Druckansicht (Wiki-Artikel) ────────────────────────── */
@media print {
    .site-header, .site-footer, .announcement, .article-side,
    .breadcrumbs, .print-link, .header-search, .alert { display: none !important; }
    body { background: #fff; font-size: 11pt; }
    .wiki-article { border: none; padding: 0; }
    .container { max-width: none; padding: 0; }
    .rich-text pre { background: #f2f2f2; color: #000; border: 1px solid #ccc; }
    a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
    .spec { border: 1px solid #999; }
}
