/* Custom CSS für Hochzeitswebsite */

/* Weißer Rahmen um die runden Bilder (ring_1.jpg) verstärken */
.overflow-image {
  border: 30px solid #fff !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.overflow-image img {
  border: 30px solid #fff !important;
}

/* Weißer Rahmen um die kleinen runden Bilder (thmb1.jpg, thmb2.jpg, thmb3.jpg) */
#the-wedding img {
  border: 8px solid #fff !important;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Mobile Fix: Parallax-Background-Flackern verhindern */
@media (max-width: 1024px) {
  .parallax-background {
    background-attachment: scroll !important;
  }
}

/* Mobile Ansicht: Kleine runde Bilder unter "Wir sagen Ja" verschieben */
@media (max-width: 767px) {
  /* Flexbox für #the-wedding aktivieren */
  #the-wedding .container {
    display: flex;
    flex-direction: column;
  }
  
  /* "Wir sagen Ja" Text zuerst anzeigen */
  #the-wedding .container > .row:last-child {
    order: 1;
    margin-bottom: 30px;
  }
  
  /* Bilder danach anzeigen */
  #the-wedding .container > .row:first-child {
    order: 2;
  }
  
  /* Bilder untereinander statt nebeneinander */
  #the-wedding .container > .row:first-child .col-sm-4 {
    margin-bottom: 20px;
  }
  
  /* Section-Reihenfolge ändern mit Flexbox */
  .section-bg-color.overflow-content-over {
    display: flex;
    flex-direction: column;
  }
  
  /* Text-Container nach oben */
  .overflow-image-wrapper {
    display: flex;
    flex-direction: column;
  }
  
  /* Bild nach dem Text anzeigen */
  .overflow-image {
    order: 2;
    margin-top: 40px;
    margin-bottom: 60px;
    bottom: auto;
    height: 400px;
    border: 25px solid #fff !important;
  }
  
  /* Text zuerst */
  .overflow-image-text {
    order: 1;
  }
  
  /* "Wir sagen ja" Section kommt vor dem Bild */
  #the-wedding {
    order: 1;
  }
  
  .section-bg-color.overflow-content-over > .section-bg-color.overflow-content {
    order: 2;
  }
}
