/* ========================================
   LIGHTBOX STYLES
   ======================================== */
.modern-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-lightbox-overlay.active {
    opacity: 1;
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.lightbox-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5) !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 24px !important;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

/* ========================================
   SCROLL FEATURES
   ======================================== */
.scroll-to-top-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top-floating.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    z-index: 9999;
    transition: width 0.1s ease;
    border-radius: 0 3px 3px 0;
}

/* ========================================
   FORM VALIDATION STYLES
   ======================================== */
.field-error {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5;
}

.field-valid {
    border: 2px solid #28a745 !important;
    background-color: #f0fff4;
}

.field-feedback {
    font-size: 0.875rem;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 4px;
}

.field-feedback.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* ========================================
   EMAIL PROTECTION
   ======================================== */
.email-revealed {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-revealed:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE ANPASSUNGEN
   ======================================== */
@media (max-width: 768px) {
    .lightbox-controls {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .scroll-to-top-floating {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}