/* Icerad Legacy – Zeitstrahl */
.il-timeline {
    --il-ice: #3ea0da;
    --il-ice-dark: #0d5f8a;
    --il-fire: #ff6b35;
    --il-fire-red: #f7345d;
    --il-card: #1d1f23;
    --il-text: #f5f5f5;
    --il-muted: rgba(245, 245, 245, 0.7);
    --il-line-x: 50%;
    position: relative;
    max-width: 1100px;
    margin: 20px auto 40px;
    padding: 10px 0 30px;
}

/* Linie + Scroll-Fortschritt */
.il-line {
    position: absolute;
    top: 0; bottom: 0;
    left: var(--il-line-x);
    width: 4px;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.12);
    border-radius: 4px;
    overflow: hidden;
}
.il-line-fill {
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--il-ice), #8fd3f4);
    box-shadow: 0 0 10px rgba(62, 160, 218, 0.45);
    border-radius: 4px;
    transition: height .1s linear;
}

/* Jahres-Marker */
.il-year {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin: 30px 0 20px;
}
.il-year span {
    background: #141414;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 6px 20px;
    border-radius: 999px;
    border: 2px solid var(--il-ice);
    box-shadow: 0 0 0 6px #f5f5f5;
}

/* Eintraege */
.il-item {
    position: relative;
    width: 50%;
    padding: 0 44px;
    margin-bottom: 36px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.il-item.is-visible { opacity: 1; transform: none; }
.il-left  { margin-right: 50%; }
.il-right { margin-left: 50%; }

.il-dot {
    position: absolute;
    top: 26px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 4px solid rgba(20, 20, 20, 0.25);
    z-index: 2;
    transition: border-color .4s, background .4s, box-shadow .4s;
}
.il-left  .il-dot { right: -9px; }
.il-right .il-dot { left: -9px; }
.il-item.is-reached .il-dot {
    background: var(--il-ice);
    border-color: #fff;
    box-shadow: 0 0 0 4px var(--il-ice), 0 0 18px rgba(62, 160, 218, .8);
}

.il-card {
    position: relative;
    background: var(--il-card);
    color: var(--il-text);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(62, 160, 218, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.il-card:hover {
    transform: translateY(-3px);
    border-color: var(--il-ice);
    box-shadow: 0 14px 34px rgba(62, 160, 218, 0.22);
}
/* kleiner Pfeil Richtung Linie */
.il-card::before {
    content: "";
    position: absolute;
    top: 28px;
    width: 14px; height: 14px;
    background: var(--il-card);
    transform: rotate(45deg);
    border: 1px solid rgba(62, 160, 218, 0.25);
}
.il-left  .il-card::before { right: -8px; border-left: 0; border-bottom: 0; }
.il-right .il-card::before { left: -8px;  border-right: 0; border-top: 0; }

.il-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.il-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; border-radius: 0 !important; }
.il-card:hover .il-img img { transform: scale(1.04); }

.il-content { position: relative; padding: 18px 22px 22px; }
.il-logo { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; padding: 5px; border-radius: 50% !important; background: #fff; object-fit: contain; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.il-content:has(.il-logo) .il-title, .il-content:has(.il-logo) .il-date { padding-right: 56px; }
.il-date {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--il-ice);
    margin-bottom: 6px;
}
.il-timeline .il-title { margin: 0 0 8px; font-size: 21px; line-height: 1.3; color: #fff; }
.il-timeline .il-excerpt { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--il-muted); }
.il-more {
    font-weight: 700;
    font-size: 14px;
    color: var(--il-ice) !important;
    text-decoration: none !important;
}
.il-more:hover { color: var(--il-fire) !important; }
.il-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.il-ext {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--il-ice-dark), var(--il-ice));
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s, background .3s;
}
.il-ext:hover {
    background: linear-gradient(135deg, var(--il-fire), var(--il-fire-red));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, .35);
}

.il-end { position: relative; z-index: 2; display: flex; justify-content: center; }
.il-end span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--il-ice);
    box-shadow: 0 0 0 6px #f5f5f5, 0 0 18px rgba(62, 160, 218, .45);
}
.il-end img { width: 40px; height: 40px; display: block; border-radius: 0 !important; }

.il-empty {
    max-width: 700px; margin: 30px auto; padding: 28px; text-align: center;
    background: #1d1f23; color: #f5f5f5; border: 1px dashed rgba(62,160,218,.5); border-radius: 14px;
}
.il-empty small { color: rgba(245,245,245,.6); }

/* Tablet & Mobile: Linie links, alle Karten rechts */
@media (max-width: 999px) {
    .il-timeline { --il-line-x: 34px; padding-left: 10px; padding-right: 12px; }
    .il-item, .il-left, .il-right { width: 100%; margin-left: 0; margin-right: 0; padding: 0 0 0 54px; }
    .il-left .il-dot, .il-right .il-dot { left: 15px; right: auto; }
    .il-left .il-card::before, .il-right .il-card::before { left: -8px; right: auto; border: 1px solid rgba(62,160,218,.25); border-right: 0; border-top: 0; }
    .il-year { justify-content: flex-start; margin-left: 0; }
    .il-year span { font-size: 18px; padding: 4px 14px; }
    .il-end { justify-content: flex-start; margin-left: 2px; }
    .il-end span { width: 50px; height: 50px; }
    .il-end img { width: 30px; height: 30px; }
}
@media (max-width: 600px) {
    .il-content { padding: 14px 16px 18px; }
    .il-timeline .il-title { font-size: 18px; }
    .il-timeline .il-excerpt { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .il-item { opacity: 1; transform: none; transition: none; }
    .il-line-fill, .il-card, .il-img img { transition: none; }
}

/* Logo-Silhouette im Button (statt Emoji) */
.il-ext { display: inline-flex !important; align-items: center; gap: 7px; }
.il-ext-ico {
    display: inline-block; width: 1.15em; height: 1.15em; flex-shrink: 0;
    background-color: currentColor; opacity: .95;
    -webkit-mask: var(--ico) no-repeat center / contain; mask: var(--ico) no-repeat center / contain;
}


/* Pixel-Skater auf der Zeitstrahl-Linie */
.il-skater {
    position: absolute;
    top: 0;
    left: var(--il-line-x);
    width: 66px; height: 78px;
    margin-left: -33px;
    margin-top: -74px;          /* Kufen sitzen auf der Spitze der gefuellten Linie */
    z-index: 4;
    pointer-events: none;
    will-change: transform;
    transition: transform .12s linear;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.25));
}
.il-skater img { width: 100%; height: 100%; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
@media (max-width: 999px) {
    .il-skater { width: 51px; height: 60px; margin-left: -25px; margin-top: -57px; }
}
@media (prefers-reduced-motion: reduce) { .il-skater { transition: none; } }
