body {
  overflow-x: hidden;
  margin: 0;
}
.kontaktieren h2{
  line-height: 1.1;
  font-size: clamp(1rem, 2.2vw, 1.7rem);
}
.row,
.section,
section {
  position: relative;
  overflow: hidden;
}
.section,
section {
  text-align: start;
}

.container-fluid {
  width: 100%;
  padding-right: 0;
  padding-left: 0;
  margin-right: auto;
  margin-left: auto;
}

.horiz-gallery-strip,
.horiz-gallery-wrapper {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
  position: relative;
}
.comparisonSection {
  position: relative;
  padding-bottom: 56.25%; /* to maintain aspect ratio (responsive!) */
}
.comparisonImage {
  width: 100%;
  height: 100%;
}
.afterImage {
  position: absolute;
  overflow: hidden;
  top: 0;
  transform: translate(100%, 0px);
  

}
.afterImage img,
.afterImage video {
  transform: translate(-100%, 0px);
}
.comparisonImage img,
.comparisonImage video {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
}
.panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: vh;
}


/* ==========================================================================
   DESKTOP (Exakt dein Originalzustand)
   ========================================================================== */
.project-wrap {
  width: 33vw;
  padding: 0.5rem;
  box-sizing: content-box; /* Zurück auf deinen Ursprungswert */
}

.project-wrap img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}


@media (min-width: 861px) { 
  .site-wrapper-2 .content2_1text { 
    position: relative !important; 
    top: 0 !important;
    left: 0 !important; 
    transform: none !important; 
    width: 100% !important; 
    margin-top: 40px !important; 
    
    display: flex !important;
    /* Schiebt den Button nach rechts */
    justify-content: flex-end !important; 
  } 

  /* Hier packen wir das !important an die Margins, 
     damit das alte 'margin-left: 180px' gelöscht wird */
  .site-wrapper-2 .content2_1text .contact-button { 
    margin: 0 40px 0 0 !important;; 
  }
}
/* ==========================================================================
   SMARTPHONE (Greift NUR auf Mobilgeräten)
   ========================================================================== */
@media (max-width: 768px) {
  .project-wrap {
    width: 80vw;             /* Große Bilder fürs Handy */
    padding: 0.5rem;           /* Weniger Abstand auf dem Smartphone */
    box-sizing: border-box;  /* Verhindert, dass das Padding das Handy-Layout zerschießt */
  }
 /* NEU: Größere Darstellung für den Vorher-Nachher-Slider */
  .comparisonSection {
    padding-bottom: 0 !important; /* Hebt das starre 16:9 Verhältnis auf */
    height: 40vh;                 /* Nutzt 70% der Bildschirmhöhe (deutlich größer!) */
    width: 110vw;                 /* Breiter als der Bildschirm (läuft links/rechts raus) */
    margin-left: -5vw;           /* Zentriert die Box, da sie 120vw breit ist (10vw links überhängend) */
    position: relative;
    overflow: hidden;             /* Verhindert, dass der Rest der Seite horizontal scrollt */
  }

  /* Sicherstellen, dass Medien die neue Höhe komplett ausfüllen */
  .comparisonImage img,
  .comparisonImage video {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* Schneidet das Bild/Video passend zu, ohne es zu quetschen */
  }

}