/* ----------------------------------------------- */
/* COLORS */
/* ----------------------------------------------- */

:root {
    --page-home-height: calc(100vh - 80px);
    --page-min-height-with-footer: calc(100vh - 80px - 311px);
    --page-min-height: calc(100vh - 80px);
    --text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25)
}

/* ----------------------------------------------- */
/* FONTS */
/* ----------------------------------------------- */

body.landingpage a {
    text-decoration: none;
    color: var(--text-purple);
}
body.landingpage .menu a {
    color: var(--text);
}
body.landingpage .menu ul.mainmenu > li:last-child > a {
    color: var(--text-purple);
    font-weight: 600;
}

/* ----------------------------------------------- */
/* LAYOUT */
/* ----------------------------------------------- */

body.landingpage {
	font-size: 18px;
	font-family: Exo-Regular;
	color: var(--text-color);
	margin: 0 0;
	padding: 0 0;
    min-height: 100vh;
    width: 100vw;
    background-color: var(--bg-page);
}
body.landingpage > div {
    padding: 0 20px !important;
    width: calc(100% - 40px) !important;
}

body.landingpage #splash_screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
}

@supports (height: 100dvh) {
    body.landingpage {
        min-height: 100dvh;
    }
    body.landingpage #splash_screen {
        height: 100dvh;
    }
}
@supports (width: 100dvw) {
    body.landingpage {
        width: 100dvw;
    }
    body.landingpage #splash_screen {
        width: 100dvw;
    }
}

body.landingpage #header,
body.landingpage #navbar {
    visibility: visible !important;
    position: relative;
    top: 0;
    left: 0;
}
body.landingpage #navbar {
    display: flex;
    max-width: 1200px;
    margin: auto;
}

body.landingpage #page {
	height: auto;
	min-height: var(--page-min-height);
	margin: 0 auto;
}
@media (max-width: 768px) {
    body.landingpage #page {
        min-height: 200px !important;
    }
}
body.landingpage #page .content {
    max-width: 1200px;
    margin: 0 auto;
}

body.landingpage #header {
    height: 80px;
    background: var(--bg-page) !important;
}
body.landingpage #footer {
    padding: 30px 0;
    background: var(--bg-title) !important;
}

/* ----------------------------------------------- */
/* MENU (DESKTOP) */
/* ----------------------------------------------- */

@media (min-width: 768px) {
    #navbar .logo {
        display: none !important;
    }
}

body.landingpage #header .logo {
    display: block;
    width: 80px;
    height: 80px;
    background: url(../landingpage/logo.png) !important;
    background-repeat: no-repeat !important;
    background-size: 70px 70px !important;
    background-position: 5px 3px !important;
    border-radius: 50%;
    outline-offset: -3px;
}

body.landingpage #navbar {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
body.landingpage .menu {
    width: 100%;
}
body.landingpage .menu ul.mainmenu {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    gap: 0px;
    padding-left: 0;
}
body.landingpage .menu ul.mainmenu > li {
    position: relative;
}
body.landingpage .menu ul.submenu {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    display: none;
}
body.landingpage .menu ul.submenu {
    position: absolute;
    top: 40px;
    left: 0;
    background-color: var(--bg-submenu);
    border-radius: 16px;
    text-align: left;
    padding-top: 8px;
    padding-bottom: 8px;
    z-index: 999;
}
body.landingpage .menu ul.submenu li {
    margin-bottom: 8px;
    margin-right: 40px;
    border-bottom: solid 1px var(--text);
    white-space: nowrap;
}
body.landingpage .menu ul.mainmenu li:hover ul.submenu {
    display: block;
}
body.landingpage .menu ul.mainmenu > li > a {
    padding: 22px 40px 36px 40px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
    top: 4px;
    white-space: nowrap;
}
body.landingpage .menu ul.mainmenu > li.current > a {
    color: var(--text-yellow) !important;
    background: var(--bg-navbar-active);
    text-shadow: var(--text-shadow);
}

body.landingpage .langmenu {
    list-style-type: none;
    display: flex;
    gap: 8px;
    margin-left: auto;
}
body.landingpage .langmenu a {
    position: relative;
    top: 4px;
}
body.landingpage .langmenu li.current a {
    color: var(--text-purple);
}

/* ----------------------------------------------- */
/* MENU (MOBILE) */
/* ----------------------------------------------- */

@media (min-width: 768px) {
    body.landingpage .menu-wrapper {
        display: flex !important;
        width: 100%;
    }
}

@media (max-width: 768px) {
    
    body.landingpage .menu {
        margin: 0 0 0 auto;
        width: auto;
    }
    body.landingpage #menu-toggle {
        display: block !important;
        cursor: pointer;
    }
    body.landingpage #menu-toggle img {
        width: 40px;
        height: auto;
        margin-top: 20px; 
    }
    body.landingpage .menu-wrapper {
        display: none;
        position: absolute;
        top: 80px;
        right: -20px;
        width: 100vw;
        background: var(--bg-page);
        text-align: center;
        z-index: 999;
    }
    body.landingpage .menu ul.mainmenu {
        flex-direction: column;
        gap: 10px;
        padding: 0 0 20px 0;
    }
    body.landingpage .menu ul.mainmenu > li > a {
        padding: 20px 40px 20px 40px;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        margin-bottom: 20px;
        font-size: 1.2em;
    }
    body.landingpage .menu ul.mainmenu > li.current > a {
        color: var(--text-green) !important;
        background: transparent;
    }
    body.landingpage .menu ul.mainmenu ul.submenu {
        display: block !important;
    }
    body.landingpage .menu ul.submenu {
        position: relative;
        top: 0;
        left: 0;
        background-color: transparent;
        border-radius: 0;
        text-align: center;
        padding-top: 8px;
        padding-bottom: 0px;
    }
    body.landingpage .menu ul.submenu li {
        border-bottom: none;
    }
    
    body.landingpage .menu ul.langmenu {
        margin: 0 auto 50px auto;
        width: fit-content;
        padding: 0;
        font-size: 1.2em;
    }
    
}

/* ----------------------------------------------- */
/* FOOTER */
/* ----------------------------------------------- */

body.landingpage .row {
    display: flex;
    flex-direction: row;
    gap: 40px;
}
body.landingpage .row > div {
    display: flex;
    flex-direction: column;
    flex: 1 1 25%;
}
body.landingpage .row > div.col-4 {
    flex: 1 1 25%;
}
body.landingpage .row > div.col-3 {
    flex: 1 1 33.3%;
}
body.landingpage .row > div.col-2 {
    flex: 1 1 50%;
}
body.landingpage .row .logo {
    display: block;
    width: 160px;
    height: 160px;
    background: url(../landingpage/logo-text.png) !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: 0 center !important;
    margin-top: -12px;
}

body.landingpage #footer p,
body.landingpage #footer span,
body.landingpage #footer a,
body.landingpage #footer h3 {
    color: #fff !important;
    font-size: 1.0em;
    line-height: 1.25;
}
body.landingpage #footer p {
    margin-top: 0;
}
body.landingpage #footer h3 {
    font-weight: normal;
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 14px;
}

body.landingpage .footer-wrapper-row,
body.landingpage .footer-wrapper-copy {
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}
body.landingpage .footer-wrapper-row {
    border-bottom: solid 1px #fff;
}

body.landingpage .row div.space {
    margin-top: 40px;
}

body.landingpage #footer ul {
    list-style-type: none;
    margin: 0 !important;
    padding: 0 !important;
}

body.landingpage #footer .footer-logos {
    display: flex;
    gap: 40px;
    height: 64px;
    margin-left: auto;
}
body.landingpage #footer .footer-logos img {
    height: 100%;
}

@media (max-width: 768px) {
    body.landingpage #footer .footer-logos {
        margin: 0 auto 20px auto;
        flex-direction: column;
        height: auto !important;
    }
    body.landingpage #footer .footer-logos img {
        height: auto;
        width: 160px;
    }
}

/* ----------------------------------------------- */
/* MOBILE */
/* ----------------------------------------------- */

@media (max-width: 768px) {
    
    body.landingpage .row {
        flex-direction: column;
    }
    body.landingpage .row div.space {
        margin-top: 0px;
    }
    body.landingpage .row .logo {
        margin: auto;
    }
}

/* ----------------------------------------------- */
/* BACKGROUNDS */
/* ----------------------------------------------- */

body.landingpage #page {
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
}
body.landingpage #page.landingpage-index {
    background-image: url(../landingpage/ginkgo-2.jpg) !important;
}
body.landingpage #page.landingpage-manual {
    background-image: url(../landingpage/blatt-hell.jpg) !important;
}
body.landingpage #page.landingpage-avatars {
    background-image: url(../landingpage/blatt-hell.jpg) !important;
}
body.landingpage #page.landingpage-downloads {
    background-image: url(../landingpage/knospe.jpg) !important;
}
body.landingpage #page.landingpage-quest {
    background-image: url(../landingpage/kiefer.jpg) !important;
}
body.landingpage #page.landingpage-imprint,
body.landingpage #page.landingpage-privacy,
body.landingpage #page.landingpage-access {
    background-image: none !important;
    background-color: #fff !important;
    min-height: var(--page-min-height-with-footer);
}


@media (max-width: 768px) {
    body.landingpage #page.landingpage-downloads {
        background-position: calc(50% - 0px) center !important;
    }
    body.landingpage #page.landingpage-quest {
        background-position: calc(50% + 300px) center !important;
    }
}

/* ----------------------------------------------- */
/* CONTENT */
/* ----------------------------------------------- */

body.landingpage .quest-link {
    width: calc(100% - 40px);
    font-size: 1.6em;
    line-height: 1.0em;
    padding: 12px;
    background: var(--bg-title);
    color: #fff;
    border-radius: 16px;
    outline: none;
    border: none;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    max-width: 320px;
    margin: 10px auto 30px auto;
    text-align: center;
    display: block;
}
body.landingpage .quest-link:focus {
    outline: auto;
    outline-offset: 4px;
}

