.vorher-nachher-container {
    background: linear-gradient(to bottom, rgba(245,230,211,0.85), rgba(255,255,255,0.9)), url('images/hintergrund3.png') center/cover no-repeat;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.slides-container {
    display: flex;
    transition: transform 0.3s ease;
}

.slide {
    min-width: 100%;
    position: relative;
    height: 500px;
    background: transparent;
}

.image-comparison {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-before, .image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.image-after {
    clip-path: inset(0 50% 0 0);
    transition: none;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #c9a876;
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #c9a876;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 15px rgba(201,168,118,0.3);
}

.slider-handle::after {
    content: '⟷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201,168,118,0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 20;
    transition: all 0.3s ease;
}

.slide-nav:hover {
    background: #c9a876;
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #c9a876;
    transform: scale(1.2);
}

.slide-labels {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: 15;
}

.label {
    flex: 1;
    padding: 15px;
    text-align: center;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.label-before {
    background: linear-gradient(90deg, rgba(44,90,160,0.8), transparent);
}

.label-after {
    background: linear-gradient(270deg, rgba(201,168,118,0.8), transparent);
}

@media (max-width: 768px) {
    .slider-wrapper {
        height: 300px;
    }
    
    .slide {
        height: 300px;
    }
    
    .slide-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }
}