/* Ladebalken (bleibt bis Ende sichtbar) */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    z-index: 10000;
    overflow: hidden;
}

.loading-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: var(--vbv-red, #be1a1a);
    animation: loading-bar 1.5s ease-in-out infinite;
}

@keyframes loading-bar {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* Wrapper für LoadingScreen mit Ladebalken */
.loading-screen-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Ladebildschirm */
.loading-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: #ffffff;
    color: var(--vbv-red);
    font-family: "Segoe UI", Roboto, sans-serif;
    text-align: center;
}

.loading-logo {
    width: 140px;
    margin-bottom: 1rem;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ganz oben */
}

/* Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--vbv-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* LoadingScreen.razor */
.custom-spinner {
    width: 50px !important;
    height: 50px !important;
}


