﻿/* WiMaBi – Print-CSS (A4):
   - Logo ÜBER Titel, Titel groß direkt darunter
   - Ganze Inhalts-Spalte ohne Sidebar
   - Verhindert Shrink-to-fit durch feste Breite in mm
   - Blendet nur für den Druck die Bildschirm-H1 aus (damit keine Duplikate)
*/

/* Im Screen nicht anzeigen */
@media screen {
  .wmb-print-header { display: none !important; }
}

/* A4 + Rand */
@page { size: A4; margin: 12mm; }

@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Website-Rahmen & Sidebar ausblenden */
  .site-header, .site-footer, nav,
  #secondary, .sidebar, .site-sidebar, .right-sidebar, .widget-area { display: none !important; }

  /* OceanWP Page-Header (seitentitel oben) ausblenden, damit nichts doppelt ist */
  #page-header, .page-header, .page-header-title, .page-header-inner { display: none !important; }

  /* Druckbreite exakt auf A4-Innenmaß (210mm - 2*12mm = 186mm) */
  #content-wrap, .container, #primary, .content-area, .site-main, #content, .clr, article.adverts-single {
    box-sizing: border-box !important;
    width: 186mm !important;
    max-width: 186mm !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
  }

  /* PRINT-HEADER: Logo + GROßER Titel */
  .wmb-print-header {
    display: block !important;
    margin: 0 0 8mm 0 !important;
    page-break-inside: avoid !important;
  }
  .wmb-print-logo {
    display: block !important;
    width: 45mm !important;   /* anpassbar */
    height: auto !important;
    margin: 0 0 4mm 0 !important;
  }
  .wmb-print-title {
    display: block !important;
    font-weight: 900 !important;
    font-size: 28mm !important;   /* ≈ 80pt – bei Bedarf 30–32mm setzen */
    line-height: 1.08 !important;
    margin: 0 0 6mm 0 !important;
    color: #000 !important;
    word-break: break-word !important;
    hyphens: auto !important;
  }

  /* Bildschirm-H1 im Druck ausblenden (wir nutzen die große wmb-print-title) */
  .entry-header { display: none !important; }

  /* Restliche Typografie/Medien */
  h2, h3 { line-height: 1.2 !important; }
  p { margin: 0 0 .6em !important; }
  img, figure { max-width: 100% !important; height: auto !important; page-break-inside: avoid !important; }

  /* PDF-Button nicht mitdrucken */
  #wimabi-print-pdf { display: none !important; }
}
