
.stellen-detail {
    @media (min-width: 1200px) {
        .link-farbedunkel-button.sticky {
            position: sticky;
            top: 3rem;
            z-index: 10;
        }
    }

    /*################### Header ###################*/
    .outer-header {
        width: 100vw;
        height: auto; 
        max-height: 567px; 
        position: relative;
        overflow: hidden;
        &.overlay-blau {
            &::after {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(57,80,113,.5);
            }
        }
        &.overlay-rot {
            &::after {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(214,25,29,.5);
            }
        }
        .s_container {
            height: 567px; 
            max-height: 567px;
            position: relative;
            .centerText {
                position: absolute;
                padding: 0 2rem;
                top: 2rem;
                left: 0;
                width: 100%;
                z-index: 1;
                color: var(--white);
                text-transform: uppercase;
                font-size: 22px;
                text-align: center;
                font-weight: 600;
            }
            .headerimg, video {
                width: 100%;
                height: 100%;
                display: block;
                object-fit: cover;
                object-position: center;
            }
            .container-inner {
                position: absolute;
                bottom: 25%;
                left: 0;
                z-index: 2;
                height: fit-content;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                gap: 1rem;
                width:fit-content;
                max-width: 80%;
                .headline {
                    color: var(--white);
                    text-align: left;
                    text-transform: initial;
                    position: relative;
                    font-size: 24px;
                    font-weight: 400;
                    padding: .5rem .5rem .5rem 2rem;
                    width: fit-content;
                    &.overlay-blau {
                        &::after {
                            content: "";
                            position: absolute;
                            top: 0;
                            left: 0;
                            width: 100%;
                            height: 100%;
                            background-color: rgba(57,80,113,1);
                            z-index: -1;
                        }
                    }
                    &.overlay-rot {
                        &::after {
                            content: "";
                            position: absolute;
                            top: 0;
                            left: 0;
                            width: 100%;
                            height: 100%;
                            background-color: rgba(214,25,29,1);
                            z-index: -1;
                        }
                    }
                }
            }
        }
    }

    @media (min-width: 1200px) {
        .outer-header {
            margin-bottom: 0;
            .s_container {
                .centerText {
                    font-size: 64px;
                }
                .container-inner {
                    .headline {
                        font-size: 40px;
                        padding: .5rem 1rem .5rem 4rem;
                    }
                }
            }
        }
    }
    /*################### Header ENDE ###################*/




    /*################### Text Text ###################*/

    .outer-texttext {
        padding: var(--paddingMobile);
        overflow: hidden;
        .s_container {
            max-width: var(--max-width);
            margin: 0 auto;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            gap: 1rem;
            .container-inner {
            flex: calc(50% - 1rem);
                min-width: 250px;
            img {
                max-width: 170px;
            }
            ul {
                padding-left: 1rem;
                li {
                    padding-bottom: 1rem;
                }
            }
            &:first-of-type {
                p {
                    font-size: 34px;
                    font-weight: 250;
                    line-height: 1;
                    strong {
                        font-weight: 600;
                    }
                }
            }
            }
        }       
    }
    @media (min-width: 1200px) {
        .outer-texttext {
        padding: var(--paddingDesktop);
        .s_container {
            gap: 4rem;
            .container-inner {
                flex: calc(50% - 4rem)
            }
            .container-inner:first-of-type {
                text-align: end;
                display: flex;
                flex-direction: column;
                align-items: end;
                p {
                    font-size: 64px;
                }
            }
        }
        }    
    }

    /*################### Text Text ENDE ###################*/


    /*################### Trenner ###################*/

    .outer-trenner {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        max-height: 295px;
    }
    @media (min-width: 1200px) {
        .outer-trenner {
            background-size: cover;
            .s_container {
                height: 100%;
                height: 295px;
            }
        }
    }

    /*################### Trenner ENDE ###################*/


    /*################### Formular ###################*/
    .outer-formular {
        padding: var(--paddingMobile);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        overflow: hidden;
        scroll-margin-top: 10rem;
        .s_container {
            max-width: var(--max-width);
            margin: 0 auto;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            gap: 2rem;
            background-color: var(--white);
            padding: 2rem;
            .container-inner {
                text-align: center;
                flex: 100%;
                h2 {
                    font-size: 34px;
                    font-weight: 600;
                    margin-bottom: 2rem;
                }
                p {
                    font-size: 18px;
                    font-weight: 600;
                    margin-bottom: 2rem;
                }
                form {
                    text-align: left;
                }
            }
        }
    }


    @media (min-width: 1200px) {
        .outer-formular {
            padding: var(--paddingDesktop);
            .s_container {
                .container-inner {
                    h2 {
                        font-size: 64px;
                    }
                    p {
                        font-size: 24px;
                    }
                }
            }
        }    
    }
    /*################### Formular ENDE ###################*/

}
