/* ============================================
   NEURAL ORBITRON THEME - Katholisch-KI.com
   Gemeinsames CSS für alle Apps
   ============================================ */

/* Google Fonts - Orbitron */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Gradient System */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --cyber-gradient: linear-gradient(135deg, #00f2fe 0%, #667eea 50%, #f093fb 100%);
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    
    /* Colors */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #cbd5e1;
    --accent-cyan: #00f2fe;
    --accent-purple: #667eea;
    --accent-pink: #f093fb;
    --accent-violet: #764ba2;
    
    /* Shadows & Effects */
    --glow-cyan: 0 0 20px rgba(0, 242, 254, 0.5);
    --glow-purple: 0 0 20px rgba(102, 126, 234, 0.5);
    --glow-pink: 0 0 20px rgba(240, 147, 251, 0.5);
    --shadow-elevated: 0 8px 32px rgba(102, 126, 234, 0.15);
    
    /* Spacing */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: var(--dark-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Radial Overlays */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(240, 147, 251, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(0, 242, 254, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.gradient-text {
    background: var(--cyber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
}

/* ============================================
   HEADER STYLES
   ============================================ */
.neural-header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-elevated);
}

.neural-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    background: var(--cyber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    animation: glow 3s ease-in-out infinite alternate;
}

.neural-header p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1px;
}

/* ============================================
   NAVIGATION - BURGER MENU
   ============================================ */
.neural-nav {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.burger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 1.5rem;
    gap: 6px;
    position: relative;
    z-index: 1001;
}

.burger div {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.burger.active div:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.burger.active div:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.burger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-links.nav-active {
    max-height: 80vh;
    overflow-y: auto;
    padding: 1rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover {
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.1);
}

.nav-links a:hover::before {
    left: 100%;
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */
.neural-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.neural-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

/* ============================================
   BUTTONS
   ============================================ */
.neural-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-md);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.neural-btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    color: white;
    border: none;
}

.neural-btn-primary:hover {
    box-shadow: var(--glow-cyan);
    transform: scale(1.05);
}

.neural-btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
}

.neural-btn-outline:hover {
    background: var(--accent-cyan);
    color: #1a1a2e;
}

.neural-btn-ghost {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.neural-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(240, 147, 251, 0.8));
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.8);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.neural-grid {
    display: grid;
    gap: 2rem;
    padding: 2rem;
}

.neural-grid-2 {
    grid-template-columns: 1fr;
}

.neural-grid-3 {
    grid-template-columns: 1fr;
}

.neural-grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .neural-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .neural-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .neural-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .neural-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .neural-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 3rem 1rem;
    position: relative;
    z-index: 1;
}

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
    .neural-header h1 {
        font-size: 2rem;
    }
    
    .neural-header p {
        font-size: 0.9rem;
    }
    
    .neural-card {
        padding: 1.5rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .neural-header {
        padding: 1.5rem 0.5rem;
    }
    
    .neural-card {
        padding: 1rem;
    }
    
    .neural-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   SMOOTH SCROLLING
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}
