

/*

    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.

*/



/* MODAL */

*[data-tf-modal] {
    cursor: pointer;
}

div.tf-modal {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999995;
    opacity: 0;
    transition: opacity .2s;
}

div.tf-modal.visible {
    opacity: 1;
}

div.tf-modal > .wrapper {
    width: 90vw;
    max-width: 1000px;
    height: auto;
    opacity: 0;
    transform: scale( 0.9 );
    transition: opacity .2s, transform .2s;
}

div.tf-modal > .wrapper.visible {
    opacity: 1;
    transform: scale( 1 );
}

div.tf-modal > .wrapper > .content {
    position: relative;
    background-color: white;
    border-radius: 1rem;
    width: 100%;
    height: auto;
    max-height: 90vh;
    max-height: 90svh;
    padding: 2rem;
    overflow: hidden;
    overflow-y: auto;
}

div.tf-modal > .wrapper section.tf-content > .wrapper {
    width: 100%;
}

div.tf-modal > .wrapper section.tf-content:first-child > .wrapper {
    padding-top: 0px;
}

div.tf-modal > .wrapper section.tf-content:last-child > .wrapper {
    padding-bottom: 0px;
}

div.tf-modal > .wrapper section.tf-content > .wrapper:first-child h2 {
    padding-right: 55px;
}

div.tf-modal > .wrapper > .close {
    background-color: transparent;
    height: 40px;
    width: 40px;
    padding: 0px;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    cursor: pointer;
    z-index: 6;
    border: none;
}

div.tf-modal.impulse > .wrapper > .close{
background-color: rgba(255,255,255,0.9);
    border-radius: 10px;
}

div.tf-modal > .wrapper > .close::before,
div.tf-modal > .wrapper > .close::after {
    content: "";
    background-color: var( --textcolor );
    display: block;
    height: 4px;
    border-radius: 2px;
    width: 100%;
    position: absolute;
    left: 0px;
    top: 0px;
    bottom: 0px;
    margin-top: auto;
    margin-bottom: auto;
}

div.tf-modal > .wrapper > .close::before {
    transform: rotateZ(45deg);
}

div.tf-modal > .wrapper > .close::after {
    transform: rotateZ(-45deg);
}

div.tf-modal > .wrapper > .quickaction {
    position: absolute;
    left: 0px;
    top: 100%;
    width: 100%;
    height: calc( 40px + 2rem );
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

div.tf-modal > .wrapper > .quickaction button.tf-button {
    pointer-events: all;
}

div.tf-modal .close-pane {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
}

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

    div.tf-modal > .wrapper > .content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    div.tf-modal > .wrapper > .close {
        top: 1.2rem;
        right: 1rem;
    }
    
}

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

    div.tf-modal.narrow-fullsize > .wrapper {
        width: 100vw;
    }
    
    div.tf-modal.narrow-fullsize > .wrapper > .content {
        height: 100vh;
        max-height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0px;
        padding-left: 5vw;
        padding-right: 5vw;
    }
        
    div.tf-modal.narrow-fullsize.course-preview > .wrapper > .content {
        padding-left: 0px;
        padding-right: 0px;
    }
    
}

div.tf-modal.message > .wrapper,
div.tf-modal.newsletter > .wrapper,
div.tf-modal.login > .wrapper {
    max-width: 700px;
}

div.tf-modal.video > .wrapper {
    max-width: 1400px;
}

div.tf-modal.video > .wrapper > .close {
    right: 0px;
    top: calc( -40px - 1rem );
}

div.tf-modal.video > .wrapper > .close::before,
div.tf-modal.video > .wrapper > .close::after {
    background-color: white;
}

div.tf-modal.video > .wrapper > .content {
    padding: 0px;
    aspect-ratio: 16 / 9;
    background-color: black;
    max-height: calc( 100svh - 4rem - 80px );
}

div.tf-modal.video > .wrapper > .content iframe {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: black;
}

div.tf-modal.course-preview > .wrapper {
    max-width: 1100px;
}

div.tf-modal.course-preview > .wrapper > .close {
    top: 1.4rem;
}

div.tf-modal.course-preview > .wrapper > .content {
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
    background-color: var( --background-off-white );
}

div.tf-modal.prices-and-order > .wrapper > .content {
    padding: 0px;
}

div.tf-modal.prices-and-order > .wrapper > .close {
    top: 21px;
}

div.tf-modal.impulse > .wrapper > .content:has( > .tf-impulse ) {
    padding: 0px;
}


/* WIE FUNKTIONIERT’S – Modal (Nov 2026) */
section.tf-content.k-hdw-b > .wrapper h2 { display:block; }
section.tf-content.k-hdw-b > .wrapper h2 span.k-hdw-akzent { color: var(--main-color); }
section.tf-content.k-hdw-b > .wrapper h2 + p { margin-top:.75rem; }
section.tf-content.k-hdw-b ul.k-b-gross { list-style:none; margin:2rem 0 0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
section.tf-content.k-hdw-b ul.k-b-gross li { margin:0; padding:1.5rem; border-radius:18px; }
section.tf-content.k-hdw-b ul.k-b-gross li::before { content:none; }
section.tf-content.k-hdw-b ul.k-b-gross li svg { width:40px; height:40px; fill:var(--textcolor); }
section.tf-content.k-hdw-b ul.k-b-gross li h4 { margin-top:.75rem; }
section.tf-content.k-hdw-b ul.k-b-gross li p.small { margin-top:.35rem; }
section.tf-content.k-hdw-b li.k-b-gelb { background:#fff3ba; transform:rotate(-1deg); }
section.tf-content.k-hdw-b li.k-b-blau { background:#cddcea; transform:rotate(.8deg); }
section.tf-content.k-hdw-b li.k-b-gruen { background:#deece1; transform:rotate(-.6deg); }
section.tf-content.k-hdw-b ul.k-b-klein { list-style:none; margin:1.5rem 0 0; padding:0; display:flex; flex-wrap:wrap; gap:.5rem 1.5rem; }
section.tf-content.k-hdw-b ul.k-b-klein li { margin:0; padding:0; display:flex; align-items:center; gap:.4rem; font-weight:500; }
section.tf-content.k-hdw-b ul.k-b-klein li::before { content:none; }
section.tf-content.k-hdw-b ul.k-b-klein li svg { width:22px; height:22px; fill:var(--textcolor); }

section.tf-content.k-hdw-b ol.k-b-schritte2 { list-style:none; margin:1.5rem 0 0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; counter-reset:none; }
section.tf-content.k-hdw-b ol.k-b-schritte2 > li { margin:0; padding:0; border:1.5px solid rgba(26,48,86,.12); border-radius:18px; overflow:hidden; display:flex; flex-direction:column; }
section.tf-content.k-hdw-b ol.k-b-schritte2 > li::before { content:none; }
section.tf-content.k-hdw-b .k-b-bild { background:var(--background-off-white); height:210px; display:flex; align-items:center; justify-content:center; padding:1.25rem; }
section.tf-content.k-hdw-b .k-b-text { display:flex; gap:.9rem; align-items:flex-start; padding:1.25rem 1.25rem 1.4rem; }
section.tf-content.k-hdw-b .k-b-text span.nr { flex:none; width:40px; height:40px; border-radius:50%; background:var(--secondary-color); color:var(--textcolor); font-weight:700; font-size:1.2rem; display:flex; align-items:center; justify-content:center; }
section.tf-content.k-hdw-b .k-b-text h4 { margin:0; }
section.tf-content.k-hdw-b .k-b-text p.small { margin-top:.3rem; }
section.tf-content.k-hdw-b img.k-b-zertifikat { height:100%; width:auto; max-width:100%; object-fit:contain; transform:rotate(-2deg); box-shadow:0 10px 24px rgba(26,48,86,.15); }

/* Mini-Mockups */
section.tf-content.k-hdw-b .k-mock { width:min(100%,280px); background:#fff; border-radius:12px; box-shadow:0 10px 24px rgba(26,48,86,.12); padding:.9rem; display:flex; flex-direction:column; gap:.45rem; }
section.tf-content.k-hdw-b .k-mock p.k-mock-titel { margin:0 0 .15rem; font-weight:700; font-size:.95rem; line-height:1.2; }
section.tf-content.k-hdw-b .k-mock-feld { display:block; border:1.5px solid rgba(26,48,86,.18); border-radius:8px; padding:.4rem .6rem; font-size:.85rem; color:rgba(26,48,86,.55); }
section.tf-content.k-hdw-b .k-mock-btn { display:block; text-align:center; background:var(--secondary-color); border-radius:999px; padding:.45rem; font-weight:600; font-size:.9rem; margin-top:.2rem; }
section.tf-content.k-hdw-b .k-mock-zeile { display:flex; gap:.6rem; align-items:center; }
section.tf-content.k-hdw-b .k-mock-zeile img { width:58px; height:34px; object-fit:cover; border-radius:6px; flex:none; }
section.tf-content.k-hdw-b .k-mock-zeile > span { flex:1; display:flex; flex-direction:column; gap:.3rem; min-width:0; }
section.tf-content.k-hdw-b .k-mock-zeile b { font-size:.82rem; line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
section.tf-content.k-hdw-b .k-mock-zeile i { display:block; height:5px; border-radius:3px; background:linear-gradient(90deg,var(--textcolor) var(--p),rgba(26,48,86,.12) var(--p)); }
section.tf-content.k-hdw-b .k-mock-video { position:relative; border-radius:8px; overflow:hidden; height:86px; }
section.tf-content.k-hdw-b .k-mock-video img { width:100%; height:100%; object-fit:cover; display:block; }
section.tf-content.k-hdw-b .k-mock-play { position:absolute; inset:0; margin:auto; width:38px; height:38px; border-radius:50%; background:var(--secondary-color); display:flex; align-items:center; justify-content:center; }
section.tf-content.k-hdw-b .k-mock-play svg { width:24px; height:24px; fill:var(--textcolor); }
section.tf-content.k-hdw-b .k-mock-kapitel { display:flex; align-items:center; gap:.4rem; font-size:.82rem; font-weight:600; line-height:1; }
section.tf-content.k-hdw-b .k-mock-kapitel svg { width:16px; height:16px; fill:var(--textcolor); }
section.tf-content.k-hdw-b .k-mock-kapitel.fertig { opacity:.55; }
section.tf-content.k-hdw-b .k-mock-kapitel.aktiv { background:#fff3ba; border-radius:6px; padding:.3rem .4rem; margin:0 -.4rem; }


section.tf-content.k-hdw-b > .wrapper .k-b-bild { height:auto; min-height:220px; padding:1.5rem 1.25rem; }
section.tf-content.k-hdw-b > .wrapper .k-mock * { line-height:1.2; }
section.tf-content.k-hdw-b > .wrapper .k-mock-zeile img { width:58px; height:34px; max-height:34px; object-fit:cover; border-radius:6px; margin:0; }
section.tf-content.k-hdw-b > .wrapper .k-mock-video img { height:100%; margin:0; }
section.tf-content.k-hdw-b > .wrapper img.k-b-zertifikat { height:180px; width:auto; margin:0; }
section.tf-content.k-hdw-b .k-mock-zeile i.k-p0 { --p:0%; }
section.tf-content.k-hdw-b .k-mock-zeile i.k-p60 { --p:60%; }
section.tf-content.k-hdw-b .k-mock-zeile i.k-p100 { --p:100%; }

section.tf-content.k-hdw-b .k-mock-anhaenge { display:flex; gap:.4rem; }
section.tf-content.k-hdw-b .k-mock-anhang { flex:1; display:flex; align-items:center; justify-content:center; gap:.3rem; background:var(--background-off-white); border:1.5px solid rgba(26,48,86,.15); border-radius:8px; padding:.35rem .4rem; font-size:.8rem; font-weight:600; }
section.tf-content.k-hdw-b .k-mock-anhang svg { width:16px; height:16px; fill:var(--textcolor); flex:none; }
section.tf-content.k-hdw-b > .wrapper .k-mock-player .k-mock-video { height:76px; }

@media (max-width:700px){ section.tf-content.k-hdw-b ol.k-b-schritte2 { grid-template-columns:1fr; } section.tf-content.k-hdw-b .k-b-bild { height:190px; } }
