/* ==========================================================================
   STYLES.CSS - Konsolidierte & SEO-optimierte Version (ms|gruppe®)
   ========================================================================== */

/* --- 1. GLOBALES DESIGN & RESETS --- */
html, body {
    background-color: #121212 !important; 
    background: #121212 !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
    font-family: 'Inter', sans-serif; 
}

/* --- 2. TAILWIND-TRANSPARENZ-OVERRIDES --- */
main, section, article, #hero-section, #leistungen, div[class*="bg-"] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    --tw-bg-opacity: 0 !important; /* Hebelt die Deckkraft-Variablen von Tailwind aus */
}

/* --- 3. HARDWARE-BESCHLEUNIGTES 3D-CANVAS (SCHICHT 1) --- */
#bg-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1 !important; /* Sitzt ganz unten direkt über dem dunklen Boden */
    pointer-events: none !important; 
    display: block !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* --- 4. SYSTEM-SCHICHTEN (Z-INDEX-HIERARCHIE) --- */
/* Zwingt alle Standard-Sektionen auf Schicht 10 (Sicher VOR dem Canvas) */
main, section, footer, #hero-section {
    position: relative !important; 
    z-index: 10 !important; 
}

/* Sicherheitsabstand für Standard-Inhaltsboxen und Grids (Schicht 20) */
.max-w-7xl, .grid {
    position: relative !important;
    z-index: 20 !important; 
}

/* Höchste Inhalts-Priorität für den Textbereich der Hero-Sektion (Schicht 30) */
.relative.z-20, #hero-section .relative.z-20 {
    position: relative !important;
    z-index: 30 !important; /* Schiebt Text und Buttons unmissverständlich VOR das Canvas */
}

/* --- 5. ULTRA-ZENTRIERUNG STICKY HEADER (SCHICHT 99999) --- */
header#main-header, .fixed.top-\[20px\].left-1\/2 {
    position: fixed !important;
    top: 20px !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    --tw-translate-x: 0px !important;
    --tw-translate-y: 0px !important;
    z-index: 99999 !important; /* Absoluter Thron über der gesamten Website */
}

/* --- 6. SEO SCREENREADER-ONLY CLASS --- */
/* Macht Keywords für Menschen unsichtbar, für den Google-Bot voll lesbar */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* --- 7. DESIGN-ANPASSUNG FÜR LEISTUNGS-KARTEN --- */
#leistungen {
    position: static !important; 
    z-index: auto !important;
    transform: none !important;
    filter: none !important;
}

#leistungen .group {
    background-color: rgba(255, 255, 255, 0.07) !important; 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

#leistungen .group:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(185, 28, 28, 0.5) !important; /* MS-Rot beim Hovern */
}
