/* hero */

.hero{
    height: calc(100dvh - 78px);
    padding-top: 78px;
    position: relative;
}

.hero-header{
    position: relative;
    height: 100%;
}

.hero-header h1{
    font-size: 150px;
    line-height: 160px;
    letter-spacing: -26px;
    text-align: center;
    padding-top: clamp(91px, 1vw, 185px);
    position: relative;
    font-weight: 700;
}
.hero h1 .word{
    display: inline-block;
}
.hero-header h1 span{
    display: inline-block;
    opacity: 0;
    transition: all .2s;
    transform: translateX(-50%);
    font-weight: 700;
}
.hero-header h1 span:empty{
    width: 40px;
}
.hero-header h1.on span{
    opacity: 1;
    transform: translateX(0);
}

.hero .bg-img{
    background-image: url('../assets/images/img_hero.jpg');
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 100%;
    animation: hero;
    animation-timing-function: linear;
    animation-duration: 3s;
    /* transition: all .3s; */
}


@keyframes hero {
    0% {opacity: 0; background-position: 0% 75%; background-size: 150%;}
    20% {opacity: 1; background-position: 10% 70%; background-size: 140%;}
    40% {background-position: 20% 65%; background-size: 130%;}
    60% {background-position: 30% 60%; background-size: 120%;}
    80% {background-position: 40% 55%; background-size: 110%;}
    100% {background-position: 50%; background-size: 100%}
}


@media screen and (max-width: 1420px) {
    .hero-header h1{
        font-size: 120px;
        line-height: 130px;
        letter-spacing: -15px;
    }   
}
@media screen and (max-width: 1180px) {
    .hero .bg-img{
        background-position: 50%;
        background-size: cover;
        /* transition: all .3s; */
    }
    @keyframes hero {
        0% {opacity: 0; background-position: 0% 75%;}
        20% {opacity: 1; background-position: 10% 70%;}
        40% {background-position: 20% 65%;}
        60% {background-position: 30% 60%;}
        80% {background-position: 40% 55%;}
        100% {background-position: 50%;}
    }
}
@media screen and (max-width: 1180px) {
    .hero-header h1{
        font-size: 100px;
        line-height: 120px;
        letter-spacing: -15px;
    }   
}

@media screen and (max-width: 880px) {
    .hero h1 .word{
        display: block;
    }
    .hero h1 .word .empty{
        display: none;
    }
}
@media screen and (max-width: 820px) {
    .hero{
        height: calc(100dvh - 66px);
    }
    .hero-header h1{
        font-size: 80px;
        line-height: 85px;
        letter-spacing: -10px;
    }
}
@media screen and (max-width: 520px) {
    .hero-header h1{
        font-size: 69px;
        line-height: 74px;
    }   
}

/* image seperator */

.img-seperator{
    height: 640px;
}
.img-seperator-line{
    /* height: 516px; */
    width: 100%;
    aspect-ratio: 1.6;
    max-width: 827px;
    margin-inline: auto 200px;
    /* transform: translateY(-205px); */
    transform: translateY(-50%);
    position: relative;
    z-index: 10;
}

@media screen and (max-width: 1520px) {
    .img-seperator-line{
        max-width: 650px;
        margin-right: 120px;
    }
}
@media screen and (max-width: 1180px) {
    .img-seperator{
        height: 500px;
    }
    .img-seperator-line{
        max-width: 500px;
    }
}
@media screen and (max-width: 820px) {
    .img-seperator-line{
        max-width: 300px;
        margin-right: 100px;
        aspect-ratio: 0.7;
    }
    .img-seperator{
        height: unset;
        aspect-ratio: 1.33;
    }
}
@media screen and (max-width: 520px) {
    .img-seperator-line{
        max-width: 182px;
        margin-right: 60px;

    }
}

/* text */


.text-wrapper{
    text-align: center;
    position: relative;
    z-index: 10;
}

.text-wrapper.sm{
    padding-block: 0;
}

.text-wrapper h2{
    font-size: 40px;
    line-height: 50px;
    font-weight: 700;
    text-wrap: balance;
    max-width: 1136px;
    margin-inline: auto;
    background-color: #000;
}

.text-wrapper.sm h2{
    font-size: 30px;
    line-height: 45px;
    font-weight: 500;
    max-width: 784px;
}

@media screen and (max-width: 1420px) {
    .text-wrapper{
        padding-inline: 5rem;
    }
}
@media screen and (max-width: 1320px) {
    .text-wrapper h2{
        font-size: 35px;
        line-height: 45px;
    }
}
@media screen and (max-width: 1020px) {
    .text-wrapper{
        padding-inline: 4rem;
    }
    .text-wrapper h2{
        font-size: 30px;
        line-height: 40px;
    }
}
@media screen and (max-width: 820px) {
    .text-wrapper{
        padding-inline: 3rem;
    }
}
@media screen and (max-width: 720px) {
    .text-wrapper.sm h2{
        font-size: 25px;
        line-height: 35px;
    }
}
@media screen and (max-width: 520px) {
    .text-wrapper{
        padding-inline: 2rem;
    }
    .text-wrapper h2{
        font-size: 25px;
        line-height: 35px;
    }
}
    
@media screen and (max-width: 385px) {
    .text-wrapper h2,
    .text-wrapper.sm h2{
        font-size: 22px;
        line-height: 30px;
    }
}

/* articles */

.articles-section{
    --topSpace : 250px;
    margin-block: var(--topSpace) 160px;
    padding-top: 50px;
}
.articles-wrapper{
    max-width: 1300px;
    padding-left: clamp(3rem, 5vw, 120px);
    padding-right: 20px;
    margin-inline: auto;
    padding-block: 8px 72px;
    border-top: 1px solid var(--colorText);
    border-left: 1px solid var(--colorText);
    position: relative;
}

.articles-wrapper::before{
    content: "";
    height: 50px;
    width: 11px;
    position: absolute;
    right: -5px;
    top: calc(-1 * var(--topSpace));
    background-color: var(--colorText);
    border-radius: 50px;
    animation-duration: 8s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-name: smallTrack;
}

@keyframes smallTrack{
    0% {height: 0; top: calc(-1 * var(--topSpace));}
    15% {height: 50px; top: calc(-1 * var(--topSpace));}
    85%  {height: 50px; top: -75px;}
    100%{ height: 0; top: -25px;}
}


.articles-wrapper::after{
    content: "";
    height: var(--topSpace);
    position: absolute;
    right: 0;
    top: calc(-1 * var(--topSpace));
    border-left: 1px solid var(--colorText);
}




.articles-wrapper .card-wrapper{
    padding-block: 42px;
    border-bottom: 1px solid var(--colorText);
}

.articles-section .line-grid-wrapper{
    width: 100%;    
}

.articles-wrapper .line-track.track-top::after{
    --trackSize: 200px;
}
@media screen and (max-width: 1400px) { 
    .articles-wrapper{
        width: 95%;
    }
}
@media screen and (max-width: 820px) { 
    @keyframes smallTrack{
        0% {height: 0; top: calc(-1 * var(--topSpace));}
        15% {height: 50px; top: calc(-1 * var(--topSpace));}
        85%  {height: 50px; top: -70px;}
        100%{ height: 0; top: -20px;}
    }
}
@media screen and (max-width: 620px) { 
    .articles-wrapper{
        border: none;
        margin-bottom: 350px;
        padding-inline: 0;
    }
    .articles-wrapper .card-wrapper{
        padding-block: 31px;
    }
    .articles-wrapper::after{
        right: 50%;
    }
    .articles-wrapper::before{
        right: calc(50% - 5px);
    }
    .articles-wrapper .dot.tp{
        right: 50%;
    }
    .articles-wrapper .dot.bt{
        left: 50%;
        top: calc(100% + 180px);
    }
    .articles-wrapper .dot.tp.lf{
        display: none;
    }
    .line-track.track-top::after{
        animation: none;
        width: 0;
        height: 200px;
        border-left:1px solid;
        top: 100%;
        left: 50%;
    }
    .articles-wrapper .line-track.track-left::before{
        height: 50px;
        left: calc(50% - 5px);
        top: 100%;
        animation-name: bottomLeftCar;
    }

    @keyframes bottomLeftCar{
        0% {height: 0; top: 100%;}
        15% {height: 50px; top: 100%;}
        85%  {height: 50px; top: calc(100% + 150px);}
        100%{ height: 0; top: calc(100% + 200px);}
    }
}

/* car section */

.car-wrapper{
    position: relative;
    max-width: calc(1632px + 2 * var(--padding));
    margin-inline: auto;
    padding-inline: var(--padding);
}

.car-img{
    position: absolute;
    bottom: 200px;
    width: 100%;
    max-width: 600px;
    left:50%;
    transform: translateX(-50%);
}

.car-texts{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}


.car-text{
    max-width: 348px;
}

.car-texts > div:nth-of-type(even){
    margin-left: auto;
    margin-top: 200px;
}

.car-text--image{
    --circle: 200px;
    width: var(--circle);
    /* width: 0; */
    opacity: 0;
    /* aspect-ratio: 1; */
    height: var(--circle);
    background-color: #6C2500;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-inline: auto;
    margin-bottom: 26px;
    position: relative;
    z-index: 10;
    --lineWidth: 250px;
    transition: all .3s;
    transform: translateY(100%);
}

.car-text--image img{
    width: 60%;
    height: 60%;
}

.car-text.on .car-text--image{
    /* width: 200px; */
    transform: translateY(0);
    opacity: 1;
}

.car-text--image::before{
    content: "";
    /* width: var(--lineWidth); */
    width: 0;
    position: absolute;
    top: 50%;
    border-top: 1px solid var(--colorText);
    transition: all .2s;
    transition-delay: .5s;
}

.car-text.on .car-text--image::before{
    width: var(--lineWidth);
}

.car-texts > div:nth-of-type(odd) .car-text--image::before{
    left: 100%;
}
.car-texts > div:nth-of-type(even) .car-text--image::before{
    right: 100%;
}

.car-texts > div:nth-of-type(1) .info{
    transition-delay: 0.7s;
}

.car-text--image::after{
    content: "";
    width: 80px;
    height: 11px;
    position: absolute;
    top: calc(50% - 5px);
    background-color: var(--colorText);
    border-radius: 20px;
    opacity: 0;
    transition: opacity .3s;
    transition-delay : 1.8s;
}

.car-text.on .car-text--image::after{
    opacity: 1;
    animation-duration: 3s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes mini-track-left{
    0% {width: 0; left: 100%;}
    25% {width: 80px; left: 100%;}
    75% {width: 80px; left: calc(100% + var(--lineWidth) - 75px);}
    100%{ width: 0; left: calc(100% + var(--lineWidth));}
}
@keyframes mini-track-right{
    0% {width: 0; right: 100%;}
    25% {width: 80px; right: 100%;}
    75% {width: 80px; right: calc(100% + var(--lineWidth) - 75px);}
    100%{ width: 0; right: calc(100% + var(--lineWidth));}
}

.car-texts > div:nth-of-type(odd) .car-text--image::after{
    animation-name: mini-track-left;
    /* left: 100%; */
}
.car-texts > div:nth-of-type(even) .car-text--image::after{
    animation-name: mini-track-right;    
    /* right: 100%; */
}

.car-wrapper .car-texts > div:first-of-type .car-text--image::after,
.car-wrapper .car-texts > div:first-of-type .car-text--image::before{
    display: none;
}


.car-text--image .info-dot{
    width: 26px;
    height: 26px;
    position: absolute;
    top: calc(50% - 13px);
    background-color: var(--colorText);
    border-radius: 50%;
    opacity: 0;
    transition: all .3s;
    transition-delay: .8s;
    transform: scale(0.2);
}

.car-text.on .car-text--image .info-dot{
    opacity: 1;
    transform: scale(1);
}

.car-texts > div:nth-of-type(odd) .info-dot{
    left: calc(var(--circle) + var(--lineWidth));
}
.car-texts > div:nth-of-type(even) .info-dot{
    right: calc(var(--circle) + var(--lineWidth));
}

.car-text .info{
    font-size: 20px;
    line-height: 25px;
    letter-spacing: -.4px;
    font-weight: 600;
    text-align: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: all .3s;
    transition-delay: 1.2s;
}

.car-text.on .info{
    transform: translateY(0);
    opacity: 1;    
}

@media screen and (max-width: 1280px) {
    .car-img{
        bottom: 300px;
        max-width: 500px;
    } 
    .car-text--image{
        --circle: 180px;
    }   
}
@media screen and (max-width: 1180px) {
    .car-img{
        max-width: 800px;
        opacity: 0.35;
        z-index: -1;
        bottom: 100px;
    }    
}
@media screen and (max-width: 980px) {
    .car-texts > div:nth-of-type(even){
        margin-top: 380px;
    }
}
@media screen and (max-width: 720px) {
    .car-texts{
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .car-texts > div:nth-of-type(even){
        margin-top: 0;
    }
    .car-text{
        max-width: unset;
    }
    .car-texts > div:nth-of-type(odd) .car-text--image{
        margin-left: 0;
    }
    .car-texts > div:nth-of-type(even) .car-text--image{
        margin-right: 0;
    }
    .car-texts > div:nth-of-type(odd) .car-text--image::before{
        left: 100%;
    }
    .car-texts > div:nth-of-type(even) .car-text--image::before{
        right: 100%;
    }
    .car-text--image{
        --circle : 150px;
        --lineWidth : calc(100vw - var(--circle) - 2 * var(--padding) );
    } 
    .car-texts > div:nth-of-type(even) .info-dot{
        right: calc(var(--circle) + var(--lineWidth) - 26px);
    }
    .car-texts > div:nth-of-type(odd) .info-dot{
        left: calc(var(--circle) + var(--lineWidth) - 26px);
    }
    @keyframes mini-track-left{
        0% {width: 0; left: 100%;}
        25% {width: 80px; left: 100%;}
        75% {width: 80px; left: calc(100% + var(--lineWidth) - 100px);}
        100%{ width: 0; left: calc(100% + var(--lineWidth));}
    }
    @keyframes mini-track-right{
        0% {width: 0; right: 100%;}
        25% {width: 80px; right: 100%;}
        75% {width: 80px; right: calc(100% + var(--lineWidth) - 100px);}
        100%{ width: 0; right: calc(100% + var(--lineWidth));}
    }

    .car-texts > div:nth-of-type(1){
        margin-top: 1rem;
    }
}

@media screen and (max-width: 620px) {
    .car-img{
        position: relative;
        bottom: 0;
        opacity: 1;
        max-width: 290px;
        margin-top: 2rem;
    }
}
@media screen and (max-width: 520px) {
    .car-text--image{
        --circle : 110px;
    } 
    .car-text .info{
        font-size: 18px;
        line-height: 25px;
        letter-spacing: -.36px;
    }
    .car-texts > div:nth-of-type(1){
        margin-top: 2.5rem;
    }
}


/*  sections */


.intro-text{
    padding-block: clamp(186px, 15vw, 295px) clamp(132px, 13vw, 240px);
}

.intro-text .line-grid-wrapper{
    z-index: 5;
}

.image-section-01{
    padding-block: clamp(71px, 10vw, 145px) clamp(71px, 15vw, 304px);
    position: relative;
}

.image-section-01 .line-track::before{
    --bottom: -65px;
}

@media screen and (max-width: 1180px) {
    .image-section-01 .line-track::before{
        --bottom: -235px;        
    }
}
@media screen and (max-width: 925px) {
    .image-section-01 .line-track::before{
        --bottom: -280px;        
    }
}
@media screen and (max-width: 720px) {
    .image-section-01 .line-track::before{
        --bottom: -236px;        
    }
}
@media screen and (max-width: 600px) {
    .image-section-01 .line-track::before{
        --bottom: -271px;        
    }
}
@media screen and (max-width: 550px) {
    .image-section-01 .line-track::before{
        --bottom: -305px;        
    }
}
@media screen and (max-width: 525px) {
    .image-section-01 .line-track::before{
        --bottom: -330px;        
    }
}
@media screen and (max-width: 521px) {
    .image-section-01 .line-track::before{
        --bottom: -270px;        
    }
}
@media screen and (max-width: 518px) {
    .image-section-01 .line-track::before{
        --bottom: -305px;        
    }
}
@media screen and (max-width: 493px) {
    .image-section-01 .line-track::before{
        --bottom: -340px;        
    }
}
@media screen and (max-width: 430px) {
    .image-section-01 .line-track::before{
        --bottom: -375px;        
    }
}
@media screen and (max-width: 385px) {
    .image-section-01 .line-track::before{
        --bottom: -330px;        
    }
}
@media screen and (max-width: 338px) {
    .image-section-01 .line-track::before{
        --bottom: -360px;        
    }
}


.image-section-02{
    /* padding-block: 209px 103px; */
    /* padding-block: clamp(95px, 12vw,  209px) clamp(93px, 16vw, 308px); */
    padding-block: clamp(95px, 12vw,  209px) 308px;
    position: relative;
}

@media screen and (max-width: 1520px) {
    .image-section-02{
        padding-bottom: 250px;
    }
}

.image-section-02 .line-grid-wrapper{
    z-index: 10;
}

.image-section-02 .line-track::before{
    --top: 65px;
}

.image-section-03{
    padding-bottom: 68px;
    position: relative;
}
.image-section-03 .line-track::before{
    --bottom: -75px;
}


.middle-text{
    position: relative;
    z-index:20;
    /* border-top: 1px solid var(--colorText);     */
}

.middle-text::before,
.middle-text::after{
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
}

.middle-text::after{
    height: 50%;
    border-left: 1px solid var(--colorText);
}

.middle-text .line-grid-wrapper{
    height: 50%;    
}
.middle-text .line-track:after{
    --trackSize : 150px;   
}

.image-section-03 .line-track:after{
    --trackSize : 200px;  
    display: none;  
}
.car-wrapper .line-track.track-bottom.bottom-reverse:after{
    --trackSize : 200px; 
    animation-name: bottomCarRevMini;  
    /* animation: none; */
}

@keyframes bottomCarRevMini{
    0% {width: 0; right: var(--right);}
    25% {width: var(--trackSize); right: var(--right);}
    75% {width: var(--trackSize); right: calc(100% - var(--right) - var(--trackSize) - 200px);}
    100%{ width: 0; right: calc(100% - var(--right) - 200px);}
}

.car-wrapper .line-grid-wrapper{
    height: 100px;
}
.car-wrapper .line-grid-wrapper::before{
    content: "";
    width: 100px;
    height: 100px;
    position: absolute;
    left: 0;
    top: 50px;
    background-color: #000;
}


@media screen and (max-width: 1694px) {
    .middle-text::after{
        left: calc(((100vw - 10rem) - 100%) / -2);
    }
}
@media screen and (max-width: 1280px) {
    @keyframes bottomCarRevMini{
        0% {width: 0; right: var(--right);}
        25% {width: var(--trackSize); right: var(--right);}
        75% {width: var(--trackSize); right: calc(100% - var(--right) - var(--trackSize) - 215px);}
        100%{ width: 0; right: calc(100% - var(--right) - 215px);}
    }
}
@media screen and (max-width: 1180px) {
    .middle-text{
        padding-bottom: 80px;
    }
    .middle-text .line-grid-wrapper{
        height: 100%;
    }  
    .middle-text::after{
        left: 0;
    }  
    .image-section-02 .line-track::before{
        --top: -25px;
    }
}
@media screen and (max-width: 920px) {
    .car-wrapper .line-track.track-bottom.bottom-reverse:after{
        --trackSize : 100px; 
    }
}

@media screen and (max-width: 720px) {
    @keyframes bottomCarRevMini{
        0% {width: 0; right: var(--right);}
        25% {width: var(--trackSize); right: var(--right);}
        75% {width: var(--trackSize); right: calc(100% - var(--right) - var(--trackSize) - 100px);}
        100%{ width: 0; right: calc(100% - var(--right) - 100px);}
    }
}
@media screen and (max-width: 520px) {
    .car-wrapper .line-track.track-bottom.bottom-reverse:after{
        --trackSize: 60px;
    }
    @keyframes bottomCarRevMini{
        0% {width: 0; right: var(--right);}
        25% {width: var(--trackSize); right: var(--right);}
        75% {width: var(--trackSize); right: calc(100% - var(--right) - var(--trackSize) - 80px);}
        100%{ width: 0; right: calc(100% - var(--right) - 80px);}
    }
}

.footer-wrapper{
  color: #fff;
  justify-content: center;
  align-items: center;  
  padding-block: 4rem 2rem;
  flex-wrap: wrap;
}

.footer-wrapper .thema,
.footer-wrapper .copyright{
    margin-right: 2rem;
}
.footer-wrapper  b{
    padding-right: 1rem;
}

.dev{
    align-items: center;
}

@media screen and (max-width: 920px) {
    .footer-wrapper .thema,
    .footer-wrapper .copyright{
        margin-right: 1rem;
    }
}
@media screen and (max-width: 720px) {
    .footer-wrapper .copyright{
        width: 100%;
        text-align: center;
        margin-right: 0;
    }
}
@media screen and (max-width: 580px) {
    .footer-wrapper{
        font-size: 14px;
    }
}
@media screen and (max-width: 480px) {
    .footer-wrapper .thema{
        margin: .5rem 0 0;
    }
    .footer-wrapper .dev{
        width: 100%;
        margin-top: .5rem;
        justify-content: center;
    }
    .footer-wrapper  b{
        display: none;
    }    
}