/*
Theme Name: Nagolder Bienenlädle – Astra Child
Theme URI: https://bienenlaedle.de/
Description: Astra Child Theme für das Nagolder Bienenlädle. Version 14 vereinheitlicht Titelbilder und legt den Seitentitel auf der Seite „Mein Bienenlädle“ über das Titelbild.
Author: Nagolder Bienenlädle
Template: astra
Version: 14.0.0
Text Domain: nagolder-bienenlaedle-astra-child
*/

:root {
  --bl-green: #7a7d2b;
  --bl-yellow: #f4c542;
  --bl-dark: #252525;
  --bl-header-offset: 92px;
}

/* Grundlegende Stabilität */
html { scroll-padding-top: var(--bl-header-offset); }
body { overflow-x: hidden; }

/* Fixierter Astra-Header ohne überdeckte Inhalte */
#masthead {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
}
.admin-bar #masthead { top: 32px; }
.ast-primary-header-bar { background: var(--bl-green); }

/* Aktiver Menüpunkt: gelb und unterstrichen */
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current-menu-ancestor > .menu-link,
.ast-builder-menu-mobile .current-menu-item > .menu-link,
.ast-builder-menu-mobile .current-menu-ancestor > .menu-link {
  color: var(--bl-yellow) !important;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* Warenkorb: nur Symbol und Anzahl, keine Preis-/Textausgabe */
.ast-site-header-cart .ast-woo-header-cart-info-wrap,
.ast-site-header-cart .ast-cart-menu-wrap .count:empty { display: none !important; }
.ast-site-header-cart .astra-icon { position: relative; }

/* Einheitlicher Titelbild-Stil */
.bl-title-hero,
body.page-mein-bienenlaedle .bl-title-hero {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: clamp(230px, 36vw, 430px);
  overflow: hidden;
  isolation: isolate;
}
.bl-title-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.42));
  pointer-events: none;
}
.bl-title-hero > * { position: relative; z-index: 2; }
.bl-title-overlay,
.bl-title-hero .entry-title,
.bl-title-hero .elementor-heading-title,
.bl-title-hero h1 {
  margin: 0 !important;
  padding: 18px 28px !important;
  color: #fff !important;
  text-align: center !important;
  font-size: clamp(2rem, 5vw, 4.25rem) !important;
  line-height: 1.08 !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  text-shadow: 0 3px 12px rgba(0,0,0,.72);
  background: rgba(0,0,0,.18);
  border-radius: 4px;
}

/* Originalen, nun leeren Titelcontainer ausblenden */
body.page-mein-bienenlaedle .bl-original-title-empty { display: none !important; }

/* Shop: Abstand zwischen Titelbild und Kategorien kompakt */
body.woocommerce-shop .site-content,
body.post-type-archive-product .site-content { padding-top: 0; }
body.woocommerce-shop .woocommerce-products-header,
body.post-type-archive-product .woocommerce-products-header { margin-bottom: 18px !important; }
body.woocommerce-shop .product-categories,
body.post-type-archive-product .product-categories { margin-top: 12px !important; }

/* Aktionen: gelbe, kompakte Textfelder; leere Spalten verschwinden */
.bl-aktionen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 22px;
}
.bl-aktion,
.bl-aktionen-grid > .elementor-element,
.bl-aktionen-grid > div {
  min-width: 0;
}
.bl-aktion:not(:empty) {
  padding: 8px 12px;
  background: var(--bl-yellow);
  color: var(--bl-dark);
  border-radius: 3px;
  line-height: 1.35;
}
.bl-aktion:empty,
.bl-aktion:not(:has(*)):not(:has(text)) { display: none; }
.bl-aktion p { margin: 0 !important; }

/* Footer-Links bleiben beim Hover sichtbar */
.site-footer a:hover,
.site-footer a:focus { color: var(--bl-yellow) !important; }

@media (max-width: 921px) {
  :root { --bl-header-offset: 76px; }
  .admin-bar #masthead { top: 46px; }
  .bl-title-hero { min-height: clamp(190px, 50vw, 320px); }
  .bl-title-overlay,
  .bl-title-hero .entry-title,
  .bl-title-hero .elementor-heading-title,
  .bl-title-hero h1 { padding: 12px 18px !important; }
  .bl-aktionen-grid { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 782px) {
  .admin-bar #masthead { top: 46px; }
}
