:root {
    --primary: #e63946;
    --bg-dark: #0f1014;
    --bg-gradient: radial-gradient(circle at center, #1a1c23 0%, #0f1014 100%);
    --text-main: #f1faee;
    --text-muted: #a8dadc;
    --accent: #ffb703;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.header {
    padding: 2rem 5%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInDown 1s ease-out;
}

.logo {
    width: 70px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-container:hover .logo {
    transform: scale(1.1) rotate(5deg);
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff, #a8dadc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-main);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3.5rem;
    animation: scaleIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spinning-pizza {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    animation: spin 10s linear infinite;
    filter: drop-shadow(0 0 30px rgba(230, 57, 70, 0.3));
    margin-bottom: 2.5rem;
}

.loading-text {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 6px;
    animation: pulse 2s infinite ease-in-out;
}

/* Messages */
.message-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    padding: 2.5rem 4rem;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out 0.4s both;
    max-width: 600px;
    width: 100%;
}

.lang-text {
    font-size: 1.25rem;
    margin: 1rem 0;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: none;
}

.lang-text:hover {
    color: #fff;
    transform: translateY(-2px);
}

.lang-text.active-lang {
    display: block;
    animation: fadeIn 0.5s ease;
    font-weight: 600;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 2rem;
    position: relative;
}

.lang-text.active-lang::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 1s ease-out 0.8s both;
    backdrop-filter: blur(10px);
}

.footer h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer address {
    font-style: normal;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    font-size: 1rem;
    color: #adb5bd;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-info strong {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.footer a:hover {
    color: var(--primary);
}

/* Animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        position: relative;
        display: flex;
        justify-content: center;
        padding: 2rem 1rem;
    }

    .logo-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .brand-name {
        font-size: 1.4rem;
    }

    .main-content {
        padding: 2rem 1rem 4rem;
    }

    .spinning-pizza {
        width: 220px;
        height: 220px;
        margin-bottom: 2rem;
    }

    .loading-text {
        font-size: 1.8rem;
    }

    .message-container {
        padding: 2rem 1.5rem;
    }

    .lang-text.de {
        font-size: 1.3rem;
    }

    .lang-text {
        font-size: 1.1rem;
    }

    .footer address {
        flex-direction: column;
        gap: 1.5rem;
    }
}