/* bosslevel.eu — Recherche-Seiten (ergänzt style.css) */
* { box-sizing: border-box; }
.r-seite { max-width: 1100px; margin: 0 auto; }
.r-kopf { padding: 8px 0 4px; }
.r-eyebrow { color: var(--text-muted); font-size: .85rem; margin: 10px 0 4px; }
.r-seite h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.2; margin: 0 0 14px; }
.r-seite h2 { margin-top: 2em; font-size: 1.35rem; border: none; padding: 0; }
.r-lead { color: var(--text-secondary); max-width: 760px; }
.r-sub { color: var(--text-secondary); margin: 0 0 12px; }
.r-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.r-chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: .88rem; text-decoration: none; color: var(--text-secondary); background: var(--bg-elevated); }
a.r-chip:hover { border-color: var(--brand); color: var(--brand); }
.r-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.r-chips-thema .r-chip { font-size: .8rem; }
.r-kenn { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 12px 0; color: var(--text-secondary); font-size: .9rem; }
.r-warn, .r-warn-s { color: var(--status-warning); font-weight: 600; }
.r-hinweis { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 12px 16px; border-radius: var(--radius-sm); margin: 16px 0; font-size: .92rem; color: var(--text-secondary); }
.r-kurz { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px 20px 12px; margin: 18px 0; }
.r-kurz h2 { margin-top: .9em; }

.r-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 18px; }
.r-chart { margin: 0; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px 16px; box-shadow: var(--shadow-card); min-width: 0; }
.r-chart figcaption { font-weight: 700; font-size: .95rem; line-height: 1.35; margin-bottom: 8px; }
.r-unit { font-weight: 500; color: var(--text-muted); font-size: .8rem; }
.r-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.r-leg { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .76rem; padding: 3px 9px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--bg-elevated); color: var(--text-secondary); cursor: pointer; opacity: .5; text-align: left; }
.r-leg.on { opacity: 1; }
.r-sw { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.r-row { display: grid; grid-template-columns: minmax(90px, 36%) 1fr; gap: 4px 10px; align-items: center; padding: 5px 0; border-top: 1px solid var(--border); }
.r-row:first-child { border-top: none; }
.r-lab { font-size: .8rem; line-height: 1.3; color: var(--text-secondary); overflow-wrap: anywhere; }
.r-track { position: relative; height: 26px; }
.r-forest { height: 30px; }
.r-zero { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border-strong); }
.r-bar { position: absolute; border-radius: 3px; cursor: pointer; }
.r-val { position: absolute; top: 50%; transform: translateY(-50%); font-size: .72rem; color: var(--text-secondary); white-space: nowrap; }
.r-ci { position: absolute; height: 3px; margin-top: -1.5px; border-radius: 2px; opacity: .55; }
.r-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; cursor: pointer; border: 2px solid var(--bg-elevated); }
.r-bar:focus-visible, .r-dot:focus-visible, .r-pt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.r-axis { display: flex; justify-content: space-between; font-size: .7rem; color: var(--text-muted); margin-top: 6px; padding-left: calc(36% + 10px); }
.r-svg { width: 100%; height: auto; display: block; }
.r-grid { stroke: var(--border); stroke-width: 1; }
.r-tick { fill: var(--text-muted); font-size: 11px; }
.r-pt { cursor: pointer; stroke: #fff; stroke-width: 1.5; }
.r-tip { position: absolute; z-index: 50; max-width: 280px; background: #0f172a; color: #fff; font-size: .78rem; line-height: 1.4; padding: 8px 10px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.r-tip { pointer-events: none; }
.r-tip a { color: #93c5fd; pointer-events: auto; }

.r-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; margin-top: 8px; }
.r-toc { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; font-size: .82rem; }
.r-toc ol { padding-left: 18px; margin: 8px 0; }
.r-toc li { margin: 5px 0; }
.r-toc a { text-decoration: none; color: var(--text-secondary); }
.r-toc a:hover { color: var(--brand); }
.r-text { min-width: 0; font-size: 1rem; line-height: 1.7; }
.r-text h2 { margin-top: 2em; padding-top: .4em; border-top: 1px solid var(--border); }
.r-text h3 { margin-top: 1.5em; font-size: 1.1rem; }
.r-text p, .r-text li { overflow-wrap: anywhere; }
.r-text blockquote { margin: 1em 0; padding: .4em 1em; border-left: 3px solid var(--border-strong); color: var(--text-secondary); }
.zit { text-decoration: none; font-size: .85em; font-weight: 600; }
.r-tabelle { overflow-x: auto; margin: 1em 0; max-width: 100%; }
.r-tabelle table { border-collapse: collapse; width: 100%; font-size: .85rem; }
.r-tabelle th, .r-tabelle td { border: 1px solid var(--border); padding: 6px 9px; text-align: start; vertical-align: top; }
.r-tabelle th { background: var(--brand-soft); }
.r-quellen td:nth-child(4) { min-width: 240px; }
.r-quellen tr.r-hit, .r-quellen tr:target { background: #fef9c3; }
.r-quellen tr[hidden] { display: none; }
.r-filter { width: 100%; max-width: 480px; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; background: var(--bg-input); margin-bottom: 8px; }
.r-protokoll { margin-top: 28px; color: var(--text-secondary); font-size: .88rem; }
.r-protokoll summary { cursor: pointer; font-weight: 600; }

.r-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.r-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; box-shadow: var(--shadow-card); }
.r-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.r-card p { color: var(--text-secondary); font-size: .92rem; }
.r-matrix th[scope="row"] { white-space: nowrap; }
.r-matrix td small { color: var(--text-muted); }

@media (max-width: 860px) {
  .r-layout { grid-template-columns: minmax(0, 1fr); }
  .r-toc { position: static; max-height: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }
  .r-row { grid-template-columns: minmax(0, 1fr); }
  .r-axis { padding-left: 0; }
}

.r-weitere { margin: 10px 0; }
.r-weitere summary { cursor: pointer; font-size: .88rem; color: var(--text-secondary); }

.r-byline { color: var(--text-muted); font-size: .85rem; margin: -6px 0 12px; }
.r-byline a { color: var(--text-muted); }
.r-kurzantwort { background: var(--bg-elevated); border: 1px solid var(--border-strong); border-left: 4px solid var(--status-good); border-radius: var(--radius-sm); padding: 12px 16px; margin: 12px 0; font-size: 1.02rem; line-height: 1.55; }
.r-faq { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 16px; margin: 8px 0; }
.r-faq summary { cursor: pointer; font-weight: 600; }
.r-faq p { margin: 8px 0 2px; color: var(--text-secondary); }

/* Große Studienseiten: Kapitel und Quellentabelle erst zeichnen, wenn sie in Sichtweite kommen */
.r-sektion { content-visibility: auto; contain-intrinsic-size: auto 1200px; }
.r-quellen { content-visibility: auto; contain-intrinsic-size: auto 1600px; }

.r-ratgeber { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); padding: 10px 14px; margin: 10px 0; font-size: .95rem; }

/* Buchaufbau: Inhaltsverzeichnis auf der Titelseite, Blättern zwischen den Kapiteln */
.b-liste { list-style: none; padding: 0; margin: 12px 0; }
.b-liste ol { list-style: none; padding-left: 0; margin: 6px 0 0; }
.b-liste li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 7px 0; border-top: 1px solid var(--border); }
.b-liste li.b-teil { display: block; padding: 12px 0 4px; border-top: 2px solid var(--border-strong); }
.b-liste li.b-teil > strong { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.b-liste li.b-teil li:first-child { border-top: none; }
.b-nr { flex: none; min-width: 2.2em; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.b-liste a { text-decoration: none; font-weight: 600; flex: 1 1 18em; min-width: 0; overflow-wrap: anywhere; }
.b-liste a:hover { text-decoration: underline; }
.b-liste small { color: var(--text-muted); white-space: nowrap; }
.b-pfad { color: var(--text-muted); font-size: .82rem; }
.b-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; margin: 14px 0; }
.b-nav a { display: block; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-elevated); text-decoration: none; font-size: .92rem; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.b-nav a:hover { border-color: var(--brand); }
.b-nav a span { display: block; font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.b-weiter { text-align: end; }
.b-inhalt { display: flex !important; align-items: center; font-weight: 600; white-space: nowrap; }
.b-alle { margin: 20px 0 10px; font-size: .9rem; }
.b-alle summary { cursor: pointer; font-weight: 600; color: var(--text-secondary); }
.b-alle ol { columns: 2 22em; column-gap: 28px; padding-left: 1.4em; }
.b-alle li { margin: 4px 0; break-inside: avoid; }
.b-alle li.b-anhang { list-style: "+  "; }
.r-vorwort { margin: 16px 0; }
@media (max-width: 640px) {
  .b-nav { grid-template-columns: minmax(0, 1fr); }
  .b-weiter { text-align: start; }
  .b-inhalt { justify-content: center; order: -1; }
}

/* Quellenseite: die Tabelle ist der ganze Inhalt, kein verzögertes Zeichnen (sonst landet der Sprung zu einer Quellenzeile an der falschen Stelle) */
.b-seite .r-quellen { content-visibility: visible; }

/* Blätter-Links, wenn das Quellenverzeichnis auf mehrere Seiten verteilt ist (24.10.2026) */
.r-quellen-teile { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.r-quellen-teile a, .r-quellen-teile span { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 12px; font-weight: 600; text-decoration: none; }
.r-quellen-teile span { background: var(--bg-elevated); color: var(--text-muted); }
