/* ---------------------------------------------
   SEKTION - MEINUNGEN
   ---------------------------------------------
   Beinhaltet die Section-IDs 
   #meinungen
------------------------------------------------ */

/* Anführungszeichen entfernen */
#meinungen blockquote p::before {
    display: none;
}

#meinungen blockquote p {
    padding: 15px 30px !important;
    position: relative !important;
    padding-bottom: 15px !important;
}

#meinungen blockquote p span.text-content {
    font-size: 20px !important;
    line-height: 34px !important;
}

/* Text-Wrapper für das Abschneiden */
#meinungen blockquote p .text-content {
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Weiterlesen-Link - außerhalb des abgeschnittenen Textes */
#meinungen blockquote p .weiterlesen-link {
    color: white !important;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
    font-size: 20px;
}

#meinungen blockquote p .weiterlesen-link:hover {
    text-decoration: underline;
}

/* Bottom Arrow standardmäßig verstecken */
#meinungen blockquote p span.bottom-arrow {
    display: none !important;
}

/* Bottom Arrow nur bei aktiver/ausgewählter Karte anzeigen */
#meinungen blockquote.is-selected p span.bottom-arrow {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    bottom: -15px !important;
    left: 50% !important;
    margin-top: -20px !important;
}

#meinungen .testimonial_slider[data-style="multiple_visible"][data-color*="accent-color"] blockquote.is-selected p {
    height: auto !important;
    max-height: none !important;
}

/* Bilder rund und einheitliche Größe - IMMER rund bleiben */
#meinungen .testimonial_slider[data-style="multiple_visible"][data-color*="accent-color"] .image-icon {
    margin-left: auto !important;
    margin-right: auto !important;
    height: 150px !important;
    width: 150px !important;
    min-height: 150px !important;
    min-width: 150px !important;
    max-height: 150px !important;
    max-width: 150px !important;
    border-radius: 50% !important;
    background-size: cover !important;
    background-position: center !important;
    margin-bottom: 10px !important;
    flex-shrink: 0 !important;
}

/* Name näher ans Bild - verhindert Zusammenschieben */
#meinungen .testimonial-name {
    margin-top: 5px !important;
    font-size: 2rem !important;
    display: block !important;
    flex-shrink: 0 !important;
    line-height: 1.5;
}

/* Firma näher an den Namen - verhindert Zusammenschieben */
#meinungen .title {
    margin-top: 0px !important;
    padding-top: 0px !important;
    font-size: 1.5rem !important;
    display: block !important;
    flex-shrink: 0 !important;
    line-height: 1.5;
}

/* ALLE Blockquotes - automatische Höhe */
#meinungen blockquote {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* Popup Overlay - zentriert in der Mitte */
.meinung-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    align-items: center !important;
    justify-content: center !important;
}

.meinung-popup-overlay.active {
    display: flex !important;
}

/* Popup Content - zentriert */
.meinung-popup-content {
    background-color: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: auto;
}

/* Schließen-Button */
.meinung-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    font-weight: 300;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.meinung-popup-close:hover {
    color: #54ae31;
}

/* Popup Text */
.meinung-popup-text {
    font-size: 20px;
    line-height: 36px;
    margin-bottom: 30px;
    color: #333;
}

/* Popup Bild */
.meinung-popup-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
}

/* Popup Name */
.meinung-popup-name {
    font-size: 22px;
    font-weight: 600;
    color: #54ae31;
    text-align: center;
    margin-bottom: 5px;
    display: block;
}

/* Popup Titel */
.meinung-popup-title {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    display: block;
}

/* Body scroll lock - verhindert Scrollen wenn Popup offen, behält Position */
body.popup-open {
    overflow: hidden !important;
}

@media only screen and (max-width: 690px) {
    .testimonial_slider[data-style*="multiple_visible"] blockquote {
        width: 100%;
    }
}