

/*

    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.

*/



/* HEADER */


header.tf-header {
    position: fixed;
    overflow: hidden;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 72px;
    z-index: 10;
    transition: background-color .2s, height .2s;
}

header.tf-header.offwhite {
    background-color: var(--background-off-white);
}

header.tf-header.grey {
    background-color: var(--background-grey);
}

header.tf-header.lightblue {
    background-color: var(--light-blue);
}

header.tf-header.red {
    background-color: var(--main-color);
}

header.tf-header.minimized {
    height: 50px;
}

header.tf-header.red.minimized:not( .above-hero ),
header.tf-header.lightblue.minimized:not( .above-hero ) {
    background-color: var(--background-grey);
}

header.tf-header .wrapper {
    position: relative;
    margin: auto;
    width: min( 90vw, 1400px );
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding-top .2s, border-bottom .2s;
}

header.tf-header.minimized .wrapper {

}

header.tf-header .wrapper a {
    display: block;
}

header.tf-header .wrapper a.tf-button {
    display: flex;
}

header.tf-header.offwhite .wrapper,
header.tf-header.grey .wrapper,
header.tf-header.lightblue .wrapper {
    border-bottom: var(--border-thinline-black);
}

header.tf-header.red .wrapper {
    border-bottom: var(--border-thinline-white);
}

header.tf-header.red.minimized:not( .above-hero ) .wrapper,
header.tf-header.lightblue.minimized:not( .above-hero ) .wrapper {
    border-bottom: var(--border-thinline-black);
}

header.tf-header .wrapper .logo {
    flex-basis: 33.33333333%;
    flex-shrink: 1;
}

header.tf-header .wrapper .logo a {
    height: 40px;
}

header.tf-header .wrapper .logo svg {
    width: auto;
    height: 40px;
    transition: height .2s, margin-top .2s;
}

header.tf-header.offwhite .wrapper .logo svg,
header.tf-header.grey .wrapper .logo svg,
header.tf-header.lightblue .wrapper .logo svg {
    fill: var(--textcolor);
}

header.tf-header.offwhite .wrapper .logo svg .logo,
header.tf-header.grey .wrapper .logo svg .logo,
header.tf-header.lightblue .wrapper .logo svg .logo {
    fill: var(--main-color);
}

header.tf-header.red .wrapper .logo svg {
    fill: white;
}

header.tf-header.minimized .wrapper .logo svg .logo {
    fill: var(--main-color);
}

header.tf-header.minimized .wrapper .logo svg .text {
    fill: var(--textcolor);
}

header.tf-header.red.minimized.above-hero .logo .logo,
header.tf-header.red.minimized.above-hero .logo .text {
    fill: white;
}

header.tf-header.minimized .wrapper .logo svg {
    height: 32px;
    margin-top: 4px;
}

header.tf-header.minimized:not( .red.above-hero ) .tf-button.halftransparent-light { /* convert to outline button */
    background-color: transparent;
    color: var( --textcolor );
    border: var( --border-thinoutline-black );
}

header.tf-header.minimized:not( .red.above-hero ) .tf-button.halftransparent-light:hover { /* convert to outline button */
    background-color: var( --textcolor );
    color: white;
    border-color: var( --textcolor );
}

header.tf-header.minimized:not( .red.above-hero ) .tf-button.halftransparent-light svg { /* convert to outline button */
    fill: var( --textcolor );
}

header.tf-header.minimized:not( .red.above-hero ) .tf-button.halftransparent-light:hover svg { /* convert to outline button */
    fill: white;
}

header.tf-header .wrapper .foldout-wrapper {
    flex-basis: 66.66666666%;
    display: flex;
    flex-grow: 1;
    min-width: fit-content;
}

header.tf-header .wrapper .foldout-wrapper nav {
    display: flex;
    height: 34px;
    min-width: fit-content;
}

header.tf-header .wrapper .foldout-wrapper nav.center-navigation {
    width: 50%;
    justify-content: center;
    padding-left: 0.125rem;
    padding-right: 0.125rem;
}

header.tf-header .wrapper .foldout-wrapper nav.side-navigation {
    width: 50%;
    justify-content: flex-end;
}

header.tf-header .wrapper .foldout-wrapper nav ul {
    display: flex;
    list-style: none;
    gap: 0.125rem;
}

header.tf-header .wrapper .foldout-wrapper nav ul li.extra-padding {
    margin-left: 0.625rem;
}

header.tf-header .wrapper .foldout-wrapper nav ul li.foldout-only {
    display: none;
}

header.tf-header .wrapper .foldout-wrapper nav.center-navigation ul li {
    position: relative;
}

header.tf-header .wrapper .foldout-wrapper nav ul a {
    position: relative;
    text-decoration: none;
    text-wrap: nowrap;
}

header.tf-header .wrapper .foldout-wrapper nav ul a:not(.tf-button) {
    border-radius: 17px;
    height: 34px;
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    gap: 0.4rem;
    transition: background-color .2s;
}

header.tf-header .wrapper .foldout-wrapper nav ul a:not(.tf-button):hover,
header.tf-header .wrapper .foldout-wrapper nav ul a.active:not(.tf-button) {
    background-color: rgba( 26, 48, 86, 0.08 );
}

header.tf-header.red .wrapper .foldout-wrapper nav ul a:not(.tf-button):hover,
header.tf-header.red .wrapper .foldout-wrapper nav ul a.active:not(.tf-button) {
    background-color: rgba( 255, 255, 255, 0.2 );
}

header.tf-header.red.minimized:not( .above-hero ) .wrapper .foldout-wrapper nav ul a:not(.tf-button):hover,
header.tf-header.red.minimized:not( .above-hero ) .wrapper .foldout-wrapper nav ul a.active:not(.tf-button) {
    background-color: rgba( 26, 48, 86, 0.08 );
}

header.tf-header .wrapper .foldout-wrapper nav.center-navigation ul a:not(.tf-button) {
    font-weight: 500;
}

header.tf-header .wrapper .foldout-wrapper nav ul a:not(.tf-button) svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: var( --textcolor );
}

header.tf-header .wrapper .foldout-wrapper nav.center-navigation ul a:not(.tf-button) svg {
    width: 1.5rem;
    height: 1.5rem;
}

header.tf-header.red .wrapper .foldout-wrapper nav ul a:not(.tf-button) svg {
    fill: white;
}

header.tf-header.red.minimized:not( .above-hero ) .wrapper .foldout-wrapper nav ul a:not(.tf-button) svg {
    fill: var( --textcolor );
}

header.tf-header.red .wrapper .foldout-wrapper nav ul a:not(.tf-button) {
    color: white;
}

header.tf-header.red.minimized:not( .above-hero ) .wrapper .foldout-wrapper nav ul a:not(.tf-button) {
    color: var( --textcolor );
}

header.tf-header .wrapper .foldout-wrapper nav ul a.username {
    margin-left: 0.75rem;
}

header.tf-header .wrapper .foldout-wrapper nav ul a.username svg {
    width: 1rem;
    height: 1rem;
}

header.tf-header .wrapper .foldout-wrapper nav ul a.username span {
    max-width: 120px;
    text-overflow: ellipsis;
    text-wrap: nowrap;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 500;
}

header.tf-header .wrapper .menu-icon {
    background-color: transparent;
    border-radius: 0px;
    height: 40px;
    width: 40px;
    padding: 0px;
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding-top: 7px;
    padding-bottom: 7px;
    z-index: 999991;
    display: none;
    border: none;
    cursor: pointer;
}

header.tf-header .wrapper .menu-icon.close {
    position: fixed;
    right: 5vw;
    top: 1rem;
}

header.tf-header .wrapper .menu-icon span {
    background-color: var( --textcolor );
    display: block;
    height: 4px;
    border-radius: 2px;
    width: 100%;
    transition: opacity .4s, transform .4s, background-color .4s;
}

header.tf-header.red:not( .minimized ) .wrapper .menu-icon span,
header.tf-header.red.minimized.above-hero .wrapper .menu-icon span {
    background-color: white;
}

header.tf-header .wrapper .menu-icon.close span {
    opacity: 0;
    background-color: white;
}

header.tf-header .wrapper .menu-icon.close span:first-child {
    transform: translate3d( 0px, 11px, 0 ) rotateZ(45deg);
    opacity: 1;
}

header.tf-header .wrapper .menu-icon.close span:last-child {
    transform: translate3d( 0px, -11px, 0 ) rotateZ(-45deg);
    opacity: 1;
}

header.tf-header.minimal .hidden-on-minimal {
    display: none;
}


@media only screen and (max-width: 1100px) {
    
    header.tf-header .wrapper .foldout-wrapper {
        position: fixed;
        left: 0px;
        top: 0px;
        width: 100%;
        height: 100%;
        background-color: var(--main-color);
        color: white;
        z-index: 999990;
        pointer-events: none;
        transform: translate3d( 100%, 0px, 0 );
        transition: transform .4s;
        flex-direction: column;
        gap: 0.5rem;
        padding-left: 5vw;
        padding-right: 5vw;
        padding-top: calc( 72px + 1rem );
        padding-bottom: 1rem;
        font-size: 1.25rem;
        line-height: 1.25rem;
        justify-content: center;
    }
    
    header.tf-header .wrapper .foldout-wrapper::before {
        content: "";
        display: block;
        border-bottom: var( --border-thinline-white );
        position: absolute;
        left: 5vw;
        top: 71px;
        right: 5vw;
    }
    
    header.tf-header .wrapper .foldout-wrapper.visible {
        transform: translate3d( 0px, 0px, 0 );
        pointer-events: all;
    }
    
    header.tf-header .wrapper .foldout-wrapper nav,
    header.tf-header .wrapper .foldout-wrapper nav.center-navigation,
    header.tf-header .wrapper .foldout-wrapper nav.side-navigation {
        height: auto;
        justify-content: left;
        width: 100%;
        padding: 0px;
    }
    
    header.tf-header .wrapper .foldout-wrapper nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    header.tf-header .wrapper .foldout-wrapper nav ul a:not(.tf-button) {
        color: white !important;
        height: 50px;
        border-radius: 25px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        gap: 0.75rem;
    }
    
    
    header.tf-header .wrapper .foldout-wrapper nav.center-navigation ul a:not(.tf-button) svg,
    header.tf-header .wrapper .foldout-wrapper nav ul a.username svg {
        fill: white !important;
    }
    
    header.tf-header .wrapper .foldout-wrapper nav ul a:not(.tf-button):hover, 
    header.tf-header .wrapper .foldout-wrapper nav ul a.active:not(.tf-button) {
        background-color: rgba( 255, 255, 255, 0.2 ) !important;
    }
    
    header.tf-header .tf-button.halftransparent-light:not(:hover),
    header.tf-header .tf-button.transparent.outline:not(:hover),
    header.tf-header.minimized:not( .red.above-hero ) .tf-button.halftransparent-light:not(:hover) {
        background-color: rgba( 255, 255, 255, 0.2 );
    }
    
    header.tf-header .tf-button.halftransparent-light,
    header.tf-header .tf-button.transparent.outline,
    header.tf-header.minimized:not( .red.above-hero ) .tf-button.halftransparent-light {
        color: white;
        border: var( --border-thinoutline-white );
    }
    
    header.tf-header .tf-button.halftransparent-light svg,
    header.tf-header .tf-button.transparent.outline svg,
    header.tf-header.minimized:not( .red.above-hero ) .tf-button.halftransparent-light svg {
        fill: white;
    }

    header.tf-header .wrapper .foldout-wrapper nav ul .tf-button,
    header.tf-header .wrapper .foldout-wrapper nav ul a.username {
        margin-left: 0px;
    }
    
    header.tf-header .wrapper .foldout-wrapper nav ul .tf-button {
        font-size: 1.25rem;
        line-height: 1.5rem;
        height: 50px;
        border-radius: 25px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        position: absolute;
        top: 12px;
        left: 5vw;
    }
    
    header.tf-header .wrapper .foldout-wrapper nav ul a.username {
        position: absolute;
        top: 12px;
        left: 5vw;
    }
    
    header.tf-header .wrapper .foldout-wrapper nav ul a.username span {
        font-size: 1rem;
        font-weight: 400;
        max-width: 200px;
    }
    
    header.tf-header .wrapper .foldout-wrapper nav ul li.extra-padding {
        margin-left: 0px;
    }
    
    header.tf-header .wrapper .foldout-wrapper nav ul li.foldout-only {
        display: block;
    }
    
    header.tf-header .wrapper .menu-icon {
        display: flex;
    }

}


@media only screen and (min-width: 1410px) {

    header.tf-header .wrapper .foldout-wrapper nav ul a.username span {
        max-width: 160px;
    }
    
}


@media only screen and (min-width: 1510px) {

    header.tf-header .wrapper .foldout-wrapper nav ul a.username span {
        max-width: 200px;
    }
    
}



/* FOOTER */


footer.tf-footer {
    position: relative;
    background-color: var(--main-color);
    color: white;
    overflow: hidden;
}

footer.tf-footer h3 {
    margin-bottom: 1rem;
    color: #ffa09b;
}

footer.tf-footer .wrapper {
    position: relative;
    margin: auto;
    width: min( 90vw, 1400px );
    height: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: flex;
    justify-content: space-between;
}

footer.tf-footer .wrapper + .wrapper {
    padding-top: 0rem;
    border-top: var( --border-thinline-white );
}

footer.tf-footer .wrapper a {
    display: block;
    text-decoration: none;
}


footer.tf-footer .wrapper.top {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

footer.tf-footer .wrapper.top .logo img {
    width: auto;
    height: 40px;
    display: block;
    margin-bottom: 0px;
}


footer.tf-footer .wrapper.mid {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

footer.tf-footer .wrapper.mid .company p {
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.7rem;
    text-wrap: balance;
}

footer.tf-footer .wrapper.mid nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-direction: column;
    justify-content: flex-start;
}

footer.tf-footer .wrapper.mid nav ul li {
    width: fit-content;
}

footer.tf-footer .wrapper.bottom {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

footer.tf-footer .wrapper.bottom nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

footer.tf-footer .wrapper nav ul a {
    position: relative;
    text-decoration: none;
    color: white;
}

footer.tf-footer .wrapper nav ul a::before,
footer.tf-footer .wrapper nav ul a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: white;
}

footer.tf-footer .wrapper nav ul a.tf-button::before,
footer.tf-footer .wrapper nav ul a.tf-button::after {
    display: none;
}

footer.tf-footer .wrapper nav ul a::before {
    opacity: 0;
    transform: translateY(-8px);
    transition: transform 0s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0s;
}

footer.tf-footer .wrapper nav ul a::after {
    opacity: 0;
    transform: translateY(4px);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.2s;
}

footer.tf-footer .wrapper nav ul a:hover::before,
footer.tf-footer .wrapper nav ul a:hover::after,
footer.tf-footer .wrapper nav ul a.active::before,
footer.tf-footer .wrapper nav ul a.active::after {
    opacity: 1;
    transform: translateY(0);
}

footer.tf-footer .wrapper nav ul a:hover::before,
footer.tf-footer .wrapper nav ul a.active::before {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.2s;
}

footer.tf-footer .wrapper nav ul a:hover::after,
footer.tf-footer .wrapper nav ul a.active::after {
    transition: transform 0s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0s 0.2s;
}

footer.tf-footer .wrapper nav ul li.copyright {
    border-left: var( --border-thinline-white );
    padding-left: 1.5rem;
}


footer.tf-footer.minimal .hidden-on-minimal {
    display: none;
}


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

    footer.tf-footer .wrapper.mid {
        grid-template-columns: 1fr 1fr;
    }
    
    footer.tf-footer .wrapper.mid .company {
        grid-column: span 2;
    }

}

@media only screen and (max-width: 550px) {
    
    footer.tf-footer .wrapper.bottom nav ul {
        width: 100%;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        box-sizing: border-box;
    }
    
    footer.tf-footer .wrapper.bottom nav {
        width: 100%;
    }
    
    footer.tf-footer .wrapper.bottom nav ul li.copyright {
        width: 100%;
        border-left: none;
        padding-left: 0px;
        padding-top: 1rem;
        border-top: var(--border-thinline-white);
    }
    
    footer.tf-footer .wrapper.mid {
        grid-template-columns: 1fr;
    }
    
    footer.tf-footer .wrapper.mid .company {
        grid-column: span 1;
    }
    
}



/* PAGE */


div.tf-page {
    position: relative;
    width: 100%;
    min-height: calc( 100vh - 72px );
    padding-top: 72px;
}



/* LOADINGINDICATOR */


div.tf-loadingindicator {
    position: fixed;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    width: 140px;
    height: 60px;
    background-color: white;
    box-shadow: var( --box-shadow-card );
    border-radius: 30px;
    z-index: 999998;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding-left: 2rem;
    padding-right: 2rem;
    opacity: 0;
    transition: opacity .2s;
}

div.tf-loadingindicator.visible {
    opacity: 1;
    transition: none;
}

div.tf-loadingindicator div {
    width: 1rem;
    height: 1rem;
    background-color: var( --main-color );
    border-radius: 50%;
    animation: tf-loadingindicator 1s linear infinite;
}

div.tf-loadingindicator div:nth-child(2) {
    animation-delay: 0.2s;
}

div.tf-loadingindicator div:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes tf-loadingindicator {
    0% {
        transform: scale( 0.5 );
    }
    50% {
        transform: scale( 1 );
    }
    100% {
        transform: scale( 0.5 );
    }
}