/* Root Variables */
:root {
    --color-black: #000000;
    --color-dark-1: #0a0e1a;
    --color-dark-2: #0d1a2d;
    --color-medium: #143250;
    --color-primary: #10b981;
    --color-accent: #06b6d4;
    --color-white: #ffffff;
    --color-text: #e0e0e0;
    --color-text-dark: #b0b0b0;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    color: var(--color-white);
    font-weight: 600;
    line-height: 1.2;
}

/* AI Badge - IMMER Grün #3d9162 (Brand Color) */
.ai-badge {
    color: #3d9162;
    font-size: 0.5em;
    font-weight: 700;
    margin-left: 2px;
    letter-spacing: 1px;
}

.ai-badge-small {
    color: #3d9162;
    font-size: 0.6em;
    font-weight: 700;
    margin-left: 1px;
}

/* Smooth CSS Animations (Framer Motion Replacement) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modern Scroll Animations - GPU-Optimiert */

/* Base State - Unsichtbar */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px) translateZ(0);
    will-change: transform, opacity;
}

/* Animated State - Sichtbar */
.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: auto;
}

/* Staggered Delays - Automatisch per nth-child */
.featuresGrid .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.featuresGrid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.featuresGrid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.featuresGrid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.featuresGrid .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.featuresGrid .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* Steps Stagger */
.steps .step.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.steps .step.animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.steps .step.animate-on-scroll:nth-child(5) { transition-delay: 0.3s; }

/* Pricing Cards Stagger - NUR für Scroll-Animation, NICHT für Hover */
.pricingGrid .animate-on-scroll:nth-child(1):not(.animate-in) { transition-delay: 0s; }
.pricingGrid .animate-on-scroll:nth-child(2):not(.animate-in) { transition-delay: 0.15s; }
.pricingGrid .animate-on-scroll:nth-child(3):not(.animate-in) { transition-delay: 0.3s; }

/* Hover ohne Delay */
.pricingGrid .pricingCardWrapper {
    transition-delay: 0s !important;
}

.pricingGrid .pricingCard {
    transition-delay: 0s !important;
}

/* Accessibility - Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Hero Section staggered animations */
.hero-h1 {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hero-subtitle {
    opacity: 0;
    animation: heroSubtitle 0.8s ease 0.4s forwards;
}

@keyframes heroSubtitle {
    to {
        opacity: 1;
    }
}

.hero-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: heroButtons 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

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

.heroContent {
    opacity: 0;
    transform: translateX(-60px);
    animation: heroContent 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroContent {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image {
    opacity: 0;
    transform: translateX(60px) scale(0.8);
    animation: heroImage 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes heroImage {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
