/**
 * Events Aria — Responsive Styles
 * Mobile-first Ergaenzungen
 */

/* ==========================================
   MOBILE MENU
   ========================================== */

.ea-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 8999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ea-mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
}

.ea-mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.ea-mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--ea-surface);
    border-left: 1px solid var(--ea-white-05);
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    overflow-y: auto;
}

.ea-mobile-menu.is-open .ea-mobile-menu__panel {
    transform: translateX(0);
}

.ea-mobile-menu__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--ea-white-10);
    border-radius: 50%;
    color: var(--ea-gold);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ea-mobile-menu__close:hover {
    border-color: var(--ea-gold);
    background: var(--ea-gold-glow);
}

.ea-mobile-menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ea-mobile-menu__list li {
    border-bottom: 1px solid var(--ea-white-05);
}

.ea-mobile-menu__list a {
    display: block;
    padding: 16px 0;
    font-family: var(--ea-font-display);
    font-size: 1.25rem;
    color: var(--ea-white);
    transition: color 0.2s ease;
}

.ea-mobile-menu__list a:hover {
    color: var(--ea-gold);
}

.ea-mobile-menu__cta {
    margin-top: 32px;
    width: 100%;
    justify-content: center;
}

/* ==========================================
   NOISE OVERLAY
   ========================================== */

.ea-noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0.025;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* ==========================================
   CANVAS PARTICLES
   ========================================== */

#eaParticleCanvas {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* Desktop Navigation anzeigen */
@media (min-width: 1025px) {
    .ea-nav__toggle {
        display: none !important;
    }
    .ea-mobile-menu {
        display: none !important;
    }
}

/* Tablet (bis 1024px) */
@media (max-width: 1024px) {
    .ea-nav__menu,
    .ea-nav__cta {
        display: none;
    }
    
    .ea-nav__toggle {
        display: flex;
    }
    
    .ea-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .ea-timeline::before {
        left: 24px;
    }
    
    .ea-timeline__item,
    .ea-timeline__item:nth-child(even) {
        flex-direction: row;
    }
    
    .ea-timeline__content {
        width: calc(100% - 60px);
        margin-left: 48px;
    }
    
    .ea-timeline__node {
        left: 24px;
        transform: translateX(-50%);
    }
    
    .ea-dashboard__sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 200;
    }
    
    .ea-dashboard__sidebar.is-open {
        transform: translateX(0);
    }
    
    .ea-dashboard__main {
        margin-left: 0 !important;
    }
}

/* Mobile (bis 768px) */
@media (max-width: 768px) {
    :root {
        --ea-nav-height: 64px;
        --ea-section-gap: 80px;
    }
    
    .ea-hero__content {
        transform: rotate(-0.5deg);
    }
    
    .ea-hero__title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .ea-hero__actions {
        flex-direction: column;
    }
    
    .ea-hero__actions .ea-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ea-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 40px 0;
    }
    
    .ea-stat__number {
        font-size: 2rem;
    }
    
    .ea-features-grid,
    .ea-footer__grid {
        grid-template-columns: 1fr !important;
    }
    
    .ea-footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .ea-section {
        padding: 60px 0;
    }
    
    .ea-account-type {
        grid-template-columns: 1fr !important;
    }
    
    .ea-search-bar {
        flex-direction: column;
    }
    
    .ea-search-bar__btn {
        width: 100%;
    }
    
    .ea-steps {
        gap: 0.25rem;
    }
    
    .ea-step__connector {
        width: 30px;
    }
    
    .ea-cta__inner {
        padding: 2rem;
    }
    
    .ea-timeline__content {
        margin-left: 40px;
        width: calc(100% - 52px);
    }
    
    .ea-timeline::before {
        left: 16px;
    }
    
    .ea-timeline__node {
        left: 16px;
        width: 12px;
        height: 12px;
    }
    
    .ea-marquee__item {
        font-size: 0.75rem;
        padding: 0 1rem;
    }
    
    /* Provider cards on mobile */
    .ea-provider-card {
        transform: none !important;
    }
    
    .ea-card {
        transform: none !important;
    }
    
    .ea-faq-item {
        transform: none !important;
    }
}

/* Small Mobile (bis 480px) */
@media (max-width: 480px) {
    .ea-container {
        padding: 0 1rem;
    }
    
    .ea-nav__inner {
        padding: 0 1rem;
    }
    
    .ea-hero__frame {
        inset: 12px;
    }
    
    .ea-stat__number {
        font-size: 1.5rem;
    }
    
    .ea-stat__label {
        font-size: 0.625rem;
    }
    
    .ea-mobile-menu__panel {
        width: 100%;
        max-width: none;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .ea-marquee__track {
        animation: none !important;
    }
    
    .ea-fade-up {
        opacity: 1 !important;
        transform: none !important;
    }
    
    #eaParticleCanvas {
        display: none !important;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .ea-nav,
    .ea-mobile-menu,
    .ea-scroll-progress,
    .ea-noise,
    #eaParticleCanvas,
    .ea-footer__social,
    .ea-btn {
        display: none !important;
    }
    
    body {
        background: #fff !important;
        color: #000 !important;
    }
    
    .ea-card {
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
}
