/* =========================================================
   RANKING BOOST - MASTER STYLESHEET (FINAL HUD EDITION)
   Style: Racing Game UI, High Speed, Masculine.
   Colors: #F15A24 (Orange) | #1A1A1A (Asphalt) | #F0F2F5 (Tech Grey)
   ========================================================= */

/* ---------------------------------------------------------
   1. FONTS & IMPORTS
   --------------------------------------------------------- */
/* --- 0. LIBRARIES (FONTAWESOME CDN) --- */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
/* Montserrat für Body (Lesbarkeit) | Oswald für Headlines (Tacho-Optik) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;900&family=Oswald:wght@500;700&display=swap');

/* ---------------------------------------------------------
   2. ROOT VARIABLES (RB THEME CONFIG)
   --------------------------------------------------------- */
:root {
    /* --- 60% BASIS (Tech Backgrounds) --- */
    --bg-main: #F0F2F5;         /* Kaltes, technisches Grau */
    --bg-light: #FFFFFF;        /* Reinweiß für Kontrast */
    --bg-card: #FFFFFF;         /* Karten Hintergrund */
    
    /* --- 30% STRUKTUR (Asphalt & Tire) --- */
    --rb-black-deep: #1A1A1A;   /* Hauptfarbe Schwarz */
    --rb-black-soft: #333333;   /* Text Grau */
    --text-main: #1A1A1A;
    --text-muted: #676767;
    --bg-dark: #1A1A1A;         /* Footer / Dark Mode Areas */

    /* --- 10% SPEED (Adrenaline Orange) --- */
    --rb-orange: #F15A24;       /* Das Logo-Orange */
    --rb-orange-dark: #D94510;  /* Hover State */
    --rb-gradient: linear-gradient(135deg, #F15A24 0%, #FBB03B 100%); /* Turbo Verlauf */
    
    /* Funktionale Zuweisungen */
    --primary-color: var(--rb-orange);
    --secondary-color: var(--rb-black-deep);
    --border-radius-lg: 0px;    /* RB-Gesetz: Keine runden Ecken! */
    
    /* --- Spacing System --- */
     --section-spacing-desktop: 3.5rem; 
     --section-spacing-mobile: 5rem;   
}

/* ---------------------------------------------------------
   3. GLOBAL LAYOUT
   --------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: var(--text-main);
    background-color: var(--bg-main) !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* WICHTIG: Platz für die Desktop Sidebar schaffen */
@media (min-width: 992px) {
    body {
        transition: padding-left 0.3s ease;
    }
}

@media (min-width: 992px) {
    .section {
        padding-top: var(--section-spacing-desktop) !important;
        padding-bottom: var(--section-spacing-desktop) !important;
        padding-left: 80px;
    }
}

/* Allgemeine Regel für viel White Space */
.section {
    padding-top: var(--section-spacing-mobile) !important;
    padding-bottom: var(--section-spacing-mobile) !important;
    position: relative;
    width: 100%;
}
/* FIX: .full-section muss stärker sein als die obige Regel!
   Wir nutzen 'section.full-section' und '.region-content .full-section'
   um die Spezifität zu erhöhen.
*/
section.full-section,
section.teaser-xxl,
.region-content .full-section,
.region-content .teaser-xxl,
.section-no-pad {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
}

/* ---------------------------------------------------------
   4. TYPOGRAPHY (IMPACT STYLE)
   --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rb-black-deep);
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* Utility für den "Speed"-Look (Schräg) */
.text-speed {
    font-family: 'Oswald', sans-serif;
    font-style: italic;
    color: var(--rb-orange);
}

a { color: var(--rb-black-deep); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--rb-orange); }

/* Utilities Override (Weg mit Blau!) */
.text-primary { color: var(--rb-orange) !important; }
.bg-primary { background-color: var(--rb-orange) !important; }
.border-primary { border-color: var(--rb-black-deep) !important; }

/* ---------------------------------------------------------
   5. BUTTONS (THE LAUNCH CONTROL)
   --------------------------------------------------------- */
.btn {
    border-radius: 0px !important; /* Eckig = Maskulin */
    padding: 16px 40px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary {
    background: var(--rb-gradient) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(241, 90, 36, 0.4); /* Oranges Glühen */
}

.btn-primary:hover {
    transform: skewX(-10deg) scale(1.02); /* Vorwärtsdrang */
    box-shadow: 0 20px 50px rgba(241, 90, 36, 0.6);
}

/* ---------------------------------------------------------
   6. CARDS (POWER BLOCKS)
   --------------------------------------------------------- */
.feature-card, .card {
    background: var(--bg-light) !important;
    border: none !important;
    border-bottom: 5px solid var(--rb-black-deep) !important; /* Harte Kante unten */
    border-radius: 0 !important;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    border-bottom-color: var(--rb-orange) !important;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ---------------------------------------------------------
   7. NAVBAR: THE RACING HUD (VERTICAL CENTER & TEXT)
   --------------------------------------------------------- */

/* === MOBILE VIEW (Bleibt oben) === */
@media (max-width: 991px) {
    .header-main {
        position: fixed;
        top: 0; left: 0; width: 98%;
        z-index: 1050;
        background: rgba(255, 255, 255, 0.9) !important;
        border-bottom: 3px solid var(--rb-orange);
    }
    .navbar-collapse { background: #f1f1f1; padding: 50px; }
    
    .navbar-toggler { border: none; margin: 20px 50px 20px 10px; padding: 5px; }
    .navbar-toggler-icon { 
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23F15A24' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important; 
        border: 5px solid #ddd;
        height: 55px;
        width: 55px;
    }
    svg.logo {
       height: 72px;
       padding-left: 10px;
    }
}

/* === DESKTOP VIEW (FLOATING HUD) === */
@media (min-width: 992px) {
    .header-main {
        position: fixed;
        /* VERTIKAL: 80% Höhe & Mittig */
        top: 50%;
        transform: translateY(-50%);
        height: 80vh; 
        
        /* HORIZONTAL: Klebt links, Breite deckt Lücke ab */
        left: 0; 
        width: 80px; 
        
        /* DESIGN */
        background: var(--rb-black-deep) !important;
        border-right: 3px solid var(--rb-orange);
        border-radius: 0 20px 20px 0; 
        
        z-index: 2000;
        overflow: hidden; 
        transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        
        /* FLEXBOX: Alles vertikal ZENTRIERT */
        display: flex;
        flex-direction: column;
        justify-content: center; /* <--- Hier ist die Magie für "Mittig in der Box" */
        align-items: center;     /* Horizontal zentriert */
    }

    /* ----------------------------------------------------
       ZUSTAND 1: GESCHLOSSEN (NUR TEXT)
       ---------------------------------------------------- */
    .header-main::before {
        content: "MENU // SYSTEM";
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%) rotate(-90deg); /* Vertikal gedreht */
        white-space: nowrap;
        
        font-family: 'Oswald', sans-serif;
        font-weight: 700;
        font-size: 1.2rem;
        letter-spacing: 4px;
        color: rgba(255,255,255,0.4);
        
        transition: opacity 0.3s ease;
        opacity: 1; /* Sichtbar wenn zu */
        pointer-events: none;
    }

    /* Das Menü selbst ist im geschlossenen Zustand unsichtbar */
    .header-main .navbar {
        opacity: 0;
        transform: translateX(-20px); /* Leichter Slide-Effekt */
        transition: all 0.3s ease;
        pointer-events: none; /* Klickbar machen verhindern */
        width: 100%;
    }


    /* ----------------------------------------------------
       ZUSTAND 2: HOVER (OFFEN & INHALT)
       ---------------------------------------------------- */
    .header-main:hover {
        width: 300px; 
        box-shadow: 50px 0 100px rgba(0,0,0,0.6);
        align-items: flex-start; /* Inhalt linksbündig beim Öffnen */
    }

    /* Text verschwindet */
    .header-main:hover::before {
        opacity: 0;
    }

    /* Menü erscheint */
    .header-main:hover .navbar {
        opacity: 1;
        transform: translateX(0);
        pointer-events: all;
    }


    /* ----------------------------------------------------
       STYLES FÜR INHALT (NAVBAR)
       ---------------------------------------------------- */
    .navbar {
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
    }

    .navbar-collapse, .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* LOGO */
    .navbar-brand {
        display: block;
        padding: 0 0 30px 63px; /* Abstand nach unten zum Menü */
        margin: 0;
        width: 100%;
    }
    
    .navbar-brand img {
        height: 50px;
        width: auto;
    }

    /* LINKS */
    .nav-item { width: 100%; }
    
    .nav-link {
        color: rgba(255,255,255,0.7) !important;
        font-family: 'Oswald', sans-serif !important;
        text-transform: uppercase;
        font-size: 1.2rem;
        padding: 12px 30px !important;
        white-space: nowrap;
        display: flex; 
        align-items: center;
        border-left: 4px solid transparent;
        transition: all 0.2s;
    }

    /* ICONS ERZWINGEN */
    .nav-link::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        margin-right: 20px;
        color: var(--rb-orange);
        width: 25px; 
        text-align: center;
        display: inline-block;
    }

    /* Icon Mapping */
    a[href*="seo"]::before, a[href*="SEO"]::before { content: "\f3fd"; }
    a[href*="listingstar"]::before { content: "\f0e7"; }
    a[href*="home"]::before, a[href*="checkout"]::before { content: "\f11e"; }
    a[href*="analyse"]::before { content: "\f201"; }
    a[href*="kontakt"]::before { content: "\f059"; }
    
    .nav-link:not([href*="seo"]):not([href*="listing"]):not([href*="shop"]):not([href*="analyse"]):not([href*="kontakt"])::before { content: "\f101"; }

/* Eine kleine Animation definieren */
    @keyframes boost-arrow {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(5px); }
    }
    
    /* Die Klasse für das Icon */
    .fa-angles-right {
        color: var(--rb-orange); /* Natürlich in Orange! */
        animation: boost-arrow 1s infinite ease-in-out;
    }
    
    /* Hover */
    .nav-link:hover {
        background: rgba(255,255,255,0.05);
        color: #fff !important;
        border-left-color: var(--rb-orange);
        padding-left: 40px !important;
    }
}

/* ---------------------------------------------------------
   8. HERO SECTION (NO WAVES)
   --------------------------------------------------------- */
/* ---------------------------------------------------------
      8. HERO SECTION (RB FULLSCREEN POWER)
      --------------------------------------------------------- */
   .hero-section {
       position: relative;
       /* Bild füllt mindestens 85% der Bildschirmhöhe -> wirkt riesig */
       min-height: 85vh; 
       width: 100%;
       
       /* Das Bild wird perfekt eingepasst */
       background-size: cover; 
       background-position: center center;
       background-repeat: no-repeat;
       background-color: var(--rb-black-deep); /* Fallback Farbe */
   
       /* Flexbox zentriert den Inhalt vertikal und horizontal */
       display: flex;
       align-items: center;
       justify-content: flex-start; /* Text linksbündig */
       
       /* WICHTIG: Padding für Abstand zum Menü */
       padding-top: 0; 
   }
   
   /* DAS OVERLAY (Der "Sonnenbrillen-Effekt") */
   .hero-section::before {
       content: "";
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       /* Verlauf von Schwarz (links) zu Transparent (rechts) */
       background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
       z-index: 1;
   }
   
   /* Verlauf nach unten (weicher Übergang zur nächsten Sektion) */
   .hero-section::after {
       content: "";
       position: absolute;
       bottom: 0;
       left: 0;
       width: 100%;
       height: 150px;
       background: linear-gradient(to bottom, transparent 0%, var(--bg-main) 100%);
       z-index: 2;
       pointer-events: none;
   }
   
   .hero-section .container {
       padding-left: 80px;
       position: relative;
       z-index: 5;
   }
   @media (max-width: 575px) {
   .hero-section .container {
       padding-left: 20px !important;
       position: relative;
       z-index: 5;
   }
   }
   /* Damit der Text ÜBER dem Overlay liegt */
  

/* ---------------------------------------------------------
   10. LOGIN & WEBFORM (RB STYLE)
   --------------------------------------------------------- */
/* Box Styling */
.nova-auth-box, .webform-submission-form {
    background: var(--bg-light);
    border: 3px solid var(--rb-black-deep); /* Fetter Rahmen */
    border-radius: 0px !important;
    box-shadow: 20px 20px 0px rgba(0,0,0,0.1); /* Hard Shadow */
    padding: 3rem;
    max-width: 800px; margin: 0 auto;
}

/* Inputs */
.form-control, input[type="text"], input[type="email"] {
    background-color: #f8f9fa !important;
    border: 1px solid #ccc !important;
    border-radius: 0px !important;
    padding: 15px;
    font-weight: 600;
}

.form-control:focus {
    border-color: var(--rb-orange) !important;
    box-shadow: 0 0 0 4px rgba(241, 90, 36, 0.2) !important;
    background: #fff !important;
}

/* Submit Buttons in Forms */
#edit-submit, .form-submit {
    width: 100%;
    background: var(--rb-black-deep) !important;
    color: #fff !important;
    border: none; padding: 15px;
    text-transform: uppercase; font-weight: 900; letter-spacing: 2px;
    border-radius: 0px !important;
    margin-top: 20px;
    cursor: pointer;
}
#edit-submit:hover {
    background: var(--rb-orange) !important;
}

.node__content {
   margin-top: 0 !important;
}

/* ---------------------------------------------------------
   11. KILL SWITCH (Wellen & Deko entfernen)
   --------------------------------------------------------- */
.wave, .curve, .shape-divider, svg[class*="wave"], .hero-section::after[style*="svg"] {
    display: none !important;
}

/* ---------------------------------------------------------
   12. DRUPAL WEBFORM (RB INDUSTRIAL STYLE)
   --------------------------------------------------------- */
#block-novacomply-webform, .block-webform {
    max-width: 850px;
    margin: 4rem auto;
}

.webform-submission-form {
    background: var(--bg-light);
    border: 3px solid var(--rb-black-deep); /* Fetter Industrie-Rahmen */
    border-radius: 0px !important; /* Eckig! */
    padding: 3rem;
    box-shadow: 20px 20px 0px rgba(0,0,0,0.1); /* Harter Schatten */
}

/* Labels */
.webform-submission-form label {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--rb-black-deep);
    margin-bottom: 8px;
}

/* Inputs (Textfelder) */
.webform-submission-form .form-control,
.webform-submission-form input[type="text"],
.webform-submission-form input[type="email"],
.webform-submission-form textarea {
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 0px !important; /* Keine Kurven */
    padding: 15px;
    font-weight: 600;
    color: var(--rb-black-deep);
}

/* Input Fokus (Wenn man reinklickt) */
.webform-submission-form .form-control:focus,
.webform-submission-form input:focus,
.webform-submission-form textarea:focus {
    border-color: var(--rb-orange) !important;
    box-shadow: 0 0 0 4px rgba(241, 90, 36, 0.2) !important;
    outline: none;
}

/* Senden Button im Formular */
.webform-submission-form .form-submit, 
.webform-submission-form .button {
    background: var(--rb-black-deep) !important;
    color: #fff !important;
    border: none;
    padding: 15px 30px;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    width: 100%;
    border-radius: 0;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.webform-submission-form .form-submit:hover {
    background: var(--rb-orange) !important;
    transform: skewX(-10deg);
}

/* ---------------------------------------------------------
   13. UTILITIES (HELPER CLASSES)
   Damit "text-primary" Orange ist und nicht Blau
   --------------------------------------------------------- */
.text-primary { color: var(--rb-orange) !important; }
.bg-primary { background-color: var(--rb-orange) !important; }
.border-primary { border-color: var(--rb-black-deep) !important; }

.bg-dark { background-color: var(--rb-black-deep) !important; }
.text-dark { color: var(--rb-black-deep) !important; }
.text-muted { color: var(--text-muted) !important; }
/* --- DISPLAY-1 MOBILE OPTIMIERUNG --- */
@media (max-width: 991px) {
    .display-1 {
        /* Setzt die Größe auf das Niveau einer h1 (ca. 2.5rem bis 3rem) */
        font-size: calc(1.8rem + 2.5vw) !important; 
        line-height: 1.1 !important;
        letter-spacing: 0px !important; /* Etwas mehr Luft für kleine Screens */
        margin-bottom: 1.5rem !important;
    }
}

/* Optional: Noch kleiner für sehr schmale Handys (iPhone SE etc.) */
@media (max-width: 575px) {
    .display-1 {
        font-size: 2.5rem !important; /* Fester Wert, damit nichts mehr schiefgeht */
    }
}

/* ---------------------------------------------------------
   14. RB FOOTER (THE FOUNDATION)
   --------------------------------------------------------- */
.rb-footer-wrapper {
    background-color: var(--rb-black-deep);
    border-top: 4px solid var(--rb-orange);
    padding: 4rem 0;
    margin-top: 0;
    color: #fff;
    position: relative;
    z-index: 10;
}

.footer-brand {
    display: inline-block;
}

.footer-company-info {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer-company-info strong { color: #fff; }

/* Footer Links */
.footer-link {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    font-size: 0.85rem;
}

.footer-link:hover {
    color: var(--rb-orange) !important;
    border-bottom-color: var(--rb-orange);
}

/* Mobile Footer Anpassung */
@media (max-width: 991px) {
    .footer-legal-nav {
        display: flex;
        flex-direction: column;
        margin-top: 2rem;
        padding-left: 0;
    }
    .footer-legal-nav li {
        margin-left: 0 !important;
        margin-bottom: 1rem;
        list-style: none;
    }
}

/* ---------------------------------------------------------
   15. SPECIAL EFFECTS & ANIMATIONS
   --------------------------------------------------------- */

/* Shimmer Effekt für das Menü ("Glass Swipe") */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@media (min-width: 992px) {
    .header-main::before {
        /* Verlauf: Transparent -> Weiß -> Transparent */
        background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
        background-size: 200% auto;
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent !important; 
        /* Animation läuft alle 6 Sekunden */
        animation: shimmer 6s infinite linear;
    }
}

/* Pfeil-Boost Animation für ">>" Icons */
@keyframes boost-arrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.fa-angles-right {
    color: var(--rb-orange);
    animation: boost-arrow 1s infinite ease-in-out;
}

@keyframes blink {
     0%, 100% { opacity: 1; }
     50% { opacity: 0.3; }
 }
 .blinking-cursor {
     animation: blink 1s step-end infinite;
 }