/* ============================================================
   Über uns – offener Zeitstrahl über die gesamte Seitenbreite
   Diese Datei wirkt nur auf ueber-uns.html.
   ============================================================ */

.about-page--timeline-v3 .about-history--wide {
    overflow: hidden;
    padding-bottom: clamp(96px, 11vw, 156px);
    background:
        radial-gradient(circle at 8% 16%, rgba(128, 179, 44, 0.075), transparent 23%),
        radial-gradient(circle at 94% 84%, rgba(217, 119, 6, 0.055), transparent 22%),
        #fff;
}

.about-page--timeline-v3 .about-history--wide::before {
    opacity: 0.12;
}

.about-page--timeline-v3 .about-history--wide .about-history-head {
    margin-bottom: clamp(30px, 4vw, 50px);
}

.wide-timeline-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
}

.wide-timeline-toolbar > p {
    margin: 0;
    color: #7a8998;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wide-timeline-toolbar > p strong {
    color: var(--green-dark, #6a9624);
}

.wide-timeline-controls {
    display: flex;
    gap: 10px;
}

.wide-timeline-controls button {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(10, 37, 64, 0.11);
    border-radius: 50%;
    color: #fff;
    background: var(--anthracite, #3e4a56);
    box-shadow: 0 10px 24px rgba(23, 45, 66, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.wide-timeline-controls button:hover:not(:disabled) {
    background: var(--green-dark, #6a9624);
    transform: translateY(-2px);
}

.wide-timeline-controls button:focus-visible,
.wide-timeline-node:focus-visible,
.wide-timeline-scroll:focus-visible {
    outline: 3px solid rgba(128, 179, 44, 0.42);
    outline-offset: 4px;
}

.wide-timeline-controls button:disabled {
    opacity: 0.24;
    cursor: not-allowed;
    box-shadow: none;
}

.wide-timeline-controls svg {
    width: 21px;
    height: 21px;
}

.wide-timeline {
    position: relative;
    width: 100%;
}

.wide-timeline-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    touch-action: pan-y;
}

.wide-timeline-scroll::-webkit-scrollbar {
    display: none;
}

.wide-timeline-scroll.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
    user-select: none;
    -webkit-user-select: none;
}

.wide-timeline-track {
    --timeline-edge: max(28px, calc((100vw - 1180px) / 2));
    position: relative;
    display: grid;
    grid-auto-columns: clamp(260px, 24vw, 326px);
    grid-auto-flow: column;
    width: max-content;
    height: 620px;
    margin: 0;
    padding: 0 var(--timeline-edge);
    list-style: none;
}

.wide-timeline-track::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    right: 0;
    left: 0;
    height: 2px;
    background: #34424d;
    transform: translateY(-50%);
}

.wide-timeline-item {
    --accent: var(--green, #80b32c);
    position: relative;
    height: 620px;
    scroll-snap-align: center;
}

.wide-timeline-copy {
    position: absolute;
    right: 20px;
    left: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    color: #435261;
    opacity: 0.78;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wide-timeline-item--top .wide-timeline-copy {
    bottom: calc(50% + 76px);
}

.wide-timeline-item--bottom .wide-timeline-copy {
    top: calc(50% + 76px);
}

.wide-timeline-copy h3 {
    margin: 0;
    color: var(--anthracite, #3e4a56);
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(1.25rem, 1.75vw, 1.62rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.wide-timeline-detail {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
}

.wide-timeline-index {
    color: #182632;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 2.45rem;
    font-weight: 850;
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.wide-timeline-detail p {
    margin: 0;
    color: #6b7987;
    font-size: 0.73rem;
    line-height: 1.5;
}

.wide-timeline-copy time {
    color: #24323d;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.wide-timeline-item--top .wide-timeline-copy h3 {
    order: 1;
    margin-bottom: 17px;
}

.wide-timeline-item--top .wide-timeline-detail {
    order: 2;
}

.wide-timeline-item--top .wide-timeline-copy time {
    order: 3;
    margin: 13px 0 0 65px;
}

.wide-timeline-item--bottom .wide-timeline-copy time {
    order: 1;
    margin: 0 0 14px 65px;
}

.wide-timeline-item--bottom .wide-timeline-detail {
    order: 2;
}

.wide-timeline-item--bottom .wide-timeline-copy h3 {
    order: 3;
    margin-top: 17px;
}

.wide-timeline-stem {
    position: absolute;
    z-index: 1;
    left: 50%;
    width: 1px;
    height: 78px;
    background: rgba(52, 66, 77, 0.36);
    transform: translateX(-50%);
}

.wide-timeline-item--top .wide-timeline-stem {
    top: calc(50% - 78px);
}

.wide-timeline-item--bottom .wide-timeline-stem {
    top: 50%;
}

.wide-timeline-stem::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34424d;
    transform: translateX(-50%);
}

.wide-timeline-item--top .wide-timeline-stem::after {
    top: 0;
}

.wide-timeline-item--bottom .wide-timeline-stem::after {
    bottom: 0;
}

.wide-timeline-node {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    color: var(--node-ink, #fff);
    background: var(--accent);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 42%, transparent);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.wide-timeline-node::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.wide-timeline-node svg {
    width: 27px;
    height: 27px;
}

.wide-timeline-item:hover .wide-timeline-copy,
.wide-timeline-item.is-active .wide-timeline-copy {
    opacity: 1;
}

.wide-timeline-item--top.is-active .wide-timeline-copy {
    transform: translateY(-5px);
}

.wide-timeline-item--bottom.is-active .wide-timeline-copy {
    transform: translateY(5px);
}

.wide-timeline-item.is-active .wide-timeline-node {
    width: 66px;
    height: 66px;
    box-shadow: 0 12px 32px color-mix(in srgb, var(--accent) 52%, transparent);
}

.wide-timeline-item.is-active .wide-timeline-node::after {
    opacity: 1;
    transform: scale(1);
}

.wide-timeline-progress {
    width: min(1180px, calc(100% - 48px));
    height: 3px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe6eb;
}

.wide-timeline-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green, #80b32c), var(--green-dark, #6a9624), var(--kicker, #d97706));
    transition: width 0.15s linear;
}

.wide-timeline-hint {
    margin: 14px 0 0;
    color: #8a97a3;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .about-page--timeline-v3 .about-history--wide {
        padding-top: 72px;
        padding-bottom: 92px;
    }

    .wide-timeline-toolbar {
        margin-bottom: 4px;
    }

    .wide-timeline-toolbar > p > span:last-child {
        display: none;
    }

    .wide-timeline-controls button {
        width: 42px;
        height: 42px;
    }

    .wide-timeline-track {
        --timeline-edge: 24px;
        grid-auto-columns: calc(100vw - 24px);
        height: 590px;
    }

    .wide-timeline-item {
        height: 590px;
    }

    .wide-timeline-copy {
        right: 16px;
        left: 16px;
    }

    .wide-timeline-copy h3 {
        font-size: 1.35rem;
    }

    .wide-timeline-detail {
        grid-template-columns: 45px minmax(0, 1fr);
        gap: 11px;
    }

    .wide-timeline-index {
        font-size: 2.1rem;
    }

    .wide-timeline-detail p {
        font-size: 0.75rem;
    }

    .wide-timeline-item--top .wide-timeline-copy time,
    .wide-timeline-item--bottom .wide-timeline-copy time {
        margin-left: 56px;
    }

    .wide-timeline-node {
        width: 54px;
        height: 54px;
    }

    .wide-timeline-item.is-active .wide-timeline-node {
        width: 62px;
        height: 62px;
    }

    .wide-timeline-progress {
        width: calc(100% - 48px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wide-timeline-scroll {
        scroll-behavior: auto;
    }

    .wide-timeline-controls button,
    .wide-timeline-copy,
    .wide-timeline-node,
    .wide-timeline-node::after,
    .wide-timeline-progress span {
        transition: none;
    }
}

@media print {
    .about-page--timeline-v3 .wide-timeline-toolbar,
    .about-page--timeline-v3 .wide-timeline-progress,
    .about-page--timeline-v3 .wide-timeline-hint {
        display: none !important;
    }

    .about-page--timeline-v3 .wide-timeline-scroll {
        overflow: visible;
    }

    .about-page--timeline-v3 .wide-timeline-track {
        transform: scale(0.42);
        transform-origin: top left;
    }
}
