/* Grunddesign */
body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    height: 100%;
    cursor: url('cursor.webp') 16 0, auto;
}



/* Start-Screen */
#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.enter-text {
    font-size: 2.5rem;
    letter-spacing: 0.2em;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.6; transform: scale(1); }
}

/* Video */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    z-index: 100;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.brand {
    font-size: 1.5rem;
    color: white;
    font-weight: 300;
}

/* Content */
.content {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: white;
    text-align: center;
    z-index: 1;
}

.content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
    animation: softGlow 4s infinite ease-in-out, slowWobble 6s infinite ease-in-out;
    font-family: 'Space Grotesk', sans-serif;
    white-space: nowrap;
    overflow: hidden;
}


/* Wobble Animation */
@keyframes slowWobble {
    0% { transform: translateX(0); }
    50% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}


/* Sanftes, gleichmäßiges Leuchten */
@keyframes softGlow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        transform: scale(1.01);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
}


.social-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    transition: color 0.3s, transform 0.3s;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
}

.social-links a::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    transform: scaleY(-1);
    opacity: 0.2;
    color: white;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    pointer-events: none;
    font-size: 1.2rem;
}



.social-links a:hover {
    color: #aaaaaa;
}


/* Funkelnde Spur (neue Version) */
.sparkle {
    position: absolute;
    background: radial-gradient(circle, pink, deeppink);
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
    animation: sparkleMove 0.8s forwards ease-out;
    z-index: 9999;
}

@keyframes sparkleMove {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--move-x), var(--move-y)) scale(0);
        opacity: 0;
    }
}

@keyframes vibrantPulse {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.7),
                     0 0 10px rgba(255, 0, 255, 0.5),
                     0 0 20px rgba(255, 0, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 1),
                     0 0 20px rgba(255, 0, 255, 0.7),
                     0 0 30px rgba(255, 0, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.7),
                     0 0 10px rgba(255, 0, 255, 0.5),
                     0 0 20px rgba(255, 0, 255, 0.3);
    }
}

#layer {
    transition: transform 0.2s ease-out;
    will-change: transform;
    z-index: 2;
}


#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Damit Schnee den Klick nicht blockiert */
    z-index: 9998; /* Startscreen bleibt drüber (der hat 9999) */
}
