/* Plain static CSS (same pathway as mobile-headings.css) - print layout
   for pages that carry a print button (a link to "#drucken", e.g. the
   Schnelleinstieg sheets). Scoped via :has() so printing any other page
   stays exactly as before. Goal: the sheet's text on one A4 page -
   no header/footer, no images, no buttons, all tab panels expanded. */

@page {
  size: A4;
  margin: 14mm 14mm 16mm;
}

@media print {
  body:has(a[href$="#drucken"]) .hs-elevate-header,
  body:has(a[href$="#drucken"]) .hs-elevate-footer,
  body:has(a[href$="#drucken"]) .hs-elevate-button,
  body:has(a[href$="#drucken"]) .hs-elevate-image__inner,
  body:has(a[href$="#drucken"]) .hs-elevate-image-and-text-animated__image-container,
  body:has(a[href$="#drucken"]) .hs-elevate-situation-tab-bar__tablist,
  body:has(a[href$="#drucken"]) .hs-elevate-situation-tab-bar__swipe-hint,
  body:has(a[href$="#drucken"]) .hs-elevate-situation-tab-bar__panel-media,
  body:has(a[href$="#drucken"]) .hs-elevate-verified-source-badge__icon,
  body:has(a[href$="#drucken"]) .terisa-stoerer,
  body:has(a[href$="#drucken"]) .dnd-section:has(a[href*="#nl_"]) {
    display: none !important;
  }

  /* Colour bands and cards print as plain black text on white. */
  body:has(a[href$="#drucken"]),
  body:has(a[href$="#drucken"]) * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  body:has(a[href$="#drucken"]) .dnd-section {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  body:has(a[href$="#drucken"]) h1 { font-size: 22pt !important; }
  body:has(a[href$="#drucken"]) h2 { font-size: 15pt !important; }
  body:has(a[href$="#drucken"]) h3 { font-size: 12pt !important; }
  body:has(a[href$="#drucken"]) p,
  body:has(a[href$="#drucken"]) li { font-size: 10pt !important; line-height: 1.4 !important; }

  /* Every step of the tab bar, one below the other, not just the active one. */
  body:has(a[href$="#drucken"]) .hs-elevate-situation-tab-bar__panel {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    padding: 4px 0 !important;
  }

  /* Source badges: show the "Stand" text that otherwise only opens on hover. */
  body:has(a[href$="#drucken"]) .hs-elevate-verified-source-badge {
    border: 0 !important;
    padding: 0 !important;
  }
  body:has(a[href$="#drucken"]) .hs-elevate-verified-source-badge__link {
    max-width: none !important;
    opacity: 1 !important;
    text-decoration: none !important;
  }

  /* Scroll-in animations must not leave content invisible on paper. */
  body:has(a[href$="#drucken"]) [style*="opacity"] {
    opacity: 1 !important;
  }

  body:has(a[href$="#drucken"]) .dnd-section,
  body:has(a[href$="#drucken"]) .hs-elevate-card-container {
    break-inside: avoid;
  }
}
