/* ============================================
   KOMPLETTES CSS FÜR CAROUSEL MIT KLICK-NAVIGATION
   ============================================ */

/* Verbesserte Styles für Artikelbeschreibung */
.article-description {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #f9f9f9;
    border-left: 3px solid #d40000;
    border-radius: 0 0px 0px 0;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    min-height: 40px;
    max-height: 60px;
    overflow-y: auto;
}

/* Product Description Styling */
.product-description {
    margin: 10px 0 5px 0;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0px;
    border-top-right-radius: 0px;
    font-size: 11px;
    line-height: 1.5;
    color: #555;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Hauptcontainer */
.Xcarousel-container {
    position: relative;
    height: 400px;
    margin-top: 25px;
    margin-left: 0px;
    overflow: hidden;
}

/* Logo Overlay - unten links, absolut über dem Bild */
.card-logo {
    position: absolute;
    bottom: 60px;
    left: 30px;
    width: 4px;
    height: 4px;
    background: transparent;
    border-radius: 0%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.0);
    z-index: 15;
    pointer-events: none; /* Logo klickbar machen, wenn gewünscht */
    transition: all 0.3s ease;
}

/* Falls das Logo klickbar sein soll */
.card-logo.clickable {
    pointer-events: auto;
    cursor: pointer;
}

/* Logo-Bild */
.card-logo img {
    width: 60px;
    height: auto;
	max-height:40px;
    object-fit: contain;
    border-radius: 0%;
}


/* Positionierungsvarianten */
.card-logo.bottom-left {
    bottom: 38px;
    left: 8px;
    top: auto;
    right: auto;
}

.card-logo.bottom-right {
    bottom: 38px;
    right: 8px;
    left: auto;
    top: auto;
}

.card-logo.top-left {
    top: 8px;
    left: 8px;
    bottom: auto;
    right: auto;
}

.card-logo.top-right {
    top: 8px;
    right: 8px;
    bottom: auto;
    left: auto;
}

/* Transparenter Hintergrund für Logo */
.card-logo.transparent {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.card-logo.transparent img {
    filter: brightness(0) invert(1);
}

/* Hover-Effekt für die Karte - Logo hervorheben */
.Xcard:hover .card-logo {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .card-logo {
        width: 35px;
        height: 35px;
        bottom: 5px;
        left: 5px;
    }
    
    .card-logo.small {
        width: 25px;
        height: 25px;
    }
    
    .card-logo.large {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .card-logo {
        width: 30px;
        height: 30px;
    }
}


/* Track für die Karten */
.Xcarousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Einzelne Karte - KLICKBAR */
.Xcard {
    position: absolute;
    width: 200px;
    height: 240px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    user-select: none;
}

/* Klick-Feedback */
.Xcard:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.Xcard.center:active {
    transform: scale(1.08);
}

/* Bilder in den Karten */
.Xcard img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: auto;
}

/* Links in Karten bleiben klickbar */
.Xcard a {
    display: block;
    text-decoration: none;
    pointer-events: auto;
}

/* Zentrierte Karte */
.Xcard.center {
    z-index: 10;
    transform: scale(1.1) translateZ(0);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.Xcard.center img {
    filter: none;
}

/* Linke Karten Positionen */
.Xcard.left-2 {
    z-index: 1;
    transform: translateX(-400px) scale(0.8) translateZ(-300px);
    opacity: 0.7;
}

.Xcard.left-2 img {
    filter: grayscale(100%);
}

.Xcard.left-1 {
    z-index: 5;
    transform: translateX(-200px) scale(0.9) translateZ(-100px);
    opacity: 0.9;
}

.Xcard.left-1 img {
    filter: grayscale(100%);
}

/* Rechte Karten Positionen */
.Xcard.right-1 {
    z-index: 5;
    transform: translateX(200px) scale(0.9) translateZ(-100px);
    opacity: 0.9;
}

.Xcard.right-1 img {
    filter: grayscale(100%);
}

.Xcard.right-2 {
    z-index: 1;
    transform: translateX(400px) scale(0.8) translateZ(-300px);
    opacity: 0.7;
}

.Xcard.right-2 img {
    filter: grayscale(100%);
}

/* Versteckte Karten */
.Xcard.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Spezielle rote Karte (falls verwendet) */
.Xcard-red {
    position: absolute;
    width: 280px;
    height: 50px;
    background: #d40000;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    margin-top: 300px;
    z-index: 999;
}

/* Mitglieder Info Bereich */
.member-info {
    text-align: center;
    margin-top: 40px;
    transition: all 0.5s ease-out;
}

/* Mitgliedername */
.member-name {
    color: #848696;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline;
    z-index: 9999;
    width: 280px;
    text-align: center;
    height: 45px;
    line-height: 45px;
}

/* Mitgliederrolle */
.member-role {
    color: #d40000;
    font-size: 1.15rem;
    font-weight: 800;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 0;
    margin-top: -15px;
    position: relative;
}

/* Dots Navigation */
.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
    position: relative;
    z-index: 30;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(123, 16, 8, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(123, 16, 8, 0.4);
    transform: scale(1.2);
}

.dot.active {
    background: rgba(123, 16, 8, 0.8);
    transform: scale(1.2);
}

/* Navigationspfeile */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    font-size: 2rem;
    font-weight: bold;
    border: none;
    outline: none;
    backdrop-filter: blur(5px);
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left {
    left: 20px;
}

.nav-arrow.right {
    right: 20px;
}

/* Tooltip für bessere Benutzerführung */
.Xcard:hover::after {
    content: "✋ Zum Navigieren klicken";
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    font-weight: normal;
    letter-spacing: normal;
}

.Xcard.center:hover::after {
    content: "★ Zum Öffnen klicken";
    background: rgba(212, 0, 0, 0.95);
}

/* Verhindert Tooltip auf mobilen Geräten */
@media (hover: none) {
    .Xcard:hover::after {
        display: none;
    }
}

/* Scrollbar Styling für Beschreibungen */
.article-description::-webkit-scrollbar,
.product-description::-webkit-scrollbar {
    width: 4px;
}

.article-description::-webkit-scrollbar-track,
.product-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.article-description::-webkit-scrollbar-thumb,
.product-description::-webkit-scrollbar-thumb {
    background: #d40000;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-title {
        font-size: 4.5rem;
    }

    .Xcarousel-container {
        height: 350px;
    }

    .Xcard {
        width: 180px;
        height: 250px;
    }
    
    .Xcard img {
        height: 150px;
    }

    .Xcard.left-2 {
        transform: translateX(-250px) scale(0.8) translateZ(-300px);
    }

    .Xcard.left-1 {
        transform: translateX(-120px) scale(0.9) translateZ(-100px);
    }

    .Xcard.right-1 {
        transform: translateX(120px) scale(0.9) translateZ(-100px);
    }

    .Xcard.right-2 {
        transform: translateX(250px) scale(0.8) translateZ(-300px);
    }

    .member-name {
        font-size: 0.8rem;
        height: 35px;
        line-height: 35px;
    }

    .member-role {
        font-size: 1rem;
    }
    
    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .nav-arrow.left {
        left: 10px;
    }
    
    .nav-arrow.right {
        right: 10px;
    }
    
    .dots {
        margin-top: 40px;
    }
}

/* Für sehr kleine Geräte */
@media (max-width: 480px) {
    .Xcard {
        width: 150px;
        height: 220px;
    }
    
    .Xcard img {
        height: 120px;
    }
    
    .Xcard.left-2 {
        transform: translateX(-180px) scale(0.7) translateZ(-300px);
    }
    
    .Xcard.left-1 {
        transform: translateX(-90px) scale(0.85) translateZ(-100px);
    }
    
    .Xcard.right-1 {
        transform: translateX(90px) scale(0.85) translateZ(-100px);
    }
    
    .Xcard.right-2 {
        transform: translateX(180px) scale(0.7) translateZ(-300px);
    }
    
    .member-name {
        font-size: 0.7rem;
    }
    
    .article-description {
        font-size: 10px;
        padding: 5px 8px;
        min-height: 30px;
        max-height: 50px;
    }
}

/* Animation für flüssige Übergänge */
.Xcard {
    will-change: transform, opacity;
}

/* Verbesserte Lesbarkeit */
.article-description {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Hover-Effekt für nicht-zentrierte Karten */
.Xcard.left-1:hover,
.Xcard.left-2:hover,
.Xcard.right-1:hover,
.Xcard.right-2:hover {
    filter: brightness(1.05);
    transform: scale(0.95);
}

.Xcard.center:hover {
    transform: scale(1.15);
}

/* Fokus-Stil für Barrierefreiheit */
.nav-arrow:focus,
.dot:focus,
.Xcard:focus {
    outline: 2px solid #d40000;
    outline-offset: 2px;
}