/* ==========================================================================
   wissen-blatt.css  ·  Einzelseite eines Wissensblatts (/wissen/<name>.html)
   Ergaenzt style.css, benutzt dessen Variablen. Seit 09.11.2026.
   Zweck: der Inhalt der Wissensblaetter steht als Text auf der Seite, nicht
   nur im PDF - damit er bei Google ueberhaupt gefunden werden kann.
   ========================================================================== */

/* ---------- Pfadzeile ---------- */
.brotkrumen {
  padding: 22px 0 0;
  font-size: 14px;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.brotkrumen a { color: var(--ink-faint); }
.brotkrumen a:hover { color: var(--orange-text); }
.brotkrumen span { opacity: 0.5; }

/* ---------- Titelkopf ---------- */
.blatt-titel { padding: 30px 0 34px; }
.blatt-titel .kicker { font-size: 14px; letter-spacing: 3px; margin-bottom: 14px; }
.blatt-titel h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  overflow-wrap: break-word;
  hyphens: auto;
}
.blatt-untertitel {
  margin-top: 16px;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.5;
  color: var(--ink-dim);
  max-width: 62ch;
}
.blatt-zeile {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 15px;
  color: var(--ink-faint);
}
.blatt-zeile .trenn { opacity: 0.5; }

/* ---------- Zweispalter: Text + Randspalte ---------- */
.blatt-koerper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
  padding-bottom: 20px;
}
.blatt-inhalt { min-width: 0; }
.blatt-inhalt > section { margin-bottom: 42px; }
.blatt-inhalt p { margin-bottom: 15px; max-width: 72ch; }
.blatt-inhalt h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  overflow-wrap: break-word;
  hyphens: auto;
}
.blatt-inhalt .lead p {
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.62;
  color: var(--ink);
}
.blatt-inhalt .lead {
  margin-bottom: 40px;
  padding-left: 20px;
  border-left: 3px solid var(--orange);
}
.blatt-inhalt strong { font-weight: 700; }

/* ---------- Abschnitt mit Nummer ---------- */
.w-abschnitt h2 .nr {
  display: inline-block;
  min-width: 1.6em;
  margin-right: 12px;
  color: var(--orange-text);
  font-variant-numeric: tabular-nums;
}
.w-abschnitt h2 .nr::after { content: "."; }

/* ---------- Praxiskasten ---------- */
.praxis {
  margin: 20px 0 0;
  padding: 20px 22px;
  background: var(--bg-2);
  border-radius: 12px;
  border: 1px solid var(--line-soft);
}
.praxis-kopf {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.praxis p:last-child { margin-bottom: 0; }

/* ---------- Tabelle ---------- */
.tabelle-rollen { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.w-tabelle table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.w-tabelle th, .w-tabelle td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.5;
}
.w-tabelle thead th {
  background: var(--bg-2);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: normal;
}
.w-tabelle tbody th { font-weight: 700; width: 18%; min-width: 110px; }
.w-tabelle tbody tr:last-child th,
.w-tabelle tbody tr:last-child td { border-bottom: 0; }

/* ---------- Entscheidungshilfe ---------- */
.w-entscheidung dl { margin: 0; }
.w-entscheidung dt {
  font-weight: 700;
  font-size: 17px;
  margin-top: 20px;
  padding-left: 26px;
  position: relative;
}
.w-entscheidung dt::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 10px; height: 10px;
  background: var(--orange);
  transform: rotate(45deg);
}
.w-entscheidung dt:first-child { margin-top: 0; }
.w-entscheidung dd {
  margin: 6px 0 0 26px;
  color: var(--ink-dim);
  max-width: 68ch;
}

/* ---------- Normen ---------- */
.w-normen ul { list-style: none; margin: 0; padding: 0; }
.w-normen li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  font-size: 15px;
}
.w-normen li:last-child { border-bottom: 0; }
.w-normen li strong { color: var(--orange-text); overflow-wrap: anywhere; }
.w-normen li span { color: var(--ink-dim); }

/* ---------- Grafiken ---------- */
.w-grafiken { display: grid; gap: 24px; }
.w-grafiken figure { margin: 0; }
.w-grafiken img {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.w-grafiken figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ---------- Fazit ---------- */
.w-fazit {
  padding: 28px 30px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 12px;
  box-shadow: var(--schatten);
}
.w-fazit h2 { font-size: 20px !important; margin-bottom: 12px; }
.w-fazit p:last-child { margin-bottom: 0; }

/* ---------- Randspalte ---------- */
.blatt-rand { display: grid; gap: 18px; position: sticky; top: 24px; }
.rand-kasten {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--schatten);
}
.rand-titel {
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.rand-kasten p { font-size: 15px; color: var(--ink-dim); margin-bottom: 16px; }
.rand-kasten .btn { width: 100%; justify-content: center; font-size: 14px; padding: 12px 18px; }
.rand-liste { list-style: none; margin: 0 0 14px; padding: 0; }
.rand-liste li { border-bottom: 1px solid var(--line-soft); }
.rand-liste li:last-child { border-bottom: 0; }
.rand-liste a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.rand-liste a:hover { color: var(--orange-text); }
.pdf-kasten { border-top: 3px solid var(--orange); }

/* ---------- Weitere Blaetter ---------- */
.w-weitere {
  margin-top: 20px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.w-weitere h2 {
  display: flex; align-items: center; gap: 12px;
  font-size: 26px; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 26px;
}
.weiter-liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.weiter-karte {
  display: block;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  color: var(--ink);
  box-shadow: var(--schatten);
}
.weiter-karte:hover { border-color: var(--orange); }
.weiter-nr {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange-text); margin-bottom: 8px;
}
.weiter-karte h3 {
  font-size: 19px; line-height: 1.25; margin-bottom: 8px;
  overflow-wrap: break-word; hyphens: auto;
}
.weiter-karte p { font-size: 14px; color: var(--ink-faint); line-height: 1.5; }
.cta-zeile {
  margin-top: 26px; text-align: center;
  font-size: 15px; color: var(--ink-faint);
}

/* ---------- Haftungsausschluss ---------- */
.haftung {
  margin: 36px 0 44px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-faint);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 980px) {
  .blatt-koerper { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .blatt-rand { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 680px) {
  .blatt-titel { padding: 22px 0 26px; }
  .blatt-inhalt > section { margin-bottom: 34px; }
  .blatt-inhalt .lead { padding-left: 14px; }
  .w-normen li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .w-fazit { padding: 22px 20px; }
  .praxis { padding: 16px 18px; }
  .w-weitere { padding: 34px 0; }
}

/* ---------- Druck: das PDF ist die Druckfassung, hier nur das Noetigste ---------- */
@media print {
  header.site, footer.site, .brotkrumen, .blatt-rand, .w-weitere, .nav-toggle { display: none; }
  .blatt-koerper { grid-template-columns: 1fr; }
  .w-tabelle table { min-width: 0; font-size: 10pt; }
  a[href]::after { content: ""; }
}
