

.page-content{
  display: flex;
  flex-direction: column;
  margin: 0;
  width: 100%;
  background-color: #F7F3E3;

}

.kurs_liste_container{
  position: relative;
  padding-top: 10px;

}



/* Default (<1150px): feste SVG-Breite, wird linksbündig/zentriert und abgeschnitten */
@media (max-width: 1149px){
  .svg_zacken_container {
    position: absolute;
    width: 100%;
    overflow: hidden;
    margin-top: -30px;
    pointer-events: none;
    z-index: 10;
  }

  #zacken_top, #zacken_bottom{
    left: 50%;
    width: 1276px;
    height: 40px;
    max-width: none;
    transform: translateX(-50%);
    display: block;
     z-index: 10;
  }
  
  #zacken_top {
    position: relative;
    top: 0;
  }

  #zacken_bottom {
    bottom: 0;
    transform: rotate(180deg);
  }
}

.page-title{
  padding-top: 20px;
}





.page-description{
  width: 100%;
  position: relative;
  z-index: 2;
  background-color: #F7F3E3;
}

.page-hero{
  position: sticky;
  width: 100%;
  top: 82px;
  aspect-ratio: 3/2;
  overflow: hidden; 
  }
  

  .page-hero__img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  @media (min-width: 700px){
    .page-hero{
    aspect-ratio: 2/1; 
    top:121.5px;
    }
  }

  @media (min-width: 1150px){


    #zacken_top{
      position: relative;
 top: -10px;
 width: 100vw;
 height: 75px;
  }

  .svg_zacken_container{
    margin-top: -30px;
  }

  #zacken_bottom{
    position: relative;
  left: 50%;
  width: 100vw;
  height: 75px;
  max-width: none;
  bottom: -30px;
  z-index: 10;

  transform: translateX(-50%) rotate(180deg);
  }


 

    .page-content{
      position: fixed;
      top: 121.5px;
      flex-direction: row;
      justify-content: center;
      gap: 20px;
      align-items: start;
      padding-top: 50px;
      z-index: 0; 
      height: 100vh; 
    }

    .kurs_liste_container{
      margin-top: 78vh;
      min-height: 100vh;

    }

    .page-description{
      position: relative;
      width: 50%;
      max-width: 600px;
      padding: 0;
    }

    .page-hero{
    width: 45%;
    height: 65vh;
    margin-bottom: 40px;
    }
  }

  .wrap{
    display: flex;
    flex-direction: column;
  }

  @media (min-width: 1300px){
    .page-hero{
     width: 35%;
    }
   }


.nahkurse_button_container{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 30px;
}

.nahkurse_button h2{
color: rgb(0, 0, 0);
  margin: 0;
  padding: 0;
}

  .nahkurse_button{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin: 0;
    color: rgb(54, 54, 54);

    transition: transform 0.3s ease;
  }

  .nahkurse_button:hover {
    transform: translateX(20px);
  }

  .nahkurse_button:hover * {
    color: #c51295;
    stroke: #c51295;
  }

 

.content{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kurs-liste-wrapper{
  margin: 30px 20px 50px 20px;

  display: flex;
  flex-direction: column;
  gap: 25px;
}

.titel{
  width: 100%;
  text-align: center;
}

.info-highlight{
  color: #144D7A;
  font-weight: 700;
  padding-bottom: 2px;
}



.info-highlight{
  display: flex;
  gap: 5px;
}

.booking-wrapper:not(:last-child){
  border-bottom: 1px solid rgba(0,0,0,0.45);
  padding-bottom: 30px;   /* Abstand zur Linie */
  margin-bottom: 0px;    /* Abstand nach der Linie */
}

.content{
  display: flex;
  flex-direction: column;
  align-items: center;
}


.anmelde-button{
  display: inline-flex;
  width: 150px;
  padding: 10px 20px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 12px;
  text-decoration: none;

  border: 2px solid #1D547F;
  background: rgba(20, 77, 122, 0.80);
  color: #fff;
}

.is-disabled{
  margin: auto;

  background: #436F91;
  color: #fff;
  opacity: 0.5;
  pointer-events: none;
}

.js-anmelden{
  margin-top: 10px;
}


.cours-card,
.cours-card .cours-stitch,
.cours-card .details-wrapper,
.cours-card .place-wrapper,
.cours-card .booking-wrapper,
.cours-card .session-wrapper{
  width: 100%;
  box-sizing: border-box;
}




.cours-stitch{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 23px;

  border-radius: 23px;
  border: none;
  overflow: hidden;
}

.details-wrapper{
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}


.place-wrapper,
.booking-wrapper,
.session-wrapper,
.wrapper{
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgb(54, 54, 54);
}

.session-wrapper{
  padding: 0 20px;
  gap: 0px;
  max-width: 320px;
  
}

.session-wrapper > * + *{
  max-width: 220px;
}

.cours-list{
  column-count: initial;
  column-width: initial;
  column-gap: initial;

  max-width: 1550px;
  margin-left: auto;
  margin-right: auto;

  display: grid;
  grid-template-columns: 1fr; /* mobile default */
  gap: 20px;
}

@media (min-width: 700px){
  .cours-list{
    display: block;
    column-count: 2;
    column-gap: 30px;
    max-width: 1100px;
  }

  /* Cards müssen in columns inline-block sein */
  .cours-card{
    display: inline-block;
    width: 100%; 
    max-width: 570px;          /* nimmt Spaltenbreite an */
    margin: 0 0 30px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
  }

  .details-wrapper{
    max-width: 400px;
  }

  .cours-stitch{
    align-items: center;
  }

  .cours-list:has(> .cours-card:nth-child(2)):not(:has(> .cours-card:nth-child(3))){
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;

    /* Columns sicher deaktivieren, sonst kollidiert es */
    column-count: initial;
    column-gap: 30px;

    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
  }

  /* Cards im 2er-Grid: volle Spaltenbreite + kein column-inline-block nötig */
  .cours-list:has(> .cours-card:nth-child(2)):not(:has(> .cours-card:nth-child(3))) > .cours-card{
    display: block;
    width: 100%;
    max-width: none;
    margin: 0; /* gap übernimmt Abstand */
  }
}

/* Mobile bleibt 1 Spalte */
@media (max-width: 699px){
  .cours-list{
    display: block;
    column-count: 1;
  }
  .cours-card{
    margin: 0 0 20px;
  }
}

.naehschachtel_container{
  position: relative;
  padding-top: 90px;
  padding-bottom: 90px;
  z-index: 1;
}

.bg_naehschachel{
position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 0;

  height: 100%;
  width: 100%;
  top: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #F8F3E2;
}




.bg_img_left{
  height: 200%;
   aspect-ratio: 1/2;
   background: url("/wp-content/themes/bonniekleid/assets/BG_mobil.svg");
 }


 .naehschachtel_content{
  position: relative;
  z-index: 3;
  align-items: center;
}

.naehschachtel_liste{
  background-color: #FFFDF4;
  justify-self: center;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  margin-top: 40px;
  width: fit-content;
  align-self: flex-end;
  margin-left: auto;
  margin-right: auto;
  padding: 35px 15px 35px 15px;

 
}

.naehschachtel_liste h3{
text-align: center;
padding-bottom: 20px;
}

.naehschachtel_items{
  column-count: 2;
  column-gap: 30px;
  display: block;
  padding-left: 20px;
}

.naehschachtel_items li{
  break-inside: avoid;
  margin-bottom: 10px;
}





 @media (min-width: 550px){
  .naehschachtel_liste{
    width: 500px;
  }

  .naehschachtel_items{
    padding-left: 20px;
  }
}


@media (min-width: 800px){
 
  .bg_img{
    width:610px;
    height: 750px;
  }
  
  .bg_img_left{
    background: url("/wp-content/themes/bonniekleid/assets/BG_links.svg")no-repeat;
  }
  
  .bg_img_right{
    background: url("/wp-content/themes/bonniekleid/assets/BG_rechts.svg")no-repeat;
   background-position: right;
  }

  .bg_naehscchachel{
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    z-index: 0;
  }

}




