/* Vorher-Nachher Galerie - Frontend Styles */

.vng-galerie-wrapper {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.vng-galerie-slider {
    position: relative;
    width: 100%;
}

.vng-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.vng-slide.active {
    display: block;
    opacity: 1;
}

.vng-slide-content {
    background: #4a5568;
    border-radius: 24px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Comparison Container */
.vng-comparison-container {
    width: 100%;
}

.vng-comparison-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.vng-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    min-height: 400px;
    max-height: 500px;
    height: 450px;
    background: #1a202c;
}

.vng-image-after,
.vng-image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.vng-image-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

/* Slider Handle */
.vng-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 3;
}

.vng-slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.vng-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    background: #3b82f6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.vng-slider-button:hover {
    background: #2563eb;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.6);
}

.vng-slider-button svg {
    width: 24px;
    height: 24px;
}

/* Labels */
.vng-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    z-index: 4;
    backdrop-filter: blur(8px);
}

.vng-label-before {
    left: 20px;
}

.vng-label-after {
    right: 20px;
}

/* Info Section */
.vng-info {
    text-align: left;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.vng-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #3b82f6;
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: none;
    letter-spacing: 0;
    align-self: flex-start;
}

.vng-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: white;
    line-height: 1.2;
}

.vng-description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px 0;
}

.vng-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-style: normal;
}

/* Navigation */
.vng-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.vng-nav-button {
    width: 56px;
    height: 56px;
    background: #3a4556;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.vng-nav-button:hover {
    background: #4a5568;
    transform: scale(1.05);
}

.vng-nav-button:active {
    transform: scale(0.95);
}

.vng-nav-button svg {
    width: 24px;
    height: 24px;
}

/* Dots Navigation */
.vng-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.vng-dot {
    width: 12px;
    height: 12px;
    background: #5a6678;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.vng-dot:hover {
    background: #6b7688;
    transform: scale(1.2);
}

.vng-dot.active {
    background: #3b82f6;
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vng-slide-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .vng-info {
        text-align: center;
        padding: 0;
    }
    
    .vng-badge {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .vng-galerie-wrapper {
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .vng-slide-content {
        padding: 24px;
        border-radius: 16px;
    }
    
    .vng-image-container {
        border-radius: 12px;
        height: 350px;
        min-height: 300px;
        max-height: 400px;
    }
    
    .vng-title {
        font-size: 24px;
    }
    
    .vng-description {
        font-size: 16px;
    }
    
    .vng-label {
        font-size: 12px;
        padding: 6px 12px;
        top: 12px;
    }
    
    .vng-label-before {
        left: 12px;
    }
    
    .vng-label-after {
        right: 12px;
    }
    
    .vng-slider-button {
        width: 40px;
        height: 40px;
    }
    
    .vng-slider-button svg {
        width: 20px;
        height: 20px;
    }
    
    .vng-nav-button {
        width: 40px;
        height: 40px;
    }
    
    .vng-nav-button svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .vng-slide-content {
        padding: 20px;
    }
    
    .vng-image-container {
        height: 280px;
        min-height: 250px;
        max-height: 320px;
    }
    
    .vng-title {
        font-size: 20px;
    }
    
    .vng-description {
        font-size: 14px;
    }
    
    .vng-badge {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    .vng-navigation {
        gap: 12px;
    }
    
    .vng-info {
        padding: 0;
    }
}

/* Accessibility */
.vng-nav-button:focus,
.vng-dot:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading State */
.vng-galerie-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vng-slide.active .vng-slide-content {
    animation: slideIn 0.5s ease-out;
}

