/* ============================================================
 * WKHL Timeline (ausfuehrlich) - Basis-Styling
 * Alles unter .wkhl-detailed-timeline gekapselt, damit es
 * keine anderen Bereiche der Seite beeinflusst.
 * Farben werden per Elementor-Controls ueberschrieben.
 * ============================================================ */

.wkhl-detailed-timeline {
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.wkhl-detailed-timeline *,
.wkhl-detailed-timeline *::before,
.wkhl-detailed-timeline *::after {
    box-sizing: border-box;
}

.wkhl-detailed-timeline p {
    margin: 0;
}

/* Dekorative Blur-Elemente */
.wkhl-detailed-timeline .wkhl-dt-blur {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.wkhl-detailed-timeline .wkhl-dt-blur-1 {
    top: 10%;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(150, 189, 221, 0.08);
    border-radius: 50%;
    filter: blur(80px);
}

.wkhl-detailed-timeline .wkhl-dt-blur-2 {
    top: 50%;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(182, 79, 48, 0.06);
    border-radius: 50%;
    filter: blur(80px);
}

.wkhl-detailed-timeline .timeline-container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.wkhl-detailed-timeline .timeline-wrapper {
    position: relative;
    padding-left: 60px;
}

.wkhl-detailed-timeline .timeline-line {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #E2001A, #E2001A 80%, transparent);
}

.wkhl-detailed-timeline .timeline-year-section {
    margin-bottom: 60px;
}

/* Scroll-Reveal nur wenn JS aktiv ist (sonst bleibt alles sichtbar) */
.wkhl-detailed-timeline.wkhl-js-ready .timeline-year-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.wkhl-detailed-timeline.wkhl-js-ready .timeline-year-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Jahr-Header (klickbar) */
.wkhl-detailed-timeline .year-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.wkhl-detailed-timeline .year-header:hover .year-badge {
    transform: scale(1.05);
}

.wkhl-detailed-timeline .year-circle {
    position: absolute;
    left: -45px;
    width: 30px;
    height: 30px;
    background: #E2001A;
    border-radius: 50%;
    box-shadow: 0 0 0 6px white, 0 0 0 8px #E2001A;
    z-index: 10;
}

.wkhl-detailed-timeline .year-badge {
    background: linear-gradient(135deg, #E2001A, rgba(182, 79, 48, 0.85));
    color: white;
    font-size: 32px;
    font-weight: bold;
    padding: 12px 32px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(182, 79, 48, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease;
}

.wkhl-detailed-timeline .year-badge .chevron {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-top: -4px;
}

.wkhl-detailed-timeline .year-header.collapsed .chevron {
    transform: rotate(-45deg);
    margin-top: 4px;
}

/* Aufklappbarer Inhalt */
.wkhl-detailed-timeline .year-content {
    overflow: hidden;
    max-height: 3000px;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
    opacity: 1;
    margin-top: 30px;
}

.wkhl-detailed-timeline .year-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.wkhl-detailed-timeline .year-content-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Jahr-Beschreibung */
.wkhl-detailed-timeline .year-description {
    background: white;
    border-left: 4px solid #A7A8AA;
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.wkhl-detailed-timeline .year-description:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateX(8px);
}

.wkhl-detailed-timeline .year-description::before {
    content: '';
    position: absolute;
    left: -17px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #A7A8AA;
    border-radius: 50%;
    box-shadow: 0 0 0 4px white;
}

.wkhl-detailed-timeline .year-description p {
    color: #555;
    line-height: 1.7;
}

/* Event-Eintraege */
.wkhl-detailed-timeline .event-item {
    position: relative;
    background: white;
    border-left: 4px solid #A7A8AA;
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.wkhl-detailed-timeline .event-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateX(8px);
    border-left-color: #E2001A;
}

.wkhl-detailed-timeline .event-item::before {
    content: '';
    position: absolute;
    left: -17px;
    top: 24px;
    width: 12px;
    height: 12px;
    background: #A7A8AA;
    border-radius: 50%;
    box-shadow: 0 0 0 4px white;
    transition: background 0.3s ease;
}

.wkhl-detailed-timeline .event-item:hover::before {
    background: #E2001A;
}

.wkhl-detailed-timeline .event-month {
    display: inline-block;
    background: linear-gradient(135deg, #A7A8AA, rgba(150, 189, 221, 0.8));
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.wkhl-detailed-timeline .event-description {
    color: #555;
    line-height: 1.7;
}

/* Mobile Anpassungen */
@media (max-width: 640px) {
    .wkhl-detailed-timeline .timeline-wrapper {
        padding-left: 40px;
    }

    .wkhl-detailed-timeline .timeline-line {
        left: 20px;
    }

    .wkhl-detailed-timeline .year-circle {
        left: -35px;
        width: 24px;
        height: 24px;
    }

    .wkhl-detailed-timeline .year-badge {
        font-size: 24px;
        padding: 8px 20px;
    }

    .wkhl-detailed-timeline .year-badge .chevron {
        width: 10px;
        height: 10px;
    }

    .wkhl-detailed-timeline .event-item::before,
    .wkhl-detailed-timeline .year-description::before {
        left: -13px;
        width: 10px;
        height: 10px;
    }
}
