/* ==========================================================================
   Systempfad IT — Haupt-Stylesheet
   Design: Full Dark mit Sectional Gradients (Blau → Violett → Cyan)
   Farben: #131313 (Base), #2563eb (Blue), #7c3aed (Violet), #00d4ff (Cyan)
   Fonts: Space Grotesk (Headlines), Inter (Body)
   ========================================================================== */

/* === SMOOTH SCROLL & GRUNDLAGEN === */
html {
    scroll-behavior: smooth;
}

body {
    background: #0a0a0a;
    color: #e5e2e1;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === MATERIAL SYMBOLS === */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==========================================================================
   SECTIONAL GRADIENT SYSTEM
   Jede Sektion fließt in die nächste über farbige Gradients.
   Keine weißen Backgrounds, durchgehend dunkel + lebendig.
   ========================================================================== */

/* Base Dark Section */
.section-dark {
    background-color: #131313;
    color: #e5e2e1;
    position: relative;
    overflow: hidden;
}

/* Section: Hero → Blue Flow */
.section-blue {
    background: linear-gradient(180deg, #131313 0%, #0f1628 30%, #111d3a 70%, #0f1628 100%);
    color: #e5e2e1;
    position: relative;
    overflow: hidden;
}

/* Section: Blue → Violet Flow */
.section-violet {
    background: linear-gradient(180deg, #0f1628 0%, #1a1040 30%, #1c0f35 70%, #1a1040 100%);
    color: #e5e2e1;
    position: relative;
    overflow: hidden;
}

/* Section: Violet → Cyan/Dark Flow */
.section-cyan {
    background: linear-gradient(180deg, #1a1040 0%, #0f1628 30%, #0a1520 70%, #131313 100%);
    color: #e5e2e1;
    position: relative;
    overflow: hidden;
}

/* Section: Neutral dark (für Impressum, Datenschutz etc.) */
.section-neutral {
    background: #131313;
    color: #e5e2e1;
    position: relative;
}

/* Alt for variation */
.section-alt {
    background: linear-gradient(180deg, #111118 0%, #151520 50%, #111118 100%);
    color: #e5e2e1;
    position: relative;
    overflow: hidden;
}

/* Legacy support */
.section-light {
    background: linear-gradient(180deg, #0f1628 0%, #111d3a 50%, #0f1628 100%);
    color: #e5e2e1;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   AMBIENT GLOW ORBS — Hintergrund-Lichteffekte pro Sektion
   ========================================================================== */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.glow-blue {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
}

.glow-violet {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
}

.glow-cyan {
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
}

/* Animated floating glow */
@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}
.glow-animated {
    animation: glowFloat 12s ease-in-out infinite;
}

/* ==========================================================================
   TECH GRID PATTERN — Subtiles Hintergrundmuster
   ========================================================================== */
.tech-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ==========================================================================
   FLOATING PARTICLES — via CSS (leichtgewichtig)
   ========================================================================== */
@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    25% { transform: translateY(-40px) translateX(10px); opacity: 0.6; }
    50% { transform: translateY(-20px) translateX(-15px); opacity: 0.2; }
    75% { transform: translateY(-50px) translateX(5px); opacity: 0.5; }
}
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.particle-blue {
    background: #2563eb;
    box-shadow: 0 0 6px rgba(37, 99, 235, 0.4);
}
.particle-violet {
    background: #7c3aed;
    box-shadow: 0 0 6px rgba(124, 58, 237, 0.4);
}
.particle-cyan {
    background: #00d4ff;
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.4);
}

/* ==========================================================================
   GLASSMORPHISM CARDS
   ========================================================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(37, 99, 235, 0.05);
}

/* Gradient Border on Hover */
.glass-card-glow {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.glass-card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.0), rgba(124, 58, 237, 0.0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.4s;
    pointer-events: none;
}
.glass-card-glow:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: transparent;
}
.glass-card-glow:hover::before {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.4), rgba(124, 58, 237, 0.4));
}

/* Legacy card support */
.card-light {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    transition: all 0.4s;
    position: relative;
    z-index: 1;
}
.card-light:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    transition: all 0.4s;
}
.card-dark:hover {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   GRADIENT UTILITIES
   ========================================================================== */
.gradient-brand {
    background: linear-gradient(135deg, #2563eb 0%, #00d4ff 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-violet {
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated gradient text */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.gradient-text-animated {
    background: linear-gradient(270deg, #2563eb, #00d4ff, #7c3aed, #2563eb);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

/* ==========================================================================
   ACCENT LINES — Dekorative Linien zwischen Sektionen
   ========================================================================== */
.accent-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.3), transparent);
    margin: 0 auto;
    max-width: 600px;
}

.accent-line-glow {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
    margin: 0 auto;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2), 0 0 20px rgba(0, 212, 255, 0.1);
}

/* ==========================================================================
   MARQUEE / LAUFBAND ANIMATION
   ========================================================================== */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-scroll {
    animation: scroll 30s linear infinite;
}
.marquee-container:hover .animate-scroll {
    animation-play-state: paused;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.97) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}
.fade-in-delay-1 { animation-delay: 0.05s; }
.fade-in-delay-2 { animation-delay: 0.1s; }
.fade-in-delay-3 { animation-delay: 0.15s; }
.fade-in-delay-4 { animation-delay: 0.2s; }

/* Scroll-triggered elements — fast reveal, minimal travel */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease-out,
                transform 0.4s ease-out;
}
.animate-on-scroll.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered cards — tighter delays */
.stagger-1 { transition-delay: 0.03s; }
.stagger-2 { transition-delay: 0.06s; }
.stagger-3 { transition-delay: 0.09s; }
.stagger-4 { transition-delay: 0.12s; }

/* ==========================================================================
   PULSE GLOW — für Badges, Icons, CTAs
   ========================================================================== */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 20px 5px rgba(0, 212, 255, 0.15); }
}
.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlowViolet {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.3); }
    50% { box-shadow: 0 0 20px 5px rgba(124, 58, 237, 0.15); }
}
.pulse-glow-violet {
    animation: pulseGlowViolet 3s ease-in-out infinite;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.mobile-nav {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}
.mobile-nav.open {
    transform: translateX(0);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #e5e2e1;
    margin: 6px 0;
    transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}
.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ==========================================================================
   BUTTON UTILITIES
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    color: white;
    background-color: #2563eb;
    border-radius: 0.75rem;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}
.btn-primary:hover::after {
    transform: translateX(100%);
}
.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    color: #131313;
    background-color: #00d4ff;
    border-radius: 0.75rem;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(0, 212, 255, 0.25);
    position: relative;
    overflow: hidden;
}
.btn-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}
.btn-cta:hover::after {
    transform: translateX(100%);
}
.btn-cta:hover {
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e5e2e1;
    border-radius: 0.75rem;
    transition: all 0.3s;
}
.btn-outline:hover {
    border-color: rgba(0, 212, 255, 0.4);
    color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

/* ==========================================================================
   TEXTAUSWAHL & SCROLLBAR
   ========================================================================== */
::selection {
    background: #2563eb;
    color: white;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #1a1a2e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2563eb; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1023px) {
    .nav-desktop { display: none !important; }
    .nav-mobile-toggle { display: flex !important; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem !important; line-height: 0.95 !important; }
    .section-title { font-size: 2rem !important; }
    .glow-orb { opacity: 0.3; }
    .tech-grid::before { display: none; }
}

@media (min-width: 1024px) {
    .nav-mobile-toggle { display: none !important; }
    .mobile-nav { display: none !important; }
}

/* ==========================================================================
   ARTICLE CONTENT (Blog Posts — dunkel)
   ========================================================================== */
.article-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em;
    margin-top: 2.5rem; margin-bottom: 1rem; color: #fff;
}
.article-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem; font-weight: 700;
    margin-top: 2rem; margin-bottom: 0.75rem; color: #fff;
}
.article-content p {
    margin-bottom: 1.25rem; line-height: 1.8; color: #94a3b8;
}
.article-content ul, .article-content ol {
    margin-bottom: 1.25rem; padding-left: 1.5rem; color: #94a3b8;
}
.article-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-content ul li { list-style-type: disc; }
.article-content ol li { list-style-type: decimal; }
.article-content a { color: #00d4ff; text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: #2563eb; }
.article-content blockquote {
    border-left: 3px solid #7c3aed; padding-left: 1.25rem;
    margin: 1.5rem 0; font-style: italic; color: #64748b;
}
.article-content img { border-radius: 0.75rem; margin: 1.5rem 0; max-width: 100%; height: auto; }
.article-content strong { color: #fff; font-weight: 600; }
.article-content pre, .article-content code { background: rgba(255,255,255,0.05); border-radius: 0.375rem; font-size: 0.875rem; }
.article-content pre { padding: 1rem 1.25rem; margin: 1.5rem 0; overflow-x: auto; }
.article-content code { padding: 0.125rem 0.375rem; }
.article-content pre code { padding: 0; background: none; }

/* Legacy alias */
.article-content-light { }
.article-content-light h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.75rem; font-weight: 800; margin-top: 2.5rem; margin-bottom: 1rem; color: #fff; }
.article-content-light p { margin-bottom: 1.25rem; line-height: 1.8; color: #94a3b8; }
.article-content-light a { color: #00d4ff; }
.article-content-light strong { color: #fff; }

/* ==========================================================================
   COLOR OVERRIDES — Text colors for dark backgrounds
   ========================================================================== */
.text-light-text { color: #fff !important; }
.text-light-text-muted { color: #94a3b8 !important; }
.bg-light-muted { background-color: rgba(255,255,255,0.05) !important; }
.bg-brand-blue\/10 { background-color: rgba(37, 99, 235, 0.15) !important; }
.bg-brand-violet\/10 { background-color: rgba(124, 58, 237, 0.15) !important; }