/* ============================================================
   TEIL 1: SWIPER BASIS LAYOUT (Das Skelett)
   ============================================================ */
.swiper {
  /* Grundstruktur */
  display: block;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin: 10px auto;
  
  /* MASSGABE: Fixe Höhe, flexible Breite */
  height: 600px; 
  width: 100%;
  max-width: var(--max-width);
  
  background: transparent;
  /* Verhindert Flackern beim Laden */
  backface-visibility: hidden; 

}

.swiper-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  width: 100%;
  
  /* Swiper-Interne Performance-Optimierung */
  transition-property: transform;
  box-sizing: content-box; 

}

.swiper-slide {
  /* Sorgt dafür, dass der Slide die Swiper-Höhe füllt */
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  
  /* Perfekte Zentrierung des Inhalts */
  display: flex;
  justify-content: center; 
  align-items: center;     
  
  position: relative;
  transition-property: transform;


}

/* ============================================================
   TEIL 2: DEIN DESIGN (Die Schminke)
   ============================================================ */


/* Bilder-Styling */
.swiper-slide img {
  /* Bild füllt den gesamten Slide-Bereich */
  width: 100%;
  height: 100%;
  
  /* WICHTIG: Erhält das Seitenverhältnis trotz fixer Höhe */
  /* 'cover' schneidet Ränder ab, 'contain' zeigt das ganze Bild */
  object-fit: cover; 
  
  /* Zentriert das Motiv im Bild-Container */
  object-position: center; 
  
  display: block;

}



/* Pfeile beim Drüberfahren leicht hervorheben */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 0.7;
}

/* Erzeugt die Pfeil-Symbole (Icons) */
.swiper-button-next,
.swiper-button-prev {
    position: absolute; /* WICHTIG: Damit sie über dem Bild schweben */
    top: 50%;           /* Mittig von oben */
    transform: translateY(-50%) scale(1.2); /* Vertikal zentrieren */
    width: 44px;        /* Bereich für den Klick */
    height: 44px;
    color: var(--background-maincolor) !important; 
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
	transition: opacity 0.3s ease;

}

/* Rechten Pfeil an den rechten Rand */
.swiper-button-next {
    right: 20px;
}

/* Linken Pfeil an den linken Rand */
.swiper-button-prev {
    left: 20px;
}

/* Das Symbol im Inneren */
.swiper-button-next::after, 
.swiper-button-prev::after {
    font-size: 30px; /* Schön groß machen */
    font-weight: bold;
}

.swiper-button-prev::after {
    content: '❮'; 
    font-family: Arial, sans-serif !important;
}

.swiper-button-next::after {
    content: '❯'; 
    font-family: Arial, sans-serif !important;
}


/* Verstecke die Pfeile auf ganz kleinen Handys (optional für sauberen Look) */
@media (max-width: 420px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* PAGINATION (Punkte) - Wichtig für die Sichtbarkeit */
.swiper-pagination {
    position: absolute;
    text-align: center;
    transition: .3s opacity;
    transform: translate3d(0, 0, 0);
    z-index: 10;
    bottom: 20px !important; /* Abstand vom unteren Bildrand */
    width: 100%;
}



/* Die einzelnen Punkte (Bullets) */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff; /* Weiße Punkte */
    opacity: 0.5;
    margin: 0 5px !important;
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
}

/* Farbe der Pagination-Punkte */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: var(--background-maincolor);
    opacity: 0.5;
    margin: 0 5px !important;
    cursor: pointer;
}
.swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
}

/* Responsive Anpassung für Handys */
@media (max-width: 768px) {
    .swiper {
        height: 300px;
    }
}
