@tailwind base;
@tailwind components;
@tailwind utilities;

html { scroll-behavior: smooth; }
body { background-color: #050505; color: #f3f4f6; overflow-x: hidden; }

:root {
    /* ========================================
       PREMIUM DESIGN SYSTEM - FINE ART PORTFOLIO
       ======================================== */
    
    /* Basis-Farben */
    --color-primary: #0078D4; 
    --color-secondary: #666666; 
    --color-accent: #C9A962; /* Warmes Gold für Kunst */
    
    /* Premium Hintergrund-Palette */
    --color-bg-dark: #050505;
    --color-bg-medium: #0a0a0a;
    --color-bg-light: #141414;
    --color-bg-elevated: #1a1a1a;
    
    /* Premium Gold-Akzente */
    --color-gold: #C9A962;
    --color-gold-light: #E8D5A3;
    --color-gold-dark: #8B7355;
    --color-gold-glow: rgba(201, 169, 98, 0.4);
    
    /* Text-Hierarchie */
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.75);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-text-subtle: rgba(255, 255, 255, 0.3);
    
    /* Effekte */
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-hover: rgba(255, 255, 255, 0.25);
    --color-glass: rgba(255, 255, 255, 0.05);
    --color-glass-hover: rgba(255, 255, 255, 0.1);
    
    /* Typografie */
    --font-display: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Bodoni Moda', 'Didot', serif;
    
    /* Typografie-Skala (Responsive) */
    --text-hero: clamp(3rem, 8vw, 5rem);
    --text-h1: clamp(2.5rem, 5vw, 4rem);
    --text-h2: clamp(2rem, 4vw, 3rem);
    --text-h3: clamp(1.5rem, 3vw, 2rem);
    --text-h4: clamp(1.25rem, 2.5vw, 1.5rem);
    --text-body: clamp(1rem, 1.5vw, 1.125rem);
    --text-small: clamp(0.875rem, 1.25vw, 1rem);
    --text-tiny: clamp(0.75rem, 1vw, 0.875rem);
    
    /* Spacing (8px Grid) */
    --space-2xs: 0.25rem;  /* 4px */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 2rem;      /* 32px */
    --space-xl: 3rem;      /* 48px */
    --space-2xl: 4rem;     /* 64px */
    --space-3xl: 6rem;     /* 96px */
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px var(--color-gold-glow);
    
    /* CMS-Variablen (Legacy) */
    --font-intro-title: 'Playfair Display', serif; --size-intro-title: 4rem;
    --font-intro-body: 'Inter', sans-serif; --size-intro-body: 1.2rem;
    --font-gal-title: 'Playfair Display', serif; --size-gal-title: 1.5rem;
    --font-gal-desc: 'Inter', sans-serif; --size-gal-desc: 0.9rem;
    --font-nico: 'Bodoni Moda', serif; --size-nico-front: 8rem; --size-nico-back: 16rem;
    --font-about-title: 'Playfair Display', serif; --size-about-title: 2rem;
    --font-about-text: 'Inter', sans-serif; --size-about-text: 1rem;
    
    /* Home-Button CMS-Variablen - Professionelle Defaults */
    --home-btn-bg: #1a1a1a;
    --home-btn-border: #333333;
    --home-btn-text: #ffffff;
    --home-btn-hover-bg: var(--color-gold);
    --home-btn-hover-text: #000000;
    --home-btn-hover-border: var(--color-gold);
    --home-btn-icon-size: 24px;
    
    /* Navigation CMS-Variablen - PREMIUM DEFAULTS */
    --nav-text-color: rgba(255, 255, 255, 0.9);
    --nav-hover-color: var(--color-gold);
    --nav-bg-color: rgba(255, 255, 255, 0.05);
    --nav-container-bg: rgba(0, 0, 0, 0.6);
    --nav-font-size: 0.85rem;
    --nav-font-family: 'Inter', sans-serif;
    --nav-padding: 16px 36px;
    --nav-border-radius: 50px;
    --nav-glow-color: var(--color-gold-glow);
    
    /* NEU: Eintreten-Button CMS-Variablen */
    --enter-btn-bg: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    --enter-btn-bg-solid: #8B0000;
    --enter-btn-hover-bg: linear-gradient(135deg, #A52A2A 0%, #FF4500 50%, #A52A2A 100%);
    --enter-btn-text: #ffffff;
    --enter-btn-font-size: 1.1rem;
    --enter-btn-font-family: 'Inter', sans-serif;
    --enter-btn-border-color: rgba(255, 215, 0, 0.4);
    --enter-btn-border-width: 2px;
    --enter-btn-glow-color: rgba(220, 20, 60, 0.6);
    --enter-btn-padding: 18px 50px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; }

/* ========================================
   KRITISCH: ALLE CONTENT-BEREICHE VERSTECKEN
   Bereiche werden NUR in ihrem jeweiligen Modus sichtbar
   ======================================== */

/* Standard: Alle Content-Bereiche VERSTECKT */
#galerie,
#ueber-mich,
#kontakt {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* Galerie-spezifische Elemente verstecken */
.gallery-backdrop {
    display: none !important;
}

.flying-img {
    display: none !important;
}

/* ========================================
   GALERIE-MODUS
   ======================================== */
body.gallery-mode #intro-layer,
body.gallery-mode #main-header,
body.gallery-mode #hero,
body.gallery-mode #ueber-mich,
body.gallery-mode #kontakt,
body.gallery-mode footer { display: none !important; }

body.gallery-mode #galerie {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    padding-top: 120px !important;
    min-height: 100vh;
    background-color: #050505 !important;
    z-index: 1000 !important;
}

body.gallery-mode .gallery-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 40000 !important;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

body.gallery-mode .gallery-backdrop.active {
    opacity: 1;
}

body.gallery-mode .flying-img {
    display: block !important;
    position: fixed;
    z-index: 40005 !important;
    transition: all 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 0 rgba(0,0,0,0);
    border-radius: 0.75rem;
    pointer-events: none;
    object-fit: cover;
}

/* ========================================
   ÜBER-MICH-MODUS
   ======================================== */
body.about-mode #intro-layer,
body.about-mode #main-header,
body.about-mode #hero,
body.about-mode #galerie,
body.about-mode #kontakt,
body.about-mode footer { display: none !important; }

body.about-mode #ueber-mich {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    padding-top: 80px !important;
    min-height: 100vh;
    background-color: #0a0a0a !important;
    z-index: 1000 !important;
}

/* ========================================
   KONTAKT-MODUS
   ======================================== */
body.contact-mode #intro-layer,
body.contact-mode #main-header,
body.contact-mode #hero,
body.contact-mode #galerie,
body.contact-mode #ueber-mich,
body.contact-mode footer { display: none !important; }

body.contact-mode #kontakt {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    padding-top: 80px !important;
    min-height: 100vh;
    background-color: #0a0a0a !important;
    z-index: 1000 !important;
}
/* ========================================
   HOME-BUTTON - MIT CMS-STEUERUNG
   ======================================== */
.home-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 12px 30px;
    
    /* CMS-gesteuerte Farben */
    background: var(--home-btn-bg);
    border: 1px solid var(--home-btn-border);
    color: var(--home-btn-text);
    
    /* Glasmorphism-Effekt */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    
    /* Typografie */
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    
    /* Layout */
    display: flex;
    align-items: center;
    gap: 10px;
    
    /* Interaktion */
    z-index: 60000 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    
    /* Animation */
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* Hover-Zustand mit garantierter Lesbarkeit */
.home-btn:hover {
    background: var(--home-btn-hover-bg) !important;
    border-color: var(--home-btn-hover-border) !important;
    color: var(--home-btn-hover-text) !important;
    box-shadow: 0 0 25px color-mix(in srgb, var(--home-btn-hover-bg) 50%, transparent);
    transform: translateY(-2px) scale(1.02);
}

/* Focus-Zustand für Accessibility */
.home-btn:focus {
    outline: 2px solid var(--home-btn-hover-bg);
    outline-offset: 2px;
}

/* Icon-Styling im Button */
.home-btn-icon {
    width: var(--home-btn-icon-size);
    height: var(--home-btn-icon-size);
    object-fit: contain;
    flex-shrink: 0;
    
    /* Für SVG-Icons und dunkle Bilder */
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* Icon-Farbanpassung beim Hover */
.home-btn:hover .home-btn-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

/* Emoji-Fallback (wenn kein Icon hochgeladen) */
.home-btn-emoji {
    font-size: calc(var(--home-btn-icon-size) - 4px);
    line-height: 1;
    margin-right: 2px;
}

/* Button-Text */
.home-btn-text {
    white-space: nowrap;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .home-btn {
        top: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .home-btn-icon {
        width: calc(var(--home-btn-icon-size) - 4px);
        height: calc(var(--home-btn-icon-size) - 4px);
    }
}

@media (max-width: 480px) {
    .home-btn {
        padding: 10px 16px;
        letter-spacing: 1px;
    }
    
    .home-btn-text {
        font-size: 0.75rem;
    }
}

/* CUSTOM CURSOR */
@media (hover: hover) and (pointer: fine) {
    body, a, button, input { cursor: auto !important; }
    .cursor-dot { position: fixed; top: 0; left: 0; width: 8px; height: 8px; background: white; border-radius: 50%; pointer-events: none !important; z-index: 21000; transform: translate(-50%, -50%); box-shadow: 0 0 10px rgba(255,255,255,0.8); }
    .cursor-outline { position: fixed; top: 0; left: 0; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; pointer-events: none !important; z-index: 20999; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s; }
}
@media (hover: none) { .cursor-dot, .cursor-outline { display: none; } }

/* ========================================
   EINTRETEN-BUTTON - PREMIUM EYECATCHER
   ======================================== */

/* Keyframe Animationen */
@keyframes enterBtnPulse {
    0%, 100% { 
        box-shadow: 
            0 0 20px var(--enter-btn-glow-color),
            0 0 40px rgba(220, 20, 60, 0.3),
            0 10px 40px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 30px var(--enter-btn-glow-color),
            0 0 60px rgba(220, 20, 60, 0.4),
            0 15px 50px rgba(0, 0, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes enterBtnShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

@keyframes enterBtnFadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(30px) scale(0.9);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

/* Button Container für zentrierte Positionierung */
.enter-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

/* Der Eintreten Button */
#intro-enter-btn,
.enter-btn {
    /* Basis-Layout */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: var(--enter-btn-padding);
    min-width: 220px;
    
    /* Hintergrund mit Gradient */
    background: var(--enter-btn-bg);
    
    /* Rahmen mit Gold-Akzent */
    border: var(--enter-btn-border-width) solid var(--enter-btn-border-color);
    border-radius: 16px;
    
    /* Text-Styling */
    color: var(--enter-btn-text);
    font-family: var(--enter-btn-font-family);
    font-size: var(--enter-btn-font-size);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    
    /* Premium Shadow & Glow */
    box-shadow: 
        0 0 20px var(--enter-btn-glow-color),
        0 0 40px rgba(220, 20, 60, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    
    /* Animation */
    animation: 
        enterBtnPulse 3s ease-in-out infinite,
        enterBtnFadeIn 1s ease-out forwards;
    
    /* Übergang für Hover */
    transition: 
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
    
    /* Z-Index & Cursor */
    z-index: 100;
    cursor: pointer !important;
    pointer-events: auto !important;
    overflow: hidden;
}

/* Shine-Effekt Overlay */
#intro-enter-btn::before,
.enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    animation: enterBtnShine 4s ease-in-out infinite;
    pointer-events: none;
}

/* Hover-Effekt */
#intro-enter-btn:hover,
.enter-btn:hover {
    background: var(--enter-btn-hover-bg);
    border-color: rgba(255, 215, 0, 0.8);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 0 40px var(--enter-btn-glow-color),
        0 0 80px rgba(255, 69, 0, 0.5),
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: none;
}

/* Aktiv/Klick-Effekt */
#intro-enter-btn:active,
.enter-btn:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 0 20px var(--enter-btn-glow-color),
        0 0 40px rgba(220, 20, 60, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Pfeil-Icon im Button */
#intro-enter-btn .btn-arrow,
.enter-btn .btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

#intro-enter-btn:hover .btn-arrow,
.enter-btn:hover .btn-arrow {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    #intro-enter-btn,
    .enter-btn {
        padding: 16px 40px;
        font-size: 1rem;
        min-width: 200px;
        letter-spacing: 2px;
    }
    
    .enter-btn-container {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    #intro-enter-btn,
    .enter-btn {
        padding: 14px 32px;
        font-size: 0.9rem;
        min-width: 180px;
        letter-spacing: 1.5px;
        border-radius: 12px;
    }
    
    .enter-btn-container {
        margin-top: 30px;
    }
}

/* NAVIGATION */
#main-header {
    background: transparent !important; height: 120px; display: flex; align-items: center; justify-content: center;
    z-index: 45000 !important; padding-top: 20px; position: fixed; top: 0; left: 0; width: 100%; pointer-events: none;
}
#main-header nav { pointer-events: auto !important; }
#main-header nav ul { display: flex; gap: 25px; align-items: center; padding: 15px 30px; border-radius: 100px; background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
#main-header nav ul li a {
    position: relative; display: block; padding: 14px 35px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 50px; color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 0 rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1); text-transform: uppercase; letter-spacing: 2px; font-weight: 600;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer !important; pointer-events: auto !important;
}
#main-header nav ul li a:hover { color: white; transform: translateY(-4px); background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%); border-color: var(--color-accent); box-shadow: 0 15px 25px rgba(0,0,0,0.6), 0 0 15px var(--color-accent), inset 0 1px 0 rgba(255,255,255,0.6); }
#main-header nav ul li a[href="#kontakt"] { background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.2) 100%); }

/* ANIMATION Z-INDEX HIERARCHIE - wird durch gallery-mode Regeln oben gesteuert */
.flying-img.zoomed { box-shadow: 0 0 80px rgba(0, 0, 0, 0.9); border: 1px solid rgba(255,255,255,0.2); }
.opacity-0-important { opacity: 0 !important; }

/* MODAL */
#imageModal { z-index: 70000 !important; background-color: rgba(0,0,0,0.98) !important; cursor: auto !important; overflow-y: auto !important; display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; }
#imageModal:not(.hidden) { display: block !important; }
#imageModal > div { width: 90% !important; max-width: 800px !important; margin: 100px auto 150px auto !important; display: flex !important; flex-direction: column !important; align-items: center !important; position: relative !important; }
#modalImg { max-height: 60vh !important; width: auto !important; max-width: 100% !important; object-fit: contain !important; border-radius: 8px !important; box-shadow: 0 0 50px rgba(0,0,0,0.5) !important; margin-bottom: 40px !important; }
#caption { font-family: var(--font-gal-title) !important; font-size: 2.5rem !important; color: white !important; margin-bottom: 20px !important; text-align: center !important; }
#modalDescription { font-family: var(--font-gal-desc) !important; font-size: 1.1rem !important; line-height: 1.8 !important; color: #cccccc !important; text-align: left !important; width: 100% !important; white-space: pre-wrap !important; padding-bottom: 50px !important; }
.close { position: fixed !important; top: 30px; right: 30px; width: 60px; height: 60px; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; cursor: pointer !important; z-index: 70002 !important; transition: all 0.2s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.3); pointer-events: auto !important; }
.close:hover { background: var(--color-accent); border-color: var(--color-accent); transform: scale(1.1); box-shadow: 0 0 30px var(--color-accent); }

/* GRID & TABS */
.gallery-tabs { position: relative !important; z-index: 50000 !important; display: flex !important; justify-content: center !important; flex-wrap: wrap !important; gap: 20px !important; margin: 0 auto 30px auto !important; width: fit-content; background: rgba(30, 30, 30, 0.95); backdrop-filter: blur(15px); padding: 15px 25px; border-radius: 60px; border: 1px solid rgba(255, 255, 255, 0.1); }
.gallery-tab-btn { padding: 12px 30px; color: #999; border-radius: 40px; cursor: pointer !important; font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; transition: all 0.2s ease; background: transparent; border: 1px solid transparent; pointer-events: auto !important; position: relative; z-index: 50001 !important; }
.gallery-tab-btn:hover { color: white; transform: translateY(-2px); }
.gallery-tab-btn.active { color: white !important; background: linear-gradient(180deg, var(--color-accent) 0%, #000 150%) !important; border: 1px solid rgba(255,255,255,0.3); transform: scale(1.1); }
#gallery-stage { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px 50px 20px; display: block !important; position: relative; z-index: 100 !important; }
.category-grid { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 30px !important; width: 100% !important; animation: fadeInUp 0.6s ease-out forwards; position: relative; z-index: 100 !important; }
.category-grid.hidden { display: none !important; }

/* GALERIE ITEM */
.gallery-item { display: block !important; position: relative !important; width: 350px !important; height: 350px !important; flex: 0 0 auto !important; opacity: 1 !important; visibility: visible !important; transform: none !important; pointer-events: auto !important; background-color: #1a1a1a; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.6); transition: transform 0.4s ease, border-color 0.4s ease !important; border: 1px solid rgba(255,255,255,0.05); z-index: 10 !important; cursor: pointer !important; }
.gallery-item:hover { transform: translateY(-10px) scale(1.02) !important; border-color: var(--color-accent) !important; box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 0 1px var(--color-accent), 0 0 30px var(--color-accent) !important; z-index: 50 !important; }
@media (max-width: 768px) { .gallery-item { width: 100% !important; max-width: 450px; height: 450px !important; } }
.gallery-item img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; margin: 0 !important; }

.gallery-overlay { position: absolute !important; bottom: 0 !important; left: 0 !important; width: 100% !important; top: auto !important; background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.6) 50%, transparent 100%) !important; padding: 80px 20px 20px 20px !important; display: flex !important; flex-direction: column !important; justify-content: flex-end !important; align-items: flex-start !important; opacity: 1 !important; pointer-events: none; }
.gallery-card-title { color: white !important; margin: 0 0 5px 0 !important; transform: translateY(10px); transition: transform 0.4s ease; font-family: inherit; font-size: inherit; }
.gallery-card-desc { color: #ddd !important; font-family: inherit; font-size: inherit; opacity: 0 !important; transform: translateY(20px) !important; transition: all 0.4s ease; max-height: 0; }
.gallery-item:hover .gallery-card-title { transform: translateY(0); }
.gallery-item:hover .gallery-card-desc { opacity: 1 !important; transform: translateY(0) !important; max-height: 100px; }
.gallery-icon { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; opacity: 0; transition: all 0.4s ease; transform: scale(0.8); }
.gallery-item:hover .gallery-icon { opacity: 1; transform: scale(1); }

/* ADMIN TEXTE & HOVER */
#intro-title { font-family: var(--font-intro-title) !important; font-size: var(--size-intro-title) !important; line-height: 1.1 !important; }
#intro-body { font-family: var(--font-intro-body) !important; font-size: var(--size-intro-body) !important; }
#about-title { font-family: var(--font-about-title) !important; font-size: var(--size-about-title) !important; }
#about-text-content { font-family: var(--font-about-text) !important; font-size: var(--size-about-text) !important; line-height: 1.6 !important; }
a:hover, button:hover, .tab-btn:hover { color: var(--color-accent) !important; border-color: var(--color-accent) !important; }
a[href="#kontakt"]:hover, button[type="submit"]:hover { background-color: var(--color-accent) !important; color: white !important; border-color: var(--color-accent) !important; box-shadow: 0 0 20px var(--color-accent) !important; }
footer a:hover { color: var(--color-accent) !important; }
#kontakt .group:hover { border-color: var(--color-accent) !important; box-shadow: 0 0 30px var(--color-accent) !important; }
#kontakt .group:hover .rounded-full { border-color: var(--color-accent) !important; }
#kontakt .group:hover svg { color: var(--color-accent) !important; }
#kontakt .group:hover h4 { color: var(--color-accent) !important; }
#contact-phone:hover, #contact-email:hover, #contact-chat:hover { color: var(--color-accent) !important; text-decoration-color: var(--color-accent) !important; }
.nico-signature { font-family: var(--font-nico) !important; font-size: var(--size-nico-front) !important; font-weight: 900; line-height: 0.8; letter-spacing: -4px; display: block; margin-bottom: 10px; background: linear-gradient(135deg, #ffffff 20%, var(--color-accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 20px var(--color-accent)); animation: nicoGlow 4s ease-in-out infinite alternate; }
.nico-big-outline { position: absolute; top: -80px; left: -20px; font-family: var(--font-nico) !important; font-size: var(--size-nico-back) !important; font-weight: 900; line-height: 0.8; z-index: 0; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.05); color: transparent; animation: floatingText 6s ease-in-out infinite alternate; pointer-events: none; user-select: none; }
.nico-front-glow { font-family: var(--font-nico) !important; font-size: var(--size-nico-front) !important; font-weight: 900; line-height: 1; margin-bottom: 10px; position: relative; z-index: 10; background: linear-gradient(135deg, #ffffff 0%, var(--color-accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 15px var(--color-accent)); animation: slideInLeft 1s ease-out forwards; }
.accent-line { width: 80px; height: 4px; background: var(--color-accent); margin-bottom: 30px; box-shadow: 0 0 15px var(--color-accent); border-radius: 2px; }
.glass-text-card { background: rgba(20, 20, 20, 0.4); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-left: 4px solid var(--color-accent); padding: 2rem; border-radius: 0 1rem 1rem 0; box-shadow: 0 20px 40px rgba(0,0,0,0.5); transition: transform 0.3s ease; }
.glass-text-card:hover { transform: translateX(10px); border-color: var(--color-accent); background: rgba(20, 20, 20, 0.6); }
@media (max-width: 768px) { .nico-big-outline { top: -40px; left: 0; text-align: center; width: 100%; } .nico-front-glow { text-align: center; } .accent-line { margin: 0 auto 30px auto; } .glass-text-card { border-radius: 1rem; border-left: 1px solid rgba(255, 255, 255, 0.1); border-top: 4px solid var(--color-accent); } .nico-signature { text-align: center; font-size: 6rem; } }

/* INTRO LAYER - HÖCHSTER Z-INDEX */
#intro-layer {
    z-index: 100000 !important;
    position: fixed !important;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #050505 !important;
    overflow: hidden;
}

/* ========================================
   PREMIUM NAVIGATION STYLES
   ======================================== */

/* Navigation Container */
#main-header nav ul {
    background: var(--nav-container-bg) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-radius: 60px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Navigation Links - Premium Style */
#main-header nav ul li a {
    background: var(--nav-bg-color) !important;
    color: var(--nav-text-color) !important;
    font-family: var(--nav-font-family) !important;
    font-size: var(--nav-font-size) !important;
    font-weight: 600 !important;
    padding: var(--nav-padding) !important;
    border-radius: var(--nav-border-radius) !important;
    text-transform: uppercase !important;
    letter-spacing: 2.5px !important;
    text-decoration: none !important;
    display: inline-block !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Shine-Effekt auf Nav Links */
#main-header nav ul li a::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    ) !important;
    transition: left 0.5s ease !important;
}

#main-header nav ul li a:hover::before {
    left: 100% !important;
}

/* Hover-Effekt - Premium Glow */
#main-header nav ul li a:hover {
    color: var(--nav-hover-color) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--nav-hover-color) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px var(--nav-glow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

/* Active Link Style */
#main-header nav ul li a:active {
    transform: translateY(-1px) scale(0.98) !important;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    #main-header nav ul {
        padding: 6px 8px !important;
    }
    
    #main-header nav ul li a {
        padding: 12px 20px !important;
        font-size: 0.75rem !important;
        letter-spacing: 1.5px !important;
    }
}

/* Button und Elemente müssen klickbar sein */
button, a, input, select, textarea, .gallery-tab-btn, .close, .gallery-item {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
}

/* Intro Button noch höher, damit er IM Intro klickbar ist */
#intro-enter-btn {
    z-index: 100001 !important; 
    pointer-events: auto !important;
}

/* ========================================
   PREMIUM LIGHTBOX - GALERIE VOLLBILD
   ======================================== */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-glass);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 200001;
}

.lightbox-close:hover {
    background: var(--color-gold);
    color: black;
    transform: scale(1.1) rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--color-glass);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.lightbox-nav:hover {
    background: var(--color-gold);
    color: black;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--text-small);
    max-width: 80%;
    text-align: center;
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-glass);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: var(--text-tiny);
}

/* ========================================
   PREMIUM UTILITY CLASSES
   ======================================== */

/* Text Utilities */
.text-gradient-gold {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow: 0 0 20px var(--color-gold-glow);
}

/* Glass Effect */
.glass {
    background: var(--color-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--color-border);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Gold Border Glow */
.border-glow {
    border: 1px solid var(--color-gold);
    box-shadow: 0 0 20px var(--color-gold-glow);
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Stagger Animation für Listen */
.stagger-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   RESPONSIVE IMPROVEMENTS
   ======================================== */

/* Mobile First - Tablets */
@media (max-width: 1024px) {
    :root {
        --space-xl: 2rem;
        --space-2xl: 3rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 2.5rem;
    }
    
    /* Lightbox Mobile Anpassungen */
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
        font-size: 20px;
    }
    
    .lightbox-caption {
        font-size: var(--text-tiny);
        padding: var(--space-xs) var(--space-sm);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --space-md: 1rem;
        --space-lg: 1.25rem;
    }
    
    .lightbox-caption {
        display: none;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold);
    color: black;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    z-index: 999999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 10px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-border: rgba(255, 255, 255, 0.5);
        --color-text-secondary: rgba(255, 255, 255, 0.9);
    }
}
/* ╔══════════════════════════════════════════════════════════════════════════════╗
   ║                                                                              ║
   ║   🚀 SENSATIONELLE WOW-EFFEKTE - WELTBEWEGENDE ANIMATIONEN 🚀               ║
   ║                                                                              ║
   ║   Diese Datei enthält atemberaubende Effekte die deine Website              ║
   ║   auf ein völlig neues Level heben!                                         ║
   ║                                                                              ║
   ╚══════════════════════════════════════════════════════════════════════════════╝ */

/* ============================================================================
   🌈 SPEKTAKULÄRE ANIMIERTE HINTERGRÜNDE
   ============================================================================ */

/* Animierter Gradient-Hintergrund */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes cosmicPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Kosmischer Hintergrund mit Sternen */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(120, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 0, 100, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, rgba(0, 200, 255, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 60%, rgba(255, 200, 0, 0.05) 0%, transparent 40%);
    z-index: -2;
    animation: cosmicPulse 15s ease-in-out infinite;
    pointer-events: none;
}

/* Animierte Partikel/Sterne */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 200px 50px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 250px 160px, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 300px 100px, rgba(255,255,255,0.4), transparent);
    background-size: 350px 200px;
    animation: twinkle 8s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ============================================================================
   ✨ MAGISCHER GLITCH-EFFEKT FÜR TEXT
   ============================================================================ */

@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff;
    }
    2% {
        transform: translate(2px, -2px);
        text-shadow: -4px 0 #ff00ff, 4px 0 #00ffff;
    }
    4% {
        transform: translate(-2px, 2px);
        text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff;
    }
    6% {
        transform: translate(0);
        text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff;
    }
    100% {
        transform: translate(0);
        text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff;
    }
}

.glitch-text {
    position: relative;
    animation: glitch 3s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 2s infinite;
    color: #ff00ff;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text::after {
    animation: glitch-2 2s infinite;
    color: #00ffff;
    z-index: -2;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(3px, -3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(3px, 3px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(-3px, 3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(-3px, -3px); }
}

/* ============================================================================
   🔥 NEON GLOW EFFEKTE - CYBERPUNK STYLE
   ============================================================================ */

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 20px var(--neon-color, #ff00ff),
            0 0 40px var(--neon-color, #ff00ff),
            0 0 80px var(--neon-color, #ff00ff);
    }
    50% {
        text-shadow: 
            0 0 2px #fff,
            0 0 5px #fff,
            0 0 10px var(--neon-color, #ff00ff),
            0 0 20px var(--neon-color, #ff00ff),
            0 0 40px var(--neon-color, #ff00ff);
    }
}

.neon-text {
    --neon-color: #C9A962;
    color: #fff;
    animation: neonPulse 2s ease-in-out infinite;
}

.neon-text-pink { --neon-color: #ff00ff; }
.neon-text-cyan { --neon-color: #00ffff; }
.neon-text-gold { --neon-color: #ffd700; }
.neon-text-red { --neon-color: #ff0040; }

/* Neon Border Box */
.neon-box {
    border: 2px solid var(--neon-color, #C9A962);
    box-shadow: 
        0 0 5px var(--neon-color, #C9A962),
        0 0 10px var(--neon-color, #C9A962),
        0 0 20px var(--neon-color, #C9A962),
        inset 0 0 5px var(--neon-color, #C9A962),
        inset 0 0 10px var(--neon-color, #C9A962);
    animation: neonBoxPulse 2s ease-in-out infinite;
}

@keyframes neonBoxPulse {
    0%, 100% {
        box-shadow: 
            0 0 5px var(--neon-color, #C9A962),
            0 0 10px var(--neon-color, #C9A962),
            0 0 20px var(--neon-color, #C9A962),
            inset 0 0 5px var(--neon-color, #C9A962);
    }
    50% {
        box-shadow: 
            0 0 10px var(--neon-color, #C9A962),
            0 0 20px var(--neon-color, #C9A962),
            0 0 40px var(--neon-color, #C9A962),
            0 0 80px var(--neon-color, #C9A962),
            inset 0 0 10px var(--neon-color, #C9A962);
    }
}

/* ============================================================================
   🌟 3D TRANSFORM EFFEKTE
   ============================================================================ */

@keyframes float3D {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    }
    50% {
        transform: translateY(-10px) rotateX(-5deg) rotateY(-5deg);
    }
    75% {
        transform: translateY(-25px) rotateX(3deg) rotateY(-3deg);
    }
}

.float-3d {
    animation: float3D 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* 3D Card Flip */
.card-3d {
    perspective: 1000px;
}

.card-3d-inner {
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(180deg);
}

/* ============================================================================
   💫 MORPHING TEXT ANIMATION
   ============================================================================ */

@keyframes morphText {
    0%, 100% {
        font-weight: 100;
        letter-spacing: 0.5em;
        filter: blur(0px);
    }
    25% {
        font-weight: 900;
        letter-spacing: 0em;
        filter: blur(1px);
    }
    50% {
        font-weight: 100;
        letter-spacing: 0.3em;
        filter: blur(0px);
    }
    75% {
        font-weight: 500;
        letter-spacing: 0.1em;
        filter: blur(0.5px);
    }
}

.morph-text {
    animation: morphText 8s ease-in-out infinite;
}

/* ============================================================================
   🎭 REVEAL ANIMATIONS
   ============================================================================ */

@keyframes revealFromLeft {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@keyframes revealFromRight {
    0% {
        clip-path: inset(0 0 0 100%);
        opacity: 0;
    }
    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@keyframes revealFromCenter {
    0% {
        clip-path: inset(0 50% 0 50%);
        opacity: 0;
    }
    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@keyframes revealCircle {
    0% {
        clip-path: circle(0% at 50% 50%);
        opacity: 0;
    }
    100% {
        clip-path: circle(100% at 50% 50%);
        opacity: 1;
    }
}

.reveal-left { animation: revealFromLeft 1.5s ease-out forwards; }
.reveal-right { animation: revealFromRight 1.5s ease-out forwards; }
.reveal-center { animation: revealFromCenter 1.2s ease-out forwards; }
.reveal-circle { animation: revealCircle 1.5s ease-out forwards; }

/* ============================================================================
   🌈 ANIMIERTER REGENBOGEN-GRADIENT TEXT
   ============================================================================ */

@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rainbow-text {
    background: linear-gradient(
        90deg,
        #ff0000, #ff7700, #ffdd00, #00ff00, 
        #00ffff, #0000ff, #7700ff, #ff00ff, #ff0000
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShift 8s linear infinite;
}

/* Eleganter Gold-Silber Shift */
.luxury-text {
    background: linear-gradient(
        90deg,
        #C9A962, #E8D5A3, #ffffff, #E8D5A3, #C9A962,
        #8B7355, #C9A962
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShift 6s linear infinite;
}

/* ============================================================================
   ⚡ ELEKTRISCHE BORDER ANIMATION
   ============================================================================ */

@keyframes electricBorder {
    0%, 100% {
        box-shadow: 
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 15px #C9A962,
            0 0 20px #C9A962,
            0 0 25px #C9A962,
            inset 0 0 5px rgba(255,255,255,0.1);
    }
    50% {
        box-shadow: 
            0 0 10px #fff,
            0 0 20px #fff,
            0 0 30px #ff00ff,
            0 0 40px #ff00ff,
            0 0 50px #00ffff,
            inset 0 0 15px rgba(255,255,255,0.2);
    }
}

.electric-border {
    border: 1px solid rgba(255,255,255,0.3);
    animation: electricBorder 3s ease-in-out infinite;
}

/* Laufende Border Animation */
@keyframes borderRun {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

.running-border {
    position: relative;
    background: linear-gradient(90deg, #C9A962, #ff00ff, #00ffff, #C9A962);
    background-size: 300% 100%;
    animation: borderRun 3s linear infinite;
    padding: 3px;
}

.running-border > * {
    background: #0a0a0a;
    display: block;
}

/* ============================================================================
   🎪 SPEKTAKULÄRER EINTRETEN BUTTON - ULTRA WOW
   Verwendet CMS-Variablen + WOW-Effekte
   ============================================================================ */

#intro-enter-btn,
.enter-btn {
    position: relative;
    padding: var(--enter-btn-padding, 25px 70px) !important;
    font-size: var(--enter-btn-font-size, 1.4rem) !important;
    font-weight: 800 !important;
    letter-spacing: 4px !important;
    text-transform: uppercase;
    color: var(--enter-btn-text, #fff) !important;
    /* WICHTIG: Verwendet CMS-Farbe, nicht fest blau! */
    background: var(--enter-btn-bg, linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%)) !important;
    border: var(--enter-btn-border-width, 2px) solid var(--enter-btn-border-color, rgba(255, 215, 0, 0.4)) !important;
    border-radius: 20px !important;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 1;
}

/* Animierter Rahmen-Effekt - NUR der Rahmen, nicht der Hintergrund */
#intro-enter-btn::before,
.enter-btn::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        var(--enter-btn-border-color, #C9A962), 
        rgba(255, 0, 255, 0.5), 
        rgba(0, 255, 255, 0.5), 
        var(--enter-btn-border-color, #C9A962));
    background-size: 400% 400%;
    border-radius: 23px;
    z-index: -2;
    animation: borderRun 3s linear infinite;
    opacity: 0.7;
}

/* Innerer Hintergrund - verwendet CMS-Farbe */
#intro-enter-btn::after,
.enter-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--enter-btn-bg, linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%));
    border-radius: 17px;
    z-index: -1;
}

#intro-enter-btn:hover,
.enter-btn:hover {
    transform: scale(1.1) translateY(-5px) !important;
    background: var(--enter-btn-hover-bg, linear-gradient(135deg, #A52A2A 0%, #FF4500 50%, #A52A2A 100%)) !important;
    box-shadow: 
        0 20px 60px var(--enter-btn-glow-color, rgba(220, 20, 60, 0.5)),
        0 0 80px var(--enter-btn-glow-color, rgba(220, 20, 60, 0.3)) !important;
    letter-spacing: 8px !important;
}

#intro-enter-btn:hover::after,
.enter-btn:hover::after {
    background: var(--enter-btn-hover-bg, linear-gradient(135deg, #A52A2A 0%, #FF4500 50%, #A52A2A 100%));
}

/* Shine Sweep Effect */
#intro-enter-btn .btn-shine,
.enter-btn .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-25deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* ============================================================================
   🖼️ GALERIE CARDS - MEGA WOW EFFEKTE
   ============================================================================ */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px !important;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    transform-style: preserve-3d;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent, #C9A962, transparent, #ff00ff, 
        transparent, #00ffff, transparent);
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderRun 4s linear infinite;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: scale(1.05) rotateX(5deg) rotateY(-5deg) translateZ(30px) !important;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(201, 169, 98, 0.3),
        -20px 20px 40px rgba(255, 0, 255, 0.1),
        20px 20px 40px rgba(0, 255, 255, 0.1) !important;
}

.gallery-item img {
    transition: all 0.6s ease !important;
    filter: brightness(0.9) saturate(1.1);
}

.gallery-item:hover img {
    transform: scale(1.15) !important;
    filter: brightness(1.1) saturate(1.3) !important;
}

/* Overlay mit Gradient */
.gallery-item .gallery-card-content {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 30%,
        rgba(0, 0, 0, 0.3) 60%,
        transparent 100%
    ) !important;
    backdrop-filter: blur(10px);
}

/* ============================================================================
   📝 NICO NAME - LEGENDÄRER EFFEKT
   ============================================================================ */

.nico-name,
[style*="size-nico"] {
    position: relative;
    display: inline-block;
}

/* Hintergrund-Text für 3D Effekt */
.nico-name::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(201, 169, 98, 0.3) 0%,
        transparent 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(5px) scaleY(0.8);
    filter: blur(8px);
    opacity: 0.5;
}

/* ============================================================================
   🧭 NAVIGATION - ULTRA PREMIUM
   ============================================================================ */

#main-header nav ul {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(20, 20, 40, 0.9) 50%,
        rgba(0, 0, 0, 0.8) 100%
    ) !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
    border: 1px solid rgba(201, 169, 98, 0.3) !important;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(201, 169, 98, 0.1) !important;
}

#main-header nav ul li a {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

#main-header nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C9A962, #ff00ff, #00ffff);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

#main-header nav ul li a:hover::before {
    width: 80%;
}

#main-header nav ul li a:hover {
    color: #C9A962 !important;
    text-shadow: 
        0 0 10px rgba(201, 169, 98, 0.5),
        0 0 20px rgba(201, 169, 98, 0.3),
        0 0 30px rgba(201, 169, 98, 0.2) !important;
    transform: translateY(-3px) scale(1.05) !important;
}

/* ============================================================================
   🏠 HOME BUTTON - SPECTACULAR
   ============================================================================ */

.home-button {
    position: relative;
    overflow: hidden;
}

.home-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.4) 0%, transparent 70%);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.home-button:hover::before {
    width: 200%;
    height: 200%;
}

.home-button:hover {
    box-shadow: 
        0 0 20px rgba(201, 169, 98, 0.5),
        0 0 40px rgba(201, 169, 98, 0.3),
        0 0 60px rgba(201, 169, 98, 0.1) !important;
}

/* ============================================================================
   📜 SCROLLBAR - CUSTOM DESIGN
   ============================================================================ */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-left: 1px solid rgba(201, 169, 98, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C9A962 0%, #8B7355 100%);
    border-radius: 6px;
    border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #E8D5A3 0%, #C9A962 100%);
    box-shadow: 0 0 10px rgba(201, 169, 98, 0.5);
}

/* ============================================================================
   🌊 WAVE ANIMATION FÜR HINTERGRUND
   ============================================================================ */

@keyframes wave {
    0%, 100% {
        d: path("M0,100 C150,200 350,0 500,100 C650,200 850,0 1000,100 L1000,00 L0,0 Z");
    }
    50% {
        d: path("M0,100 C150,0 350,200 500,100 C650,0 850,200 1000,100 L1000,00 L0,0 Z");
    }
}

/* ============================================================================
   💎 KRISTALL/GLAS EFFEKT
   ============================================================================ */

.crystal-effect {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   🎆 PARTICLE EXPLOSION ON CLICK
   ============================================================================ */

@keyframes particle-explosion {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

.particle {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #C9A962;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-explosion 1s ease-out forwards;
}

/* ============================================================================
   🔮 INTRO LAYER - ULTIMATIVER WOW EFFEKT
   ============================================================================ */

#intro-layer {
    background: 
        radial-gradient(ellipse at center, rgba(20, 10, 40, 0.95) 0%, rgba(5, 5, 5, 1) 70%),
        linear-gradient(180deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%) !important;
}

/* Floating Elements Animation */
@keyframes floatAround {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(-5px, -10px) rotate(-5deg);
    }
    75% {
        transform: translate(-15px, -25px) rotate(3deg);
    }
}

.float-element {
    animation: floatAround 10s ease-in-out infinite;
}

/* ============================================================================
   ✨ SPARKLE EFFEKT
   ============================================================================ */

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

.sparkle::before,
.sparkle::after {
    content: '✦';
    position: absolute;
    color: #C9A962;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle::before {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.sparkle::after {
    bottom: -20px;
    left: -20px;
    animation-delay: 1s;
}

/* ============================================================================
   🌟 TEXT REVEAL TYPING EFFECT
   ============================================================================ */

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #C9A962; }
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid #C9A962;
    white-space: nowrap;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

/* ============================================================================
   💫 MAGNETIC HOVER EFFECT (für JS)
   ============================================================================ */

.magnetic {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================================================
   🎨 PREMIUM SELECTION
   ============================================================================ */

::selection {
    background: linear-gradient(90deg, #C9A962, #ff00ff);
    color: #000;
    text-shadow: none;
}

::-moz-selection {
    background: #C9A962;
    color: #000;
}

/* ============================================================================
   🃏 SUPER SICHTBARER TILT-EFFEKT FÜR GALERIE
   ============================================================================ */

.gallery-item {
    transform-style: preserve-3d !important;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease !important;
    will-change: transform;
}

.gallery-item:hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(201, 169, 98, 0.3),
        -10px 10px 30px rgba(255, 0, 255, 0.15),
        10px 10px 30px rgba(0, 255, 255, 0.15) !important;
    z-index: 100;
}

/* Innere Elemente auch 3D */
.gallery-item > * {
    transform: translateZ(30px);
}

.gallery-item img {
    transition: transform 0.3s ease, filter 0.3s ease !important;
}

.gallery-item:hover img {
    transform: scale(1.1) translateZ(40px) !important;
    filter: brightness(1.1) contrast(1.05) !important;
}

/* Glanz-Overlay bei Hover */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}
