/* ===================================================
   SF Loading Overlay
   Globales Ladeoverlay mit Icon-Karussell
   =================================================== */

#sf-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
}

#sf-loading-overlay.active {
    display: flex;
}

/* Icon-Karussell */
.sf-overlay-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
}

.sf-overlay-icon-wrap img {
    position: absolute;
    width: 72px;
    height: 72px;
    top: 4px;
    left: 4px;
    opacity: 0;
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.75));
    animation: sfIconCycle 5s ease-in-out infinite;
    pointer-events: none;
}

.sf-overlay-icon-wrap img:nth-child(1) { animation-delay: 0s; }
.sf-overlay-icon-wrap img:nth-child(2) { animation-delay: 1s; }
.sf-overlay-icon-wrap img:nth-child(3) { animation-delay: 2s; }
.sf-overlay-icon-wrap img:nth-child(4) { animation-delay: 3s; }
.sf-overlay-icon-wrap img:nth-child(5) { animation-delay: 4s; }

@keyframes sfIconCycle {
    0%   { opacity: 0; transform: scale(0.75) translateY(4px); }
    8%   { opacity: 1; transform: scale(1.08) translateY(0); }
    16%  { opacity: 1; transform: scale(1.0) translateY(0); }
    22%  { opacity: 0; transform: scale(0.85) translateY(-4px); }
    100% { opacity: 0; transform: scale(0.75) translateY(4px); }
}

/* Glow-Ring unter dem Icon */
.sf-overlay-glow {
    width: 80px;
    height: 7px;
    margin-top: -6px;
    background: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.55) 0%, transparent 72%);
    animation: sfGlowPulse 1s ease-in-out infinite alternate;
}

@keyframes sfGlowPulse {
    from { transform: scaleX(0.55); opacity: 0.25; }
    to   { transform: scaleX(1.25); opacity: 1; }
}

/* Pulsierendende Dots */
.sf-overlay-dots {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.sf-overlay-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: sfDotBounce 1s ease-in-out infinite;
}

.sf-overlay-dots span:nth-child(1) { background: #ff6b35; animation-delay: 0s; }
.sf-overlay-dots span:nth-child(2) { background: #ff8c5a; animation-delay: 0.15s; }
.sf-overlay-dots span:nth-child(3) { background: #ffaa80; animation-delay: 0.3s; }

@keyframes sfDotBounce {
    0%, 100% { transform: translateY(0);   opacity: 0.4; }
    50%       { transform: translateY(-7px); opacity: 1; }
}

/* Ladetext */
.sf-overlay-text {
    color: #aaa;
    font-size: 13px;
    letter-spacing: 0.4px;
    margin-top: 2px;
    min-height: 20px;
    transition: opacity 0.3s;
}
