/* === Wrapper === */
.einblick-slider-wrapper {
    width: 100vw;
    overflow: hidden;
    position: relative;

}

/* === Navigation === */
.einblick-slider-nav {
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem;
    z-index: 10;
}

#slider-nav-desktop{
    display: flex;
}

#slider-nav-mobile{
        display: none;
    }

.einblick-slider-nav button {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    border: none;
    background-color: #fff;
    cursor: pointer;
}

/* === Zwei unabhängige Slider-Rows === */
.einblick-slider-row {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    height: 300px;
    width: 100%;
    position: relative;
    margin-bottom: 10px;
}

.einblick-slider-row.second-row {
    height: 300px;
}

.einblick-slider-row.mobile-row {
        display: none;
    }

.einblick-slide {
    flex-shrink: 0; /* verhindert, dass die Slides schrumpfen */
  /* keine feste Breite */
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    position: relative;
    background-color: var(--wp--preset--color--pink);
    margin: 0px 5px;
}



/* Slide Content Types */
.slide-image{
    height: 100%;
    width: 100%;
    display: flex;
}


.slide-video,
.slide-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.slide-video {
    height: 100%;
    width: 500px;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;

}

.slide-video::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 195, 229, 0.671); /* halbtransparentes Overlay */
    z-index: 1; /* über dem Background */
}



.slide-stimme {
    position: relative;
    padding: 2rem;
    height: 100%;
    background-color: var(--wp--preset--color--pink);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    font-family: var(--wp--preset--font-family--Ubuntu-Medium);
    color: white;
    overflow: hidden;
    /* Wichtig: Die Box darf eine Breite zwischen 300 und 500px haben */
    min-width: 300px;
    max-width: 600px;
    width: auto; /* passt sich dem Inhalt an, aber innerhalb der Grenzen */
    box-sizing: border-box;
}

.stimme-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    flex-shrink: 0;
}

.stimme-text p {
    hyphens: auto; 
    font-size: 1rem;
    line-height: 1.4;
    font-family: var(--wp--preset--font-family--Ubuntu-Medium);
    color: white;
    overflow-wrap: break-word;
    word-break: break-word; /* für lange Wörter ohne Leerzeichen */
    flex: 1; /* Text nutzt den Restplatz in der Box */
}

/* Animation/scrollbare Slider mit JS über transform */
.einblick-slider-track {
  display: flex;
  overflow-x: auto;   /* <- das ist entscheidend */
  /*scroll-behavior: smooth;*/
  transition: transform 0.5s ease;
  will-change: transform;
}

/*scrollbalken ausblenden*/
.einblick-slider-track {
  -ms-overflow-style: none;     /* IE 10+ */
  scrollbar-width: none;        /* Firefox */
}

.einblick-slider-track::-webkit-scrollbar {
  display: none;                /* Chrome, Safari, Opera */
}

.slide-video a,
.start-video-button {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.788);
  transition: color 0.5s ease; /* wichtig hier, nicht im :hover */
  transform-origin: 50%;
  z-index: 2;
}

.start-video-button:hover {
    color: rgba(255, 255, 255, 1);

}

.einblick-slider-nav button { 
  color:var(--wp--preset--color--green);
  background-color: none;
}

.einblick-slider-nav button:hover { 
  color:#c2dd7e;
}
.einblick-slider-nav button svg { 
  width: 40px; height: 40px; display: block;
}
/* erzwingt Pink auch dann, wenn die SVG Pfade ein eigenes fill mitbringen */
.einblick-slider-nav button svg * { 
  fill: currentColor !important; 
}

.weiterlesen:hover{
    color: rgba(255, 255, 255, 0.5);
}

/* Tablet: 3 Reihen, 2 pro Reihe */
@media screen and (max-width: 1024px) {

    
    .einblick-slider-row {
        flex-wrap: wrap;
    }
}

/* Mobile: 1 pro Reihe */
@media screen and (max-width: 600px) {

    .slide-video {
        width: 100%;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .einblick-slider-row {
        height: fit-content;
    }
    

    .einblick-slide {
       width: 100vw; 
       display: flex;
       flex-direction: column;
       justify-content:center;
       align-items: center;
       height: 400px;
    }

    .slide-stimme {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 5%;
        width: 100%
    }

    .stimme-text {
        flex: 0;
        margin: auto;
    }

    .stimme-avatar {
        width: 30vw;
        height: 30vw;
        margin: 2% 0%;
        }


    .slide-image {
        object-fit: cover;
        display: block;
        width: 100%;
        height: auto;
    }

   .einblick-slider-row.second-row {
        display: none;
    }

    .einblick-slider-row.first-row {
        display: none;
    }

     .einblick-slider-row.mobile-row {
    display: flex;
    }
  
    #slider-nav-desktop{
        display: none;
    }

    #slider-nav-mobile{
        display: flex;
    }

    .einblick-slider-nav {
    padding: 0.1rem;
  
}
  
  .einblick-slider-wrapper {
    display: flex;
    flex-direction: column;
  }
}

