/*

    Diese Datei beinhaltet alle Styles der Komponenten.
    Jede Komponente wird am Beginn mit der Bezeichnung in Uppercase gestartet.
    Jede Zeile muss mit dem HTML Element und der Komponenten-Bezeichnung ( zb a.tf-button ) beginnen.

*/



/* IMPULSES */


div.tf-impulses {
    
}

div.tf-impulses .filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

div.tf-impulses .filter .tf-button {
    margin-top: 0rem;
}

div.tf-impulses .grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
}

div.tf-impulses .grid .impulse {

}

div.tf-impulses .grid .impulse.hidden {
    display: none;
}

div.tf-impulses .grid .impulse button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: block;
}

div.tf-impulses .grid .impulse .tf-card {
    position: relative;
    margin-top: 0px;
    padding: 0px;
    transition: scale 0.4s;
}

div.tf-impulses .grid .impulse .tf-card:hover {
    scale: 1.02;
}

div.tf-impulses .grid .impulse .tf-card .cover {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin: 0px;
}

div.tf-impulses .grid .impulse .tf-card .meta {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    background: linear-gradient( transparent, hsla( 0, 0%, 0%, 0.6 ), hsla( 0, 0%, 0%, 1 ), hsla( 0, 0%, 0%, 1 ) );
    color: white;
    padding: 1.5rem;
    padding-top: 2.5rem;
}

div.tf-impulses .grid .impulse .tf-card .meta .subtitle {
    font-size: 1rem;
    line-height: 1.3rem;
    letter-spacing: 0em;
    margin: 0px;
    font-weight: 500;
    text-align: left;
    margin-bottom: 5px;
}

div.tf-impulses .grid .impulse .tf-card .meta .title {
    font-size: 1.3rem;
    line-height: 1.5rem;
    letter-spacing: -0.01em;
    margin: 0px;
    text-align: left;
}

div.tf-impulses .grid .impulse .tf-card .meta .pill {
    display: flex;
    height: 34px;
    width: fit-content;
    border-radius: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    font: inherit;
    font-size: 1rem;
    line-height: 1rem;
    font-weight: 500;
    border: none;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    color: var( --textcolor );
    margin: 0px;
    margin-top: 1rem;
}

@media only screen and (max-width: 1300px) {

    div.tf-impulses .grid {
        grid-template-columns: 1fr 1fr 1fr;

    }

    div.tf-impulses .grid .impulse .tf-card .meta .title {
    font-size: 1.1rem;
    line-height: 1.3rem;
}

div.tf-impulses .grid .impulse .tf-card .meta .pill {

    height: 25px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1rem;
    margin-top: 0.5rem;
}

}

@media only screen and (max-width: 750px) {

    div.tf-impulses .grid {
        grid-template-columns: 1fr 1fr;
    }

    

}

@media only screen and (max-width: 550px) {

    div.tf-impulses .grid {
        grid-template-columns: 1fr;
    }

}



/* IMPULSE */


div.tf-impulse {
    display: flex;
}

div.tf-impulse .slides {
    position: relative;
    width: 55%;
}

div.tf-impulse .slides .tf-slider {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background-color: black;
}

div.tf-impulse .slides .tf-slider ul.dots {
    position: absolute;
    left: 0px;
    bottom: 0px;
}

div.tf-impulse .slides .tf-slider ul.dots li button::before {
    background-color: white;
    width: 0.5rem;
    height: 0.5rem;
}

div.tf-modal.impulse div.tf-slider .arrows{
    height: 35px;
    width: 35px;
}

div.tf-modal.impulse div.tf-slider .arrows::before{
    top: 10px;
}

div.tf-modal.impulse div.tf-slider .arrows.right::before{
    left: 6px;
}

div.tf-modal.impulse div.tf-slider .arrows.left::before{
    left: 12px;
}

div.tf-impulse .slides .tf-slider .arrows:not( :hover ) {
    background-color: rgba(255,255,255,0.85);
}

div.tf-impulse .slides .tf-slider .arrows.left {
    left: 1.5rem;
    bottom: calc( 50% - 25px );
}

div.tf-impulse .slides .tf-slider .arrows.right {
    left: auto;
    right: 1.5rem;
    bottom: calc( 50% - 25px );
}

div.tf-impulse .slides .tf-slider .strip {
    display: flex;
    transition: transform .4s;
}

div.tf-impulse .slides .tf-slider figure img {
    display: block;
    width: 100%;
}

div.tf-impulse .slides .tf-slider .course-teaser-slide {
    background-color: var( --background-grey );
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-left: calc( 1.5rem + 35px + 1.5rem );
    padding-right: calc( 1.5rem + 35px + 1.5rem );
}

div.tf-impulse > .description {
    position: relative;
    width: 45%;
    margin-top: calc( 1.5rem + 40px + 1.5rem );
    font-size: 1rem;
    line-height: 1.375rem;
}

div.tf-impulse > .description > .scrollwrapper {
    position: absolute;
    left: 0px;
    top: 0px;
    height: 100%;
    width: 100%;
    overflow: hidden;
    overflow-y: auto;
    padding: 2rem;
    padding-top: 0px;
}

div.tf-impulse > .description > .scrollwrapper > h4 {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

@media only screen and (max-width: 650px) {

    div.tf-impulse {
        flex-direction: column;
    }
    
    div.tf-impulse .slides {
        width: 100%;
    }
    
    div.tf-impulse > .description {
        width: 90vw;
        margin-left: auto;
        margin-right: auto;
    }
    
    div.tf-impulse > .description {
        margin-top: 0px;
    }
    
    div.tf-impulse > .description > .scrollwrapper {
        position: relative;
        height: auto;
        overflow: visible;
        padding-top: 2rem;
        padding-left: 0px;
        padding-right: 0px;
    }
    
}