/* Druck-Optimierung */

@media print {

  /* Grundlayout */
  body {
    background: white !important;
    color: black !important;
    font-family: serif;
    font-size: 12pt;
    line-height: 1.4;
  }

  /* Entferne nicht druckbare Bereiche */
  header,
  .hero,
  .hero-image,
  .hero-text,
  .cta-button,
  .hero-button,
  nav,
  footer,
  .btn,
  .shadow-sm,
  .img-fluid.shadow-sm,
  script,
  noscript {
    display: none !important;
  }

  /* Container & Layout */
  .container,
  main,
  section {
    width: 100% !important;
    margin: 0;
    padding: 0;
  }

  /* Bilder innerhalb des Contents dürfen bleiben */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Überschriften anpassen */
  h1, h2, h3, h4 {
    color: black;
    page-break-after: avoid;
  }

  /* Listen lesbar halten */
  ul, ol {
    margin-left: 2rem;
  }

  /* Vermeide Seitenumbrüche mitten in Details */
  details {
    page-break-inside: avoid;
    border: none;
    padding: 0;
  }

  summary {
    font-weight: bold;
  }

  /* Links als URLs anzeigen (optional) */
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
    color: gray;
  }

  /* Verhindere Link-Farben */
  a {
    color: black !important;
    text-decoration: underline;
  }

  /* Seitenränder (kann je nach Drucker angepasst werden) */
  @page {
    margin: 1.5cm;
  }

  /* Optional: Seitenumbrüche zwischen großen Sektionen */
  section {
    page-break-before: auto;
    page-break-after: auto;
  }
}
