

/*

    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.

*/


/* FEEDBACK REEL */

div.tf-feedback-reel {
    
}

div.tf-feedback-reel .tf-slider {
    position: relative;
    width: calc( 100% + 1rem );
    margin-left: -0.5rem;
    overflow: visible;
}

div.tf-feedback-reel .tf-slider ul.strip {
    display: flex;
    margin: 0;
    list-style: none;
    max-width: none;
    transition: transform .4s;
}

div.tf-feedback-reel .tf-slider ul.strip li {
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin: 0px;
}

div.tf-feedback-reel .tf-slider ul.strip li:nth-child( odd ) {
    padding-top: 1rem;
}

div.tf-feedback-reel .tf-slider ul.strip li .tf-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

div.tf-feedback-reel .tf-slider ul.strip li .stars {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

div.tf-feedback-reel .tf-slider ul.strip li .stars svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: var( --secondary-color );
}

div.tf-feedback-reel .tf-slider ul.strip li .metadata .name {
    font-weight: 500;
}

div.tf-feedback-reel .tf-slider ul.strip li .metadata .label {
    margin-top: 1rem;
}

div.tf-feedback-reel .tf-slider ul.strip li .metadata .course-name {
    font-style: italic;
}

div.tf-feedback-reel .tf-slider ul.strip li .metadata .date {
    opacity: .5;
}

div.tf-feedback-reel .tf-slider ul.strip li p {
    cursor: default;
    font-size: 1rem;
    line-height: 1.375rem;
    margin: 0px;
}

div.tf-feedback-reel .tf-slider .arrows.left {
    left: 0.5rem;
}

div.tf-feedback-reel .tf-slider .arrows.right {
    left: calc( 0.5rem + 50px + 1rem );
}

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

    div.tf-feedback-reel .tf-slider .arrows.left {
        left: calc( 50% - 50px - 0.5rem );
    }
    
    div.tf-feedback-reel .tf-slider .arrows.right {
        left: calc( 50% + 0.5rem );
    }
    
}

section.tf-content:has( div.tf-feedback-reel ) {
    overflow: hidden;
}


/* FEEDBACK GRID */

div.tf-feedback-grid ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    row-gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: unset !important;
}

div.tf-feedback-grid ul li + li {
    margin-top: 0px !important;
}

div.tf-feedback-grid ul li {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 1rem;
    border-top: var( --border-thinline-black );
    padding-top: 1rem;
}

div.tf-feedback-grid ul li.hidden {
    display: none;
}

div.tf-feedback-grid ul li .stars {
    display: flex;
    gap: 0.25rem;
}

div.tf-feedback-grid ul li .stars svg {
    width: 1rem;
    height: 1rem;
    fill: var( --textcolor );
}

div.tf-feedback-grid ul li .metadata .name {
    font-weight: 500;
}

div.tf-feedback-grid ul li .metadata .date {
    opacity: .5;
}

section.tf-content.feedback .wrapper div.tf-feedback-grid p {
    cursor: default;
    font-size: 1rem;
    line-height: 1.375rem;
    margin: 0px;
}

div.tf-feedback-grid .action-loadmore.hidden {
    display: none;
}

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

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

}

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

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

}


/* RATING */

span.tf-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

p.centered > span.tf-rating {
    justify-content: center;
}

span.tf-rating .amount {
    font-weight: 400;
    opacity: .5;
}

span.tf-rating.red .amount {
    opacity: .7;
}

span.tf-rating .stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 2px;
}

span.tf-rating .stars svg {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    fill: var( --textcolor );
}

span.tf-rating.white .stars svg {
    fill: white;
}

span.tf-rating.red .stars svg {
    fill: var( --main-color );
}


/* TICKER */

.tf-ticker {
    position: relative;
    height: auto;
    overflow: hidden;
    white-space: nowrap;
}

.tf-ticker.faded-lightblue::before,
.tf-ticker.faded-lightblue::after {
    position: absolute;
    content: "";
    display: block;
    top: 0px;
    width: 6rem;
    height: 100%;
    z-index: 1;
}

.tf-ticker.faded-lightblue::before {
    left: 0px;
    background: linear-gradient( to right, var(--light-blue), transparent );
}

.tf-ticker.faded-lightblue::after {
    right: 0px;
    background: linear-gradient( to right, transparent, var(--light-blue) );
}

.tf-ticker .frame {
    display: inline-block;
    position: relative;
    width: auto;
}

.tf-ticker .frame .bar {
    display: inline-block;
    position: relative;
    width: auto;
    animation: ticker 25s infinite linear;
}

.tf-ticker .frame .bar .tray {
    display: flex;
    align-items: center;
}

.tf-ticker .frame .bar .tray:nth-child( 1 ) {
    position: absolute;
    left: 100%;
    top: 0px;
}

.tf-ticker .frame .bar .tray:nth-child( 2 ) {
    position: absolute;
    left: 200%;
    top: 0px;
}

.tf-ticker .frame .bar .tray > * {
    padding-left: 2rem;
    padding-right: 2rem;
}

.tf-ticker .frame .bar .tray img {
    width: 240px;
    height: auto;
    margin-top: 0px;
    margin-bottom: 0px;
}

@keyframes ticker {
    
    from {
        left: 0%;
    }
    
    to {
        left: -100%;
    }
    
}


/*@media only screen and (max-width: 500px ) {

    .tf-ticker { 
        font-size: inherit;
        line-height: inherit;
        letter-spacing: inherit;
        height: 150px;
        padding-top: 12px;
    }
    
    .tf-ticker .frame .bar p {
        padding-left: 22px;
    }

    .tf-ticker .frame .bar p::before {
        width: 22px;
        height: 22px;
        top: -3px;
    }

}*/


@media (prefers-reduced-motion) {

    .tf-ticker { 
        white-space: normal;
        font: inherit;
    }
    
    .tf-ticker.frame .bar {
        animation: none;
    }
    
    .tf-ticker .frame .bar p:not(:last-child) {
        display: none !important;
    }
    
}