/* =========================================
   BASE STYLES
   ========================================= */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0b0c10;
    color: #e0e0e0;
    user-select: none;
    -webkit-user-select: none;
    overflow-x: hidden;
}

*:focus { outline: none !important; }

/* =========================================
   PRELOADER
   ========================================= */
#page-preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 100000;
    background-color: #0b0c10;
    display: flex; align-items: center; justify-content: center;
    opacity: 1; transition: opacity 0.3s ease-out, visibility 0.3s;
    pointer-events: all;
}
.preloader-hidden {
    opacity: 0 !important; visibility: hidden !important; pointer-events: none !important;
}
.preloader-gif { filter: drop-shadow(0 0 10px rgba(255,255,255,0.1)); }

/* =========================================
   BACKGROUNDS
   ========================================= */
#fixed-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background-image: url('../images/background.jpg');
    background-size: cover; background-position: center center; background-repeat: no-repeat;
}

#heatwave-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999; pointer-events: none; opacity: 0; 
}
.heatwave-active {
    background: linear-gradient(to top, transparent 0%, rgba(249, 115, 22, 0.2) 20%, rgba(255, 255, 255, 0.1) 50%, rgba(249, 115, 22, 0.2) 80%, transparent 100%);
    backdrop-filter: blur(4px) brightness(1.1) sepia(0.2);
    animation: heatwave-pass 1.5s ease-out forwards;
}

/* =========================================
   NAVIGATION ELEMENTS
   ========================================= */
#nav-logo-container, #nav-contact-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1; transform: translateY(0);
}
.nav-items-hidden #nav-logo-container,
.nav-items-hidden #nav-contact-link {
    opacity: 0; transform: translateY(-20px); pointer-events: none;
}
.nav-scrolled { 
    background-color: rgba(11, 12, 16, 0.85); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
}

/* Mobile Menu Button */
.btn-custom-hover { color: white; transition: color 0.2s ease; }
@media (hover: hover) { .btn-custom-hover:hover { color: #be185d; } }
.btn-custom-hover:active { color: #be185d; }

/* Navigation Links (Wave Effect) */
.nav-link { position: relative; cursor: pointer; display: inline-flex; overflow: hidden; vertical-align: middle; text-decoration: none; line-height: 1.2; }
.letter-wrapper { position: relative; display: inline-block; overflow: hidden; }
.letter-inner { display: inline-block; position: relative; transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1); transform-style: preserve-3d; transition-delay: var(--delay); color: white; }
.letter-inner::after {
    content: attr(data-char); position: absolute; top: 100%; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, #f97316 0%, #dc2626 50%, #be185d 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-link:hover .letter-inner, .nav-link.clicked .letter-inner, .nav-link.nav-item-active .letter-inner { transform: translateY(-100%); }
.nav-link.nav-item-active .letter-inner::after {
     background: linear-gradient(180deg, #f97316 0%, #dc2626 50%, #be185d 100%);
     -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-link.nav-item-active.reset-active .letter-inner { transform: translateY(0); }

/* =========================================
   COMPONENTS
   ========================================= */
.glass-panel {
    background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}
.glass-panel:hover { background: rgba(255, 255, 255, 0.1); }
.glassy-text { text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(190, 24, 93, 0.2); }

.logo-hover { transition: filter 0.3s ease, transform 0.3s ease; cursor: pointer; }
.logo-hover:hover { filter: brightness(1.3) drop-shadow(0 0 25px rgba(220, 38, 38, 0.6)); transform: scale(1.05); }
#hero-logo {
    cursor: default;
}
/* Text Gradients */
.text-gradient {
    background-image: linear-gradient(90deg, #f97316 0%, #dc2626 12.5%, #be185d 25%, #dc2626 37.5%, #f97316 50%, #f97316 50%, #dc2626 62.5%, #be185d 75%, #dc2626 87.5%, #f97316 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    filter: drop-shadow(0 0 8px rgba(190, 24, 93, 0.5));
    display: inline-block; transition: all 0.3s ease;
    animation: gradient-flow 5s linear infinite;
}
.text-gradient:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 20px rgba(190, 24, 93, 0.8)); cursor: default; }

/* Marquee & Footer */
.banner-item { color: rgba(255, 255, 255, 0.9); transition: all 0.3s ease; cursor: default; }
.banner-item:hover {
    color: transparent; 
    background-image: linear-gradient(90deg, #f97316 0%, #dc2626 12.5%, #be185d 25%, #dc2626 37.5%, #f97316 50%, #f97316 50%, #dc2626 62.5%, #be185d 75%, #dc2626 87.5%, #f97316 100%);
    background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    transform: scale(1.05); animation: gradient-flow 5s linear infinite;
}
.fade-mask { mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); }
.footer-bg { background-color: #050608; border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* Button */
.btn-animated {
    background: linear-gradient(135deg, #f97316, #dc2626, #be185d, #8b5cf6);
    background-size: 200% 200%;
    background-repeat: no-repeat;
    animation: gradient-shift 3s ease infinite;
    color: white;
    transition: all 0.3s ease;
    
    /* ÄNDERUNG: Border auf 0 setzen, um Glitches zu vermeiden */
    border: 0; 
}

.btn-animated:hover {
    transform: translateY(-2px);
    
    /* ÄNDERUNG: Kombinierter Schatten 
       1. inset 0 0 0 2px ... -> Simuliert den weißen Rand (innenliegend)
       2. 0 10px 30px ...     -> Der ursprüngliche Leucht-Effekt (außen)
    */
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5), 0 10px 30px rgba(139, 92, 246, 0.4);
    
    /* Border-Color brauchen wir nicht mehr, da Border 0 ist */
}

/* Animations */
@keyframes logo-scale-down { 0% { transform: scale(1.3); } 100% { transform: scale(1); } }
.logo-intro-active { animation: logo-scale-down 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.logo-start-large { transform: scale(1.3); }
@keyframes shake-minimal { 0% { transform: translate(0, 0); } 20% { transform: translate(2px, 0); } 40% { transform: translate(-2px, 0); } 60% { transform: translate(1px, 0); } 80% { transform: translate(-1px, 0); } 100% { transform: translate(0, 0); } }
.shake-effect { animation: shake-minimal 0.8s ease-out both; }
@keyframes heatwave-pass { 0% { transform: translateY(110%) scaleY(0.5); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(-110%) scaleY(1.5); opacity: 0; } }
@keyframes gradient-flow { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Modals */
.menu-overlay { opacity: 0; pointer-events: none; transition: opacity 0.4s ease; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px); }
.menu-overlay-open { opacity: 1; pointer-events: auto; }
.menu-item-wrapper { transform: translateY(20px); opacity: 0; transition: all 0.5s ease; }
.menu-overlay-open .menu-item-wrapper { transform: translateY(0); opacity: 1; }
.info-modal-overlay { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.info-modal-open { opacity: 1; pointer-events: auto; }
.info-modal-content { transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.info-modal-open .info-modal-content { transform: scale(1); }