/* EMD Theme helpers (safe, small overrides only) */
.emd-merge-divider { height: 1px; width: 100%; margin: 64px 0 24px; opacity: 0.25; background: currentColor; }
.emd-merge-heading { font-weight: 700; margin: 0 0 16px; opacity: 0.85; }
.emd-merge-card { margin-top: 16px; border-radius: 16px; overflow: hidden; }
@media (max-width: 767px){
  .emd-merge-divider { margin: 48px 0 20px; }
}

/* Putzkraft24 Service Card Hover Effects */
#putzkraft-services .emd-putzkraft div[style*="background-color: #e6f1f1"]:hover {
    background-color: #d8e9e9 !important;
}

#putzkraft-services a.button:hover {
    background-color: #0d4238 !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    #putzkraft-services div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    #putzkraft-services div[style*="padding: 2rem"] {
        padding: 1.5rem !important;
    }
    
    #putzkraft-services span[style*="font-size: 1.5rem"] {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 479px) {
    #putzkraft-services div[style*="padding: 2rem"] {
        padding: 1rem !important;
    }
    
    #putzkraft-services span[style*="font-size: 1.5rem"] {
        font-size: 1.125rem !important;
    }
    
    #putzkraft-services h2 {
        font-size: 2rem !important;
    }
}

/* Haushaltshilfe Navbar Styles */
[data-card="haushaltshilfe"] .nav-menu-wrapper {
  display: flex;
  position: relative;
  gap: 0.75rem;
}

[data-card="haushaltshilfe"] .nav_link {
  display: inline-block;
  color: #333;
  transition: color 0.4s;
  text-decoration: none;
}

[data-card="haushaltshilfe"] .nav_link:hover {
  color: #0066cc;
}

/* Mobile Menu Styles */
.nav-menu {
  display: none;
}

.nav-menu.is-open {
  display: block !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 1rem 0 0.5rem;
}

.nav-menu.is-open .nav-menu-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1.5rem;
}

.nav-menu.is-open .nav_link {
  padding: 0.75rem 0;
  display: block;
  border-bottom: none;
  text-decoration: none;
  color: #5b809c;
  font-weight: 400;
}

.nav-menu.is-open .nav_link:hover {
  color: #0066cc;
}

.nav-menu.is-open > div:last-child {
  padding: 0.75rem 1.5rem 0;
}

.nav-menu.is-open .button {
  width: 100%;
  text-align: center;
  background-color: #004faf !important;
  border-radius: 100vw;
  padding: 1rem 2rem;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.nav-menu.is-open .button:hover {
  background-color: #0052cc !important;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex !important;
  }
  .nav-menu-button {
    display: none !important;
  }
}

/* Custom heading_section font-size - MOBILE ONLY */
@media (max-width: 991px) {
  .heading_section.heading-style-h2 {
    font-size: clamp(1rem, 100vw, 2.25rem) !important;
  }

  /* Override putzkraft-services h2 styles */
  #putzkraft-services .heading_section.heading-style-h2,
  #putzkraft-services h2.heading_section.heading-style-h2 {
    font-size: clamp(1rem, 100vw, 2.25rem) !important;
  }

  /* Custom h2__section font-size for kellersanierung */
  [data-card="kellersanierung"] .h2__section {
    font-size: clamp(1rem, 100vw, 2.25rem) !important;
  }

  [data-card="kellersanierung"] .h2__section.h2_section_left {
    font-size: clamp(1rem, 100vw, 2.25rem) !important;
  }

  [data-card="kellersanierung"] .h2__section.h2_section_mobile_center {
    font-size: clamp(1rem, 100vw, 2.25rem) !important;
  }

  [data-card="kellersanierung"] .faq_content__heading .h2__section {
    font-size: clamp(1rem, 100vw, 2.25rem) !important;
  }
}

/* Add more vertical spacing to warranty section */
[data-card="haushaltshilfe"] .warranty-content-wrapper-2,
.warranty-content-wrapper-2 {
  padding-top: 3rem !important;
  padding-bottom: 1rem !important;
  min-height: 500px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* Style warranty heading to be more prominent and refined */
[data-card="haushaltshilfe"] .warranty-heading.heading-style-h3,
.warranty-heading.heading-style-h3 {
  font-size: clamp(2rem, 5vw, 3rem) !important;
  line-height: 1.1 !important;
  margin-bottom: 0rem !important;
  font-weight: 600 !important;
  max-width: 95% !important;
  text-align: left !important;
  padding-left: 2rem !important;
  letter-spacing: -0.02em !important;
  padding-bottom: 0rem !important;
}

/* Move warranty list items to the right with proper spacing */
[data-card="haushaltshilfe"] .warranty-list-wrapper-2,
.warranty-list-wrapper-2 {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  margin-top: -0.5rem !important;
}

/* Improve list item spacing and readability */
[data-card="haushaltshilfe"] .warranty-list-item-2,
.warranty-list-item-2 {
  margin-bottom: 0.3rem !important;
  line-height: 1.5 !important;
}

[data-card="haushaltshilfe"] .warranty-list-item-2:last-child,
.warranty-list-item-2:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 991px) {
  [data-card="haushaltshilfe"] .warranty-content-wrapper-2,
  .warranty-content-wrapper-2 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    min-height: 500px !important;
  }
  
  [data-card="haushaltshilfe"] .warranty-heading.heading-style-h3,
  .warranty-heading.heading-style-h3 {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }
}

@media (max-width: 479px) {
  [data-card="haushaltshilfe"] .warranty-content-wrapper-2,
  .warranty-content-wrapper-2 {
    padding-top: 3rem !important;
    margin-top: 2rem !important;
    padding-bottom: 2rem !important;
    min-height: 300px !important;
  }
  
  [data-card="haushaltshilfe"] .warranty-heading.heading-style-h3,
  .warranty-heading.heading-style-h3 {
    font-size: 2rem !important;
    margin-bottom: 1.5rem !important;
  }
}
