/**
 * style.css
 * 
 * @author Roman Schlöricke
 * @created 16.07.25
 */

@import "font.css";

* {
    font-family: var(--mainFontFamily);
    box-sizing: border-box;
}

body {
    background-color: var(--bodyBackgroundColor);
    margin: 0;
    padding: 0;
    color: var(--mainFontColor);
    font-size: var(--mainFontSize);
    position: relative;
    min-height: 100vh;
}

a{
    color: var(--aColor);
}

#header {
    background-color: var(--headerBackgroundColor);
    height: var(--headerHeight);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    color: var(--headerColor);
}

#header * {
    color: inherit;
}


#header #menu{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    width: 100%;
}

#FooterWrapper .logo,
#header #menu #Logo {
    height: calc(var(--headerHeight) - 25px);
    display: flex;
}
#header #menu #Logo a,
#FooterWrapper .logo img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#header #menu #Logo img {
    height: 100%;
    object-fit: contain;
}
#header #menu #Logo a:last-child,
#FooterWrapper .logo img:last-child
{
    height: 50%;
    width: auto;
    align-self: end;
    margin-left: 15px;
}

#header #menu #Logo img.blau{
    display: none;
}

#HeaderExtnsion {
    padding-top: var(--headerHeight);
    position: relative;
    z-index: 1;
}

#content {
    font-size: var(--mainFontSize);
    padding-bottom: var(--footerHeight);
    z-index: 1;
    position: relative;
    height: auto;
}

#content * {
    font-size: inherit;
}

#FooterWrapper {
    font-size: var(--mainFontSize);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--footerHeight) - 25px);
    background-color: var(--footerBackgroundColor);
    color: var(--footerColor);
    padding: 10px;
    z-index: 2;
    overflow: hidden;
}

#FooterWrapper * {
    color: inherit;
    font-size: inherit;
}

#FooterWrapper #footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--footerFontSize);
}

#FooterWrapper #footer .Footer{
    margin-right: 80px;
}

    /*#FooterWrapper .logo{*/
/*    width: calc((100% / 4) - 10px );*/
/*    height: calc(var(--footerHeight) - 75px);*/
/*}*/

/*#FooterWrapper .logo img {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: contain;*/
/*}*/

#FooterWrapper .Footer > ul.menu{
    margin: 0;
}

#FooterWrapper .Footer > ul.menu li{
    margin: 0;
    padding: 0;
    display: block;
}

#FooterWrapper #footer ul.menu li a{
    margin: 0;
    padding: 0 !important;
}

#FooterWrapper .Footer > ul.menu li a:hover{
    text-decoration: underline;
}

.col_4_4{
    max-width: var(--contentMaxWidth);
    width: calc(100% - 40px);
}

h1,h2,h3,h4,h5{
    line-height: 1.2;
    font-weight: normal;
    margin-bottom: 10px;
}

#content h1{
    color: var(--h1Color);
    font-family: var(--h1FontFamily);
    font-size: var(--h1FontSize);

}

#content h2{
    color: var(--h2Color);
    font-family: var(--h2FontFamily);
    font-size: var(--h2FontSize);
}

#content h3{
    color: var(--h3Color);
    font-family: var(--h3FontFamily);
    font-size: var(--h3FontSize);
}

#content h4{
    color: var(--h4Color);
    font-family: var(--h4FontFamily);
    font-size: var(--h4FontSize);
}

#content h5{
    color: var(--h5Color);
    font-family: var(--h5FontFamily);
    font-size: var(--h5FontSize);
}

#content img[class*="image"]{
    margin: 0;
}

#header nav.main > div ul.menu li a::after {
    content: " ";
    position: absolute;
    background: var(--menuColorHover) fixed;
    margin-top: -2px;
    border-radius: 0;
    height: 2px;
    transform: scaleX(0);
    transition: transform 0.2s;
    transform-origin: right center;
    box-sizing: border-box;
    display: block;
    width: 100%;
}

#header nav.main > div ul.menu li.active > a::after,
#header nav.main > div ul.menu li a:focus-visible::after,
#header nav.main > div ul.menu li a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

#header nav.main > div ul.menu > li ul.menu li.active > a::after,
#header nav.main > div ul.menu > li ul.menu li a:focus-visible::after,
#header nav.main > div ul.menu > li ul.menu li a:hover::after {
    content: none;
}

#header nav.main > div ul.menu > li ul.menu li > a{
}

#header nav.main > div ul.menu > li ul.menu li.active > a,
#header nav.main > div ul.menu > li ul.menu li a:focus-visible,
#header nav.main > div ul.menu > li ul.menu li a:hover {
    text-shadow: 0.8px 0 0 currentColor;
    font-weight: normal;
}

#header nav.main > div ul.menu li a:focus-visible,
#header nav.main > div ul.menu li a:hover,
#header nav.main > div ul.menu li.active > a{
    color: var(--menuColorHover);
}

#ConsentBannerBg {
    opacity: 0.5;
}

#header{
    transition: background-color 0.5s, color 0.5s;
}

#header.second{
    --headerBackgroundColor: #b3bed0;
    --headerColor: #053e6d;
}

/*#header.second img{*/
/*    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35));*/
/*}*/

#header.second #menu #Logo img{
    display: none;
}

#header.second #menu #Logo img.blau{
    display: block;
}

.ext_FormBuilder .mailSelect.buttons input[type="radio"]:checked + label {
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    background-color: #053e6d;
    color: #ffffff;
}

.ext_FormBuilder .mailSelect.buttons input[type="radio"]:checked + label img{
    filter: brightness(0) invert(1);
}

/*Navigation Desktop*/
@media only screen and (min-width: 901px) {
    #header nav.main > div{
        position: relative;
        height: 50px;
    }

    #header nav.main > div li{
        position: unset;
    }

    #header nav.main,
    #header nav.main > div,
    #header nav.main > div ul.menu,
    #header nav.main > div ul.menu li:hover ul.menu {
        display: flex !important;
        justify-content: flex-end;
        gap: 20px;
        margin: 0;
        padding: 0;

    }

    #header nav.main{
        width: calc(100% - 260px);
    }

    #header nav.main > div,
    #header nav.main > div ul.menu{
        width: 100%;
    }

    #header nav.main > div > ul.menu > li > ul.menu{
        position: absolute;
        height: auto;
        background-color: transparent;
        top:unset;
        right: 0;
        bottom: 0;
        width: 100%;
    }

    #header nav.main > div > ul.menu > li > ul.menu{
        opacity: 1;
        display: none !important;
    }

    #header nav.main > div > ul.menu > li:hover > ul.menu{
        display: flex !important;
        z-index: 10;
        background-color: var(--headerBackgroundColor);
    }

    #header nav.main > div > ul.menu > li.expand > ul.menu{
        display: flex !important;
        
    }

    #header nav.main > div ul.menu li,
    #header nav.main > div ul.menu li a{
        margin: 0;
        padding: 0;
        text-transform: uppercase;
        font-size: 16px;
    }

    #header nav.main > div ul.menu li a{
        position: relative;
        white-space: nowrap;
    }

    #header nav.main > div ul.menu li > ul.menu li a {
        font-size: 14px;
    }


}

/*Navigation Mobile*/
@media only screen and (max-width: 901px) {
    #header ul.menu.display{
        position: fixed;
        max-height: 100svh;
        height: 100%;
        box-shadow: inset 0 0 40px var(--mainColor);
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
    }

    #header ul.menu.display > li:first-child{
        padding-top: 85px;
    }

    #header ul.menu.display li a{
        border:none;
    }

    #header .menu-icon{
        right: 0;
        top: 20px;
        margin-left: auto;
    }

    #header ul.menu li ul{
        background-color: transparent;
    }

    #header ul.menu.display li a{
        padding: 0;
        display: inline-block !important;
        text-transform: uppercase;
    }


    #header ul.menu.display > li > a{
        font-weight: bold;
    }


    #header ul.menu.display > li{
        margin-bottom: 20px !important;
    }

    #header ul.menu.display > li ul li a{
        font-weight: normal;
    }

    #header ul.menu.display li{
        width: 100%;
        text-align: center;
    }
}