/* ============================================
   HENX3D - Corporate Professional Theme
   ============================================
   Version: 1.0
   Erstellt: 2025-10-20

   DESIGN-KONZEPT:
   - Professionell & Vertrauenswürdig
   - Technisch ohne Futurismus
   - Für B2B Manufacturing
   - Reduzierte Effekte
   - Klare Business-Anmutung
   - KEIN KI-Look, KEIN Cyberpunk
   ============================================ */

/* ============================================
   DESIGN TOKENS - Professional
   ============================================ */
/* SCOPED Variables - nur aktiv wenn theme-corporate */
.theme-corporate {
    /* PRIMARY COLORS - Professional Blue */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent: #0891b2;
    --accent2: #0e7490;
    --glow: #2563eb;

    /* BACKGROUNDS - Slate Dark (weniger schwarz) */
    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --card-bg: rgba(30, 41, 59, 0.8);
    --card-bg-hover: rgba(51, 65, 85, 0.9);

    /* TEXT - Natürlichere Helligkeit */
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --muted: #94a3b8;
    --gray: #64748b;

    /* LINES & BORDERS - Subtil */
    --line: rgba(241, 245, 249, 0.1);
    --line-hover: rgba(37, 99, 235, 0.4);
    --border-color: rgba(148, 163, 184, 0.2);

    /* GLASSMORPHISM - Sehr dezent */
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(148, 163, 184, 0.15);
    --glass-shadow: 0 4px 20px rgba(15, 23, 42, 0.3);

    /* SHADOWS - Professionell, kein Glow */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 12px 36px rgba(0, 0, 0, 0.4);

    /* GRADIENTS - Subtil */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-card: linear-gradient(180deg, rgba(37, 99, 235, 0.04), transparent);
    --gradient-overlay: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, transparent 100%);
}

/* ============================================
   GLOBAL - Professional Background
   ============================================ */
.theme-corporate {
    background: var(--bg);
    color: var(--text) !important;
    position: relative;
    font-weight: 400;
}

/* Sehr subtiles Grid (kaum sichtbar) */
.theme-corporate::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(241, 245, 249, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(241, 245, 249, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

/* ============================================
   CARDS - Professional & Clean
   ============================================ */
.card,
.service-card,
.portfolio-item,
.faq-item {
    background: var(--card-bg) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow) !important;
    transition: all 0.25s ease !important;
    position: relative;
    overflow: hidden;
}

/* Subtiler Top-Border Accent */
.card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card:hover::before,
.service-card:hover::before {
    opacity: 1;
}

.card:hover,
.service-card:hover,
.portfolio-item:hover,
.faq-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
    background: var(--card-bg-hover) !important;
}

/* ============================================
   HERO SECTIONS - Professional
   ============================================ */
.hero {
    background: transparent !important;
    position: relative;
    overflow: hidden;
}

/* Subtiler Gradient Circle (kein Neon) */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.theme-corporate .hero-title {
    color: var(--text);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.theme-corporate .hero-subtitle {
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

/* ============================================
   BUTTONS - Professional Solid
   ============================================ */
.btn-primary {
    background: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
    transition: all 0.25s ease !important;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4) !important;
    color: #ffffff !important;
}

.btn-primary:active {
    transform: translateY(0) !important;
}

.btn-outline {
    background: transparent !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

.btn-outline:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3) !important;
}

/* Keine Glow-Animationen */
.btn-glow {
    animation: none !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}

.btn-glow:hover {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45) !important;
}

/* ============================================
   SECTIONS
   ============================================ */
.bg-light {
    background: transparent !important;
    position: relative;
}

/* Sehr subtiler Gradient */
.bg-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.03), transparent 60%);
    pointer-events: none;
}

.section-title {
    color: var(--text) !important;
    font-weight: 700 !important;
    position: relative;
    padding-bottom: 1rem;
}

/* Einfacher Underline Accent */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--primary) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
}

.section-description {
    color: var(--text-secondary) !important;
    line-height: 1.7;
}

/* ============================================
   NAVIGATION - Clean & Functional
   ============================================ */
.theme-corporate .site-header {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.theme-corporate .nav-link {
    color: var(--text) !important;
    border: 1px solid var(--line) !important;
    background: rgba(30, 41, 59, 0.4) !important;
    transition: all 0.2s ease !important;
}

.theme-corporate .nav-link:hover {
    border-color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.12) !important;
    color: var(--primary-light) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2) !important;
}

.theme-corporate .nav-link.active {
    color: var(--primary-light) !important;
    border-color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.15) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}

/* ============================================
   FORMS - Professional & Accessible
   ============================================ */
.form-input,
.form-textarea,
.form-select {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1.5px solid var(--border-color) !important;
    color: var(--text) !important;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    background: rgba(30, 41, 59, 0.8) !important;
    outline: none;
}

/* ============================================
   BADGES - Professional Indicators
   ============================================ */
.badge {
    background: rgba(37, 99, 235, 0.15) !important;
    color: var(--primary-light) !important;
    border: 1px solid rgba(37, 99, 235, 0.3) !important;
    font-weight: 600;
}

.badge-success {
    background: rgba(8, 145, 178, 0.15) !important;
    color: var(--accent) !important;
    border-color: rgba(8, 145, 178, 0.3) !important;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-category {
    color: var(--primary-light) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.portfolio-tag {
    background: rgba(37, 99, 235, 0.1) !important;
    border: 1px solid rgba(37, 99, 235, 0.25) !important;
    color: var(--text-secondary) !important;
    font-size: 0.8125rem;
}

/* ============================================
   FAQ - Clean Accordion
   ============================================ */
.faq-question .toggle-icon {
    color: var(--primary) !important;
}

.faq-category-title {
    color: var(--text) !important;
    font-weight: 700;
    border-bottom: 2px solid var(--primary) !important;
    padding-bottom: 0.5rem;
}

/* ============================================
   CTA SECTIONS - Professional Highlight
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(30, 64, 175, 0.08)) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent);
    border-radius: 50%;
}

/* ============================================
   STATS & METRICS
   ============================================ */
.stat-item {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.stat-item:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

.stat-number {
    color: var(--primary-light) !important;
    font-weight: 700;
}

.stat-label {
    color: var(--muted) !important;
}

/* ============================================
   PROCESS TIMELINE
   ============================================ */
.process-step {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
}

.step-number {
    background: var(--primary);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ============================================
   TECHNOLOGY / MACHINES
   ============================================ */
.tech-card {
    border-left: 3px solid var(--accent);
}

.tech-badge {
    background: rgba(8, 145, 178, 0.15);
    color: var(--accent);
    border: 1px solid rgba(8, 145, 178, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

.tech-specs {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.spec-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--muted);
    font-size: 0.875rem;
}

.spec-value {
    color: var(--text);
    font-weight: 600;
    font-size: 0.875rem;
}

/* ============================================
   TYPOGRAPHY - Professional
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.3;
}

p {
    line-height: 1.7;
    color: var(--text-secondary);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary {
    color: var(--primary-light) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-primary {
    background: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero::before {
        width: 400px;
        height: 400px;
    }

    .cta-section::before {
        width: 300px;
        height: 300px;
    }

    .card,
    .service-card {
        backdrop-filter: blur(6px);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus für Keyboard Navigation */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body {
        background: white;
        color: black;
    }

    .card,
    .service-card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }

    .nav-link,
    .btn {
        border: 1px solid #000 !important;
    }
}

/* ============================================
   THEME IDENTIFIER
   ============================================ */
.theme-corporate::after {
    content: 'Corporate Professional Theme Active';
    position: fixed;
    bottom: 0;
    right: 0;
    font-size: 10px;
    color: var(--muted);
    opacity: 0.3;
    padding: 4px 8px;
    pointer-events: none;
    display: none; /* Nur für Debug */
}

/* ============================================
   FULL HEIGHT BACKGROUND FIX
   ============================================ */
.theme-corporate main {
    background-color: transparent !important;
}

.theme-corporate .site-footer {
    background: var(--bg-secondary);
}
