/* News Ticker Styles */
.news-ticker {
    display: none;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 700;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 900;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}

.ticker-content span {
    display: inline-block;
    padding-right: 50px;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    width: 95%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-gallery {
    max-width: 800px;
    padding: 0 !important;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

@keyframes modalSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 4000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Wird via JS eingeblendet */
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
    z-index: 4001;
}

.lightbox-nav:hover {
    background: var(--primary-color);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Track Modal Specifics */
.track-image-container {
    width: 100%;
    height: 400px;
    position: relative;
    cursor: zoom-in;
    background: #000;
}

.track-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modal-track-content {
    padding: 2rem;
    background: var(--card-bg);
}

.modal-dots .dot {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-dots .dot.active {
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-download {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.95rem;
}

/* Specific News/Event Card Helpers */
.event-date.multi-day {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 1rem;
}

.event-date.single-day {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.event-card.type-news .event-date {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}