/* ============================================================
   MASKIS.DE - DEDICATED PRINT STYLESHEET (TICKET-034)
   Optimized for physical paperwork, RFQs, and PDF exports
   ============================================================ */

@media print {
  /* Reset backgrounds & force clean black-on-white text */
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html,
  body,
  body.custom-background,
  #wrapper,
  #header,
  #content,
  #bottom_area,
  #footer {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
    line-height: 1.4;
  }

  /* Hide interactive, non-printable UI elements */
  .skip-link,
  #mainmenu,
  .tinynav,
  #bottom_area .bottom_widget,
  #back-to-top,
  button,
  .button,
  input[type="submit"],
  input[type="button"],
  .wp-pagenavi,
  .sf-sub-indicator {
    display: none !important;
  }

  /* Header Branding */
  #header {
    border-bottom: 2pt solid #000000;
    padding-bottom: 12pt;
    margin-bottom: 18pt;
  }

  #logo img {
    max-height: 60pt;
    width: auto;
  }

  /* Product & Data Tables */
  table,
  .article table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 15pt !important;
    page-break-inside: auto;
  }

  table th,
  table td,
  .article table th,
  .article table td {
    border: 1pt solid #444444 !important;
    padding: 5pt 8pt !important;
    font-size: 9.5pt;
  }

  table th,
  .article table th {
    background-color: #f0f0f0 !important;
    font-weight: 700;
  }

  /* Page Break Rules */
  tr,
  img,
  .kalkulis-box,
  .pin-article {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  h1,
  h2,
  h3,
  h4 {
    page-break-after: avoid;
    break-after: avoid;
    color: #000000 !important;
  }

  /* Links */
  a {
    text-decoration: underline !important;
    color: #000000 !important;
  }

  a[href^="http"]:not([href*="maskis.de"])::after {
    content: " (" attr(href) ")";
    font-size: 80%;
    font-weight: normal;
  }

  /* Printable Footer Summary */
  #footer {
    border-top: 1pt solid #888888;
    margin-top: 24pt;
    padding-top: 8pt;
    font-size: 8.5pt;
    text-align: center;
  }
}
