/* POHA Hamburg CTA bar – page adjustments requested by POHA, 20 Nov 2026.
   Loaded by the plugin on the front page only. Remove together with the bar. */

/* 1. Desktop: hero + bar fit the first screen. The theme sets the homepage hero to 100vh
      from 1024px (body.home .screenheightfullheight). "section" is in the selector so this
      wins whatever order the stylesheets load in. */
@media (min-width: 1024px) {
  body.home section.screenheightfullheight { height: calc(100vh - 70px); }
  /* two-row bar (92px) on narrower desktop widths */
  body.home section.screenheightfullheight:has(+ .poha-hh-bar.poha-hh-compact:not([hidden])) {
    height: calc(100vh - 92px);
    min-height: calc(100vh - 92px);
  }
}

/* 2. Lift the HubSpot chat above the bar while the bar is showing and the chat is closed.
      HubSpot sets bottom:0 !important on this container and marks an open chat on <html>. */
html:not(.hs-messages-widget-open) body.home:has(#poha-hh-bar:not([hidden])) #hubspot-messages-iframe-container {
  bottom: 100px !important;
}
