.akt-personenslider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 40px;
}

.akt-personenslider-container.alignfull {
    width: 100vw;
    position: relative;
}

.akt-personenslider-container.alignwide {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.akt-personenslider {
    display: flex;
    transition: transform 0.3s ease;
    margin-bottom: 10px;
}

.akt-personenslide {
    flex: 0 0 33.333%;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.company-name-top {
    font-size: 24px;
    margin-bottom: 10px;
    height: 125px; /* Feste Höhe für alle Überschriften */
    display: flex;
    align-items: end;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.company-name-top p {
    font-size: 30px;
    font-weight:900;
    line-height: 42px;
    margin: 0;
    padding: 0 10px;
    max-height: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Maximal 3 Zeilen Text */
    -webkit-box-orient: vertical;
}

.akt-personenslide .image-container {
    width: 100%;
    aspect-ratio: 518 / 270;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

.slide-content {
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 30px 40px 15px; /* Erhöhtes Bottom-Padding für den "Weiterlesen" Link */
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 8px #00000029;
    border-radius: 0px 0px 6px 6px;
    opacity: 1;
 /*   height: 500px;
    overflow: hidden;
    position: relative;*/
}

.company-name-bottom {
    margin-top: 10px;
    font-weight: bold;
}

.company-description {
    flex-grow: 1;
    overflow: hidden;
/*    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10; /* Anzahl der sichtbaren Zeilen */
/*    text-overflow: ellipsis;
    margin-bottom: 20px; /* Abstand zum "Weiterlesen" Link */
}
/*
.company-read-more {
    cursor: pointer;
    position: absolute;
    bottom: 10px; /* Angepasst, um am unteren Rand zu bleiben */
 /*   left: 40px;
    background-color: white;
    padding: 5px 10px;
    box-shadow: -5px 0 10px 5px white; /* Weicher Übergang zum Text */
 /*   z-index: 1; /* Stellt sicher, dass der Link über dem Text liegt */
/*}

.slide-content.expanded {
    height: auto;
}

.slide-content.expanded .company-description {
    -webkit-line-clamp: unset;
    text-overflow: clip;
}

.slide-content.expanded .company-read-more {
    display: none;
}
*/
.slider-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px 0;
}

.slider-nav button {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 15px;
}

@media (max-width: 1250px) {
    .akt-personenslide {
        flex: 0 0 100%;
    }
    
    .slide-content {
        height: auto;
        max-height: 400px;
    }

    .company-description {
        -webkit-line-clamp: 6; /* Weniger Zeilen auf mobilen Geräten */
    }
    .akt-personenslider-container{
        padding: 0!important;
    }
    .slider-nav {
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        padding: 10px 0;
    }
}