/**/
/* Hauptmenü im Header */
/**/

#mainmenu {
    position: fixed;
    z-index: 300;
    top: 0;
}

.logo {
    position: absolute;
    z-index: 400;
    top: 0;
    left: 0;
    padding: 24px 65px;
    text-align: left;
}

#hamburger {
    display: none;
}

.hamburger {
    position: absolute;
    z-index: 400;
    top: 60px;
    left: 512px;
    padding: 1px 0;
    display: block;
    width: 39px;
    height: 26px;
    cursor: pointer;
}

.line {
    position: absolute;
    display: block;
    height: 2px;
    width: 39px;
    background: var(--mainmenu-font-color);
    transition: 0.1s;
    transform-origin: center;
}

.line:nth-child(1) { top:  0px; }
.line:nth-child(2) { top:  8px; }
.line:nth-child(3) { top: 16px; }
.line:nth-child(4) { top: 24px; width: 20px; }

.mainmenu {
    position: absolute;
    z-index: 300;
    top: 0;
    left: 0;
    padding: 146px 10px 0 120px;
    width: 606px;
    background-color: var(--mainmenu-background-color);
}

.mainmenu-items {
    padding-left: 0;
    list-style-type: none;
    padding-top: 62px;
    display: none;
}

.mainmenu-items li {
    margin-top: 70px;
    position: relative;
    display: block;
    width: 90%;
}

.mainmenu-items a:link,
.mainmenu-items a:visited {
    color: var(--mainmenu-font-color);
    font-size: 25px;
    font-weight: 600;
    line-height: var(--line-height);
    letter-spacing: 0.75px;
    text-decoration: none;

    background-color: var(--mainmenu-hover-color);
    background-image: linear-gradient(90deg, white 0%, white 100%);
    background-repeat: no-repeat;
    background-position: 0 top;

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    transition: background-position .4s ease-out;
}

.mainmenu-items a:hover,
.mainmenu-items a:focus {
    background-position: 700px top;
}

.overlay {
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.6);
    display: none;
}

/* Hauptmenü einblenden: */

#hamburger:checked ~ #mainmenu {
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: scroll;
}

#hamburger:checked ~ #mainmenu .mainmenu {
    padding-bottom: 146px;
}

#hamburger:checked ~ #mainmenu .hamburger {
    height: 30px;
    width: 30px;
    top: 53px;
}

#hamburger:checked ~ #mainmenu .hamburger .line:nth-child(1) { transform: translateX(-4px) translateY(15px) rotate(-45deg); }
#hamburger:checked ~ #mainmenu .hamburger .line:nth-child(2) { opacity: 0; }
#hamburger:checked ~ #mainmenu .hamburger .line:nth-child(3) { transform: translateX(-4px) translateY(-1px) rotate(45deg); }
#hamburger:checked ~ #mainmenu .hamburger .line:nth-child(4) { opacity: 0; }

#hamburger:checked ~ #mainmenu .mainmenu {
    width: 580px;
}

#hamburger:checked ~ #mainmenu .mainmenu .mainmenu-items {
    display: block;
}

#hamburger:checked ~ .overlay {
    display: block;
}

/**/
/* Hilfsmenü im Footer */
/**/

.footermenu-wrapper {
    display: flex;
    justify-content: space-between;
}

.footermenu-items {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.footermenu-items li {
    display: inline-block;
    padding-right: 20px;
}

.footermenu-items li a:link,
.footermenu-items li a:visited {
    color: var(--footermenu-font-color);
    font-weight: normal;
    text-decoration: none;
}

.footermenu-items li a:hover,
.footermenu-items li a:focus {
    color: var(--footermenu-hover-color);
}

#copyright p {
    margin: 0;
}
