

/*

    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.

*/


/* HERO */

section.tf-hero {
    padding: 0px;
    overflow: hidden;
}

section.tf-hero.grey {
    background-color: var(--background-grey);
    color: var(--textcolor);
}

section.tf-hero.lightblue {
    background-color: var(--light-blue);
    color: var(--textcolor);
}

section.tf-hero.red {
    background-color: var(--main-color);
    color: white;
}

section.tf-hero .wrapper {
    position: relative;
    margin: auto;
    width: min( 90vw, 1400px );
    min-height: 510px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section.tf-hero.minimized .wrapper {
    min-height: 360px;
}

section.tf-hero:has( + nav.tf-hero-quickaction ) .wrapper {
    padding-bottom: calc( 1rem + ( ( 50px + 2rem ) / 2 ) );
}

section.tf-hero .wrapper h1,
section.tf-hero .wrapper h3,
section.tf-hero .wrapper .eyebrow {
    z-index: 1;
}

section.tf-hero.grey .wrapper h1,
section.tf-hero.grey .wrapper h3,
section.tf-hero.lightblue .wrapper h1,
section.tf-hero.lightblue .wrapper h3 {
    color: var(--textcolor);
}

section.tf-hero.red .wrapper h1,
section.tf-hero.red .wrapper h3 {
    color: white;
}

section.tf-hero .wrapper h1 {
    letter-spacing: -0.02em;
    max-width: 515px;
    font-size: 2.3rem;
    line-height: 2.7rem;
    font-weight: bold;
}

section.tf-hero .wrapper h1 span {
    position: relative;
}

section.tf-hero .wrapper h1 span::before {
    content: "";
    display: block;
    position: absolute;
    left: 0px;
    right: -1rem;
    top: 0px;
    width: auto;
    height: 100%;
    border-radius: 0.5rem;
    z-index: -1;
}

section.tf-hero.red .wrapper h1 span::before {
    background-color: var( --main-color );
}

section.tf-hero.grey .wrapper h1 span::before {
    background-color: var(--background-grey);
}

section.tf-hero.lightblue .wrapper h1 span::before {
    background-color: var(--light-blue);
}

section.tf-hero.optimize-index .wrapper h1 {
    max-width: 680px;
}

section.tf-hero .wrapper h3 {
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1.875rem;
    margin-top: 1.875rem;
    max-width: 515px;
    text-wrap: balance;
    border-radius: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

section.tf-hero.red .wrapper h3 {
    background-color: var( --main-color );
    border-right: 1rem solid var( --main-color );
}

section.tf-hero.grey .wrapper h3 {
    background-color: var(--background-grey);
    border-right: 1rem solid var(--background-grey);
}

section.tf-hero.lightblue .wrapper h3 {
    background-color: var(--light-blue);
    border-right: 1rem solid var(--light-blue);
}

section.tf-hero.optimize-index .wrapper h3 {
    max-width: 23.5em;
}

section.tf-hero.optimize-fortbildungen .wrapper h3 {
    max-width: 25em;    
}

section.tf-hero.optimize-meine-fortbildungen .wrapper h3 {
    max-width: 19.5em;    
}

section.tf-hero.optimize-crashkurse .wrapper h3 {
    max-width: 20.5em;    
}

section.tf-hero.optimize-kurztipps .wrapper h3 {
    max-width: 16em;    
}

section.tf-hero.optimize-ueber .wrapper h3 {
    max-width: 22.5em;
}

section.tf-hero.optimize-kontakt .wrapper h3 {
    max-width: 25.5em;
}

section.tf-hero .wrapper h1 span.underline {
    position: relative;
    display: inline-block;
}

section.tf-hero .wrapper h1 span.underline::before {
    content: "";
    display: block;
    width: 100%;
    height: 6px;
    position: absolute;
    left: 0px;
    bottom: -4px;
    border-radius: 3px;
    background-color: var( --secondary-color );
    z-index: -1;
}

section.tf-hero .wrapper .eyebrow {    
    min-height: 34px;
    width: fit-content;
    border-radius: 0.5rem;
    padding: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-top: 0px;
    margin-bottom: 1rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

section.tf-hero.grey .wrapper .eyebrow {
    color: var(--background-grey);
    background-color: var(--textcolor);
}

section.tf-hero.lightblue .wrapper .eyebrow {
    color: var(--light-blue);
    background-color: var(--textcolor);
}

section.tf-hero.red .wrapper .eyebrow {
    color: var(--main-color);
    background-color: white;
}

section.tf-hero .wrapper .tf-button-group {
    margin-bottom: 0px;
    z-index: 1;
}

section.tf-hero.red .wrapper .tf-button-group .tf-button.transparent-light:not(:hover) {
    background-color: var( --main-color );
}

section.tf-hero .wrapper .illustration {
    position: absolute;
    right: 0px;
    top: 2rem;
    height: calc( 100% - 4rem );
    width: auto;
}

section.tf-hero.minimized .wrapper .illustration {
    top: 1rem;
    height: calc( 100% + 4rem );
}

section.tf-hero .wrapper .illustration.has-bottomedge {
    top: auto;
    bottom: 0px;
}

section.tf-hero.minimized .wrapper .illustration.has-bottomedge {
    height: calc( 100% - 1rem );
}

section.tf-hero.optimize-kontakt .wrapper .illustration {
    top: 0rem;
    height: 100%;
}


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

    section.tf-hero .wrapper {
        min-height: 400px;    
    }
    
    section.tf-hero .wrapper h1 {
        max-width: 500px;
        font-size: 2rem;
        line-height: 2.3rem;
    }
    
    section.tf-hero .wrapper h3 {
        font-size: 1.2rem;
        line-height: 1.5rem;
    }

}

@media only screen and (max-width: 1000px) {
    
    section.tf-hero.optimize-kontakt .wrapper .illustration {
        left: auto;
        right: 0px;
    }
    
}

@media only screen and (max-width: 800px) {
    
    section.tf-hero .wrapper {
        padding-bottom: 2.25rem;
    }
    
    section.tf-hero:has( + nav.tf-hero-quickaction ) .wrapper {
        padding-bottom: calc( 2.25rem + ( ( 50px + 2rem ) / 2 ) );
    }
    
    section.tf-hero .wrapper .illustration {
        position: relative;
        order: -1;
        left: 0px;
        right: 0px;
        top: 0px;
        width: 70%;
        margin-left: 15%;
        height: auto;
        margin-bottom: 1.875rem;
    }
    
    section.tf-hero .wrapper .illustration.has-bottomedge {
        border-bottom: var(--border-thinline-white);
    }
    
}

@media only screen and (max-width: 550px) {
    
    section.tf-hero .wrapper .illustration {
        width: 100%;
        margin-left: 0px;
        left: 0px;
        right: 0px;
    }
    
    section.tf-hero.optimize-kontakt .wrapper .illustration {
        width: 50%;
    }
    
}


/* HERO-QUICKACTION */

/*nav.tf-hero-quickaction {
    position: relative;
    margin-top: calc( ( 50px + 2rem ) / -2 );
}

nav.tf-hero-quickaction .wrapper {
    position: relative;
    margin: auto;
    width: min( 90vw, 1400px );
}

nav.tf-hero-quickaction .wrapper ul {
    list-style: none;
    display: flex;
    background-color: white;
    box-shadow: var( --box-shadow-card );
    padding: 1rem;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    gap: 1rem;
    border-radius: 41px;
    flex-wrap: wrap;
    justify-content: center;
}*/



/* JUMPACTION */


div.tf-jumpaction {
    position: relative;
}

div.tf-jumpaction > .bar {
    display: flex;
    position: sticky;
    top: 0px;
    margin-top: 0px;
    z-index: 5;
    background-color: var( --background-off-white );
    height: 82px;
}

.tf-header + .tf-page div.tf-jumpaction > .bar {
    top: 50px;
}

div.tf-jumpaction > .bar.blue,
div.tf-jumpaction > .bar.lightblue {
    background-color: var(--light-blue);
}

div.tf-jumpaction > .bar.red {
    background-color: var(--main-color );
    color: white;
}

div.tf-jumpaction > .bar .wrapper {
    position: relative;
    margin: auto;
    width: min( 90vw, 1400px );
    border-bottom: var( --border-thinline-black );
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 1rem;
}

div.tf-jumpaction > .bar.centered .wrapper {
    justify-content: center;
}

div.tf-jumpaction > .bar.red .wrapper {
    border-bottom: var( --border-thinline-white );
}

div.tf-jumpaction > .bar .wrapper ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

div.tf-jumpaction > .bar .wrapper ul.quickaction {
    overflow: hidden;
}

div.tf-jumpaction > .bar .wrapper ul.quickaction li {
    overflow: hidden;
}

div.tf-jumpaction > .bar .wrapper ul.jumpaction {
    gap: 1.5rem;
}

div.tf-jumpaction > .bar .wrapper:not( :has( .quickaction ) ) ul.jumpaction {
    flex-grow: 1;
    justify-content: center;
}

div.tf-jumpaction > .bar .wrapper ul.jumpaction li {
    overflow: hidden;
}

div.tf-jumpaction > .bar .wrapper ul.jumpaction a {
    background-color: transparent;
    height: 50px;
    padding: 0px;
    display: flex;
    font: inherit;
    font-size: 1rem;
    line-height: 1rem;
    font-weight: 500;
    text-decoration: none;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
}

div.tf-jumpaction > .bar .wrapper ul.jumpaction a img,
div.tf-jumpaction > .bar .wrapper ul.jumpaction a svg {
    width: auto;
    height: 2rem;
    fill: var( --textcolor );
}

div.tf-jumpaction > .bar.red .wrapper ul.jumpaction a img,
div.tf-jumpaction > .bar.red .wrapper ul.jumpaction a svg {
    fill: white;
}

div.tf-jumpaction > .bar .wrapper ul.jumpaction:hover a,
div.tf-jumpaction.active > .bar .wrapper ul.jumpaction a {
    opacity: .4;
}

div.tf-jumpaction > .bar .wrapper ul.jumpaction a:hover,
div.tf-jumpaction.active > .bar .wrapper ul.jumpaction a.active {
    opacity: 1;
}

div.tf-jumpaction > .bar .wrapper ul.jumpaction a span:not(.badge) {
    text-overflow: ellipsis;
    word-wrap: nowrap;
    overflow: hidden;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

div.tf-jumpaction > .bar .wrapper ul.jumpaction a span.short {
    display: none;
}

div.tf-jumpaction > .bar .wrapper ul.jumpaction a span.badge {
    background-color: var( --textcolor );
    color: var( --background-off-white );
    border-radius: 10rem;
    padding: 0.125rem;
    padding-bottom: 0.1rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    font-weight: bold;
    font-size: 0.5rem;
    text-transform: uppercase;
    position: relative;
    margin-left: -6px;
    margin-top: -14px;
}

div.tf-jumpaction .jumpto {
    scroll-margin-top: 81px;
}


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

    div.tf-jumpaction > .bar:has( .quickaction.wide-content ) { 
        height: 100px;
    }
    
    div.tf-jumpaction:has( .quickaction.wide-content ) > .bar .wrapper {
        flex-direction: column-reverse;
        gap: 0px;
    }
    
    div.tf-jumpaction > .bar .wrapper ul.quickaction.wide-content {
        height: 50px;
        display: flex;
        align-items: flex-end;
    }

}*/

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

    div.tf-jumpaction > .bar:has( .quickaction ) { 
        height: 100px;
    }
    
    div.tf-jumpaction:has( .quickaction ) > .bar .wrapper {
        flex-direction: column-reverse;
        gap: 0px;
    }
    
    div.tf-jumpaction > .bar .wrapper ul.quickaction {
        height: 50px;
        display: flex;
        align-items: flex-end;
    }

}

@media only screen and (max-width: 800px) {
    
    div.tf-jumpaction > .bar .wrapper ul.jumpaction {
        width: 100%;
        gap: 1rem;
    }
    
    div.tf-jumpaction > .bar .wrapper ul.jumpaction li {
        flex-grow: 1;
    }
    
    div.tf-jumpaction > .bar .wrapper ul.jumpaction li a {
        display: flex;
        justify-content: center;
    }
    
    div.tf-jumpaction > .bar .wrapper ul.jumpaction a span.default {
        display: none;
    }
    
    div.tf-jumpaction > .bar .wrapper ul.jumpaction a span.short {
        display: block;
    }
    
}

@media only screen and (max-width: 550px) {
    
    div.tf-jumpaction > .bar .wrapper ul.quickaction {
        gap: 0.5rem;
        width: 100%;
    }
    
    div.tf-jumpaction > .bar .wrapper ul.quickaction li {
        flex-grow: 1;
    }
    
    div.tf-jumpaction > .bar .wrapper ul.quickaction button.tf-button,
    div.tf-jumpaction > .bar .wrapper ul.quickaction a.tf-button {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        justify-content: center;
    }

    div.tf-jumpaction > .bar .wrapper ul.jumpaction a img,
    div.tf-jumpaction > .bar .wrapper ul.jumpaction a svg {
        display: none;
    }
    
}

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

    div.tf-jumpaction > .bar .wrapper ul.quickaction.wide-medium-buttons button.tf-button, 
    div.tf-jumpaction > .bar .wrapper ul.quickaction.wide-medium-buttons a.tf-button {
        height: 50px;
        border-radius: 25px;
        font-size: 1.25rem;
        line-height: 1.5rem;
        letter-spacing: -0.03rem;
        gap: 1rem;
        font-weight: 500;
    }
    
    div.tf-jumpaction > .bar .wrapper ul.quickaction.wide-medium-buttons button.tf-button svg,
    div.tf-jumpaction > .bar .wrapper ul.quickaction.wide-medium-buttons button.tf-button img,
    div.tf-jumpaction > .bar .wrapper ul.quickaction.wide-medium-buttons a.tf-button svg,
    div.tf-jumpaction > .bar .wrapper ul.quickaction.wide-medium-buttons a.tf-button img {
        width: 1.5rem;
    }

}