/* =========================================================
   PCIM HISTORY TIMELINE
   Messe Frankfurt / PCIM
========================================================= */

.pcim-history-section {
    position: relative;
    width: 100%;
    background: #fff;
    color: #303030;
    padding: 70px 0 60px;
    overflow: hidden;
}


/* =========================================================
   HEADER
========================================================= */

.pcim-history-header {
    max-width: 760px;
    margin-bottom: 65px;
}

.pcim-history-kicker {
    margin-bottom: 16px;

    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    line-height: 1.2;

    letter-spacing: .14em;
    text-transform: uppercase;

    color: #009e7a;
}

.pcim-history-header h2 {
    margin: 0;

    font-family: 'Roboto', sans-serif;
    font-size: clamp(42px, 4.5vw, 64px);
    line-height: .98;

    letter-spacing: -.045em;

    color: #303030;
}

.pcim-history-header h2 span {
    color: #009e7a;
}


/* =========================================================
   TIMELINE
========================================================= */

.pcim-history-timeline {
    position: relative;

    width: 100%;
    max-width: 1180px;

    height: 205px;

    margin: 0 auto;
}


/* =========================================================
   BASE LINE
========================================================= */

.pcim-history-line {
    position: absolute;

    left: 0;
    right: 0;
    top: 72px;

    height: 2px;

    background: #d9d9d9;

    overflow: visible;
}


/* Active / filled line */

.pcim-history-line-fill {
    position: absolute;

    left: 0;
    top: 0;

    width: 0;
    height: 100%;

    background: #009e7a;

    transform-origin: left center;
}


/* =========================================================
   POINTS
========================================================= */

.pcim-history-point {
    position: absolute;

    top: 0;

    width: 30px;
    height: 205px;

    z-index: 2;
}


/* Timeline positions */

.point-1979 {
    left: 0;
}

.point-2002 {
    left: 48%;
}

.point-today {
    right: 0;
}


/* =========================================================
   YEAR
========================================================= */

.pcim-history-year {
    position: absolute;

    top: 16px;
    left: 50%;

    transform: translateX(-50%);

    white-space: nowrap;

    font-family: 'Roboto', sans-serif;

    font-size: 17px;
    line-height: 1;

    letter-spacing: .01em;

    color: #707070;

    transition:
        color .3s ease,
        transform .3s ease;
}


/* =========================================================
   DOT
========================================================= */

.pcim-history-dot {
    position: absolute;

    left: 50%;
    top: 65px;

    width: 13px;
    height: 13px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: #fff;

    border: 2px solid #b7b7b7;

    z-index: 5;

    transition:
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}


/* =========================================================
   INFORMATION
========================================================= */

.pcim-history-info {
    position: absolute;
    top: 105px;
    left: 50%;
    width: 350px;
    transform:
        translateX(-50%)
        translateY(18px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .4s ease,
        transform .45s cubic-bezier(.22, 1, .36, 1),
        visibility .4s ease;
}


/* First point aligns left */

.point-1979 .pcim-history-info {
    left: 0;

    transform:
        translateX(0)
        translateY(18px);
}

.point-2002 .pcim-history-info {
    left: 50%;
    right: auto;

    transform: translateX(-50%) translateY(16px);
}

/* Last point aligns right */

.point-today .pcim-history-info {
    left: auto;
    right: 0;

    transform:
        translateX(0)
        translateY(18px);
}


/* =========================================================
   LABEL
========================================================= */

.pcim-history-label {
    margin-bottom: 8px;

    font-family: 'Roboto', sans-serif;

    font-size: 10px;
    line-height: 1.2;

    letter-spacing: .13em;

    text-transform: uppercase;

    color: #009e7a;
}


/* =========================================================
   INFORMATION HEADING
========================================================= */

.pcim-history-info h3 {
    margin: 0 0 9px;

    font-family: 'Roboto', sans-serif;

    font-size: 25px;
    line-height: 1.12;

    letter-spacing: -.025em;

    color: #303030;
}


/* =========================================================
   INFORMATION TEXT
========================================================= */

.pcim-history-info p {
    margin: 0;

    font-family: 'Roboto', sans-serif;

    font-size: 15px;
    line-height: 1.55;

    color: #6d6d6d;
}


/* =========================================================
   ACTIVE POINT
========================================================= */

.pcim-history-point.is-active .pcim-history-year {
    color: #009e7a;

    transform:
        translateX(-50%)
        translateY(-3px);
}

.pcim-history-point.is-active .pcim-history-dot {
    background: #009e7a;

    border-color: #009e7a;

    transform:
        translateX(-50%)
        scale(1.15);

    box-shadow:
        0 0 0 6px rgba(0,158,122,.12);
}

.pcim-history-point.is-active .pcim-history-info {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}


/* First point active alignment */

.point-1979.is-active .pcim-history-info {
    transform:
        translateX(0)
        translateY(0);
}


/* Last point active alignment */

.point-today.is-active .pcim-history-info {
    transform:
        translateX(0)
        translateY(0);
}


/* =========================================================
   FOOTER
========================================================= */

.pcim-history-footer {
    max-width: 1180px;

    margin: 80px auto 0;

    display: flex;

    align-items: center;

    gap: 14px;

    font-family: 'Roboto', sans-serif;

    font-size: 10px;

    letter-spacing: .13em;

    text-transform: uppercase;

    color: #8a8a8a;
}

.pcim-history-footer-line {
    width: 50px;
    height: 1px;

    background: #bdbdbd;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .pcim-history-section {
        padding: 60px 0 55px;
    }

    .pcim-history-header {
        margin-bottom: 55px;
    }

    .pcim-history-header h2 {
        font-size: 50px;
    }

    .pcim-history-timeline {
        height: 225px;
    }

    .pcim-history-info {
        width: 300px;
    }

    .pcim-history-info h3 {
        font-size: 22px;
    }

    .pcim-history-info p {
        font-size: 14px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    .pcim-history-section {
        padding: 50px 20px 45px;
        /*
         * Important:
         * Don't create a huge pinned section on mobile.
         */
        overflow: visible;
    }
    /* -----------------------------------------
       Header
    ----------------------------------------- */
    .pcim-history-header {
        margin-bottom: 42px;
    }
    .pcim-history-kicker {
        font-size: 10px;
        margin-bottom: 14px;
    }
    .pcim-history-header h2 {
        font-size: 38px;
        line-height: 1;
    }
    /* -----------------------------------------
       Vertical timeline
    ----------------------------------------- */
    .pcim-history-timeline {
        width: 100%;
        height: auto;
        margin: 0;
        padding-left: 32px;
    }
    /* -----------------------------------------
       Vertical line
    ----------------------------------------- */
    .pcim-history-line {
        left: 7px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
        background: #dedede;
    }
    .pcim-history-line-fill {
        width: 100%;
        height: 0;
        transform-origin: top center;
    }
    /* -----------------------------------------
       Timeline points
    ----------------------------------------- */
    .pcim-history-point,
    .point-1979,
    .point-2002,
    .point-today {
        position: relative;
        left: auto;
        right: auto;
        width: 100%;
        height: auto;
        min-height: 155px;
        margin: 0 0 18px;
    }
    .point-today {
        min-height: 140px;
    }
    /* -----------------------------------------
       Year
    ----------------------------------------- */
    .pcim-history-year {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 12px;
        font-size: 18px;
    }
    /* -----------------------------------------
       Dot
    ----------------------------------------- */
    .pcim-history-dot {
        left: -32px;
        top: 2px;
        width: 13px;
        height: 13px;
        transform: translateX(-50%);
    }
    /* -----------------------------------------
       Information
    ----------------------------------------- */
    .pcim-history-info,
    .point-1979 .pcim-history-info,
    .point-2002 .pcim-history-info,
    .point-today .pcim-history-info {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        transform: translateY(15px);
        opacity: 0;
        visibility: hidden;
    }
    .point-2002 .pcim-history-info {
        left: auto;
        right: auto;
        transform: translateX(0) translateY(14px);
    }
    .pcim-history-point.is-active .pcim-history-info,
    .point-1979.is-active .pcim-history-info,
    .point-2002.is-active .pcim-history-info,
    .point-today.is-active .pcim-history-info {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .pcim-history-label {
        font-size: 9px;
        margin-bottom: 7px;
    }
    .pcim-history-info h3 {
        font-size: 23px;
        line-height: 1.12;
        margin-bottom: 8px;
    }
    .pcim-history-info p {
        font-size: 14px;

        line-height: 1.55;

        max-width: 100%;
    }
    /* -----------------------------------------
       Footer
    ----------------------------------------- */
    .pcim-history-footer {
        margin: 20px 0 0;

        font-size: 9px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .pcim-history-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .pcim-history-header h2 {
        font-size: 35px;
    }

    .pcim-history-timeline {
        padding-left: 28px;
    }

    .pcim-history-line {
        left: 6px;
    }

    .pcim-history-dot {
        left: -28px;
    }

    .pcim-history-point {
        min-height: 165px;
    }

    .pcim-history-info h3 {
        font-size: 21px;
    }

    .pcim-history-info p {
        font-size: 13.5px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .pcim-history-line-fill {
        transition: none;
    }

    .pcim-history-info,
    .pcim-history-year,
    .pcim-history-dot {
        transition: none;
    }

}