/* ------------Einzelne Komponenten--------------------
--------------------------------------------------------
------------------------------------------------------ */

 /* scroll container für --------------
 sticky anmations sektionen-----------*/

.scroll-container{
    height: var(--scroll-height);
    view-timeline-name: --scroll-container;
}

/* stacked Headline--------------------
------------------------------------- */

h1.stacked.centered,
h2.stacked.centered,
h3.stacked.centered,
.h1.stacked.centered{
    text-align:center;
    text-transform: uppercase;
    width:100%
}

h1.stacked span,
h2.stacked span,
h3.stacked span,
.h1.stacked span{
    display: block;
    font-size: 1.6em;
}

h1.stacked > span,
.h1.stacked > span{
    MARGIN-TOP: -40px;
}
@media screen and (max-width: 1024px) {
    h1.stacked span,
    .h1.stacked span{
        font-size: 1.45em;
}

    h1.stacked > span,
    .h1.stacked > span{
        MARGIN-TOP: -20px;
    }  
}

@media screen and (max-width: 480px) {
    h1.stacked span,
    .h1.stacked span{
        font-size: 1.6em;
}

    h1.stacked > span,
    .h1.stacked > span{
        MARGIN-TOP: -10px;
    }  
}
/* WORD SWAP--------------------
------------------------------------- */

/* Höhe und Breite Inline setzen damit Overflow abgeschnitten wird */
span.word-swap{
    height: var(--word-swap-height);
    max-width: var(--word-swap-width);
    width: 100%;
    display:flex;
    align-items: center;
    justify-content: center;
    /* overflow:hidden; */
    position:relative;
}

.word-swap span{
    display:block;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    text-align:center;
    opacity:0;
    visibility:hidden;

    animation-name: word-swap;
    animation-duration: 9s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

/* Ausgelegt auf 3 Wörter die Wechseln */
.word-swap span:nth-child(2){
    animation-delay: 3s;
}
.word-swap span:nth-child(3){
    animation-delay: 6s;
}

@keyframes word-swap{
    0%{
        opacity: 0;
        filter: blur(4px);
        visibility: hidden;
    }
    5%{
        opacity: 1;
        visibility: visible;
    }
    8%{
        filter: none;
    }
    25%{
        opacity: 1;
        filter: none;
        visibility: visible;
    }
    30%{
        opacity: 0;
        filter: blur(4px);
        visibility: hidden;
    }
    100%{
        opacity: 0;
        visibility: hidden;
    }
}
/* Image Overlay----------------------
-------------------------------------- */
/* Hintergrund farbe Variable inline gesetzt */
.image-overlay{
   background-color: var(--color-overlay);
   position: absolute;
   inset: 0;
   z-index: 0;
}

/* Buttons--------------------------
------------------------------------ */

.cta-link{
    text-decoration:none;
    font-family: 'Agdasima';
    font-weight: 400;
    font-size: 1.375rem;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 999px;
    margin-top: 32px;
    transition: all 0.3s ease-out;
    display: inline-block;
}

.cta-link:hover{
    transform: scale(1.05);

}
.cta-link.blue{
    background: var(--gradient-blue);
    color: white;
    box-shadow: 1px 1px 4px 0 #0B0B0B, 0 0 10px 0 #1F3A5F;
}

.cta-link.white{
    background: white;
    color: black;
    box-shadow: 1px 1px 4px 0 #1F3A5F, 0 0 10px 0 #B6BBE8;
}

.cta-link.red{
    background: var(--gradient-red);
    color: white;
    box-shadow: 1px 1px 4px 0 #1F3A5F, 0 0 10px 0 #B6BBE8;
}

.cta-link.ghost{
    background: transparent;
    border: 1px solid black;
    color: black;
    box-shadow: 1px 1px 4px 0 #2E2E2E, 0 0 10px 0 #B6BBE8;
}



/* content__image------------------------
----------------------------------- */
.content__image{
    width:100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

/* blaues schmuck element--------------
 im Hintergrund --------------------- */
.bg-schmuck-blau{
    background-image: url(../asset/img/Section-BG/schmuck-blau.svg);
    background-size:cover;
    position:absolute;
    top: var(--section-padding-tb);
    bottom: var(--section-padding-tb);
    right: 0;
    left:30%;
}

/* card------------------------
----------------------------------- */

.card{
    position: relative;
    border-radius: 12px;
    padding: 48px 32px;
    box-shadow: var(--box-shadow);
}

.card .image-overlay{
    border-radius: 12px;
}
.card .content{
    position:relative;
    z-index: 1;
}


/* ------------Sektionen--------------------------------
--------------------------------------------------------
------------------------------------------------------ */

/* hero Section------------------------
----------------------------------- */

section.hero{
    position: relative;
    height:100vh;
    min-height: 100svh;
    height: 100dvh;
    background-size: cover;
}

section.hero .wrapper{
    height: 100%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    max-width: 1000px;
}

section.hero .p--big{
    text-align: center;
}

section.hero .stacked{
    margin-bottom: 48px;
}

/* Stagered Animation */
section.hero h1,
section.hero .h1{
    animation-name: cinematic-fade-in;
    animation-duration: 0.6s;
    animation-fill-mode: both;
    animation-delay: 0.3s;
    animation-timing-function: ease;
    animation-iteration-count: 1;
}

section.hero p.p--big{
    text-align: center;
    animation-name: cinematic-fade-in;
    animation-duration: 0.6s;
    animation-fill-mode: both;
    animation-delay: 0.6s;
    animation-timing-function: ease;
    animation-iteration-count: 1;
}
 section.hero .animation__wrapper{
    animation-name: cinematic-fade-in;
    animation-duration: 0.6s    ;
    animation-fill-mode: both;
    animation-delay: 0.9s;
    animation-timing-function: ease;
    animation-iteration-count: 1;
 }

 /* responsive */

 @media screen and (max-width: 480px){
    section.hero .wrapper{
        justify-content: flex-end;
    }
 }

 /* Hero Projekt unterseiten */

 .hero_projekt {
    background-position: center bottom;
 }

 @media screen and (max-width: 480px){
    .hero_projekt .wrapper{
        justify-content:center!important;
        align-items: center!important;
    }
 }
 /* section image-text--------------------
------------------------------------- */

/* responsiver Abstand des Bildes */

@media screen and (max-width: 764px){
    section.image-text img{
        margin-top: 24px;
    }
}
 /* section scroll-portfolio--------------------
------------------------------------- */

section.scroll-portfolio{
    position: sticky;
    top:0;
    height: 100vh;
    height: 100dvh;
    width: 100%;
}

section.scroll-portfolio .position-relative{
    position: relative;
    height: 100%;
    width: 100%;
}

/* verhalten animierter svgs */
section.scroll-portfolio .animation-svg{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100vh;
}

section.scroll-portfolio .animation-svg svg{
    height: 100vh;
    height: 100dvh;
    object-fit: cover;
}
section.scroll-portfolio svg{
    width: 100%;
}
/* content */
section.scroll-portfolio .image-overlay{
    display:flex;
    justify-content: center;
    align-items: center;
    --fallback-animation-timeline: view();
    --fallback-animation-range-start: 35%;
    --fallback-animation-range-end:50%;
    animation-timeline: view();
    animation-duration: auto;
    animation-iteration-count:1;
    animation-fill-mode: both;
    animation-timing-function: linear;
    animation-name: scroll-portfolio-overlay;

    animation-range-start: 15%;
    animation-range-end: 20%;
}

/* animationen */
section.scroll-portfolio .animation-svg-desctop #scroll-animation image,
section.scroll-portfolio .animation-svg-mobile #scroll-animation-mobile image{
    --scroll-container-range-start: 15%;
    --scroll-container-range-end: 80%;

    animation-timeline: --scroll-container;
    view-timeline-axis: block;
    animation-name: scroll-portfolio;
    animation-duration: 1ms;
    animation-iteration-count:1;
    animation-fill-mode: both;
    animation-timing-function: linear;

    animation-range-start: var(--scroll-container-range-start);
    animation-range-end: var(--scroll-container-range-end);
}

/* section.scroll-portfolio .animation-svg-desctop #scroll-animation image{
    animation-name: scroll-portfolio;
} */

/* responsives wechseln der SVG und der Animation */
@media screen and (max-width: 479px){
    .animation-svg-desctop{
        display: none;
    }

    section.scroll-portfolio .animation-svg-mobile #scroll-animation-mobile image{
        animation-name: scroll-portfolio-mobile!important;
        --scroll-container-range-start: 10%;
        --scroll-container-range-end: 98%;

        animation-timeline: --scroll-container;
        view-timeline-axis: block;
        animation-name: scroll-portfolio;
        animation-duration: 1ms;
        animation-iteration-count:1;
        animation-fill-mode: both;
        animation-timing-function: linear;

        animation-range-start: var(--scroll-container-range-start);
        animation-range-end: var(--scroll-container-range-end);
    }

    section.scroll-portfolio .image-overlay{
        align-items: flex-start;
        animation-name: none;
        --color-overlay: rgba(0,0,0,0.0)!important;
    }

    section.scroll-portfolio h2{
        margin-top: 116px;
    }
}

@media screen and (min-width: 480px){
    .animation-svg-mobile{
        display: none;
    }
}
@keyframes scroll-portfolio{
    0%{
    transform: translateY(270px) translateX(529px) scale(1.13);
}
    100%{
    transform: translateY(-4990px) translateX(529px) scale(1.13);
}
}

@keyframes scroll-portfolio-mobile{
    0%{
    transform: translateY(531.72px) translateX(160.3px) scale(0.58);
}
    100%{
    transform: translateY(-2120px) translateX(160.3px) scale(0.58);
}
}

@keyframes scroll-portfolio-overlay{
    0%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}

/* Section 3-cards------------------------
----------------------------------- */

/* responsive Änderung des Grid verhaltens */

@media screen and (max-width: 1160px){
  section.three-cards .grid__col--6 {
    flex: 0 0 calc((100% / 12) * 12);
    max-width: calc((100% / 12) * 12);
  }
}

/* CTA Sektion------------------------
----------------------------------- */

section.cta{
    position: relative;
    height:100vh;
    min-height: 100svh;
    height: 100dvh;
    background-size: cover;
}

section.cta .wrapper{
    height: 100%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    max-width: 1000px;
}

section.cta .p--big{
    text-align: center;
}

section.cta .stacked{
    margin-bottom: 48px;
}


 /* responsive */

 @media screen and (max-width: 480px){
    section.hero .wrapper{
        justify-content: flex-end;
    }
 }

 /* Lessons Learned Sektion-----------
----------------------------------- */

.lessons-learned__card{
    box-shadow: var(--box-shadow);
    border-radius: 12px;
    padding: 32px;
}