@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;800&display=swap');

/**
 * GSE-Assistant - Premium SaaS Dark Mode CSS - Futuristic Glass
 */
:root {
    --site-header-height: 80px;
    --bg-primary: #161E31; /* Hellerer Dark-Blue/Slate Ton */
    --bg-secondary: #1E293F;
    --bg-surface: rgba(255, 255, 255, 0.08); /* Helleres Glas */
    --bg-surface-hover: rgba(255, 255, 255, 0.12);
    
    --text-primary: #FFFFFF;
    --text-secondary: #E2E8F0; /* Brighter secondary text */
    --text-inverse: #0A0F1A;
    
    --accent-blue: #00F0FF; 
    --accent-blue-glow: rgba(0, 240, 255, 0.6);
    --accent-cyan: #7000FF; 
    --accent-cyan-glow: rgba(112, 0, 255, 0.4);
    --accent-red: #FF003C; 
    
    --gradient-brand: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 240, 255, 0.3) 0%, rgba(112, 0, 255, 0.3) 100%);
    
    --border-color: rgba(255, 255, 255, 0.1); /* Visible border for glass edge */
    --border-highlight: rgba(255, 255, 255, 0.25);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 25px var(--accent-blue-glow);
    
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Futuristic Floating Background Orbs */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    pointer-events: none;
    animation: floatOrb 25s ease-in-out infinite alternate;
}
.orb-1 {
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, transparent 60%);
    top: -20%; left: -10%;
}
.orb-2 {
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.25) 0%, transparent 60%);
    bottom: -10%; right: -10%;
    animation-duration: 30s;
    animation-delay: -15s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
    100% { transform: translate(-5%, 5%) scale(0.9); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-cyan);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Base Layout Container */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-large {
    max-width: 1440px;
}

@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

/* Header & Glassmorphism */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.5); /* Slightly brighter so we can see glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--site-header-height);
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-navigation a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-brand);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin-bottom: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 60%);
    z-index: -1;
    opacity: 0.4;
}

/* Glassmorphism Sections */
.section-glass {
    position: relative;
    padding: 6rem 0;
    margin: 2rem 0;
}

.section-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05); /* Heller layer to enhance glass feeling */
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15); 
    z-index: -1;
}

/* Joomla Generic Modules styling */
.moduletable {
    background: rgba(255, 255, 255, 0.08); /* Visible brighter glass panel */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.1); /* Frosty shadow */
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.moduletable:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.35), inset 0 0 20px rgba(0, 240, 255, 0.2);
}

/* Buttons */
.btn, .readmore a {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--gradient-brand);
    color: var(--text-primary);
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Futuristic Scanning Line on Button */
.btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: rotate(45deg) translateY(-100%);
    animation: btnScan 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes btnScan {
    0% { transform: rotate(45deg) translateY(-100%); }
    20%, 100% { transform: rotate(45deg) translateY(100%); }
}

.btn:hover, .readmore a:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
    color: var(--text-primary);
}

/* Premium Button (Kundencenter) */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 2.2rem;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white !important;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    z-index: 10;
}

.btn-premium:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px var(--accent-blue-glow);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
    z-index: -2;
}

.btn-premium:hover::after {
    transform: translate(-50%, -50%) scale(1);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
}

/* Shimmer Effect */
.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    transition: none;
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    20%, 100% { left: 200%; }
}

/* Background gradient */
.btn-premium .btn-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-brand);
    opacity: 0.9;
    z-index: -1;
    transition: var(--transition);
}

.btn-premium:hover .btn-bg {
    opacity: 1;
}

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

.btn-premium .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-premium:hover .btn-icon {
    background: white;
    color: var(--accent-cyan);
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 15px white;
}

.btn-premium-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-premium-outline::before {
    opacity: 0;
}

.btn-premium-outline:hover {
    background: rgba(112, 0, 255, 0.1);
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px var(--accent-blue-glow);
}

.btn-premium-outline:hover::before {
    opacity: 0.2;
}

/* Main Layout Grid */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

@media (min-width: 1024px) {
    /* If both sidebars are active, might need custom handling, let's assume 1 sidebar or 0 */
    .main-layout {
        grid-template-columns: 3fr 1fr;
    }
    
    .sidebar-left + .content-body {
        grid-column: 2 / -1;
    }
}

/* Articles */
.item-page {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-inner {
    text-align: center;
}

/* Utilities & Micro-Animations */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hologram Effect for Text */
.logo-text {
    position: relative;
    display: inline-block;
}

.logo-text::after {
    content: 'GSE-Assistant';
    position: absolute;
    left: 0; top: 0;
    color: var(--accent-blue);
    opacity: 0;
    filter: blur(2px);
    animation: hologramFlicker 6s infinite alternate;
    pointer-events: none;
}

@keyframes hologramFlicker {
    0%, 96%, 98% { opacity: 0; transform: translate(0, 0); }
    97% { opacity: 0.8; transform: translate(2px, -1px); }
    99% { opacity: 0.5; transform: translate(-1px, 2px); }
    100% { opacity: 0; transform: translate(0, 0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-collapse {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        padding: 2rem;
        flex-direction: column;
        display: none;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-collapse.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}
