/* ===================================
   HERO SECTION - Modern (Palette unverändert)
   =================================== */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 180px 24px 120px;
    background: var(--bg-darker);
}

/* Sanfte Lichtinszenierung — nur Desktop / Performance-freundlich */
.hero--modern {
    isolation: isolate;
}

/* Nur Hero: weiche Tiefenstufe (kein reines #000) — Mobile bleibt im Media-Block */
@media (min-width: 769px) {
    .hero.hero--modern {
        background:
            radial-gradient(ellipse 95% 55% at 50% 0%, rgba(255, 215, 0, 0.05) 0%, transparent 52%),
            linear-gradient(180deg, #000000 0%, #050505 42%, #000000 100%);
    }
}

.hero-ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-ambient__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.hero-ambient__glow--1 {
    width: min(80vw, 640px);
    height: min(80vw, 640px);
    top: -15%;
    right: -10%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
}

.hero-ambient__glow--2 {
    width: min(60vw, 480px);
    height: min(60vw, 480px);
    bottom: 5%;
    left: -15%;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.12) 0%, transparent 70%);
    opacity: 0.6;
}

.hero-ambient__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(120vmin, 900px);
    height: min(120vmin, 900px);
    transform: translate(-50%, -48%);
    border: 1px solid rgba(255, 215, 0, 0.08);
    border-radius: 50%;
    opacity: 0.9;
}

/* Hero Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-color: transparent;
    background-image:
        linear-gradient(rgba(255, 215, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
}

.hero-gradient {
    display: none;
}

#particles-canvas {
    position: absolute;
    inset: 0;
    opacity: 0.3;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.hero-eyebrow {
    font-size: clamp(0.7rem, 0.65rem + 0.35vw, 0.75rem);
    font-weight: 600;
    letter-spacing: clamp(0.14em, 0.1em + 0.35vw, 0.2em);
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    animation: fadeInUp 0.5s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255, 215, 0, 0.07);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 100px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    animation: fadeInUp 0.6s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.375rem, 1.15rem + 3.8vw, 4.85rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 28px 0;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.6s ease 0.1s backwards;
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-wrap: balance;
}

.hero-title-line {
    display: block;
}

.hero-title-line--accent {
    margin-top: 0.06em;
}

.hero-description {
    font-size: clamp(0.95rem, 0.88rem + 0.5vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease 0.2s backwards;
    opacity: 0.95;
    text-wrap: pretty;
}

/* Hero Stats — in einer weichen „Karte“ */
.hero-stats-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 8px;
    border-radius: var(--radius-2xl, 28px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 215, 0, 0.12);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0;
    max-width: none;
    border-radius: calc(var(--radius-2xl, 28px) - 6px);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.hero-stats .stat-item {
    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0;
}

.hero-stats .stat-item:last-child {
    border-right: none;
}

.stat-item {
    text-align: center;
    padding: 24px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl, 24px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary);
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 0.9rem + 1.5vw, 2.2rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

/* Ziffern in der Hero-Stat-Zeile etwas ruhiger skalieren */
.hero .hero-stats .stat-label {
    font-size: clamp(0.7rem, 0.65rem + 0.2vw, 0.88rem);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

/* Tastatur-Fokus & Textauswahl nur im Hero (Probe-Look) */
.hero a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.hero a.btn-primary:focus-visible,
.hero a.btn-secondary:focus-visible {
    border-radius: var(--radius-lg, 20px);
}

.hero :is(p, h1, span, a, .stat-value, .stat-label)::selection {
    background: rgba(255, 215, 0, 0.28);
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats .stat-item {
        border-right: 1px solid rgba(255, 255, 255, 0.06);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .hero-stats .stat-item:nth-child(2n) {
        border-right: none;
    }

    .hero-stats .stat-item:nth-child(n + 3) {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stats .stat-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .hero-stats .stat-item:last-child {
        border-bottom: none !important;
    }
}

/* Scroll Indicator — transform in Animation muss translateX(-50%) behalten (sonst Zentrier-Sprung) */
@keyframes scrollIndicatorReveal {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    /* Nur translateX(-50%) als statischer Basis-Transform, vertikale Bewegung nur in @keyframes */
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: scrollIndicatorReveal 0.7s ease 0.45s both;
    z-index: 5;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    will-change: transform, opacity;
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

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

/* ULTRA MOBILE PERFORMANCE OPTIMIZATION - No Lag! */
@media (max-width: 768px) {
    /* Completely disable particles and heavy layers */
    #particles-canvas,
    .hero-ambient,
    .hero-bg,
    .hero-bg::before,
    .hero-bg::after,
    .hero-grid,
    .hero-gradient {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* Simple, static hero */
    .hero {
        min-height: 90vh;
        padding: 140px 20px 80px;
        background: var(--bg-darker) !important;
        /* visible ließ Inhalte horizontal über den Viewport; overflow-x-Scroll entsteht */
        overflow: hidden;
    }

    .hero-stats-wrap {
        padding: 0;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: none !important;
    }

    .hero-stats {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Remove ALL animations, transforms, and transitions */
    .hero *,
    .hero-title,
    .hero-description,
    .hero-badge,
    .hero-stats,
    .hero-cta,
    .hero [data-aos],
    .stat-item,
    .badge-dot {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
        -webkit-animation: none !important;
        -webkit-transform: none !important;
        -webkit-transition: none !important;
    }

    /* Static, simple text - no effects */
    .hero-title {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        transform: none !important;
        -webkit-transform: none !important;
        text-rendering: optimizeSpeed;
    }
    
    /* Disable hover effects on mobile */
    .stat-item:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Remove gradient text - solid color only */
    .gradient-text,
    .hero-title-line--accent,
    .stat-value {
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: var(--primary) !important;
        background-clip: unset !important;
        color: var(--primary) !important;
        text-shadow: none !important;
    }
    
    .hero-stats {
        gap: 0;
        margin-top: 0;
    }
    
    .stat-item {
        padding: 16px;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
    }
    
    .stat-value {
        font-size: 26px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .scroll-indicator {
        display: none !important;
    }
    
    .hero-badge {
        margin-bottom: 24px;
    }
    
    .badge-dot {
        animation: none !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 16px 60px;
    }

    .hero-eyebrow {
        letter-spacing: 0.12em;
        font-size: 11px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-stats .stat-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .hero-stats .stat-item:last-child {
        border-bottom: none !important;
    }
    
    .stat-item {
        padding: 14px;
    }
    
    .stat-value {
        font-size: 24px;
    }
}
