/* === TYPO3 Ohlsbach: Druck-Optimierung === */
@page { size: A4; margin: 12mm; }

@media print {
  /* 1) Navigation & Chromen ausblenden */
  /* Top-Menü + Suche */
  #layout01,
  #suchbereich,
  .mainMenueId,
  .nav_responsive,
  .menueId,
  .unsichtbar a,
  .responsiveMenue,
  .navId { display: none !important; }

  /* Kopf/Hero, obere Link-Leiste */
  #layout02,
  #layout05 { display: none !important; }

  /* Linke Subnavigation & Breadcrumb */
  #subnavi,
  .responsivenavi,
  #breadcrumb { display: none !important; }

  /* Rechte Spalte / Footer / Tools */
  #sprache,
  #footer01,
  #footer02,
  #footer03,
  #footer04,
  #nachOben,
  #drucken { display: none !important; }

  /* Lightbox/Overlays sicherheitshalber aus */
  #sbOverlay, #sbCenter, #sbBottomContainer { display: none !important; }

  /* 2) Inhalt auf volle Breite ziehen */
  #layout08, #layout09, #layout10, #layout13, #contentbereich {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
  }

  /* 3) Optik vereinfachen */
  * { box-shadow: none !important; text-shadow: none !important; }
  body, #layout05 { background: #fff !important; color: #000; line-height: 1.4; font-size: 11pt; }

  /* 4) Links ggf. mit URL drucken */
  #contentbereich a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: .9em;
    word-break: break-all;
  }

  /* 5) Umbrüche/Medien */
  h1, h2, h3 { break-after: avoid; }
  figure, table, blockquote { break-inside: avoid; }
  img { max-width: 100% !important; height: auto !important; }

  /* 6) Sticky/Fixed neutralisieren */
  [style*="position:sticky"], .sticky, .sticky-top { position: static !important; }

  /* Cross7 */
  .c7-geo-overview-default-view-header.c7-part, 
  c7-category-filter-circle, 
  c7-search-filter, 
  c7-calendar-export,
  c7-sort {
    display: none!important;
}
}
