/*
Theme Name: BMap
Theme URI: https://bmap.at
Description: Child Theme für Astra. Eigene BMap-Seitenvorlagen bleiben bei Astra-Updates erhalten.
Author: BMap
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/*
 * Astra wraps page content in .ast-container (max-width and 20px side padding).
 * BMap templates are full-bleed; the inner .bmap-l-container keeps the text column.
 */
body[class*="page-template-page-bmap-"] .site-content > .ast-container {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Dark landing pages: header sits on the hero instead of a white bar. */
body.bmap-overlay-header #masthead {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

body.bmap-overlay-header #masthead .ast-primary-header-bar,
body.bmap-overlay-header #masthead .main-header-bar,
body.bmap-overlay-header #masthead .ast-main-header-wrap,
body.bmap-overlay-header #masthead .ast-mobile-header-wrap,
body.bmap-overlay-header #masthead .ast-above-header-bar,
body.bmap-overlay-header #masthead .ast-below-header-bar {
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

body.bmap-overlay-header .site-title a,
body.bmap-overlay-header .site-title a:hover,
body.bmap-overlay-header .site-title a:focus,
body.bmap-overlay-header .main-header-menu > .menu-item > .menu-link,
body.bmap-overlay-header .main-header-menu > .menu-item > .menu-link:hover,
body.bmap-overlay-header .main-header-menu > .menu-item.current-menu-item > .menu-link,
body.bmap-overlay-header .ast-mobile-header-wrap .menu-link,
body.bmap-overlay-header .menu-toggle {
  color: #ffffff;
}

body.bmap-overlay-header.page-template-page-bmap-community-php .bmap-custom-page .hero,
body.bmap-overlay-header.page-template-page-bmap-host-php .bmap-custom-page .hero {
  padding-top: 7rem;
}

/* Wordmark is white. On light headers it is inverted to black. */
.site-logo-img .custom-logo {
  width: auto;
  height: 96px;
  max-width: none;
}

body:not(.bmap-overlay-header) .site-logo-img .custom-logo {
  filter: invert(1);
}

/* Header spans the viewport so the logo sits near the left edge, not inside a centered box. */
.ast-primary-header-bar .site-primary-header-wrap.ast-container {
  max-width: none;
  padding-left: 8px;
  padding-right: 24px;
}

/* Menu sits in the middle of the header; the logo stays on the left. */
@media (min-width: 922px) {
  .ast-desktop .ast-primary-header-bar .ast-builder-grid-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .ast-desktop .ast-primary-header-bar .site-header-primary-section-left {
    grid-column: 1;
    justify-self: start;
  }

  .ast-desktop .ast-primary-header-bar .site-header-primary-section-right {
    grid-column: 2;
    justify-self: center;
  }
}
