/* Globale Styles */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #000;
    color: white;            
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Context Menu Prevention */
body.no-context-menu {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Start Screen */
.start-screen {
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1.5s ease;
    background-color: black;   
}

.start-screen .background-mix {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.start-screen .background-mix img {
    position: fixed;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: lighten;
    opacity: 0.7;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;                           
}

.start-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.title {
    font-size: clamp(12px, 4vw, 24px);
    overflow-wrap: break-word;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.title .main-text {
    display: block;
    text-shadow: 
        2px 0 0 #000,
        -2px 0 0 #000,
        0 2px 0 #000,
        0 -2px 0 #000;
    background-color: rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    padding: 0 2px;
}

.title .sub-text {
    display: block;
    font-size: clamp(12px, 4vw, 24px);
    margin-top: 0.5em;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
}

/* Main Player (initial versteckt) */
.player-container {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* WebGL Canvas */
.webgl-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.webgl-canvas.active {
    opacity: 1;
}

/* Aspect-Ratio-Container */
.image-container {
    position: absolute;
    width: 130%;
    height: 130%;
    left: -15%;
    top: -15%;
    overflow: hidden;
}

.image-container::before {
    content: "";
    display: block;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.image-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    mix-blend-mode: hard-light;
    transition: 
        opacity 6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 50s linear;
    will-change: transform, opacity;
    filter: 
        brightness(1.1) 
        contrast(1.3) 
        saturate(1.5) 
        hue-rotate(5deg);
    z-index: 1;
}

.image-layer.active {
    opacity: 0.9;
    z-index: 2;
}

.image-layer.fading-out {
    opacity: 0;
    transition: opacity 8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
