@media print {

  /* Seitengröße, Ränder und Farbanpassungen */
  @page {
    size: A4 portrait;
    margin: 2cm;
    orphans: 3;
    widows: 3;
  }

  /* Monochrome & Cleanup */
  body,
  html {
    filter: grayscale(1) !important;
    -webkit-filter: grayscale(1) !important;
    margin: 0 !important;
    padding: 0 !important;
    page-break-before: auto !important;
    /* Verhindert eine mögliche leere erste Seite durch den body */

  }

  *:not(li) {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #000000 !important;
    text-shadow: none !important;
  }

  * {
    color: #000;
    background-color: transparent;
    min-height: unset !important;
    height: auto !important;
    max-height: unset !important;
    overflow: visible !important;
    word-break: break-word !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }


  /* Layout and positioning resets */
  *,
  *:before,
  *:after {
    float: none !important;
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
    text-align: left !important;
    clear: both !important;
    border: none !important;
    outline: none !important;
    color: #000000 !important
      /* Remove outlines */
  }

  ::marker {
    color: #000000 !important;
  }

  /* Force top-level layout elements to block and full width */
  body,
  html,
  div.page-wrapper,
  div.postheader-wrapper,
  div.content-wrapper,
  div[class*="container"],
  div[class*="row"],
  div[class*="col-"] {
    display: block !important;
    width: 100% !important;
    min-width: unset !important;

  }

  /* Aggressively reduce/remove padding and margin, then re-apply for content */
  *:not(li) {
    padding: 0 !important;
    margin: 0 !important;
  }

  header .logo {
    width: 100%;
    max-width: 7cm !important;
  }

  /* Elements to Hide */
  img:not(.logo img),
  svg,
  [role="img"],
  nav,
  [role="navigation"],
  [id*="nav"],
  [class*="nav"],
  [id*="navigation"],
  [class*="navigation"],
  [id*="menu"],
  [class*="menu"],
  [id*="breadcrumb"],
  [class*="breadcrumb"],
  [id*="subnav"],
  [class*="subnav"],
  [id*="mobileSubnav"],
  [class*="mobileSubnav"],
  form,
  input,
  textarea,
  select,
  button,
  [role="button"],
  input[type="submit"],
  input[type="button"],
  a[class*="btn"],
  a[class*="button"],
  footer,
  [id*="footer"],
  [class*="footer"],
  iframe,
  [id*="hero"],
  [class*="hero"],
  [id*="banner"],
  [class*="banner"],
  [id="slider"],
  .swiper,
  aside,
  [id*="sidebar"],
  [class*="sidebar"],
  [id*="aside"],
  [class*="aside"],
  [id*="search"],
  [class*="search"],
  [id*="cookie"],
  [class*="cookie"],
  [id*="gdpr"],
  [class*="gdpr"],
  [id*="consent"],
  [class*="consent"],
  [id*="chat"],
  [class*="chat"],
  [id*="support"],
  [class*="support"],
  hr,
  [role="separator"],
  [role="presentation"],
  [type="button"],
  button,
  figure,
  .sr-only,
  nav,
  video,
  .more,
  .scroll-to-top {
    display: none !important;
    visibility: hidden !important;
    /* Ensure hidden from screen readers too */
  }

  /* Ensure the print-only footer is visible */
  .print-only {
    margin-top: 3em !important;
    display: block !important;
    visibility: visible !important;
  }

  .print-only p {
    line-height: 1.5;
  }

  /* Spacing & Typography */
  /* Re-establish margins for content blocks */
  p,
  blockquote,
  pre,
  address,
  figure,
  dl,
  dt,
  dd {
    margin-top: 1em !important;
    margin-bottom: 1em !important;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    text-align: left !important;
    page-break-after: auto !important;
    margin-top: 1.5em !important;
    margin-bottom: 0.8em !important;
  }

  h1 {
    font-size: 24pt !important;
  }

  h2 {
    font-size: 18pt !important;
    margin-top: 1.2em !important;
  }

  h3 {
    font-size: 14pt !important;
    margin-top: 1em !important;
  }

  h4 {
    font-size: 12pt !important;
    margin-top: 0.8em !important;
  }

  h5 {
    font-size: 11pt !important;
    margin-top: 0.7em !important;
  }

  h6 {
    font-size: 10pt !important;
    margin-top: 0.6em !important;
  }

  /* List Styling */
  ul {
    list-style: disc !important;
  }

  ol {
    list-style: decimal !important;
  }

  ul,
  ol {
    padding-left: 1em !important;
    margin-bottom: 1em !important;
    margin-top: 1em !important;
  }

  li {
    margin-bottom: 0.5em !important;
    margin-left: 0 !important;
    /* Reset any specific list item indentation */
  }

  /* Page Breaks */
  table {
    page-break-before: auto !important;
  }


  th:first-child,
  td:first-child {
    width: 6cm !important;
    min-width: 7cm !important;
    max-width: 5cm !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
  }

  td {
    padding: 0.5cm 0 !important;
  }

  tr {
    border-bottom: 1px solid #000000 !important;
  }

  /* Expand tabbed/accordion content */
  .tab-content,
  .accordion-panel,
  .collapse {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Link Handling */
  /* Keep specific links */
  a[href^="tel:"],
  a[href^="mailto:"],
  a[href^="fax:"] {
    display: inline !important;
    color: #000000 !important;
    text-decoration: none !important;
  }

  /* Style all visible links */
  a,
  a:visited {
    text-decoration: none !important;
    color: #000 !important;
  }

  .carousel-indicators {
    display: none;
  }

  .carousel-item {
    opacity: 1 !important;
    display: block;
  }

  .carousel-item * {
    text-align: left !important;
  }

  .mosaic-item {
    float: left !important;
    clear: unset !important;
  }

  .element-gridelements_pi1 .mosaic-item {
    padding: 0.5em !important;
    min-width: 30%;
  }

  .four-item-carousel {
    height: unset !important;
  }

  .element-gridelements_pi1:has(#c1835),
  .element-gridelements_pi1:has(#c1827) {
    display: none !important;
  }

  .header-content .swiper-container {
    display: none !important;
    height: 0 !important;
  }

  #c2869 {
    display: none !important;
  }

  .tx-ozp-contentfilter .contentcontener .container .items-cfilter {
    margin-bottom: 1.5cm !important;
  }

  .tx-ozp-contentfilter .tab-link {
    display: none !important;
  }

  .slick-slider * {
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: unset !important;
    transform: unset !important;
  }

  .slick-arrow,
  .slick-dots {
    display: none !important;
  }

  .t3-layout-multi-accordion .panelwrapper .headerCol header:after,
  .t3-layout-single-accordion .panelwrapper .headerCol header:after,
  .t3-layout-multi-accordion .frame-type-ce_container header:after,
  .t3-layout-single-accordion .frame-type-ce_container header:after {
    display: none !important
  }

  .t3-layout-single-accordion *,
  .t3-layout-multi-accordion * {
    display: block !important;
  }

  .personnel .listitem,
  .personnel .card.listitem {
    display: block;
    width: 100%;
  }

  blockquote * {
    display: inline-block !important;
    max-width: 75% !important;
  }
}