/**
 * Homepage Hero Section - FINAL
 * Version: 2.0 - Gradient Toggle System
 * Datum: 05.11.2025
 * Konsolidiert alle Hero-Styles + 4 Gradient-Varianten
 */

/* Base Hero Styles */
/* White background for hero section */
section#hero.hero-b2b,
section#hero.hero-b2b.parallax-container,
section#hero.hero-b2b.scroll-section,
#hero.hero-b2b {
    background: #ffffff !important;
}
section#hero.hero-b2b,
section#hero.hero-b2b.parallax-container,
section#hero.hero-b2b.scroll-section,
#hero.hero-b2b {
    margin-top: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    padding-top: 1rem !important;
}

/* Hero Container - Grid Layout */
.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 2rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

/* DESKTOP: 2-Column Grid (> 1024px) */
@media screen and (min-width: 1025px) {
    .hero-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    .hero-text {
        grid-column: 1;
        text-align: left;
        padding-right: 2rem;
    }

    .hero-visual {
        grid-column: 2;
    }
}

/* MOBILE: Single Column (≤ 1024px) */
@media screen and (max-width: 1024px) {
    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem !important;
    }

    .hero-text {
        text-align: center;
        order: 1;
        padding: 0 !important;
    }

    .hero-visual {
        order: 2;
        width: 100%;
        padding: 0 !important;
    }
}

/* Typography */
.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

@media screen and (max-width: 1024px) {
    .hero-title {
        font-size: 1.75rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.5;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

@media screen and (max-width: 1024px) {
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media screen and (max-width: 480px) {
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Parallax Layers */
.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.parallax-layer-1 {
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
}

.parallax-layer-2 {
    background: radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
}

.hero-btn-primary,
.hero-btn-secondary {
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    width: auto;
    flex-shrink: 0;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 2px solid #667eea;
}

.hero-btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Button element specific styles (for accessibility and Safari/iOS compatibility) */
button.hero-btn-primary,
button.hero-btn-secondary {
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Trust Indicators */
.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media screen and (max-width: 1024px) {
    .hero-trust {
        justify-content: center;
    }
}

.hero-trust-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #059669;
}

/* Browser Mockup */
.browser-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.browser-chrome {
    background: #f7fafc;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    margin-right: 0.5rem;
}

.browser-dot:nth-child(1) { background: #fc5c65; }
.browser-dot:nth-child(2) { background: #fed330; }
.browser-dot:nth-child(3) { background: #26de81; }

.browser-content {
    padding: 2rem;
    text-align: center;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 480px) {
    .browser-content {
        min-height: 300px;
        padding: 1.5rem;
    }
}

.browser-content-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.browser-content-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.browser-content-description {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.browser-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
}

@media screen and (max-width: 480px) {
    .browser-stats {
        gap: 1rem;
    }
}

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

.browser-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.browser-stat-label {
    font-size: 0.875rem;
    color: #718096;
}

/* Browser Trust Badges */
.browser-badge-live {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(220, 38, 38, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: 2px solid rgba(220, 38, 38, 1);
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
    animation: badgePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: 10;
    transition: all 0.3s ease;
}

.browser-badge-live:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.7);
}

.browser-badges-right {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.browser-badge-compliance {
    background: rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid rgba(16, 185, 129, 0.5);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.browser-badge-compliance:hover {
    background: rgba(16, 185, 129, 0.25);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.browser-badge-compliance:hover::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    animation: glossSweep 0.8s ease-in-out;
}

/* Badge Animations */
@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes glossSweep {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Mobile Adjustments for Badges */
@media screen and (max-width: 480px) {
    .browser-badge-live,
    .browser-badge-compliance {
        font-size: 0.625rem;
        padding: 0.375rem 0.75rem;
    }

    .browser-badges-right {
        gap: 0.375rem;
    }
}

/* ==========================================================================
   MOBILE: Hero Logo & Text Container - Einheitliche Abstände (2025-11-13)
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .hero-logo {
        width: 280px !important;
        max-width: 90% !important;
    }

    .hero-logo-container {
        margin-bottom: 1rem !important;
        padding: 0 1.5rem !important;
    }

    .hero-description {
        padding: 0 1.5rem !important;
        font-size: 0.95rem !important;
    }

    .hero-actions {
        padding: 0 1.5rem !important;
    }
}

@media screen and (max-width: 480px) {
    .hero-logo {
        width: 240px !important;
        max-width: 85% !important;
    }

    .hero-description {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }
}
