
/* ==========================================================================
   ComTechSa 0.36.1 – Unterseiten direkt an den Header anschließen
   Startseite bleibt unverändert.
   ========================================================================== */

body:not(.home):not(.error404) .cts-subhero,
body:not(.home):not(.error404) .cts-ref-page-hero,
body:not(.home):not(.error404) .cts-page-hero,
body:not(.home):not(.error404) .cts-ref-hero{
  margin-top:0!important;
  margin-block-start:0!important;
}

/* Auch mögliche Gutenberg-Blockabstände zwischen Header und erstem Inhaltsblock entfernen. */
body:not(.home):not(.error404) .wp-site-blocks > .cts-main-anchor + .cts-subhero,
body:not(.home):not(.error404) .wp-site-blocks > .cts-subhero,
body:not(.home):not(.error404) main > .cts-subhero{
  margin-top:0!important;
  margin-block-start:0!important;
}

/* Mobile und Tablet ebenfalls ohne zusätzliche Lücke. */
@media(max-width:1180px){
  body:not(.home):not(.error404) .cts-subhero,
  body:not(.home):not(.error404) .cts-ref-page-hero,
  body:not(.home):not(.error404) .cts-page-hero,
  body:not(.home):not(.error404) .cts-ref-hero{
    margin-top:0!important;
    margin-block-start:0!important;
  }
}
