/**
 * Blog Hero Customizer - Frontend Styles
 *
 * Dieses Stylesheet verbessert das Aussehen des Astra-Banners auf der Blog-Seite
 */

/* Verbessere den Astra-Banner auf der Blog-Seite */
.ast-archive-entry-banner {
  position: relative !important;
  background-image: url('https://schuttertal-kocht.codeschneiderei.de/wp-content/uploads/2024/02/alex-munsell-auIbTAcSH6E-unsplash-scaled.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  min-height: 400px !important;
  padding: 4rem 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

/* Stile für Blog-Seite */
body.blog .ast-archive-entry-banner,
body.archive .ast-archive-entry-banner {
  margin-bottom: 2rem !important;
}

/* Container im Banner */
.ast-archive-entry-banner .ast-container {
  position: relative !important;
  z-index: 2 !important;
  text-align: center !important;
  max-width: 800px !important;
}

/* Überschrift im Banner */
.ast-archive-entry-banner h1 {
  font-size: 3.5rem !important;
  line-height: 1.2 !important;
  margin-bottom: 1rem !important;
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
  font-weight: bold !important;
  text-align: center !important;
  font-family: 'Trade Winds', cursive !important;
}

/* Beschreibungstext im Banner */
.ast-archive-entry-banner .ast-archive-description {
  font-size: 1.25rem !important;
  line-height: 1.5 !important;
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
  margin-top: 1rem !important;
  text-align: center !important;
  background-color: transparent !important;
  padding: 0.5rem !important;
}

/* Overlay für den Banner */
.bhc-banner-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  z-index: 1 !important;
}

/* Verstecke den Platzhaltertext */
.ast-archive-entry-banner h1:contains("{{BLOG_HERO_HEADING}}") {
  display: none !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .ast-archive-entry-banner {
    min-height: 300px !important;
    padding: 3rem 1rem !important;
  }
  
  .ast-archive-entry-banner h1 {
    font-size: 2.5rem !important;
  }
  
  .ast-archive-entry-banner .ast-archive-description {
    font-size: 1rem !important;
  }
}

@media (max-width: 576px) {
  .ast-archive-entry-banner {
    min-height: 250px !important;
    padding: 2rem 1rem !important;
  }
  
  .ast-archive-entry-banner h1 {
    font-size: 2rem !important;
  }
}

/* Hide any element containing placeholders */
*:contains('{{BLOG_HERO_HEADING}}'),
*:contains('{{BLOG_HERO_'),
h1:contains('{{BLOG_HERO_HEADING}}'),
h2:contains('{{BLOG_HERO_HEADING}}'),
h3:contains('{{BLOG_HERO_HEADING}}'),
p:contains('{{BLOG_HERO_HEADING}}'),
span:contains('{{BLOG_HERO_HEADING}}'),
div:contains('{{BLOG_HERO_HEADING}}'):not(.bhc-hero-section):not(.bhc-hero-content),
.elementor-heading-title:contains('{{BLOG_HERO_HEADING}}'),
.elementor-widget-heading:contains('{{BLOG_HERO_HEADING}}') {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    overflow: hidden !important;
    z-index: -999 !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* Restore visibility for .bhc-hero-section */
.bhc-hero-section,
.bhc-custom-hero {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
}

/* Custom hero section */
.bhc-custom-hero {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background-size: cover !important;
    background-position: center !important;
    padding: 80px 20px !important;
    box-sizing: border-box !important;
    color: #fff !important;
    text-align: center !important;
}

/* Overlay for hero section */
.bhc-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 1 !important;
}

/* Content container */
.bhc-content {
    position: relative !important;
    z-index: 2 !important;
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Heading styling */
.bhc-heading {
    font-size: 48px !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    font-family: 'Trade Winds', cursive !important;
}

/* Sub-heading styling */
.bhc-description {
    font-size: 24px !important;
    line-height: 1.4 !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    color: #fff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .bhc-heading {
        font-size: 32px !important;
    }
    
    .bhc-description {
        font-size: 18px !important;
    }
    
    .bhc-custom-hero {
        padding: 50px 15px !important;
    }
}

@media (max-width: 480px) {
    .bhc-heading {
        font-size: 24px !important;
    }
    
    .bhc-description {
        font-size: 16px !important;
    }
}

.bhc-hero-title {
    font-size: 48px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
    font-family: 'Trade Winds', cursive !important;
    line-height: 1.2 !important;
}

.bhc-content .bhc-title {
    font-size: 48px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
    font-family: 'Trade Winds', cursive !important;
    line-height: 1.2 !important;
} 