@import url('./design-tokens.css');
/**
 * Welcome Experience - Hero Overlay
 * ==========================================================================
 * Zentrale Begrüßungsebene für neue Sessions
 */

#welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-overlay, rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(var(--glass-blur-md));
    -webkit-backdrop-filter: blur(var(--glass-blur-md));
    z-index: var(--z-tooltip);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s;
    font-family: var(--font-sans, sans-serif);

    /* New UI Colors */
    --welcome-blue: #1e40af;
    --welcome-green: #047857;
    --welcome-accent: #059669; /* Slightly brighter green for highlights */
    --welcome-gold: #c5a028;    /* Sattes, dunkleres Gold */
}

body.welcome-active {
    overflow: hidden;
}

body.welcome-active > *:not(#welcome-overlay) {
    pointer-events: none;
}

body.welcome-active #welcome-overlay {
    pointer-events: auto;
}

#welcome-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-logo-container {
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
    display: flex;
    justify-content: center;
}

.welcome-logo {
    max-width: 200px; /* Erhöht auf 200px */
    height: auto;
    filter: drop-shadow(0 0 15px rgba(197, 160, 40, 0.3));
    animation: welcomeLogoPulse 4s ease-in-out infinite;
    cursor: default;
}

@keyframes welcomeLogoPulse {
    0%, 100% {
        transform: scale(1); /* Keine Rotation mehr */
        filter:
            saturate(1.1)
            drop-shadow(0 0 15px rgba(197, 160, 40, 0.3)) /* Gold-Pulse */
            drop-shadow(0 0 30px rgba(197, 160, 40, 0.1));
    }
    50% {
        transform: scale(1.08); /* Nur Skalierung */
        filter:
            saturate(1.3)
            drop-shadow(0 0 25px rgba(197, 160, 40, 0.5)) /* Stärkeres Gold */
            drop-shadow(0 0 45px rgba(197, 160, 40, 0.2));
    }
}

.welcome-container {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

#welcome-3d-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

#welcome-3d-logo canvas {
    display: block;
    margin: 0 auto !important;
}

/* Role Selector Styles */
.welcome-role-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out 0.2s backwards;
}

.role-tab {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.role-tab i {
    font-size: 1.2rem;
}

.role-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border-strong);
}

.role-tab.active {
    background: var(--welcome-green);
    color: white;
    border-color: var(--welcome-green);
    box-shadow: 0 0 20px rgba(4, 120, 87, 0.4);
}

.welcome-title-group {
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

.welcome-title-group h1 {
    font-size: 2.2rem;
    color: var(--text-primary, #ffffff);
    margin-bottom: 10px;
    letter-spacing: -1px;
    font-weight: 700;
}

.welcome-title-group h1 span {
    color: var(--welcome-accent);
}

.welcome-title-group p {
    font-size: 1.1rem;
    color: var(--text-secondary, var(--text-secondary));
}

.welcome-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.welcome-card {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 280px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out backwards;
}

.welcome-card:nth-child(1) { animation-delay: 0.2s; }
.welcome-card:nth-child(2) { animation-delay: 0.4s; }
.welcome-card:nth-child(3) { animation-delay: 0.6s; }

.welcome-card:hover {
    background: var(--glass-bg-light);
    border-color: var(--welcome-green);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(4, 120, 87, 0.2);
}

.welcome-card i {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--welcome-accent);
}

.welcome-card h3 {
    font-size: 1.4rem;
    color: var(--text-primary, #ffffff);
    margin-bottom: 15px;
}

.welcome-card p {
    font-size: 0.95rem;
    color: var(--text-secondary, var(--text-secondary));
    line-height: 1.5;
}

.welcome-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    color: var(--welcome-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.welcome-card-footer span {
    margin-right: 8px;
}

.welcome-skip {
    background: transparent;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.welcome-skip:hover {
    opacity: 1;
    color: var(--text-primary);
}

.welcome-disable-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--text-muted, #94a3b8);
    font-size: 0.9rem;
    opacity: 0.9;
    cursor: pointer;
    user-select: none;
}

.welcome-disable-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--welcome-green);
}

.welcome-skip-hint {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
    opacity: 0.75;
}

@media (max-width: 900px) {
    .welcome-cards-grid {
        grid-template-columns: 1fr;
    }
    .welcome-card {
        height: auto;
        min-height: 200px;
    }
}








