/* ===========================================================================
   PPWR-Wissen — Leitfaden für die E-Zigarettenbranche
   Baut auf den Tokens aus app.css auf (Farben, Radien, Schatten, Hell/Dunkel).
   Eigener Präfix "w-", damit nichts mit dem übrigen Portal kollidiert.

   Gestalterische Idee: Der Text der EU-Leitlinien ist ein nummeriertes
   Rechtsdokument. Diese Seite macht die Nummerierung sichtbar — Themennummern,
   Artikelangaben, Jahreszahlen stehen durchgängig in der Monospace-Schrift des
   Portals. Das gibt der Seite eine eigene Textur, ohne das Design zu verlassen.
   =========================================================================== */

/* Nur für Screenreader — trägt die Bedeutung, wo die Optik mit einer Zahl auskommt. */
.w-vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.w-lead { max-width: 62ch; font-size: 1.06rem; line-height: 1.6; color: var(--ink-soft); }
.w-prosa { max-width: 68ch; line-height: 1.65; }
.w-prosa p { margin: 0 0 .7em; }
.w-prosa p:last-child { margin-bottom: 0; }

/* --- Kopf ---------------------------------------------------------------- */
.w-hero { padding: 26px 26px 24px; }
.w-hero h1 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.6rem); letter-spacing: -.03em; margin: .15em 0 .35em; }
.w-eyebrow {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); font-weight: 600;
}

/* Kennzahlen-Zeile: ruhig, in Zitier-Textur gesetzt */
.w-kennzahlen {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
}
.w-kennzahlen b { display: block; font-size: 1.5rem; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }

/* --- Sticky-Sprungleiste: durch die Hauptabschnitte klicken -------------- */
/* Klebt unter der Portal-Kopfleiste. Deren Höhe (--w-nav) und die eigene Höhe
   (--w-sprung-h) setzt das Skript; die Fallbacks gelten ohne JavaScript
   (angemeldete Kopfleiste 57px). Auf schmalen Schirmen scrollt die Leiste
   waagerecht statt umzubrechen, damit ihre Höhe stabil bleibt. */
.w-sprung {
  position: sticky; top: var(--w-nav, 57px); z-index: 16;
  display: flex; gap: 4px; margin: 20px 0 8px; padding: 6px;
  overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.w-sprung::-webkit-scrollbar { display: none; }
.w-sprung a {
  flex: 0 0 auto; padding: 8px 15px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; color: var(--ink-soft); text-decoration: none;
  white-space: nowrap; transition: background .14s, color .14s;
}
.w-sprung a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.w-sprung a.aktiv { background: var(--brand); color: #fff; }

/* Sprungziele nicht unter den klebenden Leisten verstecken. Die Suchleiste
   (.w-toolbar) bleibt bis zum Seitenende angeheftet, deshalb brauchen die beiden
   Ziele darunter (Begriffe, Kontakt) zusätzlich deren Höhe als Abstand. */
#w-fristen, #w-punkte, #w-rollen, #w-fragen, #w-begriffe, #w-kontakt {
  scroll-margin-top: calc(var(--w-nav, 57px) + var(--w-sprung-h, 48px) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* --- Abschnittsmarken ---------------------------------------------------- */
.w-teil { margin: 3.2rem 0 1.2rem; }
.w-teil .kennung {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.w-teil h2 { font-size: 1.55rem; letter-spacing: -.025em; margin: .2em 0 .3em; }
.w-teil p { margin: 0; max-width: 66ch; color: var(--muted); }

/* --- Fristenband --------------------------------------------------------- */
.w-band { position: relative; margin: 0; padding: 0; list-style: none; }
.w-band::before {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px;
  width: 2px; background: var(--line);
}
.w-frist { position: relative; display: grid; grid-template-columns: 34px 5.2rem minmax(0, 1fr); gap: 0 16px; padding: 13px 0; align-items: start; }
.w-frist .mk {
  width: 16px; height: 16px; border-radius: 50%; margin-top: .35rem; z-index: 1;
  background: var(--surface); border: 2px solid var(--line-strong);
}
.w-frist.jetzt .mk { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
/* Die inneren Regeln tragen bewusst .w-band mit: das Fristenband steht innerhalb
   eines Kernpunkts, dessen Regeln (.w-punkt h3, .w-block p) sonst gewinnen würden. */
.w-band .w-frist .jahr { font-family: var(--mono); line-height: 1.2; }
.w-band .w-frist .jahr .zahl {
  display: block; font-size: 1.32rem; font-weight: 700;
  color: var(--line-strong); letter-spacing: -.03em;
}
.w-band .w-frist.jetzt .jahr .zahl { color: var(--brand); }
.w-band .w-frist .datum { display: block; font-size: .68rem; font-weight: 400; color: var(--muted); letter-spacing: .02em; margin-top: 2px; }
/* Ein Jahreswechsel bekommt etwas Luft davor — so zerfällt das Band in Jahresgruppen. */
.w-band .w-frist.neu { margin-top: 8px; }
.w-band .w-frist.neu:first-child { margin-top: 0; }
.w-band .w-frist h3 { font-size: 1rem; margin: 0 0 .25em; letter-spacing: -.01em; }
.w-band .w-frist p { margin: 0; color: var(--ink-soft); font-size: .93rem; line-height: 1.55; max-width: 60ch; }
.w-artikel { display: inline-block; font-family: var(--mono); font-size: .66rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-left: .45em; }
@media (max-width: 620px) {
  .w-band .w-frist { grid-template-columns: 34px minmax(0, 1fr); }
  .w-band .w-frist .jahr { grid-column: 2; margin-bottom: .35rem; }
  .w-band .w-frist .jahr .zahl { display: inline; font-size: 1.05rem; }
  .w-band .w-frist .datum { display: inline; margin-left: .6em; margin-top: 0; }
  .w-band .w-frist .inhalt { grid-column: 2; }
}

/* --- Rollen -------------------------------------------------------------- */
.w-rollen { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.w-rolle { background: var(--surface); padding: 13px 15px; }
.w-rolle b { display: block; font-size: .95rem; margin-bottom: .15em; }
.w-rolle span { color: var(--ink-soft); font-size: .89rem; line-height: 1.5; }
@media (min-width: 720px) {
  .w-rollen { grid-template-columns: 1fr 1fr; }
  /* Bei ungerader Anzahl füllt der letzte Eintrag die Zeile — sonst bleibt eine leere Zelle stehen. */
  .w-rollen .w-rolle:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* --- Kernpunkte ---------------------------------------------------------- */
.w-punkt { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0 22px; }
.w-punkt .marke { font-family: var(--mono); }
.w-punkt .marke .nr { display: block; font-size: 1.9rem; font-weight: 700; color: var(--brand); line-height: 1; letter-spacing: -.04em; }
.w-punkt .marke .art { display: block; margin-top: .55rem; font-size: .7rem; color: var(--muted); line-height: 1.4; }
.w-punkt h3 { margin: -.15em 0 .8em; font-size: 1.2rem; letter-spacing: -.02em; }
.w-block { margin: 0 0 .95rem; }
.w-block:last-child { margin-bottom: 0; }
.w-block .lbl {
  display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .3em;
}
.w-block p { margin: 0; line-height: 1.6; max-width: 64ch; }
.w-block.tun { border-left: 3px solid var(--brand); padding-left: 15px; }
.w-block.tun .lbl { color: var(--brand); }
@media (max-width: 640px) {
  .w-punkt { grid-template-columns: minmax(0, 1fr); }
  .w-punkt .marke { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .6rem; }
  .w-punkt .marke .nr { font-size: 1.4rem; }
  .w-punkt .marke .art { margin-top: 0; }
}

/* --- Register: alle 33 Themen auf einen Blick ----------------------------- */
.w-register { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 7px; margin: 0 0 4px; }
.w-kachel {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: 1rem; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; transition: transform .12s, opacity .18s;
}
.w-kachel:hover { text-decoration: none; transform: translateY(-2px); }
.w-kachel.hoch { background: var(--stop-tint); color: var(--stop); border-color: color-mix(in srgb, var(--stop) 26%, transparent); }
.w-kachel.mittel { background: var(--pending-tint); color: var(--pending); border-color: color-mix(in srgb, var(--pending) 26%, transparent); }
.w-kachel.gering { background: var(--na-tint); color: var(--na); border-color: color-mix(in srgb, var(--na) 26%, transparent); }
.w-kachel.nicht_relevant { background: none; color: var(--muted); border: 1px dashed var(--line-strong); font-weight: 500; }
.w-legende { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: .8rem; color: var(--muted); }
.w-legende span { display: inline-flex; align-items: center; gap: 7px; }
.w-legende i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.w-legende i.hoch { background: var(--stop); }
.w-legende i.mittel { background: var(--pending); }
.w-legende i.gering { background: var(--na); }
.w-legende i.nicht_relevant { background: none; border: 1px dashed var(--line-strong); }

/* --- Werkzeugleiste über den Kapiteln ------------------------------------ */
.w-toolbar {
  /* Klebt unter Kopfleiste (--w-nav) und Sprungleiste (--w-sprung-h). Das Skript
     setzt beide Höhen; die Fallbacks (57px + 48px) gelten ohne JavaScript. */
  position: sticky; top: calc(var(--w-nav, 57px) + var(--w-sprung-h, 48px)); z-index: 10;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 12px 14px; margin: 0 0 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.w-toolbar input[type=search] { margin: 0; flex: 1 1 15rem; min-width: 0; }
.w-toolbar .schalter { display: inline-flex; align-items: center; gap: 8px; font-size: .87rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; margin: 0; }
.w-toolbar .schalter input { margin: 0; }
.w-treffer { font-family: var(--mono); font-size: .76rem; color: var(--muted); white-space: nowrap; }

/* --- Kapitel ------------------------------------------------------------- */
.w-kapitel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 9px; box-shadow: var(--shadow); }
.w-kapitel[open] { border-color: var(--line-strong); }
/* Vier Spalten für vier Kinder: Nummer, Titel, Ampel, Pfeil. */
.w-kapitel > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto auto; gap: 0 14px; align-items: center; padding: 14px 17px; border-radius: var(--radius); }
.w-kapitel > summary::-webkit-details-marker { display: none; }
.w-kapitel > summary:hover { background: var(--surface-2); }
.w-kapitel > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.w-kapitel .nr { font-family: var(--mono); font-size: .95rem; font-weight: 700; color: var(--muted); }
.w-kapitel .titel { font-weight: 650; font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.3; }
.w-kapitel .titel small { display: block; font-family: var(--mono); font-size: .68rem; font-weight: 400; color: var(--muted); margin-top: 3px; letter-spacing: .02em; }
.w-kapitel .chev { width: 17px; height: 17px; color: var(--muted); transition: transform .18s; flex: none; }
.w-kapitel[open] > summary .chev { transform: rotate(180deg); }
.w-kapitel .koerper { padding: 4px 17px 20px; }
.w-kapitel .koerper > .w-abschnitt { padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--line); }
.w-kapitel .koerper > .w-abschnitt:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.w-abschnitt > .lbl { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: .45em; }
.w-abschnitt.gesetz p { color: var(--ink-soft); border-left: 2px solid var(--line-strong); padding-left: 14px; font-size: .93rem; }
.w-kapitel .koerper > .w-abschnitt.vapes { background: var(--brand-tint); border-radius: var(--radius-sm); padding: 14px 16px; border-top: none; margin-top: 18px; }
.w-abschnitt.vapes > .lbl { color: var(--brand); }
.w-abschnitt.vapes p { color: var(--ink-soft); }

/* Relevanz-Ampel */
.w-rel { font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.w-rel.hoch { background: var(--stop-tint); color: var(--stop); }
.w-rel.mittel { background: var(--pending-tint); color: var(--pending); }
.w-rel.gering { background: var(--na-tint); color: var(--na); }
.w-rel.nicht_relevant { background: none; color: var(--muted); border: 1px dashed var(--line-strong); }
@media (max-width: 560px) {
  /* Auf dem Handy weicht die Ampel-Beschriftung; die Farbe der Registerkachel trägt die Information. */
  .w-kapitel > summary { grid-template-columns: 2.2rem minmax(0, 1fr) auto; }
  .w-kapitel > summary .w-rel { display: none; }
}

/* Ausgeblendet durch Suche oder Filter */
.w-aus { display: none; }
.w-kachel.w-gedimmt { opacity: .22; pointer-events: none; }
.w-leer { padding: 30px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* --- Glossar, Quellen, Kontakt ------------------------------------------- */
.w-glossar { margin: 0; }
.w-glossar div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.w-glossar div:last-child { border-bottom: none; }
.w-glossar dt { font-weight: 650; font-size: .95rem; margin-bottom: .2em; }
.w-glossar dd { margin: 0; color: var(--ink-soft); font-size: .91rem; line-height: 1.55; max-width: 68ch; }
.w-quelle { font-size: .87rem; color: var(--ink-soft); line-height: 1.6; }
.w-quelle .az { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.w-haftung { font-size: .84rem; color: var(--muted); line-height: 1.6; max-width: 72ch; }

/* --- Bewegung sparsam ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .w-kachel, .w-kapitel .chev { transition: none; }
  .w-kachel:hover { transform: none; }
}

/* --- Relevanz auch ohne Farbe erkennbar (Form + Farbe, für Farbfehlsichtige) --- */
/* Formzeichen je Stufe: ▲ hoch · ◆ teilweise · ● kaum · ○ nicht relevant. */
.w-rel::before { margin-right: .4em; font-size: .9em; }
.w-rel.hoch::before { content: "▲"; }
.w-rel.mittel::before { content: "◆"; }
.w-rel.gering::before { content: "●"; }
.w-rel.nicht_relevant::before { content: "○"; }

.w-kachel { position: relative; }
.w-kachel::after { position: absolute; top: 3px; right: 5px; font-size: .5rem; line-height: 1; opacity: .85; }
.w-kachel.hoch::after { content: "▲"; }
.w-kachel.mittel::after { content: "◆"; }
.w-kachel.gering::after { content: "●"; }
.w-kachel.nicht_relevant::after { content: "○"; }

.w-legende i { width: auto; height: auto; border: 0; background: none; font-size: .95rem; line-height: 1; }
.w-legende i.hoch::before { content: "▲"; color: var(--stop); }
.w-legende i.mittel::before { content: "◆"; color: var(--pending); }
.w-legende i.gering::before { content: "●"; color: var(--na); }
.w-legende i.nicht_relevant::before { content: "○"; color: var(--muted); }

/* --- Zeitleiste: „heute" markieren, bereits Geltendes ausfüllen ----------- */
/* Was schon gilt (11.02.2025 „in Kraft"): ausgefüllter Punkt – der aktuelle Dauerzustand, nicht blass. */
.w-frist.gilt .mk { background: var(--ink); border-color: var(--ink); }
.w-band .w-frist.gilt .jahr .zahl { color: var(--ink); }
.w-heute { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 16px; align-items: center; padding: 4px 0; }
.w-heute .mk { width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 2px solid var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); z-index: 1; }
.w-heute .txt { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }

/* --- Direktlink je Thema ------------------------------------------------- */
.w-anker {
  display: inline-flex; vertical-align: middle; margin-left: .4em; padding: 2px;
  border: 0; background: none; color: var(--muted); cursor: pointer;
  border-radius: 5px; position: relative; opacity: .5; transition: opacity .14s, color .14s;
}
.w-kapitel > summary:hover .w-anker, .w-anker:hover, .w-anker:focus-visible { opacity: 1; color: var(--brand); }
.w-anker:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.w-anker.kopiert { opacity: 1; color: var(--brand); }
.w-anker.kopiert::after {
  content: "Link kopiert"; position: absolute; left: 50%; bottom: calc(100% + 6px);
  transform: translateX(-50%); background: var(--brand); color: #fff;
  font-size: .68rem; font-weight: 600; letter-spacing: .01em; padding: 3px 8px;
  border-radius: 6px; white-space: nowrap; z-index: 5; text-transform: none;
}

/* --- Lesefortschritt + „nach oben" --------------------------------------- */
.w-fortschritt {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 80;
  background: var(--brand); transition: width .1s linear;
}
.w-nachoben {
  position: fixed; left: 18px; bottom: 18px; z-index: 55;
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 50%; cursor: pointer; color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .18s, transform .18s, color .14s, border-color .14s;
}
.w-nachoben.sichtbar { opacity: 1; pointer-events: auto; transform: none; }
.w-nachoben:hover { color: var(--brand); border-color: var(--brand); }
@media (prefers-reduced-motion: reduce) {
  .w-fortschritt, .w-nachoben { transition: none; }
}

/* --- Akteurs-Glossar (Rollen aus Art. 3) --------------------------------- */
.w-akteure { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-top: 1rem; }
@media (min-width: 640px) { .w-akteure { grid-template-columns: 1fr 1fr; } }
.w-akteur { background: var(--surface); padding: 13px 15px; }
.w-akteur b { display: block; font-size: .96rem; margin-bottom: .2em; }
.w-akteur-nr { font-family: var(--mono); font-size: .64rem; font-weight: 500; color: var(--muted); margin-left: .5em; letter-spacing: .02em; }
.w-akteur p { margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.5; }

/* --- Pflichten-Matrix ---------------------------------------------------- */
.w-matrix-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.w-matrix-tools label { font-size: .87rem; font-weight: 600; color: var(--ink-soft); }
.w-matrix-tools select { margin: 0; width: auto; }
.w-matrix-treffer { font-family: var(--mono); font-size: .76rem; color: var(--brand); font-weight: 700; }
.w-matrix-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.w-matrix { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .84rem; }
.w-matrix th, .w-matrix td { padding: 8px 9px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.w-matrix thead th { background: var(--surface-2); font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; vertical-align: bottom; }
.w-matrix thead th[data-rolle] { text-align: center; }
.w-matrix tbody th { font-weight: 600; }
.w-matrix tbody th b { display: block; font-size: .9rem; line-height: 1.25; }
.w-matrix tbody th small { display: block; font-family: var(--mono); font-size: .66rem; font-weight: 400; color: var(--muted); margin-top: 3px; }
.w-matrix .w-matrix-start { font-family: var(--mono); font-size: .74rem; color: var(--ink-soft); white-space: normal; width: 5.5rem; line-height: 1.35; }
.w-matrix td[data-rolle] { text-align: center; font-weight: 700; font-size: 1rem; }
.w-matrix td[data-rolle].ja { color: var(--ok); }
.w-matrix td[data-rolle].nein { color: var(--line-strong); }
.w-matrix tbody tr:last-child th, .w-matrix tbody tr:last-child td { border-bottom: none; }
.w-matrix tr.w-dim { opacity: .3; }
/* Erste Spalte beim Querscrollen stehen lassen. */
.w-matrix thead th:first-child, .w-matrix tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.w-matrix thead th:first-child { background: var(--surface-2); }
/* Gewählte Rolle: ihre Spalte hervorheben. */
.w-matrix.sel-erzeuger [data-rolle="erzeuger"],
.w-matrix.sel-hersteller [data-rolle="hersteller"],
.w-matrix.sel-lieferant [data-rolle="lieferant"],
.w-matrix.sel-importeur [data-rolle="importeur"],
.w-matrix.sel-vertreiber [data-rolle="vertreiber"],
.w-matrix.sel-bevollm [data-rolle="bevollm"],
.w-matrix.sel-endvertreiber [data-rolle="endvertreiber"] { background: var(--brand-tint); }

/* --- Handlungs-Checkliste ------------------------------------------------ */
.w-checkliste { list-style: none; margin: 0; padding: 0; }
.w-checkliste li { border-bottom: 1px solid var(--line); }
.w-checkliste li:last-child { border-bottom: none; }
.w-checkliste label { display: flex; align-items: flex-start; gap: 11px; padding: 11px 2px; cursor: pointer; line-height: 1.5; }
.w-checkliste input { margin: .18rem 0 0; width: auto; flex: none; }
.w-check-nr { font-family: var(--mono); font-weight: 700; color: var(--brand); flex: none; }
.w-checkliste input:checked ~ span:last-child { color: var(--muted); text-decoration: line-through; }

/* --- Druck: alles offen, Bedienelemente weg ------------------------------ */
@media print {
  .nav, .w-sprung, .w-toolbar, .w-registerkarte, .w-kontakt, .w-leer,
  .w-fortschritt, .w-nachoben, .w-anker, .w-matrix-tools { display: none !important; }
  .w-matrix-scroll { overflow: visible !important; }
  .w-matrix { min-width: 0 !important; }
  /* Kapitel aufklappen. Das Aufklappen erledigt zwar auch das Skript beim
     Druckbefehl; diese Regeln greifen zusätzlich, wenn JavaScript aus ist.
     display allein genügt nicht — moderne Browser blenden den Inhalt über
     ::details-content aus, nicht über die Kindelemente. */
  .w-kapitel > .koerper { display: block !important; }
  .w-kapitel::details-content { content-visibility: visible !important; block-size: auto !important; }
  .w-kapitel > summary { cursor: default; }
  .w-kapitel .chev { display: none; }
  .w-kapitel, .card { box-shadow: none; border-color: #bbb; break-inside: avoid; }
  .w-teil { break-after: avoid; }
  body { background: #fff; }
}
