/*
Das ist das Stylesheet für das Menüsystem
Erfordert das Setzen der Farben im Main-CSS über die ':root'-Zuweisung
*/

/* Grundlage für den Menü-Bereich */
nav{
	position: sticky;
	top: 5px;
	z-index: 9;
	background-color: var(--menu-bg-color);
	font-family: "eurofurence", "Helvetica", sans-serif;

}

nav .menu{
	position: relative;
	max-width: 95%;
	padding: 0px 20px;
	height: 50px;
	line-height: 50px;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Die Inputs für die Sprachauswahl (links) */
.menu input{
	display: inline;
	font-weight: bold;
	height: 1.7em;
	width: 2em;
	justify-content: space-between;
	text-decoration: none;
	color: white;
	background-color: var(--menu-bg-color);
	opacity: 0.8;
	border-style: solid;
}

/* Die Seiten-Navigation (rechts)*/
.menu .nav-links{
	display: inline-flex;
}

.nav-links li{
	list-style: none;
}
.nav-links li a{
	color: var(--menu-color);
	text-decoration: none;
	font-size: 1.4em;
	font-weight: 900;
	padding: 5px 10px;
	border-radius: var(--border-radius);
	transition: all 0.4s ease;
}
.nav-links li a:hover{
	background: var(--hover-bg-color);
}


/* "Hamburger-Menü":
/* Das ist irgendwie Murks mit den Zeichen, Größen passen nicht, Chrome will das nicht, etc. (siehe ganz unten)
	Ich mach das jetzt so:
	Das "Zeichen" besteht aus einen Block, der wiederum aus 3 übereinanderliegenden Blöcken besteht. Diese sind leer,
	haben aber eine Ausdehnung, einen Rand und sind weiß. Das eigentliche "ham-menu"-Zeichen liegt mittig, die
	"::before" "::after" liegen darüber resp. darunter und haben dazu jeweils einen vergrößerten unteren bzw. oberen
	Rand. (Vielleicht mache ich sowas auch irgendwann für das 'close'-Zeichen...)	*/

.ham-menu {
	display: inline-block;
	position: relative;
	margin: 0.2em 0;
}
.ham-menu, .ham-menu::before, .ham-menu::after {
	width: 1.4em;
	height: 0.2em;
	border-radius: 2px;
	background-color: white;
}
.ham-menu::before, .ham-menu::after {
	content: "";
	display: block;
	position: absolute;
}
.ham-menu::before {
	bottom: 160%;
}
.ham-menu::after {
	top: 160%;
}
/* Ende vom "Burger"-Zeichen */

/* Definitionen für die 'Slider-Buttons', die das Seitenmenü öffnen oder schließen */
.button input{
	display: none;
}
.slider-btn {
	font-weight: 900;
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	line-height: 1em;
}

.nav-links .mobile-item{
	display: none;
}
.nav-links .drop-menu{
	position: absolute;
	background: var(--menu-bg-color);
	width: 180px;
	line-height: 3em;
	top: 85px;

	visibility: hidden;
	box-shadow: 0 6px 10px var(--box-shadow-color);
}
.nav-links li:hover .drop-menu,
.nav-links li:hover .mega-box{
	transition: all 3.3s ease;
	top: 70px;
	opacity: 1;
	visibility: visible;
}
.drop-menu li a{
	width: 100%;
	display: block;
	padding: 0 0 0 15px;
	font-weight: 400;
	border-radius: 0px;
}
.mega-box{
	position: absolute;
	left: 0;
	width: 100%;
	padding: 0 30px;
	top: 85px;
	opacity: 0;
	visibility: hidden;
}
.mega-box .content{
	background: var(--menu-bg-color);
	padding: 25px 20px;
	display: flex;
	width: 100%;
	justify-content: space-between;
	box-shadow: 0 6px 10px var(--box-shadow-color);
}
.mega-box .content .row{
	width: calc(25% - 30px);
	line-height: 45px;
}
.content .row img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.content .row header{
	color: #f2f2f2;
	font-size: 20px;
	font-weight: 500;
}
.content .row .mega-links{
	margin-left: -40px;
	border-left: 1px solid rgba(255,255,255,0.09);
}
.row .mega-links li{
	padding: 0 20px;
}
.row .mega-links li a{
	padding: 0px;
	padding: 0 20px;
	color: #d9d9d9;
	font-size: 17px;
	display: block;
}
.row .mega-links li a:hover{
	color: #f8f8f8;
}
.menu .btn{
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	display: none;
}
.menu .btn.close-btn{
	position: absolute;
	right: 30px;
	top: 10px;
}

@media screen and (max-width: 690px) {
	.menu .btn{
		display: block;
	}
	.menu .nav-links{
		position: fixed;
		height: 100vh;
		width: 100%;
		max-width: 300px;
		top: 0;
		left: -100%;
		background: var(--menu-bg-color);
		display: block;
		padding: 50px 10px;
		line-height: 50px;
		overflow-y: auto;
		box-shadow: 0px 35px 35px var(box-shadow-color);
		transition: all 1s ease;
	}

	/* custom scroll bar ??? */
	::-webkit-scrollbar {
		width: 10px;
	}
	::-webkit-scrollbar-track {
		background: #242526;
	}
	::-webkit-scrollbar-thumb {
		background: #3A3B3C;
	}

/* Die '.nav-links', wenn '#menu-btn:checked' */
	#menu-btn:checked ~ .nav-links{
		left: 0px;
	opacity: 0.8;
	}

/* Die '.btn-menu-btn', wenn '#menu-btn:checked' */
	#menu-btn:checked ~ .btn.menu-btn{
		display: block;
	}

/* Die '.btn.menu-btn', wenn '#close-btn:checked' */
	#close-btn:checked ~ .btn.menu-btn{
		display: block;
	}
	.nav-links li{
		margin: 15px 10px;
		line-height: 35px;
	}
	.nav-links li a{
		padding: 0 20px;
		display: block;
		font-size: 24px;
	}

/* Drop - Menü */
	.nav-links .drop-menu{
		position: static;
		opacity: 0.5;
		top: 65px;
		visibility: visible;
		padding-left: 20px;
		width: 100%;
		max-height: 0px;
		overflow: hidden;
		box-shadow: var(--box-shadow-color);
		transition: all 1s ease;
	}

/* Wenn Dropdown oder Megamenu im status ':checked' sind */
	#showDrop:checked ~ .drop-menu,
	#showMega:checked ~ .mega-box{
		max-height: 100%;
	}
	.nav-links .desktop-item{
		display: none;
	}
	.nav-links .mobile-item{
		display: block;
		color: white;
		font-size: 20px;
		font-weight: 500;
		padding-left: 20px;
		cursor: pointer;
		border-radius: var(--border-radius);
		transition: all 0.3s ease;
	}
	.nav-links .mobile-item:hover{
		background: white;
	}
	.drop-menu li{
		margin: 0;
	}
	.drop-menu li a{
		border-radius: var(--border-radius);
		font-size: 18px;
	}

/* Mega-Menü */
	.mega-box{
		position: static;
		top: 65px;
		opacity: 1;
		visibility: visible;
		padding: 0 20px;
		max-height: 0px;
		overflow: hidden;
		transition: all 0.3s ease;
	}
	.mega-box .content{
		box-shadow: none;
		flex-direction: column;
		padding: 20px 20px 0 20px;
	}
	.mega-box .content .row{
		width: 100%;
		margin-bottom: 15px;
		border-top: 1px solid rgba(255,255,255,0.08);
	}
	.mega-box .content .row:nth-child(1),
	.mega-box .content .row:nth-child(2){
		border-top: 0px;
	}
	.content .row .mega-links{
		border-left: 0px;
		padding-left: 15px;
	}
	.row .mega-links li{
		margin: 0;
	}
	.content .row header{
		font-size: 19px;
	}
}
/* Ende von '@media screen and max-width... */


