

/*

    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.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 {
    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.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.optimize-index .wrapper h3 {
    max-width: 610px;
}

section.tf-hero.optimize-fortbildungen .wrapper h3 {
    max-width: 340px;    
}

section.tf-hero.optimize-kostenlose-angebote .wrapper h3 {
    max-width: 360px;    
}

section.tf-hero.optimize-kontakt .wrapper h3 {
    max-width: 635px;
}

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

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

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

/*section.tf-hero ul.claims {
    margin-top: 2.25rem;
    font-weight: 500;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

section.tf-hero ul.claims li {
    display: flex;
    gap: 1rem;
    align-items: center;
    text-wrap: balance;
}

section.tf-hero ul.claims li .icon {
    width: 20px;
    height: auto;
}

section.tf-hero ul.claims.bigicons li .icon {
    width: 26px;
    margin-top: -3px;
    margin-bottom: -3px;
}*/

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-index .wrapper .illustration {
    top: 1rem;
    height: calc( 100% - 2rem );
}*/

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;
        max-width: 420px;
    }
    
    /*section.tf-hero.optimize-index .wrapper h1 {
        max-width: 460px;
    }*/
    
    section.tf-hero.optimize-index .wrapper h3 {
        max-width: 500px;
    }
    
    section.tf-hero.optimize-kontakt .wrapper h3 {
        max-width: 500px;
    }

}

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

    /*section.tf-hero .wrapper .illustration {
        left: 50vw;
        right: auto;
    }*/
    
    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;
    }
    
}

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


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


/* HERO-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 {
    background-color: var(--light-blue-var2);
}

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.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 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.short {
    display: none;
}

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

.tf-header + .tf-page div.tf-jumpaction .jumpto {
    scroll-margin-top: 131px;
}

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

    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.mobile-hide-icons {
        width: 100%;
        gap: 1rem;
    }
    
    div.tf-jumpaction > .bar .wrapper ul.jumpaction.mobile-hide-icons li {
        flex-grow: 1;
    }
    
    div.tf-jumpaction > .bar .wrapper ul.jumpaction.mobile-hide-icons 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 {
        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.25rem;
        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;
    }

}