/* ==========================================================================
   kreditlogik — Druckstylesheet
   Optimiert für die Unterlagen-Checklisten und die Inventarliste Wertsachen.
   ========================================================================== */

@page {
  margin: 18mm 16mm;
}

html, body {
  background: #fff !important;
  color: #000 !important;
  font-size: 10.5pt;
  line-height: 1.45;
}

.site-head,
.site-nav,
.site-foot,
.skip,
.brotkrume,
.kontaktbaustein,
.modul,
.modulnav,
.viz,
.disclaimer,
form,
.knopf,
.status,
.nicht-drucken {
  display: none !important;
}

main, .wrap, .prose {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

h1 { font-size: 18pt; margin-bottom: 4mm; }
h2 { font-size: 13pt; margin-top: 8mm; break-after: avoid; }
h3 { font-size: 11pt; margin-top: 6mm; break-after: avoid; }
p, li { orphans: 3; widows: 3; }

a { color: #000 !important; text-decoration: none; }
a[href^="/"]::after { content: " (kreditlogik.de" attr(href) ")"; font-size: 8pt; color: #444; }
a[href^="#"]::after { content: ""; }

.karte, .hinweis, .merke, .warnung {
  border: 1px solid #999 !important;
  background: transparent !important;
  padding: 3mm 4mm;
  break-inside: avoid;
}

/* Checklisten: leere Kästchen zum Abhaken auf Papier */
.checkliste { break-inside: auto; }
.checkliste li {
  border-bottom: 1px dotted #999;
  padding: 1.6mm 0;
  break-inside: avoid;
  display: flex;
  gap: 3mm;
}
.checkliste input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 4mm;
  height: 4mm;
  border: 0.4mm solid #000;
  margin-top: 1mm;
  flex: none;
  background: #fff;
}
.checkliste input[type="checkbox"]:checked::after {
  content: "×";
  display: block;
  text-align: center;
  line-height: 3.2mm;
  font-size: 9pt;
}

/* Inventarliste Wertsachen und Tabellen allgemein */
table { width: 100%; border-collapse: collapse; break-inside: auto; }
caption { color: #000 !important; font-size: 9pt; }
th, td {
  border: 0.3mm solid #666 !important;
  padding: 2.4mm 2mm;
  color: #000 !important;
  font-size: 9.5pt;
}
th {
  background: #eee !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  letter-spacing: 0.06em;
}
thead { display: table-header-group; }
tr { break-inside: avoid; }

.inventar td { height: 9mm; }

.druck-kopf { display: block !important; margin-bottom: 6mm; }
.druck-kopf::after {
  content: "kreditlogik.de — Vorlage zum Selbstausfüllen. Keine Beratung, keine Übermittlung.";
  display: block;
  font-size: 8pt;
  color: #444;
  border-bottom: 0.3mm solid #999;
  padding-bottom: 2mm;
}
