/* ==========================================================================
   NachweisApp - Print Stylesheet
   Schwarz auf weiss, ohne Chrome (Header/Nav/Footer ausgeblendet).
   Links bekommen ihre URL nachgestellt.
   ========================================================================== */

@media print {

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

  /* Chrome ausblenden */
  .topbar,
  .hinweisband,
  .hauptnav,
  .brotkrumen,
  .fuss,
  .fuss-zeile,
  .skip-link,
  .button-leiste,
  .nav-toggle {
    display: none !important;
  }

  /* Kopfbereich reduziert */
  .kopf {
    border: 0;
    border-bottom: 1pt solid #000;
    margin-bottom: 12pt;
  }
  .kopf-inner {
    padding: 0 0 8pt 0;
    display: block;
  }
  .wortmarke-name { color: #000 !important; font-size: 18pt; }
  .wortmarke-untertitel { color: #000 !important; font-size: 10pt; }

  /* Layout flach */
  main, main.weit {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  h1, h2, h3, h4 { color: #000 !important; page-break-after: avoid; }
  h1 { font-size: 18pt; }
  h2 { font-size: 14pt; }
  h3 { font-size: 12pt; }

  p, li { orphans: 3; widows: 3; }

  /* Boxen entfaerben */
  .box-info, .box-warn, .box-success,
  .status-block, .stand-info {
    background: #fff !important;
    border: 1pt solid #000 !important;
    border-left: 3pt solid #000 !important;
    padding: 6pt 10pt;
  }

  /* Tabellen sw */
  .tabelle-behoerdlich th,
  .tabelle-behoerdlich td {
    border-bottom: 1pt solid #000 !important;
    background: #fff !important;
  }
  .tabelle-behoerdlich thead th { border-bottom: 2pt solid #000 !important; }

  /* Links: URL hinter Text */
  a, a:visited {
    color: #000 !important;
    text-decoration: underline;
  }
  a[href^="http"]::after,
  a[href^="/"]::after,
  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #000;
  }
  /* Anker, Fragmente und tel-Links nicht annotieren */
  a[href^="#"]::after,
  a[href^="tel:"]::after { content: ""; }

  /* Seitenumbrueche */
  .stand-info { page-break-inside: avoid; }
  details { page-break-inside: avoid; }
  details > summary { font-weight: 700; }
  details:not([open]) > *:not(summary) { display: none; }
}
