/** Nur Über uns **/

.timeline-page{
	padding:0;
	margin:0;
}

.history-highlight{
    max-width:1200px;
    margin:0 auto 4rem auto;
	padding:0;

    overflow:hidden;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    line-height:0;
}

.history-highlight img{
    display:block;

    width:100%;
    height:400px;

    object-fit:cover;
}

.about-intro{
    max-width:1200px;
    margin:0 auto 4rem auto;

    background:#fff;

    padding:2.5rem;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    text-align:left;
}

.about-intro h2{
    font-size:2.4rem;
    color:var(--dark);
    text-align:center;
    margin-bottom:1.5rem;
}

.about-intro p:last-child{
    margin-bottom:0;
}

.timeline-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 220px;
    gap:2rem;
    align-items:start;
}

.timeline-sidebar{
    position:sticky;
    top:170px;
    height:calc(100vh - 190px);
	padding:2rem 0 2rem 0;
    overflow:hidden;
    border-radius:var(--radius);
    background:#fff;
    box-shadow:var(--shadow);
}

.cert-window{
    height:100%;

    overflow:hidden;

    mask-image:linear-gradient(
        to bottom,
        transparent,
        black 40px,
        black calc(100% - 40px),
        transparent
    );

    -webkit-mask-image:linear-gradient(
        to bottom,
        transparent,
        black 40px,
        black calc(100% - 40px),
        transparent
    );
}
 
.cert-track{
    display:flex;
    flex-direction:column;
    gap:2rem;
    padding:2rem;
    animation:scrollCerts 100s linear infinite;
}

.cert-track img{
    width:100%;
    height:auto;
    object-fit:contain;
    filter:grayscale(100%);
    opacity:.9;
    transition:.3s;
}

.cert-track img:hover{
    filter:none;
    opacity:1;
}

.cert-card{
    background:#fff;
    padding:1rem;
    margin-bottom:1rem;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    text-align:center;
}

.cert-card img{
    width:100%;
    height:auto;
    display:block;
}

@keyframes scrollCerts{
    from{
        transform:translateY(0);
    }
    to{
        transform:translateY(-50%);
    }
}

.timeline{
    position:relative;
    max-width:1200px;
    margin:0 auto;
}

.timeline-page{
    max-width:1200px;
    margin:4rem auto;
    padding:0 2rem;
}

.timeline-item{
    display:grid;
    grid-template-columns:120px 1fr;
    gap:2rem;

    position:relative;

    padding-bottom:4rem;

    z-index:1;
}

.timeline-item::before{
    content:'';

    position:absolute;

    left:57px;
    top:30px;
    bottom:-2rem;

    width:4px;

    background:#d7e4f2;

    z-index:0;
}

.timeline-item:last-child{
    padding-bottom:0px;
}

.timeline-item:last-child::before{
    display:none;
}

.timeline-marker{
    position:relative;
    text-align:center;
    z-index:2;
}

.timeline-year{
    position:relative;
    z-index:3;

    width:90px;
    height:90px;

    margin:0 auto;

    border-radius:50%;

    background:var(--primary);
    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:700;

    box-shadow:var(--shadow);
}

.timeline-item.timeline-highlight .timeline-year{
    background:#EF7F1A;
    transform:scale(1.1);
    transform-origin:center;
}

.timeline-item.timeline-highlight .timeline-content{
    border-left:5px solid #EF7F1A;
}

.timeline-content{
    position:relative;
    z-index:2;

    background:#fff;
    color:var(--dark);

    padding:2rem;

    border-radius:var(--radius);

    box-shadow:var(--shadow);
}

.timeline-content h3{
    color:var(--primary-dark);
    margin-bottom:1rem;
}

.timeline-image{
    width:100%;
    height:325px;

    margin-top:1rem;

    object-fit:cover;

    border-radius:12px;

    box-shadow:var(--shadow);

    background:#fff;
}

.timeline-image.large{
    height:450px;
}

.timeline-image-left{
    float:left;

    width:250px;
    max-width:45%;

    margin:0 2rem 1rem 0;

    border-radius:12px;

    box-shadow:var(--shadow);
}

.timeline-image-right{
    float:right;

    width:250px;
    max-width:45%;

    margin:0 0 1rem 2rem;

    border-radius:12px;

    box-shadow:var(--shadow);
}

.timeline-image-left,
.timeline-image-right{
    shape-margin:20px;
}

.section-header p{
    margin-bottom:1.5rem;
}

/* Subitems */

.timeline-subitem .timeline-marker{
    position:relative;
}

.timeline-subitem .timeline-marker::before{
    content:'';

    position:absolute;

    width:18px;
    height:18px;

    border-radius:50%;

    background:var(--primary);

    left:50px;
    top:18px;

    z-index:3;
}

.timeline-subitem.timeline-highlight .timeline-marker::before{
    background:#EF7F1A;

    width:26px;
    height:26px;

    left:46px;
    top:14px;
}

/* Mobile */

@keyframes scrollCertsMobile{
    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }
}

.timeline-banner{
    display:block;

    width:100%;
    height:auto;

    max-height:220px;
	
	margin-bottom:1.5rem;

    object-fit:contain;

    object-position:center;

    border-radius:12px;

    box-shadow:var(--shadow);
}

@media (max-width:900px){

    .timeline-page{
        padding:0 1rem;
    }

    .timeline-layout{
        display:flex;
        flex-direction:column;
    }

    .timeline-item{
        grid-template-columns:1fr;
        gap:1rem;
        padding-bottom:2rem;
    }

    .timeline-item::before{
        left:26px;
    }

    .timeline-marker{
        text-align:left;
    }

    .timeline-year{
        width:52px;
        height:52px;

        margin:0;

        border-radius:50%;

        font-size:0.75rem;
    }

    .timeline-content{
        padding:1.5rem;
    }

    .timeline-image{
        height:220px;
    }

    .timeline-image-left,
    .timeline-image-right{
        float:none;

        display:block;

        width:70%;
        max-width:300px;

        margin:1rem auto;
    }

    .timeline-subitem .timeline-marker::before{
        content:none;
    }

    /* Zertifikatsleiste */

    .timeline-sidebar{

        position:fixed !important;

        left:0;
        right:0;
        bottom:0;

        top:auto !important;

        width:100%;
        height:150px;

        margin:0;
        padding:0;

        z-index:1000;

        border-radius:0;

        background:#FFF;

        box-shadow:0 -4px 20px rgba(0,0,0,.1);
		transition:opacity .3s ease;
    }

	.timeline-sidebar.hide-mobile{
		opacity:0;
		pointer-events:none;
	}
    
	.cert-window{
        width:100%;
        height:100%;
        overflow:hidden;
    }

    .cert-track{
        display:flex;

        flex-direction:row;

        align-items:center;

        gap:20px;

        width:max-content;

        height:100%;

        padding:0 20px;

        animation:scrollCertsMobile 80s linear infinite;
    }

    .cert-track img{
        height:100px;
        width:auto;

        flex-shrink:0;

		filter:grayscale(100%) brightness(0.95);
		opacity:.75;
	}

   .history-highlight img{
        height:200px;
    }

}