/* bakteriophage.ch – Schweizer Lexikon
   Hell, ruhig, typografisch. Keine externen Schriften oder Dienste. */

:root {
    --bg: #fbfaf7;
    --paper: #ffffff;
    --ink: #15171c;
    --ink-2: #3b404a;
    --muted: #5d6470;
    --line: #e4e1da;
    --line-2: #d3cfc6;
    --red: #c4261d;
    --red-soft: #fbeceb;
    --note: #f4f1ea;
    --maxw: 1160px;
    --font: "Helvetica Neue", "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --serif: "Iowan Old Style", "Charter", "Georgia", "Times New Roman", serif;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #121317; --paper: #1a1c21; --ink: #eceae5; --ink-2: #c9c7c1; --muted: #9c9a94;
        --line: #2b2d33; --line-2: #3a3c43; --red: #ff6a5f; --red-soft: #2c1c1b; --note: #1f2126;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #121317; --paper: #1a1c21; --ink: #eceae5; --ink-2: #c9c7c1; --muted: #9c9a94;
    --line: #2b2d33; --line-2: #3a3c43; --red: #ff6a5f; --red-soft: #2c1c1b; --note: #1f2126;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 400 18px/1.65 var(--font);
    text-rendering: optimizeLegibility;
}
a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; }
.mark svg { width: 26px; height: 26px; flex: none; }
.mark small { font-weight: 400; color: var(--muted); font-size: 0.82rem; margin-left: 2px; }
.top .wrap > nav { display: flex; gap: 22px; font-size: 0.92rem; margin-left: auto; }
.top .wrap > nav a { color: var(--ink-2); text-decoration: none; }
.top .wrap > nav a:hover { color: var(--red); }
@media (max-width: 760px) { .top .wrap > nav { display: none; } }
.lang { display: flex; gap: 2px; margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--line); font-size: 0.82rem; font-weight: 600; }
.lang a { color: var(--muted); text-decoration: none; padding: 4px 6px; border-radius: 3px; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { color: var(--red); }
@media (max-width: 760px) { .lang { margin-left: auto; border-left: 0; padding-left: 0; } }

/* Menü-Knopf und Dropdown (nur auf schmalen Bildschirmen) */
.menu-btn, .menu-panel { display: none; }
@media (max-width: 900px) {
    .toc-mobile { display: none !important; }
    .top .wrap > nav { display: none; }
    .lang { margin-left: auto; border-left: 0; padding-left: 0; }
    .menu-btn {
        display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding: 8px 11px;
        font: 600 0.86rem var(--font); color: var(--ink); background: var(--paper);
        border: 1px solid var(--line-2); border-radius: 4px; cursor: pointer;
    }
    .menu-btn[aria-expanded="true"] { border-color: var(--ink); }
    .menu-icon { display: inline-block; width: 16px; }
    .menu-icon i { display: block; height: 2px; margin: 3px 0; background: currentColor; border-radius: 1px; transition: transform 0.2s ease, opacity 0.2s ease; }
    .menu-btn[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
    .menu-btn[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
    .menu-btn[aria-expanded="true"] .menu-icon i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
    .menu-panel {
        display: block; position: absolute; left: 0; right: 0; top: 100%;
        max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain;
        background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 22px 30px -22px rgba(0, 0, 0, 0.4);
        padding: 6px 16px 18px;
    }
    .menu-panel[hidden] { display: none; }
    .menu-panel ol { list-style: none; margin: 0; padding: 0; width: 100%; max-width: none; border: 0; counter-reset: m; }
    .menu-panel li { margin: 0; }
    .menu-panel a { display: flex; gap: 14px; align-items: baseline; padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1rem; }
    .menu-panel li:last-child a { border-bottom: 0; }
    .menu-panel a::before { counter-increment: m; content: counter(m, decimal-leading-zero); min-width: 1.6em; font-size: 0.78rem; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
    .menu-panel a.on { color: var(--red); font-weight: 600; }
}
@media (max-width: 420px) {
    .menu-label { display: none; }
    .menu-btn { padding: 9px 10px; margin-left: 4px; }
    .lang { gap: 0; }
    .lang a { padding: 4px 5px; }
    .mark { display: grid; grid-template-columns: auto auto; column-gap: 9px; row-gap: 0; align-items: center; font-size: 1rem; line-height: 1.15; }
    .mark svg { grid-row: span 2; }
    .mark small { margin-left: 0; font-size: 0.72rem; line-height: 1.1; }
}

/* ---------- Titel ---------- */
.masthead { border-bottom: 1px solid var(--line); padding: 64px 0 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--red); }
.masthead h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 18ch; }
.masthead .lede { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; margin: 22px 0 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 28px; font-size: 0.86rem; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 8px; }
.meta span::before { content: ""; width: 5px; height: 5px; background: var(--line-2); border-radius: 50%; }
.meta span:first-child::before { display: none; }

/* ---------- Kurz-Fakten ---------- */
/* Kopfbereich: Titel links, Kennzahlen rechts daneben */
.masthead-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: end; }
.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 14px 0 0; }
.fact-live + .fact + .fact { border-left: 1px solid var(--line); padding-left: 20px; }
.fact strong { flex: none; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.fact-txt, .fact > span { font-size: 0.85rem; line-height: 1.45; color: var(--ink-2); }
.fact-txt b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
/* Live-Eintrag als hervorgehobene Karte */
.fact-live {
    grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 4px;
    background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 6px;
    box-shadow: 0 14px 30px -22px rgba(196, 38, 29, 0.6);
}
.facts .fact-live strong { min-width: 0; font-size: 2.7rem; color: var(--red); letter-spacing: -0.03em; }
.fact-live .fact-txt { font-size: 0.9rem; color: var(--ink); }
.live-tag { display: flex; align-items: center; gap: 5px; margin: 0 0 4px; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.live-dot { position: relative; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--red); opacity: 0; animation: live-ping 2.6s ease-out infinite; }
@keyframes live-ping { 0% { transform: scale(0.4); opacity: 0.7; } 80%, 100% { transform: scale(1.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; } }
.live-src { display: block; margin-top: 4px; font-size: 0.72rem; color: var(--muted); }
.live-src a { color: var(--muted); }
.live-src a:hover { color: var(--red); }
@media (max-width: 980px) {
    .masthead-grid { grid-template-columns: 1fr; gap: 28px; }
    .facts { max-width: 520px; }
}

/* ---------- Layout mit Inhaltsverzeichnis ---------- */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding: 48px 0 80px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 0.9rem; }
.toc h2 { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--red); border-left-color: var(--red); font-weight: 600; }
.toc-mobile { display: none; }
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
    .toc { display: none; }
    .toc-mobile { display: block; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; margin-bottom: 36px; font-size: 0.95rem; }
    .toc-mobile summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
    .toc-mobile summary::-webkit-details-marker { display: none; }
    .toc-mobile summary::after { content: "+"; color: var(--red); font-weight: 700; }
    .toc-mobile[open] summary::after { content: "–"; }
    .toc-mobile ol { margin: 0; padding: 0 16px 14px 34px; }
    .toc-mobile li { padding: 4px 0; }
    .toc-mobile a { color: var(--ink-2); }
}

/* ---------- Artikel ---------- */
.article section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.article section:last-child { border-bottom: 0; margin-bottom: 0; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 20px; display: flex; gap: 14px; align-items: baseline; }
.article h2 .num { font-size: 0.9rem; color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 1.6em; }
.article h3 { font-size: 1.18rem; margin: 30px 0 10px; }
.article p, .article li { max-width: 68ch; color: var(--ink-2); }
.article ul { padding-left: 1.2em; margin: 0 0 1em; }
.article li { margin-bottom: 0.45em; }
.article li::marker { color: var(--red); }
sup.ref { font-size: 0.68em; line-height: 0; margin-left: 1px; }
sup.ref a { text-decoration: none; font-weight: 600; }

.answer { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--red); padding: 18px 22px; margin: 0 0 24px; max-width: 68ch; }
.answer p { margin: 0; color: var(--ink); font-size: 1.04rem; }
.answer .label { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 6px; }

.note { background: var(--note); padding: 16px 20px; font-size: 0.94rem; max-width: 68ch; margin: 20px 0 0; border-radius: 4px; }
.note p { margin: 0; color: var(--ink-2); }

/* Zeitleiste */
.timeline { list-style: none; padding: 0; margin: 8px 0 0; border-left: 2px solid var(--line); max-width: 68ch; }
.timeline li { position: relative; padding: 0 0 20px 26px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; background: var(--paper); border: 2px solid var(--red); border-radius: 50%; }
.timeline time { display: block; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Institutionen */
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
.place { background: var(--paper); padding: 20px 22px; }
.place h3 { margin: 0 0 4px; font-size: 1.05rem; }
.place .where { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; display: block; }
.place p { font-size: 0.95rem; margin: 0; }
@media (max-width: 640px) { .places { grid-template-columns: 1fr; } }

/* Fragen */
.faq details { border-top: 1px solid var(--line); max-width: 68ch; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 1.06rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--red); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 18px; }
.faq .a p { margin: 0 0 0.6em; }

/* Das Wichtigste in 30 Sekunden */
.summary { margin: 40px 0 0; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 28px 32px; }
.summary h2 { font-size: 1.35rem; margin-bottom: 16px; }
.summary ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 36px; }
.summary li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; }
.summary li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 12px; background: var(--red); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.summary li strong { display: block; color: var(--ink); margin-bottom: 2px; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .summary { padding: 22px 18px; margin-top: 28px; } .summary ul { grid-template-columns: 1fr; } }

.btn-line { display: inline-flex; align-items: center; gap: 8px; font: 600 0.92rem var(--font); color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: 3px; padding: 9px 16px; cursor: pointer; text-decoration: none; }
.btn-line:hover { background: var(--ink); color: var(--bg); }

/* Checkliste */
.checklist { margin-top: 28px; max-width: 68ch; background: var(--paper); border: 1px solid var(--line); padding: 22px 26px; }
.checklist h3 { margin-top: 0; }
.checklist ul { list-style: none; padding: 0; margin: 0 0 18px; }
.checklist li { position: relative; padding: 10px 0 10px 34px; border-top: 1px dashed var(--line-2); margin: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border: 2px solid var(--ink-2); border-radius: 3px; }

/* Über diese Seite */
.about { margin: 0; max-width: 68ch; }
.about dt { font-weight: 700; color: var(--ink); margin-top: 18px; }
.about dt:first-child { margin-top: 0; }
.about dd { margin: 4px 0 0; color: var(--ink-2); }

/* Phagen-Zeichnung */
.anatomy { max-width: 560px; }
.a-head { fill: var(--red-soft); stroke: var(--red); stroke-width: 3; stroke-linejoin: round; }
.a-dna { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; opacity: 0.8; }
.a-tail { fill: var(--note); stroke: var(--ink-2); stroke-width: 2.5; }
.a-tail-lines { stroke: var(--ink-2); stroke-width: 1.5; }
.a-plate { fill: var(--ink-2); }
.a-fiber { fill: none; stroke: var(--ink-2); stroke-width: 2.5; stroke-linecap: round; }
.a-lead { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.a-dot { fill: var(--ink); }
.a-label { fill: var(--ink); font: 700 17px var(--font); }
.a-sub { fill: var(--muted); font: 400 14px var(--font); }

/* Erfahrungsberichte */
.reports { display: grid; gap: 14px; margin: 24px 0 8px; max-width: 68ch; }
.reports .empty { color: var(--muted); font-style: italic; margin: 0; }
.report { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--line-2); padding: 18px 22px; margin: 0; }
.report p { color: var(--ink); margin: 0 0 0.7em; }
.report footer { font-size: 0.86rem; color: var(--muted); }
.report footer strong { color: var(--ink-2); font-weight: 600; }
.reports-more { justify-self: start; }
.report-form { margin-top: 28px; max-width: 68ch; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 24px 26px; }
.report-form h3 { margin-top: 0; }
.report-form label { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ink); margin: 16px 0 0; }
.report-form .opt { font-weight: 400; color: var(--muted); font-size: 0.86rem; }
.report-form input:not([type="checkbox"]), .report-form select, .report-form textarea {
    display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: 400 1rem var(--font);
    color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 3px;
}
.report-form textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.report-form input:focus, .report-form select:focus, .report-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.report-form .form-hint { font-size: 0.86rem; color: var(--muted); margin: 8px 0 0; }
.report-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; color: var(--ink-2); }
.report-form .check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--red); }
.report-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-solid { margin-top: 18px; font: 600 0.96rem var(--font); color: #fff; background: var(--red); border: 0; border-radius: 3px; padding: 11px 20px; cursor: pointer; }
.btn-solid:hover { filter: brightness(0.92); }
.btn-solid[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 12px 0 0; font-size: 0.94rem; min-height: 1.4em; }
.form-status.ok { color: #1d6b35; font-weight: 600; }
.form-status.err { color: var(--red); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-status.ok { color: #6fd08c; } }
@media (max-width: 560px) { .report-form { padding: 20px 16px; } .report { padding: 16px; } }
@media print { .report-form { display: none; } }

/* Verweis auf Phagena */
.deeper { font-size: 0.92rem; color: var(--muted); margin-top: 18px; }
.deeper a { font-weight: 600; }

/* Grafik */
.diagram { margin: 4px 0 28px; max-width: 720px; }
.diagram svg { width: 100%; height: auto; display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 10px 6px 4px; }
.diagram figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.d-bac { fill: var(--note); stroke: var(--ink-2); stroke-width: 2; }
.d-broken { stroke-dasharray: 14 10; fill: none; }
.d-head { fill: var(--red); }
.d-line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.d-dna { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; }
.d-arrow { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-txt { fill: var(--ink-2); font: 600 13px var(--font); text-anchor: middle; }

.anatomy-legend { display: none; }
.d-num { display: none; fill: var(--red); font: 700 30px var(--font); text-anchor: middle; }
@media (max-width: 560px) {
    .anatomy .a-sub { display: none; }
    .anatomy .a-label { font-size: 24px; }
    .anatomy-legend { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 0.92rem; }
    .anatomy-legend dt { font-weight: 700; color: var(--ink); }
    .anatomy-legend dd { margin: 0; color: var(--ink-2); }
    .d-txt { display: none; }
    .d-num { display: block; }
}

/* Nummerierte Schritte */
.steps { padding-left: 1.3em; }
.process { list-style: none; counter-reset: step; padding: 0; margin: 8px 0 0; max-width: 68ch; }
.process li { counter-increment: step; position: relative; padding: 0 0 22px 56px; margin: 0; }
.process li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.95rem; }
.process li::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }
.process li:last-child::after { display: none; }
.process strong { display: block; font-size: 1.06rem; color: var(--ink); margin: 5px 0 4px; }
.process p { margin: 0; }

/* Tabelle */
.table-wrap { overflow-x: auto; max-width: 68ch; margin: 4px 0 18px; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--paper); border: 1px solid var(--line); }
.compare th, .compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.compare thead th { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--note); }
.compare tbody th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.compare tbody tr:first-child th, .compare tbody tr:first-child td { background: var(--red-soft); }

/* Glossar */
.glossary { margin: 0; max-width: 68ch; display: grid; grid-template-columns: minmax(150px, 34%) 1fr; border-top: 1px solid var(--line); }
.glossary dt, .glossary dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.glossary dt { font-weight: 700; color: var(--ink); padding-right: 18px; }
.glossary dd { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 560px) {
    .glossary { grid-template-columns: 1fr; }
    .glossary dt { border-bottom: 0; padding-bottom: 0; }
}

.further { font-size: 0.92rem; padding-left: 1.2em; }

/* Quellen */
.sources { padding-left: 1.6em; font-size: 0.9rem; }
.sources li { margin-bottom: 0.7em; color: var(--ink-2); word-break: break-word; }
.sources li:target { background: var(--red-soft); outline: 6px solid var(--red-soft); }

/* Weiterlesen */
.more { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--ink); color: var(--bg); padding: 28px 30px; max-width: 68ch; border-radius: 4px; }
.more p { margin: 0; color: inherit; opacity: 0.85; max-width: 40ch; }
.more strong { display: block; font-size: 1.15rem; opacity: 1; margin-bottom: 4px; }
.more a { color: var(--ink); background: var(--bg); padding: 10px 18px; border-radius: 3px; text-decoration: none; font-weight: 600; white-space: nowrap; }

/* ---------- Fusszeile ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 0.86rem; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot a { color: var(--muted); }
.disclaimer { font-size: 0.86rem; color: var(--muted); max-width: 68ch; margin-top: 24px; }

/* Rechtliches */
.legal { padding: 48px 0 80px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.legal p { max-width: 68ch; color: var(--ink-2); }

@media (max-width: 560px) {
    body { font-size: 17px; }
    .wrap { padding: 0 16px; }
    .masthead { padding: 40px 0 32px; }
    .answer { padding: 16px 18px; }
    .more { padding: 22px; }
}
@media print {
    :root { --bg: #fff; --paper: #fff; }
    body { font-size: 11pt; background: #fff; color: #000; }
    .top, .toc, .toc-mobile, .more, .skip, .btn-line, .summary-actions, .deeper { display: none !important; }
    .layout { display: block; padding: 0; }
    .masthead { padding: 0 0 16px; }
    .article section { break-inside: auto; padding-bottom: 20px; margin-bottom: 20px; }
    .answer, .place, .checklist, figure, tr, .process li { break-inside: avoid; }
    .faq summary::after { display: none; }
    a { color: inherit; text-decoration: none; }
    .sources a::after { content: " " attr(href); font-size: 8pt; color: #555; }
    .foot { border-top: 1px solid #ccc; }
}
