/* Grundlegendes Setup & Fix für horizontales Scrollen auf Mobile */
html, body { 
    background-color: #000; 
    color: #fff; 
    overflow-x: hidden; 
    width: 100%;
    position: relative;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Textur-Overlay (Rauschen) */
.texture-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none; 
    z-index: 100;
}

/* Scroll-Reveal Animationen */
.reveal { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1); 
}

.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Hero Titel Größenanpassung */
.hero-title { 
    font-size: clamp(2.5rem, 10vw, 10rem); 
    line-height: 0.9; 
}

/* Fix für Outline-Schrift auf Mobile (verhindert Balken-Effekt im "A") */
@media (max-width: 768px) {
    .mobile-stroke-fix {
        -webkit-text-stroke: 0px transparent !important;
        color: white !important;
    }
}

/* FAQ Details Styling */
details summary::-webkit-details-marker { 
    display: none; 
}

details[open] summary svg { 
    transform: rotate(180deg); 
}

/* Utility für sanftes Scrollen */
.scroll-smooth {
    scroll-behavior: smooth;
}
/* Cursor verstecken auf Desktop */
@media (min-width: 1024px) {
    body { cursor: none; }
    a, button { cursor: none; }
}

/* Cursor-Container */
#cursor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    /* Das ist das Herzstück: Farben werden getauscht */
    mix-blend-mode: difference; 
}

#cursor-dot, #cursor-outline {
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    /* Wichtig: Der Cursor selbst muss WEISS sein, damit er schwarz auf weiß wird */
    background-color: #fff; 
}

#cursor-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    z-index: 10000;
}

#cursor-outline {
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: 1.5px solid #fff;
    border-radius: 50%;
    /* Sanfter Übergang für Größenänderungen */
    transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1), 
                height 0.3s cubic-bezier(0.19, 1, 0.22, 1), 
                border-radius 0.3s ease;
}

/* Hover-Effekt: Der Cursor "snappt" und wird eckig */
.cursor-active #cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px; /* Fast quadratisch für Tech-Look */
}

@media (max-width: 1024px) {
    #cursor-container { display: none; }
}

.magnetic {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

#live-clock {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    letter-spacing: 0.1em;
}
::selection {
    background-color: #ffffff;
    color: #000000;
}
::-moz-selection {
    background-color: #ffffff;
    color: #000000;
}

.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* Hinter dem Text, aber vor dem nackten Body-Schwarz */
    overflow: hidden;
    pointer-events: none; /* Klicks gehen durch auf die Buttons */

}

.blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px); /* Extrem weicher Rand */
    will-change: transform;
    opacity: 0.4; /* Deutlich sichtbar */
}

/* Weißer/Grauer Nebel oben links */
.blob-1 {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    animation: move-blob-1 25s infinite alternate ease-in-out;
}

/* Etwas dunklerer Nebel unten rechts */
.blob-2 {
    bottom: -5%;
    right: -5%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    animation: move-blob-2 30s infinite alternate-reverse ease-in-out;
}

/* Kleinerer Akzent-Blob in der Mitte */
.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    animation: move-blob-1 35s infinite reverse ease-in-out;
}

/* 5. ANIMATIONEN: Sanftes Schweben */
@keyframes move-blob-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 15vh) scale(1.2); }
}

@keyframes move-blob-2 {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(-15vw, -10vh) scale(0.9); }
}

@media (max-width: 768px) {
    .blob {
        width: 100vw; /* Auf dem Handy etwas breiter */
        height: 100vw;
        filter: blur(60px); /* Weniger Blur spart Rechenleistung */
        opacity: 0.3; /* Etwas dezenter auf kleinen Screens */
    }

    .blob-1 {
        top: -5%;
        left: -20%;
    }

    .blob-2 {
        bottom: 5%;
        right: -20%;
    }

    /* Wir vereinfachen die Animation für Handys */
    @keyframes move-blob-1 {
        0% { transform: translate(0, 0); }
        100% { transform: translate(30px, 20px); }
    }

    @keyframes move-blob-2 {
        0% { transform: translate(0, 0); }
        100% { transform: translate(-30px, -20px); }
    }
}

body { background-color: #000; color: #fff; overflow: hidden; }
        
        .texture-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
            pointer-events: none; z-index: 100;
        }

        /* Glitch Effekt für die 404 */
        .glitch {
            font-size: 12rem;
            font-weight: 900;
            position: relative;
            text-shadow: 0.05em 0 0 rgba(255,0,0,.75),
                        -0.025em -0.05em 0 rgba(0,255,0,.75),
                        0.025em 0.05em 0 rgba(0,0,255,.75);
            animation: glitch 500ms infinite;
        }

        @keyframes glitch {
            0% { text-shadow: 0.05em 0 0 rgba(255,0,0,.75), -0.05em -0.025em 0 rgba(0,255,0,.75), -0.025em 0.05em 0 rgba(0,0,255,.75); }
            14% { text-shadow: 0.05em 0 0 rgba(255,0,0,.75), -0.05em -0.025em 0 rgba(0,255,0,.75), -0.025em 0.05em 0 rgba(0,0,255,.75); }
            15% { text-shadow: -0.05em -0.025em 0 rgba(255,0,0,.75), 0.025em 0.025em 0 rgba(0,255,0,.75), -0.05em -0.05em 0 rgba(0,0,255,.75); }
            49% { text-shadow: -0.05em -0.025em 0 rgba(255,0,0,.75), 0.025em 0.025em 0 rgba(0,255,0,.75), -0.05em -0.05em 0 rgba(0,0,255,.75); }
            50% { text-shadow: 0.025em 0.05em 0 rgba(255,0,0,.75), 0.05em 0 0 rgba(0,255,0,.75), 0 -0.05em 0 rgba(0,0,255,.75); }
            99% { text-shadow: 0.025em 0.05em 0 rgba(255,0,0,.75), 0.05em 0 0 rgba(0,255,0,.75), 0 -0.05em 0 rgba(0,0,255,.75); }
            100% { text-shadow: -0.025em 0 0 rgba(255,0,0,.75), -0.025em -0.025em 0 rgba(0,255,0,.75), -0.025em -0.05em 0 rgba(0,0,255,.75); }
        }

        .scanline {
            width: 100%;
            height: 2px;
            background: rgba(255,255,255,0.1);
            position: absolute;
            top: 0;
            left: 0;
            animation: scanline 4s linear infinite;
            z-index: 110;
        }

        @keyframes scanline {
            0% { top: 0; }
            100% { top: 100%; }
        }