/* ========================================
   PREMIUM CINEMATIC INTRO ANIMATION
   Professional DJ Website Loader
   ======================================== */

/* Poppins Font Family */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/assets/fonts/poppins/poppins-v24-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/poppins/poppins-v24-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/poppins/poppins-v24-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/poppins/poppins-v24-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/poppins/poppins-v24-latin-700.woff2') format('woff2');
}

/* Playfair Display Font Family */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/playfair-display/playfair-display-v40-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/playfair-display/playfair-display-v40-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/playfair-display/playfair-display-v40-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/playfair-display/playfair-display-v40-latin-700.woff2') format('woff2');
}

:root {
    --loader-primary: #A67C52;      /* Braun-Gold */
    --loader-secondary: #F5F0E8;    /* Creme */
    --loader-accent: #D4A574;       /* Helles Gold */
    --loader-light: #C4A57B;        /* Mittleres Gold */
    --loader-glow: rgba(255, 255, 255, 0.3);         /* Türkis-Blau */
    --loader-bg-start: #FFF5F0;     /* Sehr helles Pfirsich */
    --loader-bg-end: #FAF8F5;       /* Sehr helles Lila */
}

.site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--loader-bg-start) 0%, var(--loader-bg-end) 100%);
    z-index: 99999;
    overflow: hidden;
    opacity: 1;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Premium Gradient Background - Minimalistisch */
.loader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--loader-secondary);
    animation: none; /* Keine Animation für cleanen Look */
}

@keyframes bgMorph {
    0%, 100% {
        filter: hue-rotate(0deg) saturate(1) brightness(1);
    }
    25% {
        filter: hue-rotate(15deg) saturate(1.2) brightness(1.1);
    }
    50% {
        filter: hue-rotate(-15deg) saturate(1.1) brightness(1.05);
    }
    75% {
        filter: hue-rotate(10deg) saturate(1.15) brightness(1.08);
    }
}

/* Ultra Premium Vinyl Container */
.vinyl-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(60vw, 60vh);
    height: min(60vw, 60vh);
    animation: vinylEntrance 2.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    filter: url(#vinyl-shadow);
}

@keyframes vinylEntrance {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-720deg);
        opacity: 0;
        filter: blur(20px);
    }
    40% {
        transform: translate(-50%, -50%) scale(0.5) rotate(-360deg);
        opacity: 0.5;
        filter: blur(10px);
    }
    70% {
        transform: translate(-50%, -50%) scale(1.15) rotate(20deg);
        opacity: 1;
        filter: blur(0);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0);
    }
}

/* Premium Vinyl Record */
.vinyl-record {
    width: 100%;
    height: 100%;
    position: relative;
    animation: vinylSpinPremium 4s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
    filter: drop-shadow(0 0 80px rgba(212, 165, 116, 0.8))
            drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
    transform-style: preserve-3d;
}

@keyframes vinylSpinPremium {
    0% {
        transform: rotate(0deg) perspective(1000px) rotateX(0deg);
    }
    25% {
        transform: rotate(90deg) perspective(1000px) rotateX(2deg);
    }
    50% {
        transform: rotate(180deg) perspective(1000px) rotateX(0deg);
    }
    75% {
        transform: rotate(270deg) perspective(1000px) rotateX(-2deg);
    }
    100% {
        transform: rotate(360deg) perspective(1000px) rotateX(0deg);
    }
}

/* Ultra Minimalistic Vinyl Disc - Elegant */
.vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(166, 124, 82, 0.2),
        0 0 80px rgba(166, 124, 82, 0.1),
        inset 0 0 60px rgba(0, 0, 0, 0.4);
}

/* Vinyl Reflection Effect - Subtiler */
.vinyl-disc::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        transparent 48%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 52%
    );
    animation: vinylShine 4s ease-in-out infinite;
}

@keyframes vinylShine {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
}

/* Premium Grooves - Minimalistisch */
.vinyl-groove {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(80, 80, 80, 0.1);
    box-shadow: none;
}

.vinyl-groove:nth-child(1) { width: 95%; height: 95%; opacity: 0.3; }
.vinyl-groove:nth-child(2) { width: 88%; height: 88%; opacity: 0.25; }
.vinyl-groove:nth-child(3) { width: 81%; height: 81%; opacity: 0.2; }
.vinyl-groove:nth-child(4) { width: 74%; height: 74%; opacity: 0.2; }
.vinyl-groove:nth-child(5) { width: 67%; height: 67%; opacity: 0.2; }
.vinyl-groove:nth-child(6) { width: 60%; height: 60%; opacity: 0.2; }
.vinyl-groove:nth-child(7) { width: 53%; height: 53%; opacity: 0.2; }
.vinyl-groove:nth-child(8) { width: 46%; height: 46%; opacity: 0.2; }
.vinyl-groove:nth-child(9) { width: 39%; height: 39%; opacity: 0.25; }
.vinyl-groove:nth-child(10) { width: 32%; height: 32%; opacity: 0.3; }

/* Elegantes Label - Monochrom */
.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36%;
    height: 36%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--loader-primary) 0%, var(--loader-accent) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Center Hole - Heller */
.vinyl-label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20%;
    height: 20%;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F0F0 100%);
    box-shadow: 
        0 0 15px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.vinyl-label-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    color: #FFFFFF;  /* Weiß für besseren Kontrast */
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(166, 124, 82, 0.3);
    z-index: 1;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Premium Sound Waves */
.sound-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sound-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid;
    border-radius: 50%;
    opacity: 0;
}

.sound-wave:nth-child(1) {
    border-color: var(--loader-primary);
    animation: soundWavePremium 3s ease-out infinite 0s;
}

.sound-wave:nth-child(2) {
    border-color: var(--loader-secondary);
    animation: soundWavePremium 3s ease-out infinite 0.5s;
}

.sound-wave:nth-child(3) {
    border-color: var(--loader-accent);
    animation: soundWavePremium 3s ease-out infinite 1s;
}

.sound-wave:nth-child(4) {
    border-color: var(--loader-glow);
    animation: soundWavePremium 3s ease-out infinite 1.5s;
}

.sound-wave:nth-child(5) {
    border-color: var(--loader-primary);
    animation: soundWavePremium 3s ease-out infinite 2s;
}

@keyframes soundWavePremium {
    0% {
        width: 40%;
        height: 40%;
        opacity: 0;
        filter: blur(0);
    }
    10% {
        opacity: 1;
        filter: blur(0);
    }
    40% {
        width: 80%;
        height: 80%;
        opacity: 0.8;
        filter: blur(0.5px);
    }
    70% {
        width: 120%;
        height: 120%;
        opacity: 0.4;
        filter: blur(1px);
    }
    100% {
        width: 160%;
        height: 160%;
        opacity: 0;
        filter: blur(2px);
    }
}

/* Advanced Particle System - Bunte Konfetti-Partikel */
.particle-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.2px);
}

/* Multi-colored particles */
.particle:nth-child(1n) {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, var(--loader-primary) 0%, transparent 70%);
}

.particle:nth-child(2n) {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, var(--loader-accent) 0%, transparent 70%);
}

.particle:nth-child(3n) {
    width: 7px;
    height: 7px;
    background: radial-gradient(circle, var(--loader-light) 0%, transparent 70%);
}

.particle:nth-child(4n) {
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, var(--loader-glow) 0%, transparent 70%);
}

.particle:nth-child(5n) {
    width: 9px;
    height: 9px;
    background: radial-gradient(circle, var(--loader-secondary) 0%, transparent 70%);
}

/* Simplified Particle Animations */
.particle:nth-child(1) { left: 10%; animation: particleFloat 8s ease-in-out infinite; }
.particle:nth-child(2) { left: 20%; animation: particleFloat 7s ease-in-out infinite 0.5s; }
.particle:nth-child(3) { left: 30%; animation: particleFloat 9s ease-in-out infinite 1s; }
.particle:nth-child(4) { left: 40%; animation: particleFloat 6s ease-in-out infinite 1.5s; }
.particle:nth-child(5) { left: 50%; animation: particleFloat 8s ease-in-out infinite 2s; }
.particle:nth-child(6) { left: 60%; animation: particleFloat 7s ease-in-out infinite 2.5s; }
.particle:nth-child(7) { left: 70%; animation: particleFloat 9s ease-in-out infinite 3s; }
.particle:nth-child(8) { left: 80%; animation: particleFloat 6s ease-in-out infinite 3.5s; }
.particle:nth-child(9) { left: 85%; animation: particleFloat 8s ease-in-out infinite 4s; }
.particle:nth-child(10) { left: 90%; animation: particleFloat 7s ease-in-out infinite 4.5s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(50vh) scale(1);
        opacity: 0.2;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-10vh) scale(0);
        opacity: 0;
    }
}

/* Premium Logo Reveal */
.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    opacity: 0;
    animation: logoRevealPremium 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.8s forwards;
}

@keyframes logoRevealPremium {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotateX(90deg);
        filter: blur(30px) brightness(1.5);
    }
    40% {
        transform: translate(-50%, -50%) scale(0.8) rotateX(45deg);
        filter: blur(10px) brightness(1.3);
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1) rotateX(10deg);
        filter: blur(2px) brightness(1.1);
    }
    90% {
        transform: translate(-50%, -50%) scale(1.05) rotateX(0deg);
        filter: blur(0) brightness(1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateX(0deg);
        filter: blur(0) brightness(1);
    }
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 400;
    color: #FFFFFF;  /* Weiß für optimale Sichtbarkeit */
    text-align: center;
    letter-spacing: 0.05em;
    margin: 0;
    margin-top: 0.5rem;  /* Kleiner Abstand zum Subtitle */
    line-height: 1;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(166, 124, 82, 0.3);
    animation: logoFadeIn 1.5s ease-out 0.2s forwards;
    opacity: 0;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-subtitle {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    font-weight: 400;
    color: var(--loader-primary);  /* Bleibt Gold-Braun als Akzent */
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;  /* Abstand nach unten zum Haupttext */
    opacity: 0;
    animation: subtitleFadeIn 1.5s ease-out forwards;
    order: -1;  /* Wichtig: Subtitle kommt VOR dem Haupttext */
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitlePulse {
    0%, 100% {
        opacity: 0.8;
        letter-spacing: 0.4em;
    }
    50% {
        opacity: 1;
        letter-spacing: 0.45em;
    }
}

/* Premium Glow System */
.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(
        circle,
        rgba(255, 215, 0, 0.2) 0%,
        rgba(212, 165, 116, 0.1) 30%,
        transparent 70%
    );
    animation: glowPulsePremium 3s ease-in-out infinite;
    pointer-events: none;
    filter: blur(20px);
}

@keyframes glowPulsePremium {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(-50%, -50%) scale(1.1) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3) rotate(180deg);
        opacity: 0.7;
    }
    75% {
        transform: translate(-50%, -50%) scale(1.1) rotate(270deg);
        opacity: 0.5;
    }
}

/* Premium Light Beams */
.light-beams {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.light-beam {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 60%;
    transform-origin: top center;
    opacity: 0;
    animation: beamSweep 10s linear infinite;
}

.light-beam::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 215, 0, 0.8) 0%,
        rgba(212, 165, 116, 0.4) 50%,
        transparent 100%
    );
    filter: blur(2px);
}

.light-beam:nth-child(1) {
    animation-delay: 0s;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.6) 0%, transparent 100%);
}

.light-beam:nth-child(2) {
    animation-delay: -2.5s;
    background: linear-gradient(180deg, rgba(212, 165, 116, 0.6) 0%, transparent 100%);
}

.light-beam:nth-child(3) {
    animation-delay: -5s;
    background: linear-gradient(180deg, rgba(166, 124, 82, 0.6) 0%, transparent 100%);
}

.light-beam:nth-child(4) {
    animation-delay: -7.5s;
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.6) 0%, transparent 100%);
}

@keyframes beamSweep {
    0% {
        transform: translate(-50%, -100%) rotate(0deg) scaleY(0);
        opacity: 0;
    }
    10% {
        transform: translate(-50%, -100%) rotate(36deg) scaleY(1);
        opacity: 0.3;
    }
    20% {
        opacity: 0.6;
    }
    30% {
        transform: translate(-50%, -100%) rotate(108deg) scaleY(1);
        opacity: 0.3;
    }
    40% {
        transform: translate(-50%, -100%) rotate(180deg) scaleY(0.5);
        opacity: 0.1;
    }
    50% {
        transform: translate(-50%, -100%) rotate(216deg) scaleY(0);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -100%) rotate(360deg) scaleY(0);
        opacity: 0;
    }
}

/* Equalizer Bars */
.equalizer {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    opacity: 0;
    animation: equalizerFade 1s ease-out 2s forwards;
}

@keyframes equalizerFade {
    to {
        opacity: 1;
    }
}

.eq-bar {
    width: 4px;
    background: linear-gradient(180deg, var(--loader-accent), var(--loader-primary));
    border-radius: 2px;
    animation: equalizerDance 1s ease-in-out infinite;
}

.eq-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.eq-bar:nth-child(2) { height: 30px; animation-delay: 0.1s; }
.eq-bar:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 35px; animation-delay: 0.3s; }
.eq-bar:nth-child(5) { height: 28px; animation-delay: 0.4s; }
.eq-bar:nth-child(6) { height: 32px; animation-delay: 0.5s; }
.eq-bar:nth-child(7) { height: 24px; animation-delay: 0.6s; }

@keyframes equalizerDance {
    0%, 100% {
        transform: scaleY(0.5);
    }
    50% {
        transform: scaleY(1.5);
    }
}

/* Performance Optimizations */
@media (max-width: 768px) {
    .vinyl-container {
        width: 70vw;
        height: 70vw;
    }
    
    .particle {
        display: none;
    }
    
    .particle:nth-child(-n+10) {
        display: block;
    }
    
    .logo-text {
        font-size: clamp(2rem, 12vw, 4rem);
    }
    
    .light-beam {
        display: none;
    }
    
    .light-beam:nth-child(-n+2) {
        display: block;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .site-loader {
        animation: none;
        opacity: 1;
    }
    
    .site-loader.fade-out {
        opacity: 0;
        transition: opacity 0.3s ease-out;
    }
}

/* SVG Filter für Schatten */
.site-loader svg {
    position: absolute;
    width: 0;
    height: 0;
}

/* High Performance GPU Acceleration */
.vinyl-record,
.vinyl-disc,
.particle,
.sound-wave,
.light-beam,
.loader-logo {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optional: Blur Support für bessere Tiefe */
@supports (backdrop-filter: blur(10px)) {
    .vinyl-label {
        backdrop-filter: blur(5px);
    }
    
    .glow-effect {
        backdrop-filter: blur(15px);
    }
}