
/* ==========================================================================
   ComTechSa 0.25.1 – Unterseiten Block-Gap Hotfix

   Ursache:
   WordPress adds the global blockGap between separate top-level patterns.
   Hero, content and CTA are independent patterns on the subpage templates,
   so a gap appeared even though their own margins were correct.
   ========================================================================== */

/* Structural ComTechSa sections must connect directly. */
.wp-site-blocks > .cts-subhero,
.wp-site-blocks > .cts-subpage-section,
.wp-site-blocks > .cts-subpage-cta,
.wp-site-blocks > .cts-ref-footer-shell{
  margin-block-start:0!important;
  margin-block-end:0!important;
}

/* Explicit adjacent-section protection against Gutenberg layout selectors. */
.cts-subhero + .cts-subpage-section,
.cts-subhero + .cts-subpage-cta,
.cts-subpage-section + .cts-subpage-section,
.cts-subpage-section + .cts-subpage-cta{
  margin-top:0!important;
  margin-block-start:0!important;
}

/* The anchor inserted directly after the header must not create layout height. */
.cts-main-anchor{
  display:block!important;
  width:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}

/* Desktop page frame stays visually connected. */
@media(min-width:901px){
  .cts-subhero{
    margin-bottom:0!important;
  }
  .cts-subpage-section{
    margin-top:0!important;
    margin-bottom:0!important;
  }
  .cts-subpage-cta{
    margin-top:0!important;
  }
}

/* Mobile remains full width with no accidental vertical block gap. */
@media(max-width:900px){
  .cts-subhero,
  .cts-subpage-section,
  .cts-subpage-cta{
    margin-block-start:0!important;
    margin-block-end:0!important;
  }
}
