/**
* Block Name: teasercards
*/

section.teasercards .teaser-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-gap: 100px;
  }
  
.fullwidth-separator {
    width: 100vw;
    height: 1px;
    background-color: #444847;
    margin: 100px 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    opacity: 0.5;
}
  /* Filter */
  
  section.teasercards .nav {
    display: flex;
    color: #a4aead;
  }
  
  section.teasercards .js-filter {
    gap: 25px;
    margin-bottom: 50px;
  }
  
  section.teasercards .js-filter .nav-link {
    color: #a4aead;
    box-shadow: none;
    background: none;
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 2px;
    position: relative;
  }
  
  section.teasercards .js-filter .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 0;
    background-color: #161616;
    transition: width 400ms ease-in-out;
  }
  
  section.teasercards .js-filter .nav-link:hover::after,
  section.teasercards .js-filter .nav-link:focus::after {
    width: 100%;
  }
  
  section.teasercards .js-filter .nav-link.hochzeit {
    text-decoration: none;
    gap: 8px;
  }
  
  /* Hamburger button */
  section.teasercards .nav-toggle {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    margin-left: 5px;
  }
  
  section.teasercards .hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background-color: #a4aead;
    transition: all 0.3s ease;
  }
  
  section.teasercards .nav-toggle:hover .hamburger-line {
    background-color: #444847;
  }
  
  section.teasercards .nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
  }
  section.teasercards .nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  section.teasercards .nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
  }
  
  /* Text */
  
  section.teasercards .text_abstand {
    color: #444847;
  }
  
  /* Images & titles */
  
  section.teasercards .teaser-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
  }
  
  section.teasercards .teaser-link {
    text-decoration: none !important;
  }
  
  section.teasercards .teaser-title {
    margin-top: 30px;
    margin-bottom: 0;
    text-align: left;
    transition: color 300ms ease-in-out;
  }
  
  section.teasercards .teaser-card:hover .teaser-title {
    color: #000;
  }
  
  /* Mobile: slide / scroll-out menu */
  @media (max-width: 991.98px) {
    section.teasercards .js-filter {
      display: flex;
      flex-direction: column;
      gap: 20px;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transform: translateY(-10px);
  
      transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
      margin-bottom: 0;
    }
  
    section.teasercards .js-filter.open {
      max-height: 300px; /* adjust if needed */
      opacity: 1;
      transform: translateY(0);
      margin-top: 30px;
    }
  
    section.teasercards .teaser-row {
      grid-template-columns: auto;
      grid-gap: 50px;
    }
  
    section.teasercards .navsubmenu {
      margin-bottom: 50px;
    }


    section.teasercards .burger-label {
        font-size: 1.2rem;
        line-height: 1;
        display: inline-block;
        color: #a4aead;
        font-weight: 400;
    }
  }
  
  @media (max-width: 768px) {
    section.teasercards .teaser-card {
      width: 100%;
    }
  }
  