body.wissen-detail-page { margin: 0; background: var(--bg); color: var(--text); }

.wtd-fallback-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1180px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 32px);
}
.wtd-fallback-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.9rem; }
.wtd-fallback-nav a { color: var(--muted); text-decoration: none; font-weight: var(--weight-ui, 590); }
.wtd-fallback-nav a:hover, .wtd-fallback-nav a:focus-visible { color: var(--text); text-decoration: underline; }
.wtd-fallback-footer {
  max-width: 1180px; margin: 40px auto 0; padding: 18px clamp(16px, 4vw, 32px) 34px;
  border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: baseline; justify-content: space-between; font-size: 0.85rem; color: var(--muted);
}
.wtd-fallback-footer p { margin: 0; }
.wtd-fallback-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.wtd-fallback-footer a { color: var(--muted); }
.wtd-fallback-footer a:hover, .wtd-fallback-footer a:focus-visible { color: var(--text); }

.wtd-main {
  max-width: 1040px; margin: 0 auto; padding: 26px clamp(16px, 4vw, 32px) 56px;
  display: grid; gap: 30px;
}
.wtd-main > .site-crumbs { margin: 0; }

.wtd-hero { display: grid; gap: 12px; max-width: 76ch; }
.wtd-hero h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.12; letter-spacing: -0.01em; }
.wtd-eyebrow {
  display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0;
  font-size: 0.74rem; letter-spacing: 0.04em; color: var(--muted);
}
.wtd-eyebrow span {
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 11px;
  background: var(--panel);
}
.wtd-eyebrow .wtd-eyebrow-lead {
  color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  font-weight: var(--weight-ui, 590);
}
.wtd-eyebrow a {
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 11px;
  background: var(--panel); color: var(--muted); text-decoration: none;
}
.wtd-eyebrow a:hover, .wtd-eyebrow a:focus-visible { border-color: var(--accent); color: var(--accent); }
.wt-map-fw { color: var(--text); font-weight: var(--weight-ui, 590); text-decoration: none; }
.wt-map-fw:hover, .wt-map-fw:focus-visible { color: var(--accent); text-decoration: underline; }
.wt-src-orig { white-space: nowrap; }
.wtd-terms {
  margin: 0; padding: 0; list-style: none; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.wtd-terms li {
  display: grid; gap: 4px; align-content: start; padding: 14px 17px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
}
.wtd-terms a { text-decoration: none; color: var(--text); }
.wtd-terms a:hover, .wtd-terms a:focus-visible { color: var(--accent); text-decoration: underline; }
.wtd-terms strong { font-size: 0.97rem; line-height: 1.3; }
.wtd-terms span { font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
.wtd-faq { margin: 0; display: grid; gap: 10px; }
.wtd-faq > div {
  display: grid; gap: 6px; padding: 14px 17px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
}
.wtd-faq dt { margin: 0; font-weight: var(--weight-ui, 590); font-size: 1rem; line-height: 1.35; }
.wtd-faq dd { margin: 0; font-size: 0.95rem; line-height: 1.6; max-width: 76ch; }
.wtd-lead { margin: 0; font-size: 1.08rem; line-height: 1.62; }
.wtd-meta { margin: 0; font-size: 0.85rem; color: var(--muted); }

.wtd-checklisten-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.wtd-checkliste {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 14px 17px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
  color: var(--text); text-decoration: none;
}
.wtd-checkliste:hover, .wtd-checkliste:focus-visible { border-color: var(--accent); }
.wtd-checkliste:hover strong, .wtd-checkliste:focus-visible strong { color: var(--accent); text-decoration: underline; }
.wtd-check-kennung {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 4px 9px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: var(--weight-ui, 590); font-size: 0.82rem;
}
.wtd-check-body { display: grid; gap: 4px; }
.wtd-check-body strong { font-size: 0.98rem; line-height: 1.3; }
.wtd-check-body span { font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
.wtd-check-body small { font-size: 0.78rem; color: var(--subtle); }
.wtd-checklisten-all { margin: 12px 0 0; font-size: 0.9rem; }
.wtd-checklisten-all a { color: var(--accent); }

.wtd-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
  padding: 22px clamp(16px, 3vw, 28px) 24px; display: grid; gap: 14px;
}
.wtd-card h2 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.wtd-card .wtd-desc { margin: 0; line-height: 1.65; max-width: 90ch; }
.wtd-section { display: grid; gap: 14px; }
.wtd-section-head { display: grid; gap: 4px; max-width: 80ch; }
.wtd-section-head h2 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.wtd-section-head h2 small { font-size: 0.85em; font-weight: inherit; color: var(--muted); }
.wtd-section-head p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.wtd-panel {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
  padding: 16px clamp(14px, 3vw, 22px);
}
.wtd-note { margin: 0; font-size: 0.85rem; color: var(--muted); }

.wtd-related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.wtd-related-card {
  display: grid; gap: 6px; align-content: start; padding: 15px 17px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
  text-decoration: none; color: var(--text);
}
.wtd-related-card:hover, .wtd-related-card:focus-visible { border-color: var(--accent); }
.wtd-related-card strong { font-size: 0.98rem; line-height: 1.3; }
.wtd-related-card span { font-size: 0.86rem; line-height: 1.5; color: var(--muted); }

.wtd-cta {
  padding: 26px clamp(18px, 3.2vw, 34px) 28px; gap: 16px;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--accent) 4%, var(--panel));
}
.wtd-cta h2 { font-size: 1.3rem; }
.wtd-cta-body { display: grid; gap: 18px 32px; align-items: center; }
.wtd-cta-text { margin: 0; line-height: 1.62; }
.wtd-cta-actions { display: grid; gap: 10px; align-content: center; justify-items: stretch; }
.wtd-cta-actions .btn { text-align: center; white-space: nowrap; }
@media (min-width: 880px) {
  .wtd-cta-body { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 879px) {
  .wtd-cta-actions { grid-auto-flow: row; justify-items: start; }
}

.wtd-cite-panel { display: grid; gap: 12px; justify-items: start; }
.wtd-cite-text {
  margin: 0; width: 100%; box-sizing: border-box; padding: 14px 18px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel-2); font-size: 0.85rem; line-height: 1.6; white-space: pre-wrap;
  word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.wtd-copy {
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--panel); color: var(--text); padding: 7px 18px; font-size: 0.85rem;
  font-weight: var(--weight-ui, 590); cursor: pointer;
}
.wtd-copy:hover, .wtd-copy:focus-visible { border-color: var(--accent); color: var(--accent); }

.wtd-back { margin: 0; }
.wtd-back a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.wtd-back a:hover, .wtd-back a:focus-visible { color: var(--text); text-decoration: underline; }

@media (max-width: 640px) {
  .wtd-fallback-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .wtd-main { gap: 24px; }
}

/* Rahmenwerkseiten, Aufbau "Werkbank" (Entwurf A, gewaehlt 08.09.2026).
   Alle Groessen, Gewichte, Zeilenhoehen und Farben stammen aus der Skala der
   Website; eigene rem-Werte kommen nicht mehr vor. Gemessene Zeilenhoehen:
   1,55 Fliesstext, 1,50 laengerer Absatz in 1,13rem, 1,30 kompakt,
   1,25/1,20/1,14 fuer die Titelgroessen. Kein text-transform: uppercase. */

/* --- Werkbank: Kennzahlen und Sprungmarken stehen links im Blick --- */
.wrk-werkbank { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.wrk-inhalt { display: grid; gap: 40px; min-width: 0; align-content: start; }
.wrk-inhalt > .wtd-section { align-content: start; gap: 18px; }
.wrk-inhalt > .wtd-section + .wtd-section > .wtd-section-head { padding-top: 20px; border-top: 1px solid var(--border); }
.wrk-inhalt .wtd-section-head h2 { font-weight: 560; line-height: 1.35; }
.wrk-inhalt .wtd-related-card strong { font-weight: 500; line-height: 1.5; }
.wrk-seite { position: sticky; top: 96px; display: grid; gap: 24px; max-height: calc(100vh - 120px); overflow-y: auto; }

.wrk-kennzahlen { display: grid; gap: 0; margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--panel); }
.wrk-kz { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.wrk-kz:last-child { border-bottom: 0; }
.wrk-kz dt { font-size: var(--schrift-hinweis); font-weight: var(--weight-ui, 540); color: var(--muted); line-height: 1.3; }
.wrk-kz dd { margin: 3px 0 0; font-size: var(--schrift-betont); font-weight: var(--weight-title, 560); line-height: 1.08; font-variant-numeric: tabular-nums; }
.wrk-kz dd small { display: block; margin-top: 2px; font-size: var(--schrift-hinweis); font-weight: 400; color: var(--muted); line-height: 1.3; }
.wrk-kz--wort dd { font-size: var(--schrift-hilfe); font-weight: var(--weight-ui, 540); line-height: 1.3; }

.wrk-marken { display: grid; gap: 0; border-left: 2px solid var(--border); }
.wrk-marken a { padding: 8px 0 8px 15px; margin-left: -2px; border-left: 2px solid transparent; font-size: var(--schrift-hilfe); line-height: 1.3; color: var(--muted); text-decoration: none; }
.wrk-marken a[aria-current="true"] { border-left-color: var(--accent); color: var(--text); font-weight: var(--weight-ui, 540); }
.wrk-marken a:hover, .wrk-marken a:focus-visible { color: var(--text); }

/* --- Einordnung --- */
.wrk-about { display: grid; gap: 12px; max-width: 74ch; }
.wrk-about p { margin: 0; line-height: 1.55; }
.wrk-more { margin: 0; font-size: var(--schrift-hilfe); }

/* --- Reichweite als Balkenliste --- */
.wrk-reichweite { display: grid; gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--panel); }
.wrk-reihe { display: grid; grid-template-columns: minmax(0, 1fr) 64px 140px; gap: 16px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.wrk-reihe:last-child { border-bottom: 0; }
.wrk-reihe--luecke { background: var(--bg-soft); }
.wrk-reihe b { font-weight: var(--weight-ui, 540); font-size: var(--schrift-hilfe); line-height: 1.3; }
.wrk-num { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: var(--schrift-fussnote); color: var(--subtle); text-align: right; }
.wrk-balken { display: block; height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.wrk-balken i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.wrk-balken i.wrk-teil { background: var(--warning); }
.wrk-balken i.wrk-w0 { width: 0%; }
.wrk-balken i.wrk-w5 { width: 5%; }
.wrk-balken i.wrk-w10 { width: 10%; }
.wrk-balken i.wrk-w15 { width: 15%; }
.wrk-balken i.wrk-w20 { width: 20%; }
.wrk-balken i.wrk-w25 { width: 25%; }
.wrk-balken i.wrk-w30 { width: 30%; }
.wrk-balken i.wrk-w35 { width: 35%; }
.wrk-balken i.wrk-w40 { width: 40%; }
.wrk-balken i.wrk-w45 { width: 45%; }
.wrk-balken i.wrk-w50 { width: 50%; }
.wrk-balken i.wrk-w55 { width: 55%; }
.wrk-balken i.wrk-w60 { width: 60%; }
.wrk-balken i.wrk-w65 { width: 65%; }
.wrk-balken i.wrk-w70 { width: 70%; }
.wrk-balken i.wrk-w75 { width: 75%; }
.wrk-balken i.wrk-w80 { width: 80%; }
.wrk-balken i.wrk-w85 { width: 85%; }
.wrk-balken i.wrk-w90 { width: 90%; }
.wrk-balken i.wrk-w95 { width: 95%; }
.wrk-balken i.wrk-w100 { width: 100%; }

.wrk-gaps { margin-top: 18px; border: 1px solid var(--border); border-left: 3px solid var(--warning); border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg-soft); padding: 16px 18px 18px; }
.wrk-gaps h3 { margin: 0 0 5px; font-size: var(--schrift-hilfe); font-weight: var(--weight-heading, 610); line-height: 1.3; color: var(--warning-text); }
.wrk-gaps > p { margin: 0 0 12px; color: var(--muted); font-size: var(--schrift-hilfe); line-height: 1.3; max-width: 70ch; }
.wrk-gaplist { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.wrk-gaplist a { color: var(--text); font-size: var(--schrift-hilfe); line-height: 1.3; }
.wrk-gaplist small { display: block; color: var(--muted); font-size: var(--schrift-hinweis); }

/* --- Bedrohungen: Suche, Filter, Gruppen --- */
.wrk-werkzeug { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0 0 16px; }
.wrk-feld { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 14px; border: 1px solid var(--border-bedienelement); border-radius: var(--radius); background: var(--panel); }
.wrk-feld svg { width: 17px; height: 17px; flex: none; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.wrk-feld input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--text); }
.wrk-feld input:focus { outline: none; }
.wrk-feld:focus-within { border-color: var(--accent); }
.wrk-anzahl { font-size: var(--schrift-fussnote); color: var(--subtle); white-space: nowrap; font-variant-numeric: tabular-nums; }

.wrk-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.wrk-filter button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); font: inherit; font-size: var(--schrift-hinweis); font-weight: 400; color: var(--muted); cursor: pointer; line-height: 1.3; }
.wrk-filter button:hover { border-color: var(--border-bedienelement); color: var(--text); }
.wrk-filter button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: var(--weight-ui, 540); }
.wrk-filter button span { color: var(--subtle); margin-left: 5px; font-variant-numeric: tabular-nums; }
.wrk-filter button[aria-pressed="true"] span { color: var(--accent); }

.wqd-threats { display: grid; gap: 28px; }
body.wissen-page .wrk-inhalt .wqd-group { margin: 0; padding: 0; border: 0; background: none; }
.wrk-gruppenkopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 8px; padding: 0 0 10px; border-bottom: 1px solid var(--border-strong); }
.wrk-gruppenkopf h3 { margin: 0; font-size: var(--schrift-hilfe); font-weight: var(--weight-heading, 610); line-height: 1.3; color: var(--text); }
.wrk-gruppenkopf span { font-size: var(--schrift-fussnote); color: var(--subtle); font-variant-numeric: tabular-nums; }
html body.wissen-page .wrk-inhalt .wrk-gruppenkopf h3 { color: var(--text); font-weight: 520; line-height: 1.5; }
.wqd-group ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 24px; }
.wrk-inhalt .wqd-group li { display: block; min-width: 0; margin: 0; }
.wqd-group a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; color: var(--text); text-decoration: none; font-size: var(--schrift-hilfe); font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
.wqd-group a::after { content: '→'; flex: none; color: var(--accent); }
.wqd-group a:hover, .wqd-group a:focus-visible { background: var(--accent-soft); color: var(--accent); }
.wrk-leer { padding: 18px; border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--muted); font-size: var(--schrift-hilfe); line-height: 1.3; margin: 0; }

/* --- Belege und Grenze --- */
.wqd-facts { display: grid; gap: 12px 26px; margin: 0; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.wqd-facts div { display: grid; gap: 2px; align-content: start; }
.wqd-facts dt { font-size: var(--schrift-hinweis); color: var(--muted); }
.wqd-facts dd { margin: 0; font-size: var(--schrift-hilfe); line-height: 1.3; }
.wqd-tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.wqd-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrk-grenze { box-sizing: border-box; width: fit-content; max-width: min(100%, 72ch); justify-self: start; align-self: start; margin: 0; padding: 16px 20px; border: 0; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.wrk-grenze strong { display: block; margin-bottom: 4px; font-size: var(--schrift-hilfe); font-weight: var(--weight-heading, 610); color: var(--accent); }
.wrk-grenze p { margin: 0; font-size: var(--schrift-hilfe); line-height: 1.65; max-width: 100%; color: var(--muted); }

/* --- Verzeichnis der Rahmenwerke --- */
.wrk-index { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.wrk-index a { display: grid; gap: 6px; align-content: start; height: 100%; padding: 17px 20px 19px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); text-decoration: none; color: var(--text); }
.wrk-index a:hover, .wrk-index a:focus-visible { border-color: var(--accent); }
.wrk-index strong { font-size: var(--schrift-text); line-height: 1.3; font-weight: var(--weight-ui, 540); }
.wrk-index em { font-style: normal; font-size: var(--schrift-etikett); color: var(--muted); }
.wrk-index .wrk-card-lead { font-size: var(--schrift-hilfe); line-height: 1.3; }
.wrk-index span { font-size: var(--schrift-etikett); color: var(--muted); line-height: 1.3; }

@media (max-width: 920px) {
  .wrk-werkbank { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .wrk-seite { position: static; max-height: none; overflow: visible; }
  .wrk-inhalt { gap: 32px; }
}
@media (max-width: 640px) {
  .wqd-facts { grid-template-columns: minmax(0, 1fr); }
  .wrk-reihe { grid-template-columns: minmax(0, 1fr) auto; }
  .wrk-reihe .wrk-balken { grid-column: 1 / -1; }
}
