.swiper-container {
    max-width: 1120px; 
    padding: 20px 0; 
    overflow: hidden; 
}

.swiper-slide {
    height:auto !important;
}

.swiper-button-next, .swiper-button-prev {
    color: #505050 !important;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 25px !important;
}
.images .swiper-button-next, .images .swiper-button-prev {
    background-color: white;
}
.swiper-pagination-bullet-active {
    background-color: #505050 !important;
}
.swiper-pagination {
    bottom: var(--swiper-pagination-bottom, 0px) !important;
}
.images .swiper-pagination {
    bottom: var(--swiper-pagination-bottom, -6px) !important;
}

/* Mobile Anpassung */
/*@media (max-width: 768px) {
    .swiper-button-next, 
    .swiper-button-prev {
        display: none;
    }
}*/

.news.swiper {
    margin: 0 -10px;
}

.btn-default { background: #ccc; color: #333; }
.btn-primary { background: #007bff; color: white; }
.btn-secondary { background: #6c757d; color: white; }
.btn-success { background: #28a745; color: white; }
.btn-warning { background: #ffc107; color: black; }
.btn-danger { background: #dc3545; color: white; }
.btn-info { background: #17a2b8; color: white; }


.btn-individual {
    width: 100%;
    margin-bottom: 20px;
}
.btn-individual:after {
    content: unset !important;
}

.image-right {
    float:right;
}
.image-left {
    float:left;
}

@media (max-width: 767px) {
    .btn-individual {
        width: 100%;
    }
    .news .news-list-view .teaser-text .teaser-subtext {
        display:none;
    }
}

.mitarbeiter-card {
    overflow: hidden;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 360px;
    height: 660px;
    background: white;
    margin-bottom: 10px;
    margin-top: 10px;
}

.mitarbeiter-image img {
    width: 100%;
    height: auto;
    border-bottom: 4px solid #ddd;
}


.mitarbeiter-image {
    width: 100%;
    height: 300px; /* Maximale Höhe für alle Bilder */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Schneidet überstehende Teile ab */
}

.mitarbeiter-image figure.image {
    height: 300px !important; /* Maximale Höhe für alle Bilder */
}

.mitarbeiter-image .figcopyright {
    bottom: -8px !important;
}

.mitarbeiter-name {
    background-color: #8DA62E; /* Farbe für das Namensfeld */
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

.mitarbeiter-info {
    padding: 15px;
    text-align: left;
    color: #505050;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Verteilt den Text und die Kontaktdaten */
    min-height: 280px; /* Gleiche Höhe für alle Boxen */
}

/* Der obere Textblock hat eine feste Höhe */
.mitarbeiter-text {
    min-height: 160px; /* Hier Höhe anpassen, je nach Länge der längsten Beschreibung */
    display: flex;
    align-items: flex-start;
}

.mitarbeiter-kontakt {
    transform: translateY(-60px);
    width: auto;
    margin-left: 15px;
    margin-right: 15px;
    font-size: 14px;

}

.mitarbeiter-kontakt p {
    margin-bottom: 5px;
}

.ma-trennlinie {
    width: 100%;
    border: 1px solid #ddd;
    margin: 10px 0;
}

.mitarbeiter-info p {
    margin: 5px 0;
    font-size: 14px;
}

@media (max-width: 990px) and (min-width: 768px) {
    .mitarbeiter-image {
        height: 220px;
    }

    .mitarbeiter-image figure.image {
        height: 220px !important;
    }

    .mitarbeiter-kontakt {
        transform: translateY(0px);
        width: auto;
        margin-left: 15px;
        margin-right: 15px;
        font-size: 14px;

    }

    /* Falls nötig: Höhe der Karten etwas anpassen */
    .mitarbeiter-card {
        height: auto; /* Falls sich Inhalte anpassen müssen */
    }
}

@media (max-width: 767px) {
    /* Die gesamte Card nimmt 100% der Breite ein */
    .mitarbeiter-card {
        max-width: 100%;
        height: auto; /* Dynamische Höhe für responsives Verhalten */
        margin-bottom: 20px;
        position: relative;
        overflow: hidden;
        margin: 20px;
    }

    /* Bildbereich korrekt anpassen */
    .mitarbeiter-image {
        width: 100%;
        position: relative; /* Wichtig für absolute Positionierung */
    }

    .mitarbeiter-image img {
        width: 100%;
        height: auto;
        transform: translateY(-50px);
    }

    /* Copyright-Text richtig positionieren */
    figure.image .figcopyrigh {
        bottom: 10;
    }

    /* Name soll direkt unter dem Bild und figcopyright bleiben */
    .mitarbeiter-name {
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: rgba(141, 166, 46, 0.85);
        color: white;
        font-size: 16px;
        font-weight: bold;
        text-align: center;
        padding: 10px;
        margin: 0; /* Kein Margin, damit er nicht rausrutscht */
    }

    /* Der Info-Bereich wächst dynamisch */
    .mitarbeiter-info {
        padding: 15px;
        text-align: left;
        color: #505050;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: auto;
    }

    /* Textbereich flexibel halten */
    .mitarbeiter-text {
        min-height: auto;
        display: flex;
        align-items: flex-start;
    }

    /* Trennlinie und Kontaktinfos bleiben unten */
    .mitarbeiter-kontakt {
        margin-top: 50px;
        padding-top: 10px;
        font-size: 14px;
        transform: translateY(-10px);
    }

    .ma-trennlinie {
        width: 100%;
        border: 1px solid #ddd;
        margin: 10px 0;
    }

    /* Schriftgröße für bessere Lesbarkeit */
    .mitarbeiter-info p {
        margin: 5px 0;
        font-size: 16px;
    }
}

@media (max-width: 500px) {
    .mitarbeiter-image img {
        width: 100%;
        height: auto;
        transform: unset;
    }
}




@media (max-width: 768px) {
    .owl-stage .owl-item a {
        text-decoration: none;
    }

    .headerslider .owl-carousel .item .slider-caption {
        height: 250px;
    }

    .owl-controls {
        display: inline-block;
        transform: translateY(163px);
        margin-right: -25px;
    }
}



/* Testimonial Container */
.testimonial-card {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px 20px;
    text-align: left;
    max-width: 400px;
    height: auto;
    margin: auto;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

/* Text Container */
.testimonial-content {
    padding: 40px 30px;
    font-style: italic;
    font-size: 1.1em;
    color: var(--themecolor);
    border-radius: 10px;
    position: relative;
    height: 287px;
    display: flex;
    justify-content: center; /* Zentriert horizontal */
    text-align: left;
}

/* Anführungszeichen */
.quote-icon {
    font-size: 50px;
    position: absolute;
    top: 0px;
    left: -5px;
}

.quote-icon-right {
    font-size: 50px;
    position: absolute;
    bottom: -20px;
    right: 10px;
}

.testimonial-image img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px; 
}


.testimonial-author {
    text-align: left;
    flex-grow: 1;
}

.testimonial-author h4 {
    font-weight: bold;
    font-size: 1.2em;
    color: #222;
    margin: 0;
    text-transform: unset;
}

.testimonial-author span {
    display: block;
    font-size: 0.9em;
    color: #777;
}



#typo3-preview-info {
    display: none !important;
}


.linkliste {
    list-style: none;
    padding-left: 0; /* Entfernt zusätzlichen linken Abstand */
}

.linkliste a {
    display: block;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    color: #000;
}

.linkliste a:hover {
    border-bottom: 1px solid #000;
}


/***********NEWS SLIDER STYLE**************/


#c23480 .news .news-list-view.kachel-list .wrapper {
    padding-bottom: 0; }