/* ============================================
   ECS LOADING PAGE STYLES
   Elegante Loading Animation für Luxury Chauffeur Service
   Farbpalette: Obsidian Grün, Champagne Gold, Ivory
   ============================================ */

.ecs-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1612 0%, #122720 50%, #0a1612 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ecs-loading-overlay.ecs-loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ecs-loading-content {
    text-align: center;
    animation: ecs-fadeIn 0.8s ease-out;
}

/* Logo Styling */
.ecs-loading-logo {
    margin-bottom: 3rem;
    animation: ecs-logoFloat 3s ease-in-out infinite;
}

.ecs-logo-img {
    width: 180px;
    height: auto;
    filter: brightness(1.1);
}

/* Elegante Ladeanimation - Goldene Linie */
.ecs-loading-animation {
    width: 200px;
    height: 2px;
    background: rgba(201, 169, 98, 0.15);
    margin: 0 auto 2rem;
    border-radius: 1px;
    overflow: hidden;
    position: relative;
}

.ecs-loading-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #c9a962 20%, 
        #d4b978 50%, 
        #c9a962 80%, 
        transparent 100%
    );
    animation: ecs-lineSlide 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    border-radius: 1px;
}

/* Subtiler Ladetext */
.ecs-loading-text {
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(248, 246, 240, 0.5);
    margin: 0;
    animation: ecs-textPulse 2s ease-in-out infinite;
}

/* Keyframe Animationen */
@keyframes ecs-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ecs-logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes ecs-lineSlide {
    0% {
        left: -60%;
    }
    100% {
        left: 100%;
    }
}

@keyframes ecs-textPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .ecs-logo-img {
        width: 140px;
    }
    
    .ecs-loading-animation {
        width: 160px;
    }
    
    .ecs-loading-text {
        font-size: 0.65rem;
        letter-spacing: 0.25em;
    }
}

/* Reduzierte Bewegung für Accessibility */
@media (prefers-reduced-motion: reduce) {
    .ecs-loading-logo {
        animation: none;
    }
    
    .ecs-loading-line {
        animation: ecs-lineSlide 3s linear infinite;
    }
    
    .ecs-loading-text {
        animation: none;
        opacity: 0.6;
    }
}
