* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    font-weight: 200;
    font-style: normal;
    color: white;
}

html,
body {
    height: 100vh;
}

.bgcont {
    position: fixed;
    left: 0;
    bottom: 0;
    top: 0;
    right: 0;
    background-color: bisque;
    z-index: -4;
    background-image: url(/wp-content/uploads/2024/08/hintergrund1-komprimiert-min.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
}

.formbox {
    width: 100%;
    height: fit-content;
    background-color: rgba(112, 30, 49, .8);
    padding: 25px;
    margin-bottom: 100px;

    input {
        width: 100%;
        padding: 10px;
        margin-bottom: 8px;
        font-weight: 300;
        color: rgba(112, 30, 49, .95) !important;
        border: none;

    }

    input[type='submit'] {
        color: rgba(112, 30, 49, 1);
        font-weight: 600;
        font-size: 18px;
        margin-top: 30px;
        text-transform: uppercase;
    }

    form {
        margin-top: 20px;
    }
}

.hidden {
    max-height: 0;
    height: 0;

    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.shown {
    max-height: 900px;
    /* Höhe anpassen je nach Inhalt */
    transition: max-height 0.5s ease-in;

}


.bgeffect {
    position: fixed;
    left: 0;
    bottom: 0;
    top: 0;
    right: 0;
    z-index: -3;
    background-color: rgba(0, 0, 0, .3);
}

.karriere-box {
    width: 160%;
    margin: 50px -30%;

    height: 400px;
    display: flex;
    justify-content: space-between;
}

.karriere-box-fixed {
    width: 160%;
    margin: 50px -30%;

    height: 420px;
    position: relative;
}

.karriere-box .karriere-item {
    width: 32%;
    height: 100%;
    background-color: rgba(112, 30, 49, 1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 1px 5px 10px rgba(0, 0, 0, .5);
    border: solid 1px white;
    scale: .94;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.karriere-box-fixed .karriere-item {
    width: 32%;
    width: 337px;
    height: 100%;
    overflow: hidden;
    background-color: rgba(112, 30, 49, 1);
    border-radius: 15px;
    box-shadow: 1px 5px 10px rgba(0, 0, 0, .5);
    border: solid 1px white;
    scale: .94;
    transition: all 0.3s ease;
    display: inline-block;
    position: absolute;
}

#item1 {
    left: 0;
}

#item2 {
    margin: auto;
    left: 0;
    right: 0;

}

#item3 {
    right: 0;
}

.karriere-item:hover {
    transform: scale(1.1);
    cursor: pointer;

    .karriere-teaser {
        bottom: 0;
    }

    .karriere-image img {
        opacity: 1;
    }
}

.karriere-teaser {
    background-color: rgba(112, 30, 49, .95);
    z-index: 110;
    color: white;
    text-align: center;
    font-weight: 300;
    letter-spacing: 1px;
    font-size: 19px;
    text-transform: uppercase;
    position: relative;
    bottom: 0%;
    width: 100%;
    position: absolute;
    padding: 15px;
    border: solid 1px rgba(112, 30, 49, 1);
    transition: all 0.5s ease;
    box-shadow: -10px 0 10px black;
    border-radius: 15px;
}


.karriere-image {
    max-width: 100%;
    max-height: 100%;

    img {
        max-width: 350px;
        height: auto;
        opacity: .8;
        transition: all 0.3s ease;
    }
}

header {
    width: 100%;
    height: 150px;
    background-color: rgba(112, 30, 49, .9);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 20px 80px black;
}

.logo img {
    height: 120px;
    margin: 0 auto;
    max-height: 100%;
}

section {
    height: auto;
    width: 100%;
    padding: 30px;
    position: relative;
    height: fit-content !important;
    position: relative;
}

.hero {
    width: 660px;
    height: auto;
    margin: 0 auto;
    position: relative;
    top: 3em;

    h1 {
        color: white;
        font-size: 70px;
        font-weight: 500;
        text-transform: uppercase;
        text-shadow: 0px 0px 30px rgba(0, 0, 0, .8);
    }

    p {
        color: white;
        font-size: 18px;
        font-weight: 300;
        text-shadow: 0px 0px 10px rgba(0, 0, 0, .8);
        margin: 10px 0;
    }
}

h2 {
    font-size: 40px;
    margin: 20px 0;
    font-weight: 500;
    text-shadow: 0px 0px 20px rgba(0, 0, 0, .8);
}

ul li {
    padding: 15px;
    list-style: none;
    border-left: 2px solid white;
    margin-bottom: 18px;
    background-color: rgba(112, 30, 49, .8);
    box-shadow: 1px 5px 10px rgba(0, 0, 0, .5);
    display: inline-block;
    font-size: 17px;
    line-height: 26px;
    transition: all 0.3s ease;

    strong {
        display: inline-block;
        margin-right: 7px;
    }
}

ul li:hover {
    scale: 1.15;
    background-color: rgba(112, 30, 49, 1);
    border-left: 8px solid white;

}

ul {
    margin-left: -10px;
    margin-top: 20px;
}

strong {
    font-weight: 500;
}

.karriere-out {
    width: 70%;
    position: absolute;

    height: 100%;
    background-color: rgba(112, 30, 49, 1);
    position: absolute;

    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);

    overflow: hidden;
}

.kcontent {
    width: 100%;
    position: absolute;
    top: 20px;
    left: 40px;
    opacity: 0;
    padding: 25px;
}

.kcontent ul li {
    display: block;
    width: 90%;
    box-shadow: none;
    background-color: rgba(0, 0, 0, .1);
    padding: 13px;
}

.kcontent h3 {
    font-size: 30px;
}


#item3+div {
    right: 30%;
    z-index: 9;
    width: 0;
    overflow: visible;
}

#item3:hover {
    z-index: 10;
}

#item3:hover+div {
    width: 70%;
    transition: all 0.2s ease-in;
    transition-delay: 0.2s;
    border: solid 1px white;
}

#item1:hover+.karriere-out .kcontent,
#item3:hover+.karriere-out .kcontent {
    opacity: 1;
    transition-delay: .5s;
}

#item2.show {
    left: 0;
    right: unset;
    transition: all 1.3s ease-in-out;
    scale: 1.1;
}

#item1+div {
    width: 0;
    left: 30%;
}


#item1:hover {
    z-index: 11;
}

#item1:hover+div {
    width: 70%;
    transition: all 0.2s ease-in;
    transition-delay: 0.2s;
    border: solid 1px white;
    z-index: 3;
    overflow: visible;
}


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

    .hero {
        position: relative;
        width: 100%;
    }

    .karriere-box-fixed {
        width: 900px;
        position: relative;
        left: 0;
        margin: 50px 0;
        display: block !important;
        width: 340px;
        margin: 60px auto;
    }

    #item1 {
        width: 100%;
    }

    .karriere-out {
        width: 100%;
        left: 70px;
        overflow: visible !important;
        all: unset;

    }

    #item2,
    #item3 {
        display: none;
    }

    section {
        padding: 0;
    }

    ul li:hover {
        scale: 1;
    }

    .hero h1, .hero h2, .hero p {
        padding: 0 25px;
    }

    .hero h1, .hero h2 {
        font-size: 40px;
        line-height: 44px;
    }

    html, body {
        overflow-x: hidden;
    }

    #sec2 {
        padding:40px;
        text-align: center !important;
        padding-bottom: 300px;
    }

}