

/*

    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: var( --light-yellow );
    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: 2px;
}

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;    
    }
    
}


/* ===== FORTBILDUNGS-VORSCHAU, neue Fassung (Nov 2026) ===== */
div.tf-course-preview.k-cp section.tf-content > .wrapper { padding-top: 3.5rem; padding-bottom: 3.5rem; }

/* Hero */
div.tf-course-preview.k-cp section.tf-content.k-cp-hero { background: var(--main-color); color: #fff; }
div.tf-course-preview.k-cp section.tf-content.k-cp-hero > .wrapper {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding-top: 3rem; padding-bottom: 4.5rem;
}
div.tf-course-preview.k-cp div.k-cp-hero-text,
div.tf-course-preview.k-cp div.k-cp-trailer { margin: 0; }
div.tf-course-preview.k-cp div.k-cp-trailer { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
div.tf-course-preview.k-cp section.k-cp-hero h2,
div.tf-course-preview.k-cp section.k-cp-hero p { color: #fff; }
div.tf-course-preview.k-cp section.k-cp-hero h2 { display: block; margin: 0; }
div.tf-course-preview.k-cp div.k-cp-dozentin { display: flex; align-items: center; gap: .7rem; margin-top: 1.25rem; }
div.tf-course-preview.k-cp div.k-cp-dozentin img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.8); margin: 0; }
div.tf-course-preview.k-cp div.k-cp-dozentin p,
div.tf-course-preview.k-cp p.k-cp-rating { margin: 0; }
div.tf-course-preview.k-cp p.k-cp-rating { margin-top: .75rem; }
div.tf-course-preview.k-cp section.k-cp-hero .tf-button-group { display: flex; flex-direction: column; align-items: stretch; gap: .65rem; margin-top: 1.75rem; }
div.tf-course-preview.k-cp section.k-cp-hero .tf-button-group .tf-button { margin: 0; justify-content: center; }

/* Fakten */
div.tf-course-preview.k-cp section.k-cp-fakten > .wrapper { padding-top: 0; padding-bottom: 0; }
div.tf-course-preview.k-cp section.k-cp-fakten ul { list-style: none; margin: -1.75rem 0 0; padding: 0; width: 100%; max-width: none; position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-radius: 16px; box-shadow: 0 8px 26px rgba(26,48,86,.1); }
div.tf-course-preview.k-cp section.k-cp-fakten li { margin: 0; padding: 1.4rem 1rem; display: flex; align-items: center; justify-content: center; gap: .6rem; }
div.tf-course-preview.k-cp section.k-cp-fakten li::before { content: none; }
div.tf-course-preview.k-cp section.k-cp-fakten li + li { border-left: 1px solid rgba(26,48,86,.08); }
div.tf-course-preview.k-cp section.k-cp-fakten li svg { display: block; flex: none; width: 28px; height: 28px; fill: var(--textcolor); }
div.tf-course-preview.k-cp section.k-cp-fakten li p { margin: 0; line-height: 1.2; padding: 0; }

/* Überschriften */
div.tf-course-preview.k-cp section.k-cp-ziele h3,
div.tf-course-preview.k-cp section.k-cp-inhalt h3 { margin: 0 0 1.75rem; }
div.tf-course-preview.k-cp span.k-cp-zusatz { font-weight: 300; opacity: .6; margin-left: .4rem; }

/* Lernziele als Kacheln */
div.tf-course-preview.k-cp section.k-cp-ziele ul { list-style: none; margin: 0; padding: 0; width: 100%; max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
div.tf-course-preview.k-cp section.k-cp-ziele li { margin: 0; padding: 1.5rem 1.6rem; border-radius: 18px; display: flex; flex-direction: row; align-items: center; gap: 1.25rem; }
div.tf-course-preview.k-cp section.k-cp-ziele li::before { content: none; }
div.tf-course-preview.k-cp section.k-cp-ziele li img { flex: none; width: 40px; height: 40px; margin: 0; }
div.tf-course-preview.k-cp section.k-cp-ziele li p { margin: 0; line-height: 1.35; }
div.tf-course-preview.k-cp section.k-cp-ziele li { background: #fff; border: 1px solid rgba(26,48,86,.08); }

/* Inhalt als Bildraster */
div.tf-course-preview.k-cp ol.k-cp-kapitel { list-style: none; margin: 0; padding: 0; width: 100%; max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
div.tf-course-preview.k-cp ol.k-cp-kapitel li { margin: 0; padding: 0; }
div.tf-course-preview.k-cp ol.k-cp-kapitel li::before { content: none; }
div.tf-course-preview.k-cp span.k-cp-kapitel-bild { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
div.tf-course-preview.k-cp span.k-cp-kapitel-bild img { width: 100%; height: 100%; object-fit: cover; margin: 0; display: block; }
div.tf-course-preview.k-cp span.k-cp-kapitel-nr { position: absolute; left: 8px; top: 8px; min-width: 30px; height: 30px; padding: 0 .45rem; box-sizing: border-box; border-radius: 999px; background: #fff; color: var(--textcolor); box-shadow: 0 2px 6px rgba(26,48,86,.2); font-weight: 700; font-size: .95rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
div.tf-course-preview.k-cp span.k-cp-kapitel-dauer { position: absolute; right: 8px; bottom: 8px; padding: .25rem .5rem; border-radius: 6px; background: rgba(26,48,86,.85); color: #fff; font-size: .85rem; font-weight: 600; line-height: 1; }
div.tf-course-preview.k-cp ol.k-cp-kapitel li p { margin: .75rem 0 0; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
div.tf-course-preview.k-cp ol.k-cp-kapitel.k-cp-raster-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2rem; }
div.tf-course-preview.k-cp ol.k-cp-kapitel.k-cp-raster-2 > li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
div.tf-course-preview.k-cp ol.k-cp-kapitel.k-cp-raster-2 > li p { margin-top: .15rem; }
div.tf-course-preview.k-cp ul.k-cp-unter { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
div.tf-course-preview.k-cp ul.k-cp-unter li { margin: 0; padding: 0; font-size: .95rem; line-height: 1.35; opacity: .85; }
div.tf-course-preview.k-cp ul.k-cp-unter li::before { content: none; }
div.tf-course-preview.k-cp ul.k-cp-unter li span { display: inline-block; min-width: 2.1rem; font-weight: 600; opacity: .6; }
div.tf-course-preview.k-cp p.k-cp-hinweis { display: flex; align-items: center; gap: .6rem; margin: 2.25rem 0 0; font-weight: 600; }
div.tf-course-preview.k-cp p.k-cp-hinweis svg { display: block; flex: none; width: 24px; height: 24px; fill: var(--textcolor); }

/* Bewertungen */
div.tf-course-preview.k-cp section.k-cp-stimmen { background: var(--background-off-white); }
div.tf-course-preview.k-cp div.k-cp-stimmen-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.75rem; }
div.tf-course-preview.k-cp div.k-cp-stimmen-kopf h3 { margin: 0; }
div.tf-course-preview.k-cp p.k-cp-stimmen-note { display: flex; align-items: center; gap: .6rem; margin: 0; }
div.tf-course-preview.k-cp p.k-cp-stimmen-note strong { font-size: 1.6rem; line-height: 1; }
div.tf-course-preview.k-cp span.k-cp-sterne { display: flex; gap: 3px; }
div.tf-course-preview.k-cp span.k-cp-sterne svg { display: block; width: 20px; height: 20px; fill: var(--secondary-color); }
div.tf-course-preview.k-cp span.k-cp-stimmen-anzahl { opacity: .7; }
div.tf-course-preview.k-cp section.k-cp-stimmen .tf-feedback-reel { margin-bottom: 2rem; }
div.tf-course-preview.k-cp section.k-cp-stimmen .tf-expand-content > .wrapper { padding: 2rem 0 0; }

/* Dozent:in */
div.tf-course-preview.k-cp div.k-cp-person { background: var(--background-off-white); border-radius: 24px; padding: 2.5rem; }
div.tf-course-preview.k-cp div.k-cp-person-oben { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
div.tf-course-preview.k-cp img.k-cp-person-foto { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; object-position: center 20%; margin: 0; border: 5px solid #fff; box-shadow: 0 8px 22px rgba(26,48,86,.12); }
div.tf-course-preview.k-cp div.k-cp-person-text h3 { margin: 0; }
div.tf-course-preview.k-cp div.k-cp-person-text p.k-cp-person-titel { margin: .35rem 0 0; opacity: .75; }
div.tf-course-preview.k-cp div.k-cp-person-text ul.checkmark_list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
div.tf-course-preview.k-cp div.k-cp-person-text ul.checkmark_list li { position: relative; margin: 0; padding: 0 0 0 2.1rem; }
div.tf-course-preview.k-cp div.k-cp-person-text ul.checkmark_list li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--vf-s4-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='%231a3056' d='M378-246 154-470l43-43 181 181 384-384 43 43-427 427Z'/%3E%3C/svg%3E") center / 70% no-repeat; }
div.tf-course-preview.k-cp div.k-cp-person-text .tf-expand-default,
div.tf-course-preview.k-cp div.k-cp-person-text .tf-expand-expanded { margin-top: 1.75rem; }

@media only screen and (max-width: 800px) {
    div.tf-course-preview.k-cp div.k-cp-person-oben { grid-template-columns: 1fr; gap: 1.1rem; }
    div.tf-course-preview.k-cp img.k-cp-person-foto { width: 120px; height: 120px; }
    div.tf-course-preview.k-cp div.k-cp-person { padding: 1.5rem; }
    div.tf-course-preview.k-cp section.tf-content > .wrapper { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    div.tf-course-preview.k-cp ol.k-cp-kapitel { gap: 1.5rem 1rem; }
    div.tf-course-preview.k-cp section.tf-content.k-cp-hero > .wrapper { grid-template-columns: 1fr; gap: 1.25rem; }
    div.tf-course-preview.k-cp section.k-cp-fakten ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    div.tf-course-preview.k-cp section.k-cp-fakten li:nth-child(3) { border-left: 0; }
    div.tf-course-preview.k-cp section.k-cp-fakten li:nth-child(n+3) { border-top: 1px solid rgba(26,48,86,.08); }
    div.tf-course-preview.k-cp ol.k-cp-kapitel,
    div.tf-course-preview.k-cp ol.k-cp-kapitel.k-cp-raster-2 { grid-template-columns: 1fr; }
    div.tf-course-preview.k-cp ol.k-cp-kapitel > li,
    div.tf-course-preview.k-cp ol.k-cp-kapitel.k-cp-raster-2 > li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: .9rem; align-items: start; }
    div.tf-course-preview.k-cp ol.k-cp-kapitel > li p { margin-top: 0; }
    div.tf-course-preview.k-cp section.tf-content.k-cp-hero > .wrapper { align-items: start; }
    div.tf-course-preview.k-cp section.k-cp-ziele ul { grid-template-columns: 1fr; }
    div.tf-course-preview.k-cp section.k-cp-ziele li { flex-direction: row; align-items: center; padding: .9rem 1rem; }
    div.tf-course-preview.k-cp section.k-cp-ziele li img { flex: none; width: 34px; height: 34px; }
}
