/* Tunnel Carousel CSS - ORIGINAL VERSION */
/* Passt zur ursprünglichen tunnel.js */

/* Entferne Theme-Abstände */
#tunnelcarousel-module-wrapper,
.tunnelcarousel-wrapper,
section.tunnelcarousel,
.module-tunnelcarousel {
    margin: 0 !important;
    padding: 0 !important;
}

.tunnelcarousel-container {
    width: 100%;
    max-width: 100%;  /* Volle Breite statt 1200px */
    height: 400px;  /* Weniger Höhe - vorher 600px */
    margin: 0 auto !important;  /* KEIN Abstand oben/unten */
    position: relative;
    perspective: 1000px;
    perspective-origin: 50% 50%;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

#tunnelcarousel-tunnel {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    pointer-events: none; /* Container blockiert keine Klicks */
}

.tunnelcarousel-panel {
    position: absolute;
    width: 140px;
    height: 90px;
    left: 50%;
    top: 50%;
    margin-left: -70px;
    margin-top: -45px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    pointer-events: auto; /* Links sind klickbar */
}

.tunnelcarousel-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tunnelcarousel-panel:hover {
    z-index: 10000 !important;
}

.tunnelcarousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.tunnelcarousel-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tunnelcarousel-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.tunnelcarousel-btn:active {
    transform: translateY(0);
}

.tunnelcarousel-btn i {
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .tunnelcarousel-container {
        height: 400px;
    }
    
    .tunnelcarousel-panel {
        width: 100px;
        height: 65px;
        margin-left: -50px;
        margin-top: -32px;
    }
    
    .tunnelcarousel-controls {
        bottom: 15px;
        gap: 8px;
    }
    
    .tunnelcarousel-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media print {
    .tunnelcarousel-container {
        display: none;
    }
}