/* === EXPERT CAROUSEL WRAPPER === */
.lb-experts-carousel-wrapper {
    margin: 40px 0;
    max-width: 1240px; /* Maximal 1140px Breite */
    margin-left: auto;
    margin-right: auto;
}

.lb-experts-section-title {
    font-size: 18px;
    font-weight: 500;
    color: #191970; /* Dunkelblau - minimalistisch */
    text-align: center;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

.lb-experts-carousel-container {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden; /* Versteckt nächste Cards */
}

.lb-experts-swiper {
    overflow: hidden; /* Versteckt nächste Cards */
    padding-bottom: 60px; /* Platz für Pagination */
}

.lb-experts-swiper .swiper-slide {
    height: auto; /* Flexibel für unterschiedliche Inhalte */
    display: flex;
}

.lb-experts-swiper .swiper-slide .lb-expert-card {
    width: 100%;
}

/* Hide Swiper default arrows */
.lb-experts-carousel-container .swiper-button-prev::after,
.lb-experts-carousel-container .swiper-button-next::after {
    display: none !important;
}

/* === EXPERT CARD - OPTIMIERT für bessere Anzeige === */
.lb-expert-card {
    background: white;
    border-radius: var(--lb-radius, 12px);
    box-shadow: 0 4px 20px var(--lb-shadow, rgba(0, 0, 0, 0.1));
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    margin: 0 auto;
    height: auto !important; /* FLEXIBEL statt feste Höhe */
    min-height: 380px; /* Niedrigere Standard-Mindesthöhe */
    display: flex;
    flex-direction: column;
    position: relative;
}

.lb-expert-card:hover {
    /* Hover-Effekt entfernt */
}

.lb-expert-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.lb-expert-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Favoriten-Button Positionierung */
.lb-favorite-button-container {
    position: absolute;
    bottom: 5px;
    right: 5px;
    z-index: 10;
}

/* Favoriten-Button Styling - Stern Icon */
.lb-favorite-button-container .lb-favorite-btn {
    background: rgba(255, 215, 0, 0.95) !important;
    color: #191970 !important;
    /* border: 2px solid #ffffff !important; */
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.lb-favorite-button-container .lb-favorite-btn:hover {
    background: rgba(255, 215, 0, 1) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.lb-favorite-button-container .lb-favorite-btn i {
    font-size: 18px !important;
    color: #191970 !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    font-family: 'eicons' !important;
    text-align: center !important;
}

.lb-favorite-button-container .lb-favorite-btn.lb-favorited {
    background: rgba(25, 25, 112, 0.95) !important;
    color: #FFD700 !important;
}

.lb-favorite-button-container .lb-favorite-btn.lb-favorited i {
    color: #FFD700 !important;
}

.lb-expert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.lb-expert-card:hover .lb-expert-image img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05);
}

.lb-expert-content {
    padding: 18px; /* Etwas weniger Padding für mehr Platz */
    flex: 1; /* Nimmt verfügbaren Platz ein */
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lb-expert-header {
    /* margin-bottom: 5px; */
    position: relative; /* Für Rating-Position */
}

/* RATING rechts oben - KEIN HINTERGRUND */
.lb-expert-rating {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #4B0082; /* Dunkleres Violett */
}

.lb-expert-rating i {
    color: #FFD700; /* Gold - wie gewünscht */
    font-size: 10px;
}

.lb-expert-name {
    margin: 0 0 6px 0; /* Weniger Abstand */
    font-size: 20px; /* Kleiner für mehr Platz */
    font-weight: 600;
    color: #191970; /* Dunkelblau */
    line-height: 1.2; /* Kompakter */
}

.lb-expert-services {
    margin: 0 0 6px 0; /* Weniger Abstand */
    font-size: 14px; /* Kleiner */
    font-weight: 500;
    color: #4B0082; /* Dunkleres Violett */
    line-height: 1.3;
}

.lb-expert-location {
    margin: 0 0 5px 0; /* Etwas Abstand nach unten */
    font-size: 13px; /* Etwas kleiner */
    color: #999999; /* Helleres Grau */
    display: flex;
    align-items: center;
    gap: 4px;
}

.lb-expert-location i {
    font-size: 12px;
    color: #999999; /* Helleres Grau */
}

.lb-expert-specialties {
    margin-bottom: 12px; /* Weniger Abstand */
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* Kleinere Gaps */
}

.lb-specialty-tag {
    background: #4B0082; /* Dunkleres Violett */
    color: white;
    padding: 3px 6px; /* Kompakter */
    border-radius: var(--lb-radius-small, 6px);
    font-size: 11px; /* Kleiner */
    font-weight: 500;
    line-height: 1.2;
    max-width: 300px; /* Begrenze Breite - erhöht für längere Texte */
    white-space: nowrap; /* Kein Zeilenumbruch */
    overflow: hidden; /* Verstecke überflüssigen Text */
    text-overflow: ellipsis; /* ... für abgeschnittenen Text */
    display: inline-block; /* Für ellipsis */
}

.lb-specialty-tag.lb-more-tag {
    background: #999999; /* Helleres Grau für "+X mehr" */
    font-style: italic;
}

/* SPEZIALISIERUNGEN-TAGS (unterschiedlich zu Schwerpunkten) */
.lb-expert-specializations {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lb-specialization-tag {
    background: #FF6B35; /* Orange für Spezialisierungen */
    color: white;
    padding: 3px 6px;
    border-radius: var(--lb-radius-small, 6px);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.lb-specialization-tag.lb-more-tag {
    background: #999999; /* Helleres Grau für "+X mehr" */
    font-style: italic;
}

.lb-expert-bio {
    margin-bottom: 5px; /* Weniger Abstand */
    flex: 1; /* Nimmt verfügbaren Platz */
}

.lb-expert-bio p {
    margin: 0;
    font-size: 13px; /* Kleiner */
    line-height: 1.4; /* Kompakter */
    color: #888888; /* Mittleres Grau */
}

/* GROßER PROFIL BUTTON (wie im Bild) */
.lb-expert-action {
    margin-top: auto; /* Bleibt unten */
    padding-top: 5px;
}

.lb-profile-button {
    display: block;
    width: 100%;
    background: #191970; /* Dunkelblau */
    color: white;
    text-align: center;
    padding: 12px 20px;
    border-radius: 25px; /* Runde Ecken */
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lb-profile-button:hover {
    background: #4B0082; /* Dunkleres Violett beim Hover */
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Compact Style */
.lb-expert-card-compact {
    display: flex;
    flex-direction: row;
    max-width: 600px;
}

.lb-expert-card-compact .lb-expert-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.lb-expert-card-compact .lb-expert-content {
    flex: 1;
}

/* Detailed Style */
.lb-expert-card-detailed {
    max-width: 500px;
}

.lb-expert-card-detailed .lb-expert-image {
    height: 250px;
}

/* === CAROUSEL NAVIGATION === */
.lb-experts-prev,
.lb-experts-next {
    position: absolute;
    top: 45%; /* Besser positioniert */
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(to right, #EDDE5D 0%, #F09819 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 15; /* Höher für bessere Sichtbarkeit */
    color: white;
    box-shadow: 0 2px 8px rgba(92, 122, 89, 0.3);
}

.lb-experts-prev {
    left: 15px; /* Etwas mehr Abstand vom Rand */
}

.lb-experts-next {
    right: 15px; /* Etwas mehr Abstand vom Rand */
}

.lb-experts-prev:hover,
.lb-experts-next:hover {
    background: linear-gradient(to right, #F09819 0%, #EDDE5D 100%);
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 3px 10px rgba(92, 122, 89, 0.3);
}

.lb-experts-prev.swiper-button-disabled,
.lb-experts-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Pagination */
.lb-experts-pagination {
    bottom: 20px !important;
    text-align: center;
}

.lb-experts-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.lb-experts-pagination .swiper-pagination-bullet-active {
    background: #F09819;
    transform: scale(1);
}

/* Alle Experten Button */
.lb-all-experts-button-wrapper {
    text-align: center;
    margin-top: 20px;
}

.lb-all-experts-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #191970; /* Dunkelblau wie experts */
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.lb-all-experts-btn:hover {
    background: #4B0082; /* Dunkelviolett beim Hover wie experts */
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(25, 118, 210, 0.3);
    color: white;
    text-decoration: none;
}

/* === RESPONSIVE === */

/* === LAPTOP: 3 Spalten === */
@media (max-width: 1366px) {
    /* Swiper für Laptop: 3 slides */
    .lb-experts-carousel .swiper-wrapper {
        /* Laptop zeigt 3 Karten */
    }
}

@media (max-width: 1300px) {
    .lb-experts-carousel-container {
        padding: 0 30px; /* SPEZIFISCH für 1300px */
    }
    
    .lb-experts-prev,
    .lb-experts-next {
        width: 44px;
        height: 44px;
        z-index: 20;
    }
    
    .lb-experts-prev {
        left: 13px; /* Optimal für 1300px */
    }
    
    .lb-experts-next {
        right: 13px; /* Optimal für 1300px */
    }
}

/* === TABLET: 3 Spalten === */
@media (max-width: 1024px) {
    .lb-experts-carousel-container {
        padding: 0 30px;
    }
    
    .lb-experts-prev,
    .lb-experts-next {
        width: 42px;
        height: 42px;
        z-index: 20;
    }
    
    .lb-experts-prev {
        left: 12px;
    }
    
    .lb-experts-next {
        right: 12px;
    }
}

/* === MOBILE: 2 Spalten === */
@media (max-width: 768px) {
    .lb-experts-carousel-container {
        padding: 0 30px;
    }
    
    .lb-experts-prev,
    .lb-experts-next {
        width: 36px;
        height: 36px;
    }
    
    .lb-experts-prev {
        left: 10px;
    }
    
    .lb-experts-next {
        right: 10px;
    }
    
    .lb-expert-name {
        font-size: 16px;
    }
    
    .lb-expert-services {
        font-size: 13px;
    }
    
    .lb-expert-content {
        padding: 5px;
    }
    
    .lb-expert-card {
        min-height: 320px;
    }
}

/* === SMALL MOBILE: 1 Spalte === */
@media (max-width: 480px) {
    .lb-experts-carousel-container {
        padding: 0 40px;
    }
    
    .lb-experts-prev,
    .lb-experts-next {
        width: 32px;
        height: 32px;
    }
    
    .lb-experts-prev {
        left: 8px;
    }
    
    .lb-experts-next {
        right: 8px;
    }
    
    .lb-expert-card-compact {
        flex-direction: column;
    }
    
    .lb-expert-card-compact .lb-expert-image {
        width: 100%;
        height: 200px;
    }
    
    .lb-expert-name {
        font-size: 18px;
    }
    
    .lb-expert-services {
        font-size: 12px;
    }
    
    .lb-expert-content {
        padding: 5px;
    }
    
    .lb-expert-card {
        min-height: 350px;
    }
}

