/* Grundlayout zurücksetzen */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
}

/* T4-spezifische Leerbereiche entfernen */
.t4-main-body {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Optional: Unsichtbare Joomla-Meldungen ausblenden */
#system-message-container {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* Optional: alle Template-Elemente ausblenden */
body.pagebuilder-layout .t4-header,
body.pagebuilder-layout .t4-toolbar,
body.pagebuilder-layout .t4-top,
body.pagebuilder-layout .t4-breadcrumb,
body.pagebuilder-layout .t4-footer,
body.pagebuilder-layout .t4-content-masthead {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}



/* Entfernt den horizontalen Innenabstand des Navigationsbereichs */
body.view-article .t4-navbar.navbar-expand-lg {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Entfernt eventuell vorhandenes Margin/Padding oberhalb des Headers */
body.view-article .t4b-header,
body.view-article .header-wrap {
  margin: 0 !important;
  padding: 0 !important;
}

/* Falls zusätzlicher Rand auf erster Section (Hintergrundbild) */
body.view-article .t4b-section:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}




body.view-article #t4b-header,
body.view-article .t4b-header,
body.view-article .t4b-header-2,
body.view-article .t4b-section:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border: none !important;
}



body.view-article .t4-wrapper,
body.view-article .t4-content,
body.view-article .t4-content-inner,
body.view-article .t4-main-body,
body.view-article .t4-section,
body.view-article .t4b-section:first-child,
body.view-article .t4b-header,
body.view-article .t4-navbar,
body.view-article .header-wrap,
body.view-article #t4b-header {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
