/* =========================================================
   GOM (DARK AMBIENCE ONLINE MARKETING) - MASTER STYLESHEET
   Base: Bootstrap 5 / Drupal 11 Compatible
   Theme: Midnight Tech / Electric Blue & Green
   Status: FINAL FIX (Teaser Specificity & Padding Override)
   ========================================================= */

/* ---------------------------------------------------------
   1. FONTS & IMPORTS
   --------------------------------------------------------- */
 @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
 @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Inter:wght@300;400;500;600&display=swap'); 

/* ---------------------------------------------------------
   2. ROOT VARIABLES (THEME CONFIGURATION)
   --------------------------------------------------------- */
:root {
    /* --- Backgrounds (Dark Tech Theme) --- */
    --bg-body: #0f172a;         
    --bg-surface: rgba(30, 41, 59, 0.7); 
    --bg-header: rgba(15, 23, 42, 0.95); 
    
    /* --- GOM Brand Colors (Electric) --- */
    --gom-blue: #0ea5e9;        
    --gom-blue-dark: #0284c7;   
    --gom-green: #10b981;       
    --gom-green-hover: #059669;
    
    --gom-gradient: linear-gradient(135deg, var(--gom-blue) 0%, var(--gom-green) 100%);
    
    /* --- Additional Colors --- */
    --blue: #14B8EE;
    --orange: #f2ac4c;
    --red: #cf1010;
    
    /* --- Typography --- */
    --text-main: #f1f1f1;       
    --text-muted: #cbd5e1;     
    --text-heading: #f1f1f1;
    --bs-breadcrumb-item-active-color: #CCC;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* --- UI Helpers --- */
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --box-shadow-glow: 0 0 25px rgba(14, 165, 233, 0.15);
    
    /* Default Primary Variables */
    --primary-color: var(--gom-blue);
    --primary-glow: rgba(14, 165, 233, 0.5);
    --primary: var(--gom-blue);

    /* --- Spacing System --- */
    --section-spacing-desktop: 10rem; 
    --section-spacing-mobile: 6rem;   
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.8; 
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
    /* --- DEEP AMBIENT BACKGROUND (CSS ONLY) --- */
    /* Dies erzeugt den tiefen Weltraum-Look ohne extra Bilddatei */
    background-color: var(--bg-body); /* Fallback Farbe */
    background-image: 
        /* 1. Hauptlicht Oben Mitte (Blau, sehr weich) */
        radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.15) 0%, transparent 60%),
        /* 2. Sekundärlicht Rechts Unten (Grün, sehr dezent) */
        radial-gradient(circle at 90% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        /* 3. Basis Verlauf (Dunkelblau zu fast Schwarz nach unten) */
        linear-gradient(180deg, #0f172a 0%, #020617 100%);
    
    /* WICHTIG: background-attachment: fixed sorgt für den edlen Parallax-Effekt */
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
}

.layout-container {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-body);
    display: flex;
    flex-direction: column;
    flex: 1; 
}

/* Typography & Links */
p { color: var(--text-muted); margin-bottom: 2rem; }
a { color: var(--primary-color); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--text-heading); text-shadow: 0 0 10px var(--primary-glow); }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    margin-bottom: 1.5rem; 
}

/* --- COLOR UTILITIES --- */
.text-primary { color: var(--primary-color) !important; }
.text-white { color: #f1f1f1 !important; }
.text-muted { color: var(--text-muted) !important; }
.border-white-10 { border-color: rgba(255,255,255,0.1) !important; }

/* ---------------------------------------------------------
   4. LAYOUT SECTIONS & SPACING (FIXED SPECIFICITY)
   --------------------------------------------------------- */

/* 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%;
}

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

/* 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;
}

/* ---------------------------------------------------------
   5. HEADER & NAVIGATION
   --------------------------------------------------------- */
.header-main {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1040;
    transition: all 0.3s ease;
}

.navbar {
    background-color: var(--bg-header) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    padding: 0.8rem 0; 
}

.logo-container {
    background-color: #f1f1f1; 
    border-radius: 50%;
    width: 55px; height: 55px;
    display: flex; align-items: center; justify-content: center;
    padding: 8px;
    box-shadow: 0 0 20px var(--primary-glow);
    margin-right: 20px;
}
.logo-container img.logo {
    width: auto; height: 100%; object-fit: contain; max-width: 100% !important;
}

.nav-link {
    color: var(--text-main) !important; 
    font-weight: 500;
    padding: 0.5rem 1.2rem !important; 
}
.nav-link:hover, .nav-link.active { color: var(--primary-color) !important; }

.dropdown-menu {
    background-color: var(--bg-body) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    margin-top: 15px; 
    padding: 10px;
    border-radius: 12px;
}
.dropdown-item {
    color: var(--text-main) !important;
    border-radius: 6px;
}
.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08); 
    color: var(--primary-color) !important;
}

/* ---------------------------------------------------------
   6. TEASER / HERO (FIXED)
   --------------------------------------------------------- */
/* Wir stellen sicher, dass Fullscreen auch wirklich Fullscreen ist */
.full-section, .teaser-xxl {
    width: 100%;
    min-height: 100vh !important;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    background-size: cover; background-position: center;
    background-attachment: fixed; 
    /* Padding Reset ist oben in Block 4 definiert */
}

.full-section::before, .teaser-xxl::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15,23,42,0.3), var(--bg-body)); /* Etwas transparenter oben */
    z-index: 1;
}
.full-section .container, .teaser-xxl .container { position: relative; z-index: 2; }

/* ---------------------------------------------------------
   7. BENTO GRID SYSTEM & CARDS
   --------------------------------------------------------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}
.bento-card-wrapper { grid-column: span 12; }

@media (min-width: 992px) {
    .bento-col-4 { grid-column: span 4; }
    .bento-col-6 { grid-column: span 6; }
    .bento-col-8 { grid-column: span 8; }
    .bento-video-center { grid-column: 4 / 10; grid-row: span 2; }
}

.card {
    background-color: var(--bg-surface);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: var(--border-radius-lg);
    transition: all 0.4s ease;
    height: 100%; 
}
.card-body { padding: 3rem; }
.card:hover {
    border-color: var(--primary-color); 
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.btn-soft-primary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    transition: 0.3s;
}
.card:hover .btn-soft-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* ---------------------------------------------------------
   8. FOOTER
   --------------------------------------------------------- */
footer {
    background-color: #020617;
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: none !important; 
}

.site-footer .block { border: none !important; background: transparent !important; box-shadow: none !important; }

footer h5 {
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 0.5rem; }
footer a { color: var(--text-muted); transition: 0.2s; }
footer a:hover { color: var(--primary-color); padding-left: 5px; }

/* Social Icons Horizontal */
.social-links ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    margin: 1rem 0 0 0;
    list-style: none;
}
.social-links li { margin: 0; padding: 0; }

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    color: var(--text-heading);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0 !important; 
}
.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* ---------------------------------------------------------
   9. BUTTONS
   --------------------------------------------------------- */
.btn-primary {
    background-color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: #fff !important;
    padding: 15px 40px; 
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn-primary:hover {
    background-color: var(--gom-blue-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px var(--primary-glow);
}

.navbar-toggler, .navbar-toggler-icon {
	background-color: #f3f3f3 !important;
}

/* ---------------------------------------------------------
   10. PAGE SPECIFIC OVERRIDES
   --------------------------------------------------------- */
body.page-node-11 { --primary-color: #e2626b !important; }
body.page-node-10 { --primary-color: #cf1010 !important; }
body.page-node-8 { --primary-color: #4587ff !important; }
body.page-node-4 { --primary-color: #14B8EE !important; }
body.page-node-9 { --primary-color: #f2ac4c !important; }
body.page-node-27 { --primary-color: #9333ea !important; })

/* ---------------------------------------------------------
   11. DRUPAL SYSTEM FIX (Messages / Highlighted Region)
   --------------------------------------------------------- */
/* Verhindert, dass die "Highlighted" Region für Systemnachrichten 
   (auch wenn sie leer ist) riesiges Padding erbt */
.highlighted .section, 
.region-highlighted .section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

/* ---------------------------------------------------------
   12. MEGA MENU STYLES (New)
   --------------------------------------------------------- */

/* Desktop View (ab 992px) */
@media (min-width: 992px) {
    /* Positionierung des Dropdowns */
    .nav-item.dropdown {
        position: static; /* WICHTIG: Erlaubt dem Dropdown volle Breite */
    }

    .dropdown-menu.mega-menu {
        /* Breite begrenzen (ca. col-6 Niveau) */
        width: 700px;           /* Feste Breite für Stabilität */
        max-width: 90vw;        /* Schutz für kleinere Bildschirme */
        
        /* Zentrierungshack */
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(10px); /* Startpunkt Animation */
        
        margin-top: 0;
        border-radius: var(--border-radius-lg); /* Abgerundete Ecken rundum wirken edler */
        background-color: rgba(15, 23, 42, 0.98) !important;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255,255,255,0.1);
        border-top: 2px solid var(--primary-color);
        padding: 2rem;
        
        display: block; 
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    }

    .full-dropdown-menu.full-mega-menu {
        width: 100%;           /* Volle Breite des Bildschirms/Navbars */
        left: 0;
        right: 0;
        margin-top: 0;
        border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
        background-color: rgba(15, 23, 42, 0.98) !important; /* Fast opak */
        backdrop-filter: blur(15px);
        border-top: 2px solid var(--primary-color); /* Farblicher Akzent oben */
        padding: 3rem 2rem;
        display: none; /* Standard Bootstrap Verhalten */
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
        display: block; /* Für Transition Hack */
        visibility: hidden;
    }

    /* Hover Effekt für Menü */
    .full-nav-item.dropdown:hover .full-dropdown-menu.mega-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Hover Effekt: Zentrierung beibehalten! */
    .nav-item.dropdown:hover .dropdown-menu.mega-menu {
        visibility: visible;
        opacity: 1;
        transform: translateX(-50%) translateY(0); /* Endpunkt Animation */
    }

    /* Spalten-Trenner (Optional)    .mega-col {
        border-right: 1px solid rgba(255,255,255,0.05);
    }
    .mega-col:last-child {
        border-right: none;
    }
     */

    /* --- Spalten-Optimierung --- */
    /* Da wir jetzt weniger Platz haben (700px statt Full-Width), 
       sollten die Spalten in der 'row' innerhalb des Menüs 
       kein zu großes Padding haben. */
    .dropdown-menu.mega-menu .row {
        margin-right: -10px;
        margin-left: -10px;
    }
    
    .dropdown-menu.mega-menu .mega-col {
        padding: 0 10px;
        border-right: 1px solid rgba(255,255,255,0.05);
    }

    /* --- SPECIAL FIX: SIMPLE DROPDOWN (für Sprache/Login) --- */
    /* Füge im Drupal Menü dem Eltern-Item die Klasse 'simple-dropdown' hinzu */
    .nav-item.simple-dropdown {
        position: relative; /* Zurücksetzen auf normales Verhalten */
    }
    
    .nav-item.simple-dropdown .dropdown-menu.mega-menu {
        width: auto;      /* Keine volle Breite */
        min-width: 200px; /* Mindestbreite */
        left: auto;       /* Automatische Positionierung */
        right: 0;         /* Rechtsbündig (gut für Sprache/User) */
        padding: 1rem;
        border-top: 1px solid var(--primary-color);
        /* Grid-Layout neutralisieren */
        display: block; 
        visibility: hidden;
    }
    .nav-item.simple-dropdown:hover .dropdown-menu.mega-menu {
        visibility: visible;
    }

    /* Grid-Klassen innerhalb des Simple-Dropdowns neutralisieren */
    .nav-item.simple-dropdown .container-fluid,
    .nav-item.simple-dropdown .row {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .nav-item.simple-dropdown .mega-col {
        width: 100%;
        max-width: 100%;
        border-right: none;
        margin-bottom: 0.5rem;
        padding: 0;
    }

    /* Überschriften (DE/EN) wie normale Links aussehen lassen */
    .nav-item.simple-dropdown h6 {
        margin-bottom: 0;
        border-bottom: none;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        color: var(--text-main);
        cursor: pointer;
        transition: 0.2s;
        border-radius: 6px;
    }
    .nav-item.simple-dropdown h6:hover {
        background-color: rgba(255,255,255,0.05);
        color: var(--primary-color);
    }
}

/* Link Styling im Mega Menu */
.dropdown-menu.mega-menu h6 {
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.dropdown-item.hover-white {
    background: transparent !important;
    transition: transform 0.2s ease, color 0.2s ease;
}
.dropdown-item.hover-white:hover {
    color: #fff !important;
    transform: translateX(5px);
    background: transparent !important;
}

/* ---------------------------------------------------------
   13. MOBILE MENU OVERRIDES
   --------------------------------------------------------- */
@media (max-width: 991px) {
    .dropdown-menu.mega-menu {
        position: static;
        float: none;
        width: 100%;
        background: transparent !important;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
    
    .mega-col {
        margin-bottom: 2rem;
        border: none; /* Keine Linien auf Mobile */
    }

    .mega-col h6 {
        color: #fff !important; /* Heller auf Mobile für Kontrast */
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    .navbar-collapse {
        background-color: var(--bg-body);
        padding: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        max-height: 80vh;
        overflow-y: auto; /* Scrollbar für lange Menüs auf kleinen Handys */
    }
}

/* ---------------------------------------------------------
13.  GOM CYBER-INTERFACE (DRUPAL WEBFORM)
--------------------------------------------------------- */

/* Der äußere Container der Webform */
.webform-submission-form {
    background-color: #111 !important;
    border-left: 5px solid #00e5ff !important;
    padding: 3rem !important;
    box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.5);
}

/* Die Abstände der einzelnen Formular-Elemente */
.webform-submission-form .js-form-item,
.webform-submission-form .form-item {
    margin-bottom: 1.5rem;
}

/* Labels: Hart, laut und oben drüber */
.webform-submission-form label {
    color: #fff !important;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: block;
}

/* Die Eingabefelder (Inputs & Textareas) */
.webform-submission-form .form-control,
.webform-submission-form input[type="text"],
.webform-submission-form input[type="email"],
.webform-submission-form select,
.webform-submission-form textarea {
    background-color: #050505 !important;
    border: 1px solid #333 !important;
    color: #00e5ff !important; /* Text leuchtet beim Tippen */
    border-radius: 0 !important;
    padding: 12px 15px !important;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease-in-out;
}

/* Fokus-Zustand: Das System erwacht */
.webform-submission-form .form-control:focus,
.webform-submission-form input:focus,
.webform-submission-form textarea:focus {
    border-color: #00e5ff !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3) !important;
    background-color: #0a0a0a !important;
    outline: none;
}

/* Der Submit-Button (Der "Execute"-Knopf) */
.webform-submission-form .form-submit {
    background-color: #00e5ff !important;
    color: #000 !important;
    font-family: 'Oswald', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    border: none !important;
    border-radius: 0 !important;
    padding: 15px 30px !important;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    letter-spacing: 2px;
}

.webform-submission-form .form-submit:hover {
    background-color: #fff !important;
    transform: scale(1.02);
}

/* Checkbox & DSGVO Bereich */
.webform-submission-form .form-type-checkbox {
    margin-top: 2rem;
}

.webform-submission-form .form-type-checkbox label {
    text-transform: none;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    color: #666 !important;
    display: inline;
    padding-left: 10px;
}

.breadcrumb {
	padding-left: 20%;
	padding-top: 0.5em;
}

.breadcrumb-item {
	color: var(--text-muted);
}

.breadcrumb-item.active {
	color: var(--text-main);
}

.breadcrumb-item + .breadcrumb-item::before {
	color: var(--text-muted);
}