

/*

    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.

*/



/* BUTTON */

a.tf-button,
button.tf-button {
    display: flex;
    height: 34px;
    width: fit-content;
    border-radius: 17px;   
    text-decoration: none;
    padding: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font: inherit;
    font-size: 1rem;
    line-height: 1rem;
    font-weight: 400;
    letter-spacing: -0.01rem;
    border: none;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color .2s, color .2s, border .2s, opacity .2s;
}

a.tf-button {
    font-weight: 400;
}

button.tf-button {
    font-weight: 400;
}

a.tf-button.medium,
button.tf-button.medium {
    height: 50px;
    border-radius: 25px;
    font-size: 1.25rem;
    line-height: 1.25rem;
    letter-spacing: -0.03rem;
    gap: 1rem;
    font-weight: 500;
}

a.tf-button.blue,
button.tf-button.blue {
    background-color: var( --textcolor );
    color: white;
    border: 1px solid var( --textcolor );
}

a.tf-button.white,
button.tf-button.white {
    background-color: white;
    color: var( --textcolor );
    border: 1px solid white;
}

a.tf-button.transparent,
button.tf-button.transparent {
    background-color: transparent;
    color: var( --textcolor );
    border: 1px solid transparent;
}

a.tf-button.transparent-light,
button.tf-button.transparent-light {
    background-color: transparent;
    color: white;
    border: 1px solid transparent;
}

a.tf-button.white.outline,
button.tf-button.white.outline,
a.tf-button.transparent.outline,
button.tf-button.transparent.outline {
    border: var( --border-thinoutline-black );
}

a.tf-button.transparent-light.outline,
button.tf-button.transparent-light.outline {
    border: var( --border-thinoutline-white );
}

a.tf-button.yellow,
button.tf-button.yellow {
    background-color: var( --secondary-color );
    color: var( --textcolor );
    border: 1px solid var( --secondary-color );
}

a.tf-button.red,
button.tf-button.red {
    background-color: var( --main-color );
    color: white;
    border: 1px solid var( --main-color );
}

a.tf-button:hover,
button.tf-button:hover {
    background-color: var( --textcolor );
    color: white;
    border-color: var( --textcolor );
}

a.tf-button.blue:hover,
button.tf-button.blue:hover {
    background-color: white;
    color: var( --textcolor );
    border: var( --border-thinoutline-black );
}

a.tf-button.transparent-light:hover,
button.tf-button.transparent-light:hover {
    border: 1px solid var( --textcolor );
}

a.tf-button svg,
button.tf-button svg,
a.tf-button img,
button.tf-button img {
    width: 1.25rem;
    transition: fill .2s;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

a.tf-button.medium svg,
button.tf-button.medium svg,
a.tf-button.medium img,
button.tf-button.medium img {
    width: 1.5rem;
}

a.tf-button.medium.small-icon svg,
button.tf-button.medium.small-icon svg,
a.tf-button.medium.small-icon img,
button.tf-button.medium.small-icon img {
    width: 0.8rem;
}

a.tf-button.medium.small-icon svg + svg,
button.tf-button.medium.small-icon svg + svg,
a.tf-button.medium.small-icon img + img,
button.tf-button.medium.small-icon img + img {
    margin-left: -0.5rem;
}

a.tf-button.white svg,
button.tf-button.white svg,
a.tf-button.transparent svg,
button.tf-button.transparent svg,
a.tf-button.yellow svg,
button.tf-button.yellow svg {
    fill: var(--textcolor);
}

a.tf-button.red svg,
button.tf-button.red svg,
a.tf-button.blue svg,
button.tf-button.blue svg,
a.tf-button.transparent-light svg,
button.tf-button.transparent-light svg {
    fill: white;
}

a.tf-button:hover svg,
button.tf-button:hover svg {
    fill: white;
}

a.tf-button.blue:hover svg,
button.tf-button.blue:hover svg {
    fill: var(--textcolor);
}

a.tf-button.disabled,
button.tf-button.disabled {
    opacity: 0.3;
    pointer-events: none;
}

a.tf-button span.separated,
button.tf-button span.separated {
    border-left: var( --border-thinoutline-black );
    padding-left: 0.75rem;
    margin-left: 0.25rem;
    transition: border .2s;
}

a.tf-button:hover span.separated,
button.tf-button:hover span.separated {
    border-left: var( --border-thinoutline-white );
}

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

    a.tf-button span.hide-mobile,
    button.tf-button span.hide-mobile {
        display: none;
    }
    
}


/* BUTTON GROUP */

div.tf-button-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

div.tf-button-group:not( :first-child ) {
    margin-top: 2rem;
}

div.tf-button-group:not( :last-child ) {
    margin-bottom: 2rem;
}

div.tf-button-group.center {
    justify-content: center;
}

div.tf-button-group.right {
    justify-content: flex-end;
}

div.tf-lecturers-minimized-grid div.tf-button-group.right{
    flex-grow: 1;
    margin-top: 0;
    align-items: flex-end;
}

div.tf-button-group .tf-button,
div.tf-button-group .tf-stepper {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

div.tf-button-group p {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    font-weight: 500 !important;
}


/* CHECK BUTTONS */

div.tf-check-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

div.tf-check-buttons button {
    position: relative;
    display: flex;
    height: 50px;
    width: fit-content;
    border-radius: 25px;
    text-decoration: none;
    padding: 0;
    padding-left: 1.5rem;
    padding-right: calc( 42px + 1.5rem );
    font: inherit;
    font-size: 1.25rem;
    line-height: 1.25rem;
    letter-spacing: -0.03rem;
    font-weight: 500;
    border: none;
    align-items: center;
    gap: 1rem;
    background-color: white;    
    color: var( --textcolor );
    border: var( --border-thinoutline-black );
    cursor: pointer;
    transition: background-color .2s, color .2s, border .2s;
}

div.tf-check-buttons button svg,
div.tf-check-buttons button img {
    fill: var( --textcolor );
    width: 1.5rem;
    transition: fill .2s;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

div.tf-check-buttons button::before {
    content: "";
    display: block;
    position: absolute;
    top: 7px;
    right: 7px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: var( --border-thinoutline-black );
    transition: background-color .2s, border .2s;
}

div.tf-check-buttons button:hover,
div.tf-check-buttons button.selected {
    background-color: var( --textcolor );
    color: white;
    border-color: transparent;
}

div.tf-check-buttons button:hover svg,
div.tf-check-buttons button.selected svg {
    fill: white;
}

div.tf-check-buttons button.selected::before {

}

div.tf-check-buttons button:hover::before {
    background-color: rgba( 255, 255, 255, 0.1 );
}

div.tf-check-buttons button.selected::before {
    background-color: white;
}

div.tf-check-buttons button::after {
    content: "";
    display: block;
    position: absolute;
    top: calc( 7px + 6px );
    right: calc( 7px + 12px );
    width: 10px;
    height: 18px;
    border-bottom: 3px solid white;
    border-right: 3px solid white;
    transform: rotateZ(45deg);
    opacity: 0;
    transition: opacity .2s;
}

div.tf-check-buttons button.selected::after {
    opacity: 1;
    border-bottom: 3px solid var( --textcolor );
    border-right: 3px solid var( --textcolor ); 
}


/* STEPPER */

div.tf-stepper {
    display: flex;    
    max-width: 220px;
    width: 100%;
}

div.tf-stepper.wide {
    max-width: 280px;
}

div.tf-stepper:not( :first-child ) {
    margin-top: 2rem;
}

div.tf-stepper:not( :last-child ) {
    margin-bottom: 2rem;
}

div.tf-stepper input {
    display: block;
    font: inherit;
    appearance: none;
    width: 0px;
    flex-grow: 1;
    text-align: center;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.25rem;
    background-color: var( --textcolor );   
    color: white;
    border: var( --border-thinline-white );
    border-top: 0px;
    border-bottom: 0px;
    height: 50px;
    padding: 1.5rem;
    padding-top: 0px;
    padding-bottom: 0px;
    outline: none;
    resize: none;
    border-radius: 0px;
    transition: border .2s;
}

div.tf-stepper button {
    position: relative;
    display: flex;
    height: 50px;
    width: 50px;
    text-decoration: none;
    padding: 0;
    font: inherit;
    font-size: 1.25rem;
    line-height: 1.25rem;
    letter-spacing: -0.03rem;
    font-weight: 500;
    border: none;
    align-items: center;
    justify-content: center;
    background-color: var( --textcolor );   
    color: white;
    cursor: pointer;
    transition: background-color .2s, color .2s, border .2s;
}

div.tf-stepper button:first-child {
    border-radius: 25px 0px 0px 25px;
    padding-left: 5px;
}

div.tf-stepper button:last-child {
    border-radius: 0px 25px 25px 0px;
    padding-right: 5px;
}

@media (hover: hover) {

    div.tf-stepper button:hover {
        background-color: white;
        color: var( --textcolor );
        border: var( --border-thinoutline-black );
    }

    div.tf-stepper button:first-child:hover {
        border-right-color: transparent;
    }
    
    div.tf-stepper button:last-child:hover {
        border-left-color: transparent;
    }

}


/* BOX SELECT */

ul.tf-box-select {
    list-style: none;
    display: flex;
    gap: 2rem;
}

ul.tf-box-select > li {
    position: relative;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    border-radius: 1rem;
    background-color: white;
    padding: 1.5rem;
    flex-basis: 0px;
    flex-grow: 1;
    box-shadow: var( --box-shadow-card );
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}

ul.tf-box-select > li.selected {
    background-color: var( --light-red );
}

ul.tf-box-select:hover > li.selected {
    background-color: white;
}

ul.tf-box-select:hover > li:hover {
    background-color: var( --light-red );
}

ul.tf-box-select > li::before {
    content: "";
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: var( --border-thinoutline-black );
    transition: background-color .2s, border .2s;
}

ul.tf-box-select > li:hover::before {
    background-color: rgba( 26, 48, 86, 0.1 );
}

ul.tf-box-select > li.selected::before {
    background-color: var( --main-color );
    border: 0px none;
}

ul.tf-box-select > li::after {
    content: "";
    display: block;
    position: absolute;
    top: calc( 1.5rem + 6px );
    right: calc( 1.5rem + 12px );
    width: 10px;
    height: 18px;
    border-bottom: 3px solid white;
    border-right: 3px solid white;
    transform: rotateZ(45deg);
    opacity: 0;
    transition: opacity .2s;
}

ul.tf-box-select > li.selected::after {
    opacity: 1;
}

ul.tf-box-select > li h4 {
    padding-top: 4px;
    border-bottom: var( --border-thinline-black );
    height: calc( 34px + 1.5rem );
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    padding-right: calc( 34px + 1rem );
}

ul.tf-box-select > li h4 img,
ul.tf-box-select > li h4 svg {
    width: 2rem !important;
    height: 2rem !important;
}

ul.tf-box-select > li ul.checkmark-list {
    margin-top: 1.5rem !important;
}

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

    ul.tf-box-select {
        flex-direction: column;
    }
    
}


/* IMAGE */

img.tf-image {
    display: block;
    border-radius: 1rem;
}

img.tf-image.circle {
    border-radius: 50%;
    height: auto;
    aspect-ratio: 1;
}


/* VIDEO */

div.tf-video {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1rem;
}

div.tf-video iframe {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;    
}


/* DETAILS */

details.tf-details {
    
}

details.tf-details summary {
    position: relative;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    padding-right: 3.5rem;
}

details.tf-details summary::before {
    content: "";
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    border-left: 2px solid var( --textcolor );
    border-top: 2px solid var( --textcolor );
    right: 3px;
    top: 2px;
    transform: rotateZ(225deg);
}

details.tf-details[open] summary::before {
    transform: rotateZ(45deg);
    top: 10px;
}

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

    details.tf-details summary {
        padding-right: 2.5rem;
    }

}