

/*

    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.

*/


/* COURSE PREVIEW */

div.tf-course-preview {
    
}

div.tf-course-preview div.tf-jumpaction .bar {
    padding-left: 2rem;
    padding-right: 2rem;
}

div.tf-course-preview div.tf-jumpaction .bar .jumpaction {
    padding-left: 45px;
    padding-right: 45px;
}

div.tf-course-preview section.tf-content > .wrapper {
    margin-left: 2rem;
    margin-right: 2rem;
    width: auto !important;
}

div.tf-course-preview .hero {
    background-color: var( --main-color );
    color: white;
    margin-top: -1px;
}

div.tf-course-preview.crashcourse .hero {
    background-color: #FFF5E0;
    color: var( --text-color );
}

div.tf-course-preview .hero .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
}

div.tf-course-preview .hero .metadata {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.5rem;
}

div.tf-course-preview .hero .metadata li {
    margin-top: 0px;
    font-size: 1rem;
    line-height: 1.375rem;
    padding-right: 1.5rem;
    display: flex;
    align-items: center;
    letter-spacing: -0.01rem;
    font-weight: 500;
}

div.tf-course-preview .hero .metadata li:not(:last-child) {
    border-right: var( --border-thinline-white );
}

div.tf-course-preview.crashcourse .hero .metadata li:not(:last-child) {
    border-right: var( --border-thinline-black );
}

div.tf-course-preview .hero h2 {
    color: white;
    padding-right: 0px !important;
    font-weight: 500;
    width: 75%;
    text-align: center;
    display: block;
}

div.tf-course-preview.crashcourse .hero h2 {
    color: var( --text-color );
}

div.tf-course-preview .hero .tf-button-group {
    margin-top: -1rem;
    margin-bottom: 3rem;
}

div.tf-course-preview .hero .trailer {
    position: relative;
    width: 75%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1rem;
    background-color: rgba( 0, 0, 0, 0.1 );
}

div.tf-course-preview .hero .trailer iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
}

div.tf-course-preview .hero:has( + .feedback .tf-feedback-reel ) {
    padding-bottom: 8rem;
}


div.tf-course-preview .feedback {

}

div.tf-course-preview .feedback:has( .tf-feedback-reel ) {
    margin-top: -8rem;
}

div.tf-course-preview .feedback .wrapper {
    border-top: none !important;
}

div.tf-course-preview .feedback:has( .tf-feedback-reel ) .wrapper {
    padding-top: 0px;
}

div.tf-course-preview .feedback .tf-feedback-reel + .tf-expand {
    margin-top: 2rem;    
}


div.tf-course-preview .goals h2 {
    font-weight: 500;
    text-align: center;
    width: 100%;
    display: block;
    padding-right: 0px !important;
    max-width: unset;
}

div.tf-course-preview .goals div.tf-cardgrid {
    grid-template-columns: 1fr 1fr;
}

div.tf-course-preview .goals div.tf-cardgrid div.tf-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

div.tf-course-preview .goals div.tf-cardgrid div.tf-card img {
    width: 40px;
    margin-bottom: 0px !important;
}

div.tf-course-preview .chapters div.tf-cardgrid div.tf-card p {
    margin-top: 0px;
    margin-bottom: 0px;
}

 div.tf-course-preview .chapters div.tf-handreichung-info{
    display: flex;
    gap: 10px;
    width: fit-content;
    margin: auto;
    background-color: white;
    box-shadow: var(--box-shadow-card);
    padding: 10px 15px;
    border-radius: 1rem;
}

div.tf-course-preview .chapters div.tf-handreichung-info img{
    width:30px;
    margin-bottom: 0;
} 

div.tf-course-preview .chapters div.tf-handreichung-info p{
    margin-top: 0;
}

div.tf-course-preview .chapters .chapter {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
}

div.tf-course-preview .chapters .chapter .line {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

div.tf-course-preview .chapters .chapter .line + .line::before {
    content: "";
    display: block;
    border-top: var( --border-thinline-black );
    position: absolute;
    top: -1rem;
    width: auto;
    left: calc( 200px + 1.5rem );
    right: 0px;
}

div.tf-course-preview .chapters .chapter .thumbnail {
    width: 200px;
    flex-shrink: 0;
}

div.tf-course-preview .chapters .chapter .thumbnail img {
    display: block;
    border-radius: 1rem;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

div.tf-course-preview .chapters .chapter .details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

div.tf-course-preview .chapters .chapter .details p,
div.tf-course-preview .chapters .chapter .details h4 {
    margin-top: 0px;
    margin-bottom: 0px;
}

div.tf-course-preview .chapters .chapter .details p.nr {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.375rem;
} 

div.tf-course-preview .chapters .chapter .details h4 {
    flex-grow: 1;
    font-size: 1.5rem;
    line-height: 1.875rem;
    letter-spacing: -0.01rem;
    font-weight: 500;
}

div.tf-course-preview .chapters .chapter .details p.duration {
    font-size: 1rem;
    line-height: 1.375rem;
    font-weight: 400;
    opacity: .5;
    background-image: url(/img/Icons/duration.svg);
    background-position: 0px center;
    padding: 0px 5px 0px 1.5rem;
    background-repeat: no-repeat;
    background-size: 1.2rem auto;
}

div.tf-course-preview .statement {
    text-align: center;
}

div.tf-course-preview .statement .wrapper {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

div.tf-course-preview .statement p {
    text-wrap: balance;
    font-size: 1.5rem;
    line-height: 1.875rem;
    letter-spacing: -0.01rem;
    font-weight: 500;
    max-width: unset;
}

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

    div.tf-course-preview div.tf-jumpaction .bar {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    div.tf-course-preview div.tf-jumpaction .bar .jumpaction {
        padding-left: 0px;
        padding-right: 50px;
    }

    div.tf-course-preview section.tf-content > .wrapper {
        margin-left: 1rem;
        margin-right: 1rem;    
    }
    
    div.tf-course-preview .hero h2 {
        width: 100%;
    }
    
    div.tf-course-preview .hero .trailer {
        width: 100%;
    }
    
    div.tf-course-preview .goals div.tf-cardgrid {
        grid-template-columns: 1fr;
    }
    
    div.tf-course-preview .chapters .chapter {
        padding: 1rem;
    }
    
    div.tf-course-preview .chapters .chapter .line {
        gap: 1rem;
    }
    
    div.tf-course-preview .chapters .chapter .thumbnail {
        width: 100px;
    }
    
    div.tf-course-preview .chapters .chapter .details h4 {
        font-size: 1rem;
        line-height: 1.375rem;
    }
    
    div.tf-course-preview .chapters .chapter .line + .line::before {
        left: calc( 100px + 1rem );
    }

}

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

    div.tf-course-preview section.tf-content > .wrapper {
        margin-left: 5vw;
        margin-right: 5vw;    
    }
    
}