/* Build 16 (T16, Plan 25): Seiten-CSS Wissen (library.php, article.php) – aus style.css verschoben (nur hier benutzt).
   Wird direkt NACH style.css geladen ($page_core_styles in header.php), damit die Kaskade gleich bleibt wie vorher.
   Reihenfolge und @media-Bedingungen wie in style.css. */

.cluster--center { justify-content: center; }
.notice__title { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin-bottom: .25rem; }
.wiki-cat__title { display: flex; align-items: center; gap: .7rem; font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: var(--space-4); }
.wiki-card { height: 100%; }
.wiki-card p { color: var(--text-muted); font-size: var(--fs-small); }
.related__title { display: flex; align-items: center; gap: .55rem; font-size: clamp(1.25rem, 2.4vw, 1.5rem); margin-bottom: var(--space-4); }
.related__card { display: flex; flex-direction: column; gap: .45rem; height: 100%; text-decoration: none; }
.related__card .card__more { margin-top: auto; }
.related__cat { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-small); color: var(--text-muted); }
.related__card:focus-visible { outline: 3px solid var(--focus-ring, var(--accent)); outline-offset: 3px; }
.article-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.article-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; color: var(--text-muted); font-size: var(--fs-small); font-weight: 600; }
/* Build 6 (P2-5/P2-6): Inhaltshinweis + Das Wichtigste in Kürze */
.content-note { margin: 0; padding: .7rem 1rem; border-radius: var(--radius-m); background: var(--surface-2); color: var(--text-muted); font-size: var(--fs-small); line-height: 1.55; border: var(--panel-edge, none); border-left: var(--panel-edge, 3px solid var(--control)); }
/* Build 10 (Wiki W): Krisenkarte ganz oben in Krisen-Artikeln (article.php, Feld crisis_box) */
.article-crisis { margin: 0 0 var(--space-4); padding: var(--space-4); border-radius: var(--radius-l); background: var(--surface-2); border: var(--edge-w) solid var(--line); }
.content-note strong { color: var(--text); }
.article-summary { background: var(--surface-2); border: var(--panel-edge, none); border-radius: var(--radius-l); padding: var(--space-4) var(--space-5); margin: 0 0 var(--space-6); box-shadow: inset 4px 0 0 var(--k, var(--accent)); }
.article-summary li { line-height: 1.5; }
.notice__title .icon { align-self: flex-start; margin-top: .15em; }
.u-maxw-34 { max-width: 34rem !important; }
.u-title-cta { font-size: clamp(1.4rem, 3vw, 2rem) !important; }
.u-mt8 { margin-top: var(--space-8) !important; }
.u-fs-1-6 { font-size: 1.6rem !important; }
/* ---------- Wissen: Gruppen nach Bedarf, "Akut" oben und offen, Sprungleiste ---------- */
.wiki-jump { margin: var(--space-5) 0 0; }
.wiki-jump ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.wiki-jump .chip { min-height: 44px; gap: .4rem; }
@media (max-width: 47.99em) {
  .wiki-jump ul { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 6px 6px .6rem; margin-inline: -6px; }
  .wiki-jump li { flex: none; }
  .wiki-jump .chip { white-space: nowrap; }
}
.wiki-jump__n { font-variant-numeric: tabular-nums; color: var(--text-muted); font-weight: 600; }
.wiki-jump__akut { box-shadow: inset 0 0 0 1.5px var(--care-line); }
/* Build 16 (S16, W1): eine Gruppen-Form fuer alle – Kopf mit Linie darunter, Symbol-Platz gleich breit (Pfeil bzw. Herz), keine Kaesten.
   "Akut" bleibt farbig (Petrol-Linie, Herz, Karten auf Petrol-Grund), steht aber auf derselben Kante wie die anderen Gruppen. */
.wiki-grp { margin-top: var(--space-7); scroll-margin-top: 6rem; }
.wiki-grp > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .2rem 1rem; min-height: 44px;
  padding-bottom: var(--space-2); border-bottom: var(--border-w) solid var(--line); }
.wiki-grp > summary::-webkit-details-marker { display: none; }
.wiki-grp > summary .wiki-grp__name::before { content: ""; width: .55em; height: .55em; margin-inline: .35em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--dur) var(--ease); flex: none; }
.wiki-grp[open] > summary .wiki-grp__name::before { transform: rotate(45deg); }
.wiki-grp--akut { margin-top: var(--space-6); }
.wiki-grp--akut > summary { cursor: default; border-bottom-color: var(--care-line); }
.wiki-grp--akut > summary .wiki-grp__name::before { display: none; }
.wiki-grp--akut .wiki-card { background: var(--care-bg); }
.wiki-grp__n { font-size: var(--fs-small); font-weight: 600; }
.wiki-grp .grid-2 { margin-top: var(--space-3); }
.wiki-ai-note { margin: var(--space-7) 0 0; max-width: 46rem; }
html.motion-off .wiki-grp > summary .wiki-grp__name::before { transition: none; }
/* 2) Breiten aus Tokens (Rahmen --w-frame kommt ueber .container) */
.wiki-page { max-width: var(--w-frame); margin-inline: auto; }
@media (min-width: 72em) {
  .wiki-grid > :nth-child(3n+1):nth-last-child(4), .wiki-grid > :nth-child(3n+1):nth-last-child(4) ~ *,
    .wiki-grid > :nth-child(3n+1):nth-last-child(2), .wiki-grid > :nth-child(3n+1):nth-last-child(2) ~ * { grid-column: span 3; }
}
.wiki-page > .page-head--hub + .notice { max-width: 46rem; }
