/* Marquee Scroll-Text Komponente */
.event-marquee-wrapper {
    width: 100vw;
    position: fixed;
    bottom: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 0;
    background-color: #000000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transform: rotate(-1deg) translateY(-10px);
    transform-origin: center bottom;
}

/* Anpassung für den Footer-Abstand */
.footer {
    padding-bottom: 40px !important;
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee 20s linear infinite;
    color: #ffffff;
    padding: 0;
}

@media (min-width: 768px) {
    .marquee-track {
        padding: 0;
    }
}

/* Nur auf Desktop-Geräten pausieren bei Hover */
@media (min-width: 768px) {
    .event-marquee-wrapper:hover .marquee-track {
        animation-play-state: paused;
    }
}

.marquee-item {
    display: flex;
    align-items: center;
    padding: 0 2px;
    gap: 2px;
}

.marquee-text {
    font-family: 'UberMove', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 0.7rem;
    line-height: 1;
    padding-right: 2px;
    white-space: nowrap;
    text-shadow: none;
}

@media (min-width: 768px) {
    .marquee-text {
        font-size: 0.75rem;
        line-height: 1;
        letter-spacing: 0.02em;
    }
}

.marquee-button {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 3px;
    text-decoration: none;
    font-family: 'UberMove', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 0.7rem;
    line-height: 1;
    transition: all 0.2s ease;
    white-space: nowrap;
    pointer-events: auto;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    margin: 0 5px;
    color: #000000 !important;
    background-color: #ffff00 !important;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

.marquee-button:hover {
    opacity: 0.8;
    transform: scale(1.05);
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.marquee-button svg {
    width: 12px;
    height: 12px;
}

.marquee-icon {
    flex-shrink: 0;
}

/* Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-25%);
    }
}

/* Responsive Anpassungen für Mobile */
@media (max-width: 767px) {
    .event-marquee-wrapper {
        transform: rotate(-0.8deg) translateY(-5px);
        padding: 14px 0; /* Mehr Padding oben/unten */
    }
    
    .marquee-track {
        animation-duration: 15s; /* Schnellere Animation auf Mobile */
    }
    
    .marquee-content {
        gap: 40px; /* Mehr Abstand zwischen Items */
    }
    
    .marquee-text {
        padding-right: 30px;
        font-size: 1.2rem; /* Deutlich größere Schrift */
        letter-spacing: 0.03em;
        font-weight: 600; /* Stärkere Schrift */
    }
    
    .marquee-button {
        padding: 10px 20px; /* Größerer Button */
        font-size: 1.1rem; /* Größere Schrift im Button */
        margin: 0 15px;
        border-radius: 5px;
        font-weight: 500;
    }
    
    .marquee-button svg,
    .marquee-button img.marquee-icon {
        width: 18px; /* Deutlich größeres Icon */
        height: 18px;
        margin-right: 8px;
    }
    
    .marquee-item {
        padding: 0 12px;
        gap: 15px;
    }
}

/* Zusätzliche Anpassungen für sehr kleine Bildschirme */
@media (max-width: 375px) {
    .marquee-text {
        font-size: 1.1rem; /* Größere Schrift auch auf kleinen Geräten */
        padding-right: 20px;
    }
    
    .marquee-button {
        padding: 8px 16px;
        font-size: 1rem;
        margin: 0 10px;
    }
    
    .marquee-button svg,
    .marquee-button img.marquee-icon {
        width: 16px;
        height: 16px;
    }
}

/* Desktop Anpassungen */
@media (min-width: 768px) {
    .event-marquee-wrapper {
        transform: rotate(-0.5deg) translateY(-15px);
        padding: 12px 0;
        box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.4);
    }
    
    .marquee-track {
        animation-duration: 30s; /* Langsamere Animation auf Desktop */
    }
    
    .marquee-text {
        font-size: 1.2rem;
        padding-right: 80px;
        letter-spacing: 0.05em;
    }
    
    .marquee-button {
        padding: 10px 20px;
        font-size: 1rem;
        margin: 0 30px;
        border-radius: 4px;
        gap: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .marquee-button:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    
    .marquee-button svg,
    .marquee-button img.marquee-icon {
        width: 18px;
        height: 18px;
    }
    
    .marquee-item {
        padding: 0 20px;
        gap: 20px;
    }
    
    /* Größerer Footer-Abstand auf Desktop */
    .footer {
        padding-bottom: 70px !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .marquee-container {
        animation: none;
    }
    
    .marquee-container {
        overflow-x: auto;
        scroll-behavior: smooth;
    }
}

/* Focus-Styles für Barrierefreiheit */
.marquee-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Glasmorphism-Effekt für Button */
.marquee-button.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Button Container */
.button-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Shine-Effekt für Button */
.marquee-button.shine-effect {
    background: linear-gradient(45deg, #ffff00, #fff700, #ffff00);
    background-size: 200% 200%;
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .marquee-button:focus {
        outline-color: #ffff00;
    }
}
