/* =========================================================
   TIMELINE – HAUPTANSICHT
   ========================================================= */

.timeline_page {
    --tl-bg: #160d08;
    --tl-panel: #1c100a;
    --tl-panel-soft: #24140c;
    --tl-panel-light: #302014;
    --tl-border: #50321d;
    --tl-border-soft: #3f2818;
    --tl-accent: #98602d;
    --tl-accent-light: #c58b45;
    --tl-gold: #d6a363;
    --tl-gold-light: #ead0a1;
    --tl-text: #d9c4a5;
    --tl-muted: #9d856b;

    width: 100%;
    margin: 20px auto;
    padding: 0;

    border-collapse: collapse;
    table-layout: fixed;

    color: var(--tl-text);
    background: var(--tl-bg);

    border-top: 1px solid var(--tl-border);
    border-right: 1px solid var(--tl-border-soft);
    border-bottom: 1px solid var(--tl-border);
    border-left: 4px solid #8c572a;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.30),
        inset 0 0 35px rgba(0, 0, 0, 0.18);
}

.timeline_page,
.timeline_page *,
.timeline_page *::before,
.timeline_page *::after {
    box-sizing: border-box;
}


/* =========================================================
   SEITENÜBERSCHRIFT
   ========================================================= */

.timeline_page_headline {
    position: relative;
    width: 100%;
    min-height: 52px;
    padding: 15px 22px;

    color: var(--tl-gold);

    background:
        linear-gradient(
            90deg,
            rgba(58, 36, 22, 0.96),
            rgba(36, 20, 12, 0.96)
        );

    border: 0;
    border-bottom: 1px solid #68401f;

    font-family: Cinzel, Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 2.3px;
    text-transform: uppercase;
}

.timeline_page_headline span {
    display: flex;
    align-items: center;
    width: 100%;
}

.timeline_page_headline span::after {
    content: "";
    height: 1px;
    flex: 1;
    margin-left: 18px;

    background:
        linear-gradient(
            90deg,
            rgba(197, 139, 69, 0.55),
            transparent
        );
}


/* =========================================================
   BEREICH ZUM HINZUFÜGEN
   ========================================================= */

.timeline_add_area {
    padding: 0;

    color: var(--tl-text);
    background: rgba(28, 16, 10, 0.88);

    border: 0;
}

.timeline_add_area:empty {
    display: none;
}

.timeline_add_area > div,
.timeline_add_area > form {
    margin: 0;
    padding: 12px 20px;

    border-bottom: 1px solid rgba(197, 139, 69, 0.16);
}

.timeline_add_area a:link,
.timeline_add_area a:visited,
.timeline_add_area a:active {
    display: inline-block;
    padding: 8px 12px;

    color: #d5a66d;
    background: #2f1c10;

    border: 1px solid #70451f;
    border-radius: 0;

    font-family: Cinzel, Georgia, serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.timeline_add_area a:hover {
    color: #160d08;
    background: #d1a267;
    border-color: #d1a267;
}


/* =========================================================
   INHALTSBEREICH
   ========================================================= */

.timeline_page_body {
    padding: 24px 26px 26px;

    color: var(--tl-text);

    background:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 10px,
            rgba(197, 139, 69, 0.012) 10px,
            rgba(197, 139, 69, 0.012) 11px
        ),
        #1a0f09;

    border: 0;
}


/* =========================================================
   TIMELINE
   ========================================================= */

#timeline {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 6px 0 6px 76px;
}


/* Vertikale Linie */

#timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 29px;

    width: 2px;

    background:
        linear-gradient(
            180deg,
            transparent,
            #815127 4%,
            #a46a32 50%,
            #815127 96%,
            transparent
        );

    box-shadow: 0 0 12px rgba(197, 139, 69, 0.12);
}


/* =========================================================
   EINZELNER TIMELINE-EINTRAG
   ========================================================= */

#timeline .timeline_event {
    position: relative;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;

    background: transparent;
}

#timeline .timeline_event:last-child {
    margin-bottom: 0;
}


/* =========================================================
   MARKIERUNG AUF DER LINIE
   ========================================================= */

.timeline_event_marker {
    position: absolute;
    top: 24px;
    left: -59px;
    z-index: 2;

    width: 25px;
    height: 25px;

    background: #24140c;

    border: 4px solid #98602d;
    border-radius: 50%;

    box-shadow:
        0 0 0 4px #1a0f09,
        0 0 14px rgba(197, 139, 69, 0.25);
}

.timeline_event_marker::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;

    width: 7px;
    height: 7px;

    background: #d1a267;
    border-radius: 50%;
}


/* Verbindung zwischen Linie und Karte */

.timeline_event::before {
    content: "";
    position: absolute;
    top: 36px;
    left: -34px;

    width: 34px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            #98602d,
            rgba(152, 96, 45, 0.18)
        );
}


/* =========================================================
   EREIGNISKARTE
   ========================================================= */

.timeline_event_content {
    position: relative;
    width: 100%;
    min-height: 130px;
    padding: 0 20px 17px;
    overflow: hidden;

    color: var(--tl-text);

    background:
        linear-gradient(
            115deg,
            rgba(197, 139, 69, 0.045),
            transparent 48%
        ),
        rgba(36, 20, 12, 0.84);

    border-top: 1px solid rgba(197, 139, 69, 0.23);
    border-right: 1px solid rgba(197, 139, 69, 0.13);
    border-bottom: 1px solid rgba(197, 139, 69, 0.23);
    border-left: 4px solid #8f592b;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.24),
        inset 0 0 24px rgba(0, 0, 0, 0.12);
}

.timeline_event_content::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;

    width: 18px;
    height: 18px;

    pointer-events: none;

    border-top: 1px solid rgba(197, 139, 69, 0.22);
    border-right: 1px solid rgba(197, 139, 69, 0.22);
}


/* =========================================================
   KOPFBEREICH
   ========================================================= */

.timeline_event_header {
    width: auto;
    margin: 0 -20px 16px;
    padding: 13px 20px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 15px;

    background:
        linear-gradient(
            90deg,
            rgba(58, 36, 22, 0.82),
            rgba(36, 20, 12, 0.72)
        );

    border-bottom: 1px solid #68401f;
}


/* =========================================================
   DATUM
   ========================================================= */

.timeline_event_date {
    flex-shrink: 0;
    padding: 6px 9px;

    color: #160d08;
    background: #c58b45;

    border: 1px solid #d2a064;

    font-family: Cinzel, Georgia, serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.timeline_event_date a:link,
.timeline_event_date a:visited,
.timeline_event_date a:active {
    color: #160d08;
}


/* =========================================================
   TITEL
   ========================================================= */

.timeline_event_title {
    min-width: 0;
    flex: 1;

    color: var(--tl-gold-light);

    font-family: Cinzel, Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1px;
    text-transform: uppercase;

    overflow-wrap: anywhere;
}

.timeline_event_title a:link,
.timeline_event_title a:visited,
.timeline_event_title a:active {
    color: var(--tl-gold-light);
}

.timeline_event_title a:hover {
    color: #ffffff;
}


/* =========================================================
   BESCHREIBUNG
   ========================================================= */

.timeline_event_description {
    width: 100%;
    padding: 0 4px 12px;

    color: #d6c0a1;

    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: normal;
    line-height: 180%;
    text-align: justify;
}

.timeline_event_description p {
    margin: 0 0 12px;
}

.timeline_event_description p:last-child {
    margin-bottom: 0;
}

.timeline_event_description a:link,
.timeline_event_description a:visited,
.timeline_event_description a:active {
    color: #d2a064;
    text-decoration: underline;
    text-decoration-color: rgba(210, 160, 100, 0.35);
    text-underline-offset: 3px;
}

.timeline_event_description a:hover {
    color: #f0d3a7;
}


/* =========================================================
   BEARBEITUNGSOPTIONEN
   ========================================================= */

.timeline_event_option {
    min-height: 0;
    margin-top: 4px;
    padding-top: 10px;

    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;

    border-top: 1px solid rgba(197, 139, 69, 0.14);

    color: #9e8262;

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.3;
}

.timeline_event_option:empty {
    display: none;
}

.timeline_event_option a:link,
.timeline_event_option a:visited,
.timeline_event_option a:active {
    display: inline-block;
    padding: 6px 9px;

    color: #b98e5b;
    background: #2b190e;

    border: 1px solid #5e391e;
    border-radius: 0;

    font-family: Arial, sans-serif;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.timeline_event_option a:hover {
    color: #160d08;
    background: #d1a267;
    border-color: #d1a267;
}

.timeline_event_option i {
    padding: 0;
}


/* =========================================================
   ALTE TIMELINE-KLASSEN NEUTRALISIEREN
   ========================================================= */

/*
   Falls ein älteres Timeline-Bit noch zwischengespeichert ist,
   verhindert dieser Bereich Konflikte mit dem Kalender.
*/

#timeline > .event {
    background: transparent !important;
    box-shadow: none;
}

#timeline > .event strong {
    color: inherit !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media screen and (max-width: 700px) {

    .timeline_page_body {
        padding: 18px 15px 20px;
    }

    #timeline {
        padding-left: 57px;
    }

    #timeline::before {
        left: 20px;
    }

    .timeline_event_marker {
        left: -49px;
    }

    .timeline_event::before {
        left: -25px;
        width: 25px;
    }

    .timeline_event_header {
        align-items: flex-start;
        flex-direction: column;
    }

    .timeline_event_title {
        width: 100%;
        font-size: 15px;
    }

}

@media screen and (max-width: 480px) {

    .timeline_page_headline {
        padding: 13px 15px;

        font-size: 15px;
        letter-spacing: 1.5px;
    }

    .timeline_page_body {
        padding: 14px 10px 16px;
    }

    #timeline {
        padding-left: 39px;
    }

    #timeline::before {
        left: 12px;
    }

    .timeline_event_marker {
        top: 21px;
        left: -37px;

        width: 21px;
        height: 21px;

        border-width: 3px;
    }

    .timeline_event_marker::after {
        top: 4px;
        left: 4px;

        width: 7px;
        height: 7px;
    }

    .timeline_event::before {
        top: 31px;
        left: -17px;

        width: 17px;
    }

    .timeline_event_content {
        padding-right: 14px;
        padding-left: 14px;
    }

    .timeline_event_header {
        margin-right: -14px;
        margin-left: -14px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .timeline_event_date {
        font-size: 11px;
    }

    .timeline_event_title {
        font-size: 14px;
    }

    .timeline_event_description {
        padding-right: 0;
        padding-left: 0;

        font-size: 13px;
        line-height: 175%;
        text-align: left;
    }

}