/* print.css
   Setzt für Druckausgabe alle Texte auf 12pt.
   Einbinden: <link rel="stylesheet" href="print.css" media="print">
*/

@media print {

  /* Seitenformat A4 mit 1cm Rand */
  @page {
    size: A4;
    margin-top: 1.5cm;
    margin-left: 1cm;
    margin-right: 1cm;
    margin-bottom: 2cm; /* Abstand zum unteren Seitenrand */
    /* Footer mit Copyright */
    @bottom-right {
      content: "Seite " counter(page) " von " counter(pages);
      font-size: 8pt;
    }
  }

  /* Basis: alle Elemente auf 12pt */
  * {
    font-size: 20pt !important;
    line-height: 1.3 !important;
    /* color: #000 !important;         /* sicherstellen, dass Text schwarz ist */
    background: transparent !important;
    -webkit-text-size-adjust: none !important;
  }

  /* Body / html sicher setzen */
  html, body {
    font-size:20pt !important;
    margin: 0;
    padding: 0;
    background: transparent !important;
    /* color: #000 !important; */
  }

  /* Links als Linktext (keine blaue Farbe/Unterstreichung im Druck) */
  a {
    color: #000 !important;
    text-decoration: none !important;
  }

  /* Entferne dekorative Elemente, die beim Druck stören */
  /*
  img, video, iframe, svg {
    display: none !important;
  }
    */
  /* Tabellen: Lesbar halten */
  table {
    border-collapse: collapse !important;
    width: auto !important;
    page-break-inside: avoid !important;
  }
  th, td {
    padding: 4px !important;
    font-size: 16pt !important;
  }

  /* Vermeide Seitenumbrüche an ungünstigen Stellen */
  h1, h2, h3, h4, h5, h6, p, pre, blockquote {
    orphans: 3;
    widows: 3;
    page-break-inside: avoid;
/*    font-size: 12pt !important; /* Überschriften ebenfalls 12pt */
  }

  /* Formularelemente lesbar machen */
  input, textarea, select, button {
    font-size: 20pt !important;
  }
  /* --- Nicht druckbare Bereiche --- */
  nav, footer, header, .no-print {
    display: none !important;
  }
}
