/* ==========================================
   🌊 ULTRA LIQUID GLASS SYSTEM — PERFORMANCE OPTIMIZED
   ========================================== */

:root {
    --glass-bg: rgba(255, 255, 255, 0.42);
    --glass-border: rgba(255, 255, 255, 0.65);
    --glass-shadow: rgba(15, 23, 42, 0.05);
    --text-primary: #0f172a;
    --text-secondary: #334155;
}

/* Globaler, flüssiger Hintergrund (Hardware-beschleunigt) */
body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.12), transparent 40%),
        radial-gradient(circle at 80% 25%, rgba(59, 130, 246, 0.10), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(14, 165, 233, 0.08), transparent 50%),
        linear-gradient(135deg, #f8fafc 0%, #eef2ff 35%, #dbeafe 70%, #f8fafc 100%) !important;
    background-attachment: fixed !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimierte Hauptglas-Komponente */
.liquid-glass {
    position: relative !important;
    background: var(--glass-bg) !important;
    
    /* Matte, hochauflösende Tiefenunschärfe ohne Performance-Verlust */
    backdrop-filter: blur(20px) saturate(190%) brightness(1.02) !important;
    -webkit-backdrop-filter: blur(20px) saturate(190%) brightness(1.02) !important;
    
    border: 1px solid var(--glass-border) !important;
    border-radius: 24px !important; /* Etwas nativerer, cleanerer Radius */
    
    /* Tiefenwirkung durch perfekt ausbalancierten 3-Schichten-Schatten */
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.6) inset,
        0 10px 25px -5px var(--glass-shadow),
        0 20px 40px -10px rgba(59, 130, 246, 0.03) !important;
    
    /* Butterweicher Übergang dank Ease-Out-Cubic-Kurve */
    transition: transform 0.35s cubic-bezier(0.215, 0.610, 0.355, 1), 
                box-shadow 0.35s cubic-bezier(0.215, 0.610, 0.355, 1), 
                background-color 0.35s cubic-bezier(0.215, 0.610, 0.355, 1) !important;
    
    /* Aktiviert die GPU-Beschleunigung gegen Rendering-Fehler */
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

/* Organischer, sanfter Hover (Karten schweben elegant) */
.liquid-glass:hover {
    transform: translateY(-4px) !important;
    background-color: rgba(255, 255, 255, 0.52) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.8) inset,
        0 20px 35px -5px rgba(15, 23, 42, 0.08),
        0 30px 60px -10px rgba(59, 130, 246, 0.06) !important;
}

/* Typografie-Fixes */
.liquid-glass h1, .liquid-glass h2, .liquid-glass h3, 
.liquid-glass h4, .liquid-glass h5, .liquid-glass h6 {
    color: var(--text-primary) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

.liquid-glass p, .liquid-glass span, .liquid-glass li {
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
}

/* Gläserne Formular-Elemente & Knöpfe (z.B. Newsletter-Input) */
.liquid-glass input, .liquid-glass button, .liquid-glass .btn {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 12px !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.liquid-glass input::placeholder {
    color: #64748b !important;
}

.liquid-glass input:focus {
    outline: none !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* ==========================================
   ♿ SYSTEM-INTEGRIERTER BARRIEREFREI-MODUS
   ========================================== */
body.no-glass {
    background: #f8fafc !important;
}
body.no-glass .liquid-glass {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 2px solid #0f172a !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    transform: none !important;
}
body.no-glass .liquid-glass:hover {
    transform: none !important;
    background: #f1f5f9 !important;
}
