/* ==========================================================
   KI-Wochenbriefing haase.co.at – Ergänzung zu /assets/site.css und /glossar/assets/glossar.css
   ========================================================== */

/* Kennzeichnung (AI Act Art. 50 Abs. 4) */
.nb-label { margin-top: 1.5rem; padding: .75rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); font-size: var(--fs-small); color: var(--muted); }
.nb-label-tag { display: inline-block; margin-right: .6rem; padding: 0 .45rem; font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text); border: 1px solid var(--text); border-radius: var(--radius); }

/* Einordnung der Woche (eigener Text) */
.nb-comment { margin-top: 2rem; padding-left: 1rem; border-left: 2px solid var(--red); }
.nb-comment h2 { margin-top: 0; }
.nb-comment p + p { margin-top: .6rem; }
.nb-byline { font-family: var(--mono); font-size: .75rem; color: var(--muted); }

/* Einträge */
.nb-entry { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.nb-entry h2 { margin-top: .6rem; font-size: 1.3125rem; line-height: 1.3; }
.nb-entry-meta { margin-top: 0; }
.nb-summary { margin-top: .6rem; }
.nb-impact { margin-top: .8rem; padding: .7rem .9rem; background: var(--panel); border-radius: var(--radius); font-size: var(--fs-small); }
.nb-impact-head { display: block; margin-bottom: .2rem; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.nb-impact-head b { font-weight: 500; color: var(--text); }
.nb-impact-hoch { border-left: 2px solid var(--red); }
.nb-src, .nb-terms { margin-top: .6rem; font-size: var(--fs-small); color: var(--muted); }
.nb-src a, .nb-terms a { color: var(--text); text-underline-offset: 3px; }
.nb-checked { font-family: var(--mono); font-size: .6875rem; color: var(--text); }
.nb-checked::before { content: "✓ "; color: var(--red); }
.nb-entry-hold { opacity: .75; }

/* Archiv */
.nb-archive { margin-top: var(--section); }
.nb-list { margin-top: 1rem; list-style: none; padding: 0; }
.nb-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.nb-sub { margin-left: .5rem; font-size: .75rem; color: var(--muted); }
.nb-teaser { list-style: none; padding: 0; margin: 0; }
.nb-teaser li + li { margin-top: .25rem; }
.nb-teaser li::before { content: "– "; color: var(--muted); }

/* Korrekturen nach Sichtprüfung: Meta-Zeile im Eintrag ohne Trennlinie von .legal-meta, Kommentar ohne Abschnittsabstand.
   Navigation mit 8 Punkten: seit Website 2.3.0 in /assets/site.css (vorher hier überschrieben). */
.nb-entry .nb-entry-meta { margin-top: 0; padding-bottom: 0; border-bottom: 0; }
.legal .nb-comment { padding-top: .25rem; }
/* ---------- Seitenleiste einer Ausgabe (1.8.4) ---------- */
.nb-layout { display: grid; grid-template-columns: minmax(0, 46rem) minmax(16rem, 20rem); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.nb-layout > .legal-col { max-width: none; }
.nb-side { align-self: stretch; margin-top: clamp(2rem, 4vw, 3.25rem); display: flex; flex-direction: column; gap: 2rem; font-size: var(--fs-small); }
.legal .nb-side .nb-box { padding-top: .85rem; border-top: 1px solid var(--text); }
.legal .nb-side .nb-box-h { margin: 0 0 .5rem; font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.nb-box-sub { margin: -.35rem 0 .6rem; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.nb-box-text { color: var(--text-2); }
.nb-side a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.nb-side a:hover { text-decoration-color: var(--red); }

/* Begriffe der Woche */
.nb-tlist li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.nb-tlist li:first-child { padding-top: 0; }
.nb-thead { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.nb-thead a { font-weight: 500; color: var(--text); }
.nb-tlist p { margin-top: .2rem; font-size: .8125rem; line-height: 1.45; color: var(--text-2); }
.nb-more { display: inline-block; margin-top: .7rem; font-size: .8125rem; color: var(--text); }
.nb-more::after { content: " →"; }
.nb-count, .nb-count-static { flex: none; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.nb-count { display: none; padding: .05rem .45rem; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; }
.nb-js .nb-count { display: inline-block; }
.nb-js .nb-count-static { display: none; }
.nb-count:hover, .nb-seg-btn:hover { border-color: var(--text); color: var(--text); }
.nb-count[aria-pressed="true"], .nb-seg-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Auf einen Blick */
.nb-sticky { position: sticky; top: calc(var(--header) + 1.25rem); max-height: calc(100vh - var(--header) - 2.5rem); overflow-y: auto; display: flex; flex-direction: column; gap: 2rem; scrollbar-width: thin; }
.nb-toc-list { list-style: none; padding: 0; margin: 0; counter-reset: nb; }
.nb-toc-list li { counter-increment: nb; display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); padding: .35rem 0; border-bottom: 1px solid var(--line); }
.nb-toc-list li::before { content: counter(nb); font-family: var(--mono); font-size: .75rem; color: var(--muted); padding-top: .15rem; }
.nb-toc-list a { display: block; text-decoration: none; color: var(--text-2); line-height: 1.35; }
.nb-toc-list a:hover .nb-toc-t { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.nb-toc-list a[aria-current="true"] { color: var(--text); font-weight: 500; }
.nb-toc-tag { grid-column: 2; font-family: var(--mono); font-size: .6875rem; color: var(--muted); margin-top: .1rem; }
.nb-dot { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; margin-right: .45rem; vertical-align: .1em; border: 1px solid var(--line-strong); }
.nb-dot-hoch { background: var(--red); border-color: var(--red); }
.nb-dot-mittel { background: var(--muted); border-color: var(--muted); }
.nb-toc-list li.nb-dim { opacity: .35; }

/* Für wen relevant */
.nb-seg li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.nb-seg-btn { display: inline; padding: 0; font: inherit; font-weight: 500; color: var(--text); background: none; border: 0; text-align: left; cursor: default; }
.nb-js .nb-seg-btn { padding: .1rem .5rem; margin-left: -.5rem; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }
.nb-seg-n { display: block; font-family: var(--mono); font-size: .75rem; color: var(--muted); }

/* Filter */
.nb-filter { position: sticky; top: var(--header); z-index: 5; margin-top: 1.5rem; padding: .6rem .9rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
    background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: var(--fs-small); }
.nb-filter[hidden] { display: none; }
.nb-filter-reset { font: inherit; font-size: .8125rem; padding: .2rem .6rem; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; }
.nb-filter-reset:hover { border-color: var(--text); }
.nb-entry { transition: opacity .15s; }
.nb-entry.nb-dim { opacity: .3; }
.nb-entry.nb-dim:hover { opacity: .7; }

/* Ausklappbares Inhaltsverzeichnis (nur schmal) */
.nb-toc-m { display: none; margin-top: 1.75rem; border-top: 1px solid var(--text); border-bottom: 1px solid var(--line); }
.nb-toc-m summary { padding: .75rem 0; cursor: pointer; font-weight: 500; }
.nb-toc-m summary .num { font-family: var(--mono); font-size: .75rem; color: var(--muted); font-weight: 400; }
.nb-toc-m .nb-toc-list { padding-bottom: .75rem; }
.nb-toc-m .nb-toc-list li:last-child { border-bottom: 0; }

@media (max-width: 1140px) {
    .nb-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .nb-layout > .legal-col { max-width: 46rem; }
    .nb-side { margin-top: var(--section); max-width: 46rem; }
    .nb-sticky { position: static; max-height: none; overflow: visible; }
    .nb-toc { display: none; }
    .nb-toc-m { display: block; }
}
@media (prefers-reduced-motion: reduce) { .nb-entry { transition: none; } }
.nb-js .nb-entry { scroll-margin-top: 3.5rem; }
.nb-tmore { margin-top: .6rem; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.nb-tmore a { color: var(--text-2); }

/* ---------- Startseite: So entsteht das Briefing (1.10.0) ---------- */
.nb-pipe { list-style: none; margin: .4rem 0 0; padding: 0; counter-reset: pipe; }
.nb-pipe li { counter-increment: pipe; position: relative; padding: 0 0 1rem 2rem; }
.nb-pipe li::before {
    content: counter(pipe); position: absolute; left: 0; top: .1rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .6875rem;
    background: #fff; color: var(--text); border: 1px solid var(--line-strong); z-index: 1;
}
.nb-pipe li::after { content: ""; position: absolute; left: calc(.65rem - .5px); top: 1.5rem; bottom: .1rem; width: 1px; background: var(--line-strong); }
.nb-pipe li:last-child { padding-bottom: 0; }
.nb-pipe li:last-child::after { display: none; }
.nb-pipe li.nb-pipe-ki::before { background: var(--red); border-color: var(--red); color: #fff; }
.nb-pipe li.nb-pipe-mensch::before { background: var(--ink); border-color: var(--ink); color: #fff; }
.nb-pipe-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.nb-pipe-head b { font-weight: 500; color: var(--text); }
.nb-pipe-wer { font-family: var(--mono); font-size: .6875rem; color: var(--muted); white-space: nowrap; }
.nb-pipe-ki .nb-pipe-wer { color: var(--red); }
.nb-pipe p { margin-top: .15rem; font-size: .8125rem; line-height: 1.45; color: var(--text-2); }
.nb-pipe p.nb-pipe-zahl { margin-top: .3rem; font-family: var(--mono); font-size: .75rem; color: var(--text); }
.nb-local-kv { margin: .7rem 0 0; border-top: 1px solid var(--line); }
.nb-local-kv > div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.nb-local-kv dt { font-size: .8125rem; color: var(--muted); }
.nb-local-kv dd { margin: 0; font-family: var(--mono); font-size: .8125rem; color: var(--text); text-align: right; }
.nb-local-note { margin: .4rem 0 0; }
.briefing .nb-layout > .legal-col > .section-head, .briefing .nb-layout .rows { max-width: none; }
