/* Version 1.4.1: Kopfzeile beim Scrollen sichtbar halten. */
/* overflow:hidden am übergeordneten Website-Container verhindert position:sticky. */
body .wp-site-blocks { overflow: clip; }
/* WordPress rendert die Kopfzeile als Template-Part-Wrapper. */
body .wp-site-blocks > .wp-block-template-part:has(.ial-header) {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  isolation: isolate;
  background: #fff;
}
body .wp-site-blocks > .wp-block-template-part:has(.ial-header) .ial-header {
  background: #fff;
  margin: 0 !important;
}
/* Auch eine direkte Header-Ausgabe bleibt fixiert. */
body .wp-site-blocks > .ial-header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
}
/* Angemeldete Besucher: Admin-Leiste nicht verdecken. */
body.admin-bar .wp-site-blocks > .wp-block-template-part:has(.ial-header),
body.admin-bar .wp-site-blocks > .ial-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .wp-site-blocks > .wp-block-template-part:has(.ial-header),
  body.admin-bar .wp-site-blocks > .ial-header { top: 46px; }
}
/* Ankerziele nicht hinter der fixierten Navigation verstecken. */
html { scroll-padding-top: 112px; }
@media (max-width: 850px) { html { scroll-padding-top: 95px; } }
