<!-- ══════════════════════════════════════════
CSS — Farben über CSS-Variablen steuerbar
══════════════════════════════════════════ -->

.tx-chronos:root {
     --tl-track: #01446F;
     --tl-accent: #77ABC8;
     --tl-accent-light: rgba(119,171,200,0.1);
     --tl-bg: #F6F5F2;
     --tl-text-dark: #1a1a2e;
     --tl-text-mid: #5a6070;
     --tl-text-light: #555;
     --tl-white: #fff;
     --tl-orange: #E96A25;
     --tl-font-heading: 'Open Sans', sans-serif;
     --tl-font-body: 'Lato', sans-serif;
 }
.tx-chronos{
    position: relative;
}
/* ── Filter Bar ── */
.tl-filter {
    position: relative; z-index: 200;
    padding: 20px 30px 24px; background: var(--tl-bg);
    display: flex; align-items: center; gap: 14px;
    max-width: 900px; margin: 0 auto;
}
.tl-filter-label {
    font-size: 11px; font-weight: 700; color: var(--tl-text-mid);
    letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap;
}
.tl-filter-range {
    font-size: 12px; font-weight: 700; color: var(--tl-text-dark);
    white-space: nowrap; min-width: 70px; text-align: center;
}
.tl-filter-slider {
    position: relative; flex: 1; height: 28px;
    user-select: none; touch-action: none;
}
.tl-filter-track {
    position: absolute; top: 50%; left: 0; right: 0; height: 3px;
    transform: translateY(-50%); background: #d0d4da; border-radius: 2px;
}
.tl-filter-fill {
    position: absolute; top: 50%; height: 3px; transform: translateY(-50%);
    background: var(--tl-accent); border-radius: 2px; pointer-events: none;
}
.tl-filter-handle {
    position: absolute; top: 50%; width: 16px; height: 16px;
    transform: translate(-50%,-50%); background: var(--tl-white);
    border: 2px solid #999; border-radius: 50%; cursor: grab; z-index: 3;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: border-color 0.2s, box-shadow 0.2s;
}
.tl-filter-handle:hover, .tl-filter-handle.active {
    border-color: var(--tl-accent);
    box-shadow: 0 0 0 3px rgba(90,146,178,0.15);
}
.tl-filter-handle.sq { border-radius: 3px; width: 14px; height: 14px; }
.tl-filter-ticks {
    position: absolute; top: 50%; left: 0; right: 0; height: 0; pointer-events: none;
}
.tl-filter-tick {
    position: absolute; top: -1px; width: 2px; height: 10px;
    background: rgba(1,68,111,0.2); transform: translateX(-50%) translateY(-50%); border-radius: 1px;
}
.tl-filter-tick-label {
    position: absolute; top: 12px; font-size: 9px; color: var(--tl-text-mid);
    transform: translateX(-50%); white-space: nowrap;
}

/* ── Vertical Timeline Content ── */
.tl-vertical {
    max-width: 900px; margin: 0 0 200px 0; padding: 40px 24px 80px;
}
.tl-vertical__year {
    font-family: var(--tl-font-heading);
    font-size: clamp(48px, 6vw, 90px); font-weight: 400;
    color: var(--tl-track); margin: 60px 0 24px; line-height: 1;
}
.tl-vertical__year:first-child { margin-top: 0; }

.tl-vertical__entry {
    background: var(--tl-white); border-radius: 12px; padding: 24px;
    margin-bottom: 32px; border-left: 4px solid var(--tl-accent);
    display: flex; gap: 20px; align-items: flex-start;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
}
.tl-vertical__media {
    flex-shrink: 0; width: 400px; display: flex; flex-direction: column;
}
.tl-vertical__img {
    width: 100%; aspect-ratio: 5/4; border-radius: 8px; background: #eee;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.tl-vertical__img img {
    width: 100%; height: 100%; object-fit: cover;
}
.tl-vertical__img-placeholder {
    width: 32px; height: 32px; opacity: 0.15;
}
.tl-vertical__caption {
    font-family: var(--tl-font-heading); font-size: 12px; line-height: 1.5;
    color: #999; font-style: italic; margin-top: 6px;
}
.tl-vertical__body { flex: 1; min-width: 0; }
.tl-vertical__org {
    font-family: var(--tl-font-heading); font-size: 12px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--tl-accent); margin-bottom: 6px;
}
.tl-vertical__title {
    font-family: var(--tl-font-heading); font-size: 28px; font-weight: 700;
    line-height: 1.3; color: #1a1a1a; margin-bottom: 10px;
}
.tl-vertical__desc {
    font-family: var(--tl-font-heading); font-size: 17px; line-height: 1.7;
    color: var(--tl-text-light); font-weight: 300;
}
.tl-vertical__quote {
    font-family: var(--tl-font-heading); font-size: 14px; line-height: 1.6;
    font-style: italic; color: #666; margin-top: 10px; padding: 10px;
    background: #f5f5f5; border-radius: 6px; border-left: 3px solid #ccc;
}
.tl-vertical__quote-author {
    font-size: 11px; font-weight: 600; color: #999;
    margin-top: 6px; font-style: normal;
}
.tl-vertical__tag {
    display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 3px;
    font-family: var(--tl-font-heading); font-size: 11px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    background: var(--tl-accent-light); color: var(--tl-accent);
}
.tl-vertical__link {
    display: inline-block; margin-top: 12px;
}

/* ── Mobile ── */
@media (max-width: 900px) {
    .tl-vertical { padding: 16px; max-width: 100%; margin: 0; }
    .tl-vertical__year { font-size: clamp(36px,10vw,56px); margin: 40px 0 16px; }
    .tl-vertical__entry {
        flex-direction: column; padding: 14px; margin: 0 0 20px 0;
        border-radius: 10px; gap: 12px;
    }
    .tl-vertical__media { width: 100%; }
    .tl-vertical__title { font-size: 20px; margin-bottom: 8px; }
    .tl-vertical__org { font-size: 11px; margin-bottom: 4px; }
    .tl-vertical__desc { font-size: 15px; line-height: 1.6; }
    .tl-vertical__quote { font-size: 13px; padding: 8px; }
    .tl-vertical__tag { font-size: 10px; margin-top: 8px; }
    .tl-vertical__caption { font-size: 11px; }
    .tl-filter { max-width: 100%; padding: 12px 12px 16px; margin: 0; }
}



/* ══════════════════════════════════════════
   ACCORDION – Desktop: Button versteckt, Inhalt offen
   ══════════════════════════════════════════ */
.tl-accordion-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 6px 0;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--tl-accent);
}
.tl-accordion-toggle svg {
    width: 22px;
    height: 22px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.tl-accordion-content {
    /* Desktop: immer offen */
}

/* ══════════════════════════════════════════
   TABLET + MOBILE ≤ 765px
   ══════════════════════════════════════════ */
@media(max-width: 992px){
    .tl-card-media{
        width: 200px!important;
    }
}
@media (max-width: 765px) {

    /* ── Scene-Wrap + Canvas zentrieren ── */
    #tl-scene-wrap {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    #tl-scene-wrap canvas {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
    }

    /* ── Card-Layer zentrieren ── */
    #tl-card-layer {
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    /* ── Timeline-Container ── */
    .tl-vertical {
        padding: 16px 12px 60px;
        max-width: 100%;
        margin: 0 auto;
    }

    /* ── Jahreszahlen zentriert ── */
    .tl-vertical__year {
        font-size: clamp(32px, 10vw, 48px);
        margin: 32px 0 12px;
        text-align: center;
    }

    /* ── Einträge: zentriert, vertikal, Card-Stil ── */
    .tl-vertical__entry {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0;
        margin: 0 auto 24px;
        max-width: 500px;
        width: 100%;
        border-left: none;
        border-top: 4px solid var(--tl-accent);
        border-radius: 12px;
        overflow: hidden;
        gap: 0;
    }

    /* ── Bild: volle Breite, 16:9 ── */
    .tl-vertical__media {
        width: 100%;
    }
    .tl-vertical__img {
        aspect-ratio: 16 / 9;
        border-radius: 0;
        width: 100%;
    }
    .tl-vertical__caption {
        display: none;
    }

    /* ── Body ── */
    .tl-vertical__body {
        width: 100%;
        padding: 14px 16px;
        text-align: left;
    }

    /* ── Org über Titel ausblenden (kommt im Accordion) ── */
    /*.tl-vertical__body > .tl-vertical__org {*/
    /*    display: none;*/
    /*}*/

    /* ── Titel ── */
    .tl-vertical__title {
        font-size: 18px;
        margin-bottom: 0;
        text-align: center;
        cursor: pointer;
    }

    /* ── Accordion-Pfeil einblenden ── */
    .tl-accordion-toggle {
        display: flex;
    }
    .tl-vertical__entry.tl-open .tl-accordion-toggle svg {
        transform: rotate(180deg);
    }

    /* ── Accordion-Inhalt: eingeklappt ── */
    .tl-accordion-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease,
        padding 0.35s ease;
        padding: 0 16px;
    }
    .tl-vertical__entry.tl-open .tl-accordion-content {
        max-height: 1200px;
        opacity: 1;
        padding: 0 16px 16px;
    }

    /* ── Elemente im Accordion ── */
    .tl-accordion-content .tl-vertical__org {
        margin-top: 8px;
    }
    .tl-accordion-content .tl-vertical__desc {
        font-size: 15px;
        line-height: 1.6;
        margin-top: 8px;
    }
    .tl-accordion-content .tl-vertical__quote {
        font-size: 13px;
        padding: 8px 10px;
        margin-top: 10px;
    }
    .tl-accordion-content .tl-vertical__link {
        margin-top: 12px;
    }

    /* ── Filter ── */
    .tl-filter {
        max-width: 100%;
        padding: 10px 12px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* ── Hint ── */
    #tl-hint {
        font-size: 11px;
        bottom: 12px;
    }
}


/* ══════════════════════════════════════════
   TABLET + MOBILE ≤ 765px
   ══════════════════════════════════════════ */
@media (max-width: 765px) {

    /* ── Scene-Wrap + Canvas zentrieren ── */
    #tl-scene-wrap {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    #tl-scene-wrap canvas {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
    }

    /* ── Timeline-Container ── */
    .tl-vertical {
        padding: 16px 12px 60px;
        max-width: 100%;
        margin: 0 auto;
    }

    /* ── Jahreszahlen zentriert ── */
    .tl-vertical__year {
        font-size: clamp(32px, 10vw, 48px);
        margin: 32px 0 12px;
        text-align: center;
    }

    /* ── Einträge: zentriert, Card-Stil ── */
    .tl-vertical__entry {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0;
        margin: 0 auto 24px;
        max-width: 500px;
        width: 100%;
        border-left: none;
        border-top: 4px solid var(--tl-accent);
        border-radius: 12px;
        overflow: hidden;
        gap: 0;
    }

    /* ── Bild: volle Breite, 16:9 ── */
    .tl-vertical__media {
        width: 100%;
    }
    .tl-vertical__img {
        aspect-ratio: 16 / 9;
        border-radius: 0;
        width: 100%;
    }
    .tl-vertical__caption {
        display: none;
    }

    /* ── Body ── */
    .tl-vertical__body {
        width: 100%;
        padding: 14px 16px;
        text-align: left;
    }

    /* ── Titel ── */
    .tl-vertical__title {
        font-size: 18px;
        margin-bottom: 0;
        text-align: center;
        cursor: pointer;
    }

    /* ── Org, Desc, Quote, Tag, Link: ausblenden ── */
    .tl-vertical__desc,
    .tl-vertical__quote,
    .tl-vertical__tag,
    .tl-vertical__link {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin: 0;
        padding-top: 0;
        padding-bottom: 0;
        transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease,
        margin 0.35s ease;
    }

    /* ── Geöffnet ── */
    .tl-vertical__entry.tl-open .tl-vertical__org {
        max-height: 60px; opacity: 1; margin-bottom: 6px;
    }
    .tl-vertical__entry.tl-open .tl-vertical__desc {
        max-height: 600px; opacity: 1; margin-top: 8px;
        font-size: 15px; line-height: 1.6;
    }
    .tl-vertical__entry.tl-open .tl-vertical__quote {
        max-height: 400px; opacity: 1; margin-top: 10px;
        padding: 8px 10px; font-size: 13px;
    }
    .tl-vertical__entry.tl-open .tl-vertical__tag {
        max-height: 40px; opacity: 1; margin-top: 10px;
    }
    .tl-vertical__entry.tl-open .tl-vertical__link {
        max-height: 60px; opacity: 1; margin-top: 12px;
    }

    /* ── Accordion-Pfeil ── */
    .tl-mob-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 6px 0 10px;
        border: none;
        background: none;
        cursor: pointer;
        color: var(--tl-accent);
    }
    .tl-mob-toggle svg {
        width: 22px;
        height: 22px;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .tl-vertical__entry.tl-open .tl-mob-toggle svg {
        transform: rotate(180deg);
    }

    /* ── Filter ── */
    .tl-filter {
        max-width: 100%;
        padding: 10px 12px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* ── Hint ── */
    #tl-hint {
        font-size: 11px;
        bottom: 12px;
    }

    #tl-scene-wrap{
        display: none !important;
    }
}

/*Accordion unter 765px*/
@media (max-width: 765px) {
    .tl-vertical__body {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        overflow: hidden;
    }

    .tl-vertical__body.tl-open {
        grid-template-rows: 1fr;
    }

    /* Innenwrapper nötig für grid-trick */
    .tl-vertical__body-inner {
        min-height: 0;
        overflow: hidden;
    }

    /* Klick-Indikator am Titel */
    .tl-vertical__title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .tl-vertical__body::after {
        cursor: pointer;
        content: '';
        display: inline-block;
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        flex-shrink: 0;
        margin-top: 15px;
        margin-right: 50%;
        margin-left: 50%;
    }

    .js-tl-entry.tl-open .tl-vertical__body::after {
        transform: rotate(-135deg);
        margin-top: 19px;
    }
}
