/* Fachteil des Moduls: Stile, die nur dieses Modul braucht. Das Gemeinsame
   steht in style.css (Referenz, bei jedem Bau erzeugt). */

@media print {
  .bericht h2 { margin: 0 0 .2rem; }
  .bericht h3 { margin: .5rem 0 .25rem; font-size: .95rem; }
  .bericht p { margin: .3rem 0; }
  .bericht .mini-table { margin: .2rem 0 .6rem; font-size: .8rem; }
  .bericht .mini-table th, .bericht .mini-table td { padding: .15rem .5rem; }
}

.bericht-alert { background: var(--amber); border-left: 4px solid var(--amber-text); border-radius: 6px; padding: .5rem .8rem .1rem; margin: .3rem 0 .9rem; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bericht-alert .mini-table { box-shadow: none; }
.bericht-alert .mini-table th { background: rgba(255,255,255,.55); }

/* ---------- Leitlinien: Dokumentenoptik (Titelblock, Kopf-/Fusszeile), angelehnt an den
   Word-Vorlagen der Master-Dokumente (Calibri, Blautoene, Kopf-/Fusszeile) ----------
   .leitlinie-doc ist ein <table> mit thead/tfoot/tbody: das ist der einzige Weg, wie Chromium
   eine Kopf-/Fusszeile beim Drucken zuverlaessig auf JEDER Seite wiederholt - position:fixed
   wird beim Drucken/PDF-Export nicht pro Seite neu positioniert und ueberlappt ab Seite 2 mit
   dem Inhalt. Auf dem Bildschirm wird die Tabelle per display:block wie normaler Fliesstext
   dargestellt, nur beim Drucken greift das echte table/thead/tfoot-Layout. */
.leitlinie-doc, .leitlinie-doc > thead, .leitlinie-doc > tbody, .leitlinie-doc > tfoot,
.leitlinie-doc > thead > tr, .leitlinie-doc > tbody > tr, .leitlinie-doc > tfoot > tr,
.leitlinie-doc > thead > tr > td, .leitlinie-doc > tbody > tr > td,
.leitlinie-doc > tfoot > tr > td { display: block; width: 100%; }
.leitlinie-print-header, .leitlinie-print-footer { display: none; }
.leitlinie-titelblock table { border-collapse: collapse; width: 100%; margin-bottom: 1.2rem; font-size: .92rem; }
.leitlinie-titelblock th, .leitlinie-titelblock td { border: 1px solid var(--border); padding: .4rem .7rem; text-align: left; }
.leitlinie-titelblock th { background: var(--blue-light); color: var(--blue-dark); font-weight: 600; width: 8rem; }
@media print {
  .leitlinie-doc { display: table; }
  .leitlinie-doc thead { display: table-header-group; }
  .leitlinie-doc tfoot { display: table-footer-group; }
  .leitlinie-doc > tbody { display: table-row-group; }
  .leitlinie-doc > thead > tr, .leitlinie-doc > tbody > tr,
  .leitlinie-doc > tfoot > tr { display: table-row; }
  .leitlinie-doc > thead > tr > td, .leitlinie-doc > tbody > tr > td,
  .leitlinie-doc > tfoot > tr > td { display: table-cell; }
  .leitlinie-print-header, .leitlinie-print-footer {
    display: block;
    font-family: Calibri, "Segoe UI", Arial, sans-serif; font-size: .72rem; color: #444;
  }
  .leitlinie-print-header { padding-bottom: .3rem; border-bottom: 1px solid #ccc; }
  .leitlinie-print-footer { padding-top: .3rem; border-top: 1px solid #ccc; }
  .leitlinie-doc { font-family: Calibri, "Segoe UI", Arial, sans-serif; }
  .leitlinie-doc tbody > tr > td { padding-top: .3rem; padding-bottom: .3rem; }
  .leitlinie-doc .leitlinie-titelblock th { background: #eef3f8 !important; color: var(--blue-dark) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .leitlinie-doc .markdown-body h3 { color: #2E74B5; }
  .leitlinie-doc .markdown-body h4 { color: #1F4D78; }
}

.massnahme-mini { margin-top: .3rem; font-size: .78rem; }

/* Dokumentenkopf und Änderungshistorie - dieselbe Optik wie in der
   Word-Fassung (Kopfzeile dunkel, feine Linien, schmale erste Spalte).
   Anlass 30.08.2026: Die Ansicht zeigte vier Felder, die Word-Fassung neun
   plus Historie - beide sollen gleich aussehen. */
.leitlinie-kopftabelle { border-collapse: collapse; width: 100%;
  margin: 0 0 1rem 0; font-size: .9rem; }
.leitlinie-kopftabelle th, .leitlinie-kopftabelle td {
  border: 1px solid #b8c4d0; padding: .35rem .6rem; text-align: left;
  vertical-align: top; }
.leitlinie-kopftabelle tr:first-child th { background: var(--blue-dark, #1a3a5c);
  color: #fff; font-weight: 600; width: auto; }
.leitlinie-kopftabelle tr:not(:first-child) th { background: #fff;
  color: inherit; font-weight: 400; width: 11rem; white-space: nowrap; }
@media print {
  .leitlinie-kopftabelle tr:first-child th { background: #1a3a5c !important;
    color: #fff !important; -webkit-print-color-adjust: exact;
    print-color-adjust: exact; }
}
