/* Shared event timeline (Zeitplan + Bewerb-Detail) */

.evt-zp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.evt-zp-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--muted, #64748b);
    font-size: 0.84rem;
    font-weight: 600;
}

.evt-zp-meta i {
    color: var(--red, #d63638);
}

.evt-zp-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: rgba(214, 54, 56, 0.1);
    color: var(--red, #d63638);
    font-size: 0.76rem;
    font-weight: 800;
}

.evt-zp-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    background: var(--dark, #1a1a1a);
    color: #fff !important;
    font-family: 'Oswald', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s ease, transform 0.2s ease;
}

.evt-zp-pdf-btn:hover {
    background: var(--red, #d63638);
    transform: translateY(-1px);
}

.evt-zp-empty {
    padding: 2.5rem 1.25rem;
    border-radius: 12px;
    background: #fff;
    border: 1px dashed var(--border, #e2e8f0);
    text-align: center;
    color: var(--muted, #64748b);
}

.evt-zp-empty i {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--border, #cbd5e1);
    font-size: 1.75rem;
}

.evt-day-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.evt-day-btn {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 999px;
    background: #fff;
    color: var(--muted, #64748b);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.evt-day-btn:hover,
.evt-day-btn.is-active {
    border-color: var(--red, #d63638);
    background: rgba(214, 54, 56, 0.08);
    color: var(--red, #d63638);
}

.evt-day-btn.is-active {
    background: var(--red, #d63638);
    color: #fff;
}

.evt-day-panel {
    display: none;
}

.evt-day-panel.is-active {
    display: block;
}

.evt-day-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--muted, #64748b);
    text-transform: uppercase;
}

.evt-day-label i {
    color: var(--red, #d63638);
}

.evt-timeline {
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.evt-tl-item {
    display: grid;
    grid-template-columns: 5.25rem 24px 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.15rem;
}

.evt-tl-item:last-child {
    margin-bottom: 0;
}

.evt-tl-item:last-child .evt-tl-rail::before {
    bottom: auto;
    height: 1.2rem;
}

.evt-tl-time {
    padding-top: 0.35rem;
    text-align: right;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--red, #d63638);
    position: relative;
    z-index: 2;
}

.evt-tl-time small {
    display: block;
    margin-top: 0.15rem;
    color: var(--muted, #64748b);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
}

.evt-tl-rail {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 100%;
}

.evt-tl-rail::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: -1.15rem;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--red, #d63638) 0%, var(--border, #e2e8f0) 100%);
    border-radius: 2px;
    z-index: 0;
}

.evt-tl-marker {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 0.55rem;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--border, #cbd5e1);
    box-shadow: 0 0 0 3px #fff;
}

.evt-tl-item.is-highlight .evt-tl-marker {
    background: var(--red, #d63638);
    border-color: var(--red, #d63638);
    box-shadow: 0 0 0 4px rgba(214, 54, 56, 0.15);
}

.evt-tl-card {
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(15, 15, 15, 0.05);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.evt-tl-item:hover .evt-tl-card {
    transform: translateX(4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
    border-color: rgba(214, 54, 56, 0.12);
}

.evt-tl-item.is-highlight .evt-tl-card {
    border-left: 4px solid var(--red, #d63638);
}

.evt-tl-cat {
    display: inline-block;
    margin-bottom: 0.4rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.evt-tl-cat--race {
    background: rgba(214, 54, 56, 0.1);
    color: var(--red, #d63638);
}

.evt-tl-cat--registration {
    background: #eff6ff;
    color: #1d4ed8;
}

.evt-tl-cat--ceremony {
    background: #fef9c3;
    color: #a16207;
}

.evt-tl-cat--info {
    background: #f1f5f9;
    color: #64748b;
}

.evt-tl-title {
    margin: 0 0 0.45rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    color: var(--dark, #1a1a1a);
    text-transform: uppercase;
}

.evt-tl-ort {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    font-size: 0.8rem;
    color: var(--muted, #64748b);
    font-weight: 600;
}

.evt-tl-ort i {
    color: var(--red, #d63638);
    font-size: 0.74rem;
}

.evt-tl-desc {
    font-size: 0.86rem;
    color: var(--mid, #475569);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .evt-zp-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .evt-zp-pdf-btn {
        justify-content: center;
    }

    .evt-day-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
    }

    .evt-day-btn {
        flex: 0 0 auto;
    }

    .evt-tl-item {
        grid-template-columns: 4.5rem 20px 1fr;
        gap: 0.75rem;
    }

    .evt-tl-time {
        font-size: 0.88rem;
    }
}
