/* =========================================================
   EXTERN — COMPANY HISTORY
========================================================= */

body .history {
    width: calc(100% - 48px);
    max-width: 1450px;

    margin: 0 auto;

    padding:
        150px
        0
        120px;

    box-sizing: border-box;
}


/* =========================================================
   INTRO
========================================================= */

body .history__intro {
    max-width: 1200px;

    margin: 0 auto 90px;

    display: grid;

    grid-template-columns:
        1.2fr
        .8fr;

    gap: 100px;

    align-items: start;
}


body .history__eyebrow {
    margin-bottom: 15px;
padding:
        20px
        0
        1px;
    font-family: "Inter", sans-serif;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .22em;

    text-transform: uppercase;

    color: var(--color-primary-text);
}


body .history__headline {
    margin: 0 0 20px;

    font-family: "Inter", sans-serif;

    font-size: clamp(42px, 5vw, 72px);

    font-weight: 800;

    line-height: .98;

    letter-spacing: -.045em;

    color: var(--palette-ink);
}


body .history__lead {
    max-width: 620px;

    margin: 0;

    font-family: "Inter", sans-serif;

    font-size: 17px;
    font-weight: 400;

    line-height: 1.55;

    color: var(--palette-value-1242b02bf4);
}


body .history__intro-side {
    padding-left: 60px;

    border-left:
        1px solid var(--palette-value-1ad9533aa6);
}


body .history__side-label {
    font-family: "Inter", sans-serif;

    font-size: 13px;
    font-weight: 700;

    line-height: 1.4;

    letter-spacing: .25em;

    text-transform: uppercase;

    color: var(--palette-value-65cb68a34b);
}


body .history__side-line {
    width: 45px;
    height: 2px;

    margin: 17px 0 22px;

    background: var(--color-primary);
}


body .history__intro-side p {
    max-width: 320px;

    margin: 0;

    font-family: "Inter", sans-serif;

    font-size: 15px;

    line-height: 1.55;

    color: var(--palette-value-d502a786b0);
}


/* =========================================================
   TIMELINE
========================================================= */

body .timeline {
    position: relative;

    width: 100%;
    max-width: 1280px;

    margin: 0 auto;
}


/* graue Grundlinie */

body .timeline__line {
    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;

    width: 2px;

    transform: translateX(-50%);

    background:
        var(--palette-value-fe0a14521c);

    overflow: hidden;
}


/* farbige Linie */

body .timeline__progress {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 0%;

    background:
        linear-gradient(
            180deg,
            var(--color-primary) 0%,
            var(--color-accent) 45%,
            var(--color-accent) 85%,
            var(--color-primary) 100%
        );

    transition:
        height 80ms linear;
}


/* =========================================================
   TIMELINE ITEM
========================================================= */

body .timeline-item {
    position: relative;

    width: calc(50% - 42px);

    margin-bottom: 58px;

    opacity: 0;

    filter: blur(4px);

    transition:
        opacity 700ms cubic-bezier(.22, 1, .36, 1),
        transform 800ms cubic-bezier(.22, 1, .36, 1),
        filter 700ms ease;
}


body .timeline-item--left {
    margin-right: auto;

    transform:
        translate3d(-45px, 40px, 0);
}


body .timeline-item--right {
    margin-left: auto;

    transform:
        translate3d(45px, 40px, 0);
}


/* aktiv */

body .timeline-item.is-visible {
    opacity: 1;

    filter: blur(0);

    transform:
        translate3d(0, 0, 0);
}


/* =========================================================
   DOT
========================================================= */

body .timeline-item__dot {
    position: absolute;

    top: 42px;

    width: 14px;
    height: 14px;

    background: var(--palette-paper);

    border:
        3px solid
        var(--palette-value-f5c2405cb4);

    border-radius: 50%;

    z-index: 4;

    transition:
        background 300ms ease,
        border-color 300ms ease,
        transform 400ms cubic-bezier(.22, 1, .36, 1);
}


body .timeline-item--left .timeline-item__dot {
    right: -50px;
}


body .timeline-item--right .timeline-item__dot {
    left: -50px;
}


body .timeline-item.is-visible .timeline-item__dot {
    background: var(--color-accent);

    border-color: var(--color-accent);

    transform: scale(1.15);
}


/* =========================================================
   CARD
========================================================= */

body .timeline-card {
    min-height: 150px;

    display: grid;

    grid-template-columns:
        minmax(170px, .8fr)
        1fr;

    overflow: hidden;

    background: var(--palette-paper);

    border:
        1px solid
        var(--palette-value-8bd0767401);

    border-radius: 18px;

    box-shadow:
        0 12px 38px
        var(--palette-value-ac53fa27f8);

    transition:
        transform 300ms cubic-bezier(.22, 1, .36, 1),
        box-shadow 300ms ease;
}


body .timeline-item--right .timeline-card {
    grid-template-columns:
        1fr
        minmax(170px, .8fr);
}


body .timeline-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 45px
        var(--palette-value-fe0a14521c);
}


body .timeline-card--text {
    display: block;
}


body .timeline-card--highlight {
    background:
        linear-gradient(
            135deg,
            var(--palette-paper) 0%,
            rgba(var(--color-primary-rgb), 0.06) 100%
        );

    border-color:
        rgba(var(--color-primary-rgb), 0.1);
}


/* =========================================================
   CARD IMAGE
========================================================= */

body .timeline-card__media {
    min-height: 150px;

    overflow: hidden;
}


body .timeline-card__media img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 700ms cubic-bezier(.22, 1, .36, 1);
}


body .timeline-card:hover .timeline-card__media img {
    transform: scale(1.035);
}


/* =========================================================
   CARD CONTENT
========================================================= */

body .timeline-card__content {
    padding: 27px 30px;

    align-self: center;
}


body .timeline-card__year {
    margin-bottom: 4px;

    font-family: "Inter", sans-serif;

    font-size: 26px;
    font-weight: 800;

    line-height: 1;

    color: var(--color-primary-text);
}


body .timeline-card h2 {
    margin: 0 0 8px;

    font-family: "Inter", sans-serif;

    font-size: 16px;
    font-weight: 800;

    line-height: 1.2;

    color: var(--palette-ink);
}


body .timeline-card p {
    margin: 0;

    font-family: "Inter", sans-serif;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.5;

    color:
        var(--palette-value-73ad45d02d);
}


/* =========================================================
   ABSCHLUSS
========================================================= */

body .history-end {
    width: 100%;
    max-width: 900px;

    margin: 35px auto 110px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 85px;
}


body .history-end__scribble {
    font-family:
        "Inter", sans-serif;

    font-size: 25px;

    line-height: 1.05;

    color: var(--color-primary-text);

    transform: rotate(-8deg);
}


body .history-end__button {
    min-height: 52px;

    padding: 0 24px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 32px;

    border:
        1px solid
        var(--color-primary);

    border-radius: 999px;

    font-family: "Inter", sans-serif;

    font-size: 13px;
    font-weight: 700;

    color: var(--palette-ink);

    text-decoration: none;

    transition:
        background 220ms ease,
        color 220ms ease,
        transform 220ms cubic-bezier(.22, 1, .36, 1);
}


body .history-end__button:hover {
    background: var(--color-primary);

    color: var(--palette-paper);

    transform: translateY(-2px);
}


/* =========================================================
   STATS
========================================================= */

body .history-stats {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border-top:
        1px solid
        var(--palette-value-fe0a14521c);

    padding-top: 42px;
}


body .history-stat {
    position: relative;

    min-height: 110px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: flex-start;

    text-align: center;
}


body .history-stat:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 4px;
    right: 0;

    width: 1px;
    height: 70px;

    background:
        var(--palette-value-b80953d5d4);
}


body .history-counter {
    display: block;

    margin-bottom: 10px;

    font-family: "Inter", sans-serif;

    font-size: 44px;
    font-weight: 800;

    line-height: 1;

    color: var(--color-primary-text);
}


body .history-stat span {
    font-family: "Inter", sans-serif;

    font-size: 11px;
    font-weight: 700;

    line-height: 1.35;

    letter-spacing: .16em;

    text-transform: uppercase;

    color:
        var(--palette-value-18f2d88c8f);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    body .history {
        width: calc(100% - 40px);

        padding:
            110px
            0
            80px;
    }


    body .history__intro {
        margin-bottom: 65px;

        grid-template-columns: 1fr;

        gap: 45px;
    }


    body .history__headline {
        font-size: 44px;
    }


    body .history__intro-side {
        padding-left: 0;

        border-left: 0;
    }


    body .timeline {
        padding-left: 30px;

        box-sizing: border-box;
    }


    body .timeline__line {
        left: 7px;

        transform: none;
    }


    body .timeline-item,
    body .timeline-item--left,
    body .timeline-item--right {
        width: 100%;

        margin:
            0
            0
            35px;

        transform:
            translate3d(0, 35px, 0);
    }


    body .timeline-item.is-visible {
        transform:
            translate3d(0, 0, 0);
    }


    body .timeline-item--left .timeline-item__dot,
    body .timeline-item--right .timeline-item__dot {
        left: -30px;
        right: auto;
    }


    body .timeline-card,
    body .timeline-item--right .timeline-card {
        grid-template-columns: 1fr;
    }


    body .timeline-card__media {
        min-height: 190px;
    }


    body .timeline-card__content {
        padding: 24px;
    }


    body .history-end {
        margin:
            20px
            auto
            80px;

        flex-direction: column;

        gap: 35px;
    }


    body .history-stats {
        grid-template-columns:
            repeat(2, 1fr);

        row-gap: 35px;
    }


    body .history-stat:nth-child(2)::after {
        display: none;
    }


    body .history-counter {
        font-size: 38px;
    }

}

/* =========================================================
   EXTERN LAYOUT SYSTEM 2026 — UNTERNEHMEN
========================================================= */

body .history {
    width: min(1280px, calc(100vw - 56px)) !important;
    max-width: 1280px !important;
}

body .history__intro {
    max-width: 1280px !important;
}

body .history__eyebrow {
    margin-bottom: 12px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    letter-spacing: .12em !important;
    white-space: normal !important;
}

body .history__headline {
    font-size: clamp(44px, 4vw, 64px) !important;
    font-weight: 900 !important;
    line-height: .96 !important;
    letter-spacing: -.045em !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

@media (max-width: 900px) {
    body .history {
        width: calc(100vw - 30px) !important;
    }

    body .history__headline {
        font-size: clamp(34px, 8.6vw, 42px) !important;
        line-height: .99 !important;
    }
}
/* Standortbild: Abrundung wie im bisherigen Stand. */
body .history__location-image img {
    border-radius: 24px;
}

