/* ============================================
   HENX3D - Modern Glassmorphism Theme
   ============================================
   Version: 2.0 - KOMPLETT NEU
   Erstellt: 2025-10-19

   DESIGN-KONZEPT:
   - Futuristisch & Dynamisch
   - Starke Cyan/Neon-Akzente
   - Glassmorphism ÜBERALL
   - Animierte Gradients
   - Starker Kontrast zum Classic Theme
   ============================================ */

/* ============================================
   DESIGN TOKENS - KOMPLETT NEU
   ============================================ */
:root {
    /* PRIMARY COLORS - Neon Cyan/Electric Blue */
    --primary: #00f0ff !important;
    --primary-dark: #00d4e8 !important;
    --primary-light: #5dffff !important;
    --accent: #00f0ff !important;
    --accent2: #00ffaa !important;
    --glow: #00f0ff !important;

    /* BACKGROUNDS - Tiefes Schwarz mit leichtem Blau-Ton */
    --bg: #000510 !important;
    --bg-secondary: #000a1a !important;
    --bg-tertiary: #001028 !important;
    --card-bg: rgba(0, 16, 40, 0.4) !important;
    --card-bg-hover: rgba(0, 32, 64, 0.6) !important;

    /* TEXT - Helleres Weiß für mehr Kontrast */
    --text: #f0f9ff !important;
    --text-secondary: #e0f2fe !important;
    --muted: #bae6fd !important;
    --gray: #7dd3fc !important;

    /* LINES & BORDERS - Neon-Glow */
    --line: rgba(0, 240, 255, 0.2) !important;
    --line-hover: rgba(0, 240, 255, 0.5) !important;
    --border-color: rgba(0, 240, 255, 0.3) !important;

    /* GLASSMORPHISM - Stärker */
    --glass-bg: rgba(0, 16, 40, 0.5) !important;
    --glass-border: rgba(0, 240, 255, 0.25) !important;
    --glass-shadow: 0 8px 32px rgba(0, 240, 255, 0.1) !important;

    /* SHADOWS - Neon-Glow Effekte */
    --shadow-sm: 0 2px 8px rgba(0, 240, 255, 0.15), 0 1px 4px rgba(0, 0, 0, 0.3) !important;
    --shadow: 0 4px 16px rgba(0, 240, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    --shadow-md: 0 6px 20px rgba(0, 240, 255, 0.25), 0 3px 10px rgba(0, 0, 0, 0.5) !important;
    --shadow-lg: 0 12px 36px rgba(0, 240, 255, 0.3), 0 6px 16px rgba(0, 0, 0, 0.6) !important;
    --shadow-xl: 0 20px 50px rgba(0, 240, 255, 0.35), 0 10px 25px rgba(0, 0, 0, 0.7) !important;

    /* GRADIENTS - Animiert & Lebendig */
    --gradient-primary: linear-gradient(135deg, #00f0ff 0%, #00ffaa 100%) !important;
    --gradient-hero: linear-gradient(135deg, #000510 0%, #001028 50%, #000a1a 100%) !important;
    --gradient-card: linear-gradient(180deg, rgba(0, 240, 255, 0.08), rgba(0, 255, 170, 0.03)) !important;
    --gradient-overlay: linear-gradient(180deg, rgba(0, 240, 255, 0.12) 0%, transparent 100%) !important;
}

/* ============================================
   GLOBAL - Dunkler Hintergrund
   ============================================ */
body.theme-modern {
    background: var(--bg) !important;
    color: var(--text) !important;
    position: relative;
}

/* Animierter Hintergrund-Grid */
body.theme-modern::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* ============================================
   CARDS - Extreme Glassmorphism
   ============================================ */
.card,
.service-card,
.portfolio-item,
.faq-item {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
    border: 1.5px solid var(--glass-border) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

/* Animated Glow Border */
.card::before,
.service-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg,
        transparent,
        rgba(0, 240, 255, 0.4),
        transparent,
        rgba(0, 255, 170, 0.4),
        transparent
    );
    background-size: 400% 400%;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s;
    animation: borderGlow 8s ease infinite;
    z-index: -1;
}

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

.card:hover::before,
.service-card:hover::before {
    opacity: 1;
}

.card:hover,
.service-card:hover,
.portfolio-item:hover,
.faq-item:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow:
        var(--shadow-xl),
        0 0 40px rgba(0, 240, 255, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(0, 240, 255, 0.6) !important;
    background: var(--card-bg-hover) !important;
}

/* Inner Glow */
.card::after,
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(0, 240, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.card:hover::after,
.service-card:hover::after {
    opacity: 1;
}

/* ============================================
   HERO SECTIONS - Futuristisch
   ============================================ */
.hero {
    background: transparent !important;
    position: relative;
    overflow: hidden;
}

/* Animated Background Circles */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 240, 255, 0.15), transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(0, 255, 170, 0.1), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(0, 240, 255, 0.08), transparent 50%);
    animation: heroFloat 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -20px) rotate(5deg); }
}

/* Scanline Effect */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 240, 255, 0.03) 0px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    animation: scanline 10s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

.hero-title {
    background: linear-gradient(135deg, #00f0ff, #00ffaa, #00f0ff) !important;
    background-size: 200% 200% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
    animation: gradientShift 5s ease infinite;
}

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

.hero-subtitle {
    color: var(--text-secondary) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ============================================
   BUTTONS - Neon-Style
   ============================================ */
.btn-primary {
    background: var(--gradient-primary) !important;
    color: #000510 !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow:
        0 4px 20px rgba(0, 240, 255, 0.4),
        0 0 40px rgba(0, 240, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00ffaa, #00f0ff, #00ffaa);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.4s;
    animation: gradientShift 3s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow:
        0 8px 30px rgba(0, 240, 255, 0.6),
        0 0 60px rgba(0, 240, 255, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
    color: #000510 !important;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-outline {
    background: transparent !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.2),
        inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-outline:hover {
    color: #000510 !important;
    border-color: var(--primary-light) !important;
    box-shadow:
        0 4px 25px rgba(0, 240, 255, 0.5),
        0 0 50px rgba(0, 240, 255, 0.3) !important;
}

.btn-outline:hover::before {
    opacity: 1;
}

.btn-outline span {
    position: relative;
    z-index: 1;
}

/* Pulsing Glow Animation */
.btn-glow {
    animation: btnPulse 2s ease-in-out infinite !important;
}

@keyframes btnPulse {
    0%, 100% {
        box-shadow:
            0 4px 20px rgba(0, 240, 255, 0.4),
            0 0 40px rgba(0, 240, 255, 0.2);
    }
    50% {
        box-shadow:
            0 6px 30px rgba(0, 240, 255, 0.6),
            0 0 60px rgba(0, 240, 255, 0.4);
    }
}

/* ============================================
   SECTIONS
   ============================================ */
.bg-light {
    background: transparent !important;
    position: relative;
}

.bg-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.05), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 170, 0.03), transparent 40%);
    pointer-events: none;
}

.section-title {
    color: var(--text) !important;
    background: linear-gradient(135deg, var(--primary), var(--accent2)) !important;
    background-size: 200% 200% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 800 !important;
    animation: gradientShift 4s ease infinite;
}

.section-subtitle {
    color: var(--primary) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.875rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.section-description {
    color: var(--text-secondary) !important;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-link {
    color: var(--text) !important;
    border-color: var(--line) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 255, 170, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-link:hover {
    border-color: var(--line-hover) !important;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3), 0 0 30px rgba(0, 240, 255, 0.1) !important;
    background: rgba(0, 240, 255, 0.08) !important;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow:
        0 0 25px rgba(0, 240, 255, 0.5),
        0 4px 15px rgba(0, 240, 255, 0.3),
        inset 0 0 20px rgba(0, 240, 255, 0.1) !important;
    background: rgba(0, 240, 255, 0.1) !important;
}

/* ============================================
   FORMS
   ============================================ */
.form-input,
.form-textarea,
.form-select {
    background: var(--glass-bg) !important;
    border: 1.5px solid var(--line) !important;
    color: var(--text) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow:
        0 0 0 3px rgba(0, 240, 255, 0.15),
        0 0 20px rgba(0, 240, 255, 0.2) !important;
    background: var(--card-bg-hover) !important;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    background: rgba(0, 240, 255, 0.2) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(0, 240, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-category {
    color: var(--primary) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-tag {
    background: rgba(0, 240, 255, 0.15) !important;
    border-color: rgba(0, 240, 255, 0.3) !important;
    color: var(--primary-light) !important;
    backdrop-filter: blur(5px);
}

/* ============================================
   FAQ
   ============================================ */
.faq-question .toggle-icon {
    color: var(--primary) !important;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.faq-category-title {
    background: linear-gradient(90deg, var(--primary), var(--accent2)) !important;
    background-size: 200% 200% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    border-bottom-color: var(--primary) !important;
    animation: gradientShift 4s ease infinite;
}

/* ============================================
   CTA SECTIONS
   ============================================ */
.cta-section {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 240, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    pointer-events: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    :root {
        --radius-lg: 16px;
        --radius-xl: 20px;
    }

    .card,
    .service-card {
        backdrop-filter: blur(15px);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   FULL HEIGHT BACKGROUND FIX
   ============================================ */
body.theme-modern main {
    background-color: transparent !important;
}

body.theme-modern .site-footer {
    background: var(--bg-secondary);
}
