/* ═══════════════════════════════════════════════════════════
   LANDING HERO — vision-ai.world structure, LIGHT theme
   Video hero, KPI row, mega-dropdown nav
   ═══════════════════════════════════════════════════════════ */

/* ═══ HEADER — sticky bar with mega-dropdown ═══ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    gap: 16px;
}
.header-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a !important;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.header-logo span { color: var(--cyan) !important; }

/* Swarm pulse indicator */
.header-logo .swarm-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
    animation: swarm-pulse 2s ease-in-out infinite;
}
@keyframes swarm-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

/* ═══ NAV ITEM with dropdown trigger ═══ */
.nav-item {
    position: relative;
    padding: 0 16px;
    height: 56px;
    display: flex;
    align-items: center;
    color: #555 !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.nav-item:hover {
    color: #1a1a1a !important;
    background: #fafafa;
    border-bottom-color: var(--cyan);
}
.nav-item.active {
    color: var(--cyan) !important;
    font-weight: 600;
    border-bottom-color: var(--cyan);
}
.nav-item.has-dropdown::after {
    content: '▾';
    margin-left: 5px;
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.2s;
}
.nav-item.has-dropdown:hover::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* ═══ MEGA-DROPDOWN PANEL ═══ */
.mega-dropdown {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid var(--cyan);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    padding: 20px 40px;
    display: none;
    z-index: 999;
}
.nav-item.has-dropdown:hover .mega-dropdown,
.mega-dropdown:hover {
    display: grid;
}
.mega-dropdown {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 4px;
    max-width: 1140px;
    margin: 0 auto;
}

/* Dropdown item card */
.mega-item {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.mega-item:hover {
    background: #f5f7fa;
    border-color: #eaedf0;
}
.mega-item-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mega-item-title .mi-icon,
.mega-item-title .mi-img {
    display: none;
}
/* Color dots per category */
.mega-item-title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--dot-color, #cbd5e1);
    transition: transform 0.2s;
}
.mega-item:hover .mega-item-title::before {
    transform: scale(1.4);
}
/* Energie = cyan */
.mega-dropdown[data-cat="energie"] .mega-item-title::before { --dot-color: #0891b2; }
/* BGA = green */
.mega-dropdown[data-cat="bga"] .mega-item-title::before { --dot-color: #22c55e; }
/* Branchen = amber */
.mega-dropdown[data-cat="branchen"] .mega-item-title::before { --dot-color: #f59e0b; }
/* DMS/Wissen = violet */
.mega-dropdown[data-cat="dms"] .mega-item-title::before { --dot-color: #8b5cf6; }
.mega-item-desc {
    font-size: 0.72rem;
    color: #999;
    line-height: 1.3;
}
.mega-item:hover .mega-item-title { color: var(--cyan); }

/* Section header inside dropdown */
.mega-section-title {
    grid-column: 1 / -1;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #aaa;
    padding: 0 16px 4px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
}

.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 1.2rem;
    padding: 6px 10px;
    cursor: pointer;
    color: #333;
}

/* ═══ MOBILE — stacked nav ═══ */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .header-right { display: none; }
    .mobile-toggle { display: block; }
    .main-header.open .main-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
        padding: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        max-height: 80vh;
        overflow-y: auto;
    }
    .main-header.open .main-nav .nav-item {
        height: auto;
        padding: 10px 16px;
        border-bottom: none;
    }
    .main-header.open .header-right {
        display: flex;
        position: absolute;
        top: 56px; right: 16px;
        padding-top: 12px;
    }
    /* Mobile: dropdowns are always visible, stacked */
    .main-header.open .mega-dropdown {
        display: grid !important;
        position: static;
        box-shadow: none;
        border: none;
        padding: 4px 8px 12px;
        grid-template-columns: 1fr 1fr;
    }
    .mega-section-title { display: none; }
}

/* ═══ HERO — Apple-Pastell Light-Frosted-Glass (matches index.html) ═══ */
.hero-landing {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0a0612 !important;
    padding: 100px 0 80px;
}
.hero-landing .hero-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: none;
}
.hero-landing .hero-poster {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-landing::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 70%, rgba(0,0,0,0.18) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-landing .container { position: relative; z-index: 2; }
.hero-landing .hero-content {
    max-width: 880px;
    width: 100%;
    margin: 0 auto;
    padding: 56px 48px;
    background: rgba(255,255,255,0.78);
    backdrop-filter: saturate(180%) blur(28px);
    -webkit-backdrop-filter: saturate(180%) blur(28px);
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.60);
    box-shadow: 0 30px 80px rgba(15,10,30,0.18), 0 0 0 1px rgba(167,139,250,0.10);
    text-align: left;
    box-sizing: border-box;
}
.hero-landing h1 {
    margin-bottom: 24px;
    color: #1d1d1f !important;
    text-shadow: none !important;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}
.hero-landing h1 span {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-shadow: none;
}
.hero-landing .label {
    color: #7c3aed !important;
    text-shadow: none !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.hero-landing .hero-sub {
    color: #1d1d1f;
    font-size: 1.18rem;
    line-height: 1.6;
    margin-bottom: 14px;
    text-shadow: none !important;
    font-weight: 500;
}
.hero-landing .hero-body {
    color: #515154;
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 32px;
    text-shadow: none !important;
}

/* Badge — Pille auf Light-Glass-Card */
.hero-landing .label {
    display: inline-block;
    background: rgba(167,139,250,0.14);
    border: 1px solid rgba(167,139,250,0.32);
    padding: 7px 18px;
    border-radius: 100px;
    margin-bottom: 24px;
}

/* ═══ KPI Row — auf Light-Glass-Card, Apple-Stil ═══ */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 36px;
}
.kpi-card {
    background: rgba(255,255,255,0.65);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border: 1px solid rgba(167,139,250,0.18);
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.35s ease,
                border-color 0.35s ease,
                background 0.35s ease;
}
.kpi-card:hover {
    background: rgba(255,255,255,0.92);
    border-color: rgba(167,139,250,0.55);
    box-shadow: 0 12px 40px rgba(167,139,250,0.30), 0 0 50px rgba(192,132,252,0.18);
    transform: translateY(-4px) scale(1.02);
}
.kpi-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 800;
    color: #1d1d1f;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.kpi-label {
    font-size: 0.74rem;
    color: #515154;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
@media (max-width: 768px) {
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kpi-card { padding: 14px 10px; }
    .kpi-value { font-size: 1.4rem; }
}

/* ═══ CTA Buttons — Apple-Pastell, identisch zu index.html .btn-hero/.btn-ghost ═══ */
.btn-go {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.005em;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(124,58,237,0.45);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    text-decoration: none !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
    position: relative;
    overflow: hidden;
}
.btn-go::after {
    content: '';
    position: absolute; inset: 0; border-radius: 100px;
    background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 40%);
    pointer-events: none;
}
.btn-go:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 50px rgba(124,58,237,0.55), 0 0 0 6px rgba(124,58,237,0.12);
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
    color: #fff !important;
}
.btn-sec {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 17px 30px;
    background: rgba(255,255,255,0.92);
    color: #1d1d1f !important;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.005em;
    border-radius: 100px;
    border: 1px solid #d2d2d7;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), border-color 0.25s, box-shadow 0.25s;
    text-decoration: none !important;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-sec:hover {
    transform: translateY(-2px);
    border-color: #a78bfa;
    color: #1d1d1f !important;
    box-shadow: 0 8px 24px rgba(124,58,237,0.25);
}

/* ═══ Feature Grid (3-col) ═══ */
.feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s ease;
}
.feature-card:hover {
    border-color: var(--accent);
    box-shadow: 0 18px 48px rgba(124,58,237,0.20), 0 0 50px rgba(192,132,252,0.18);
    transform: translateY(-5px) scale(1.015);
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}
.feature-card h4 { color: #1a1a1a; margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { color: #666; font-size: 0.95rem; }

@media (max-width: 768px) {
    .feature-grid-3 { grid-template-columns: 1fr; }
}

/* ═══ Screenshots ═══ */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.screenshot-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}
.screenshot-card:hover {
    border-color: var(--accent);
    box-shadow: 0 18px 48px rgba(124,58,237,0.22), 0 0 60px rgba(192,132,252,0.20);
    transform: translateY(-5px) scale(1.015);
}

/* ═══ Material-Symbols-Icons im Apple-Pastell-Look ═══ */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded' !important;
    font-weight: 500;
    font-style: normal;
    font-size: 28px;
    line-height: 1;
    display: inline-block;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 40;
}
.paradigm-icon {
    width: 56px !important; height: 56px !important;
    border-radius: 16px !important;
    display: flex !important; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(167,139,250,0.18)) !important;
    margin-bottom: 22px !important;
    border: 1px solid rgba(167,139,250,0.30);
}
.paradigm-icon .material-symbols-rounded {
    font-size: 30px;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mgmt-core-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    display: inline-flex !important; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(167,139,250,0.22)) !important;
    border: 1px solid rgba(167,139,250,0.32);
}
.mgmt-core-icon .material-symbols-rounded {
    font-size: 36px;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ═══ Branche-Cards: Inline-Dark-Gradients eliminieren, Apple-Pastell-hell ═══ */
.branche-card {
    background: #ffffff !important;
    border: 1px solid #e8e8ed !important;
    box-shadow: 0 1px 2px rgba(167,139,250,0.05), 0 8px 24px rgba(167,139,250,0.06);
    padding: 28px 20px !important;
}
.branche-card h4 { color: #1d1d1f !important; }
.branche-card p { color: #515154 !important; }
.branche-card .branche-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(167,139,250,0.18));
    border: 1px solid rgba(167,139,250,0.25);
    margin: 0 auto 16px !important;
}
.branche-card .branche-icon .material-symbols-rounded {
    font-size: 28px;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.branche-card:hover {
    border-color: #a78bfa !important;
    box-shadow: 0 18px 48px rgba(124,58,237,0.22), 0 0 50px rgba(192,132,252,0.18) !important;
    transform: translateY(-6px) scale(1.025);
}

/* eco-node Counts: Lavendel-Gradient */
.eco-node-count {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text; background-clip: text; color: transparent !important;
}

/* Paradigm-Cards: Inline-BG-Bilder neutralisieren, clean weiß */
.paradigm-card {
    background: #ffffff !important;
    border: 1px solid #e8e8ed !important;
    box-shadow: 0 1px 2px rgba(167,139,250,0.05), 0 8px 24px rgba(167,139,250,0.06) !important;
    padding: 36px 32px !important;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s, border-color 0.3s !important;
}
.paradigm-card h3 {
    color: #1d1d1f !important;
    font-size: 1.25rem !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.02em;
}
.paradigm-card p { color: #515154 !important; line-height: 1.65; }
.paradigm-card:hover {
    border-color: #a78bfa !important;
    transform: translateY(-6px) scale(1.015) !important;
    box-shadow: 0 24px 60px rgba(124,58,237,0.22), 0 0 60px rgba(192,132,252,0.18) !important;
}

/* Section-Header h2 mit lavendel statt cyan */
.section-header h2 span[style*="--cyan"],
section h2 span[style*="--cyan"] {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text; background-clip: text;
    color: transparent !important;
}

/* Hero h1 span (Kein Cloud. Kein Dritter.) als Lavendel-Highlight — gleiche Tiefe wie Hauptseite */
.hero-landing h1 span[style*="--cyan"] {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%) !important;
    -webkit-background-clip: text; background-clip: text;
    color: transparent !important;
    text-shadow: none !important;
}

/* Hero-Container darf voll-breit sein, damit Hero-Card zentral 880px nimmt */
.hero-landing .container {
    max-width: 1200px;
    padding: 0 32px;
}
.hero-landing .hero-content > * { max-width: 100%; }
.hero-landing .hero-content > div[style*="display:flex"],
.hero-landing .hero-content > .hero-ctas {
    flex-wrap: wrap !important;
}

/* Mobile-Polish */
@media (max-width: 760px) {
    .hero-landing .hero-content {
        padding: 36px 24px;
        border-radius: 24px;
    }
    .hero-landing h1 { font-size: clamp(2rem, 7vw, 2.6rem) !important; }
    .hero-landing .hero-sub { font-size: 1.02rem; }
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
}

/* mgmt-section-badge: kräftiges Lavendel-Pille statt cyan */
.mgmt-section-badge {
    background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
    box-shadow: 0 6px 20px rgba(167,139,250,0.4);
}

/* Mega-dropdown-Hover: Lavendel-Tinted */
.mega-item:hover { background: #f3f0ff !important; border-color: #ddd6fe !important; }
.mega-item:hover .mega-item-title { color: #7c3aed !important; }

/* Nav-Item active/hover */
.nav-item:hover { border-bottom-color: #a78bfa !important; }
.nav-item.active { color: #7c3aed !important; border-bottom-color: #7c3aed !important; }

/* Logo-highlight */
.header-logo span { color: #7c3aed !important; }
.screenshot-card img { width: 100%; height: auto; display: block; }
@media (max-width: 768px) {
    .screenshots-grid { grid-template-columns: 1fr; }
}
