/* ==========================================================================
   Base Layout & Reset Controls
   ========================================================================== */

nav,
nav * {
	box-sizing: border-box;
}

#container {
	margin: 0 auto;
	max-width: 890px;
}

.toggle,
[id^=drop] {
	display: none;
}

label div {
	float: right;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

nav {
	padding: 0;
	background: #444;
	position: relative;
}

nav:after {
	content: "";
	display: table;
	clear: both;
}

#logo {
	display: block;
	padding: 0 30px;
	float: left;
	font-size: 20px;
	line-height: 60px;
}

/* Navigation Lists & Items */
nav ul {
	padding: 0;
	margin: 0;
	list-style: none;
	position: relative;
	z-index: 3;
}

nav ul li,
#hlm {
	border: none;
	background: #444;
	font-weight: 600;
	letter-spacing: 0.08em;
}

nav ul li {
	position: relative;
	margin: 0px;
	display: inline-block;
	float: left;
}

/* Links Styling */
nav a,
.footer a {
	display: block;
	color: #fff;
	font-size: 17px;
	text-decoration: none;
}

nav a {
	padding: 14px 20px;
}

nav a:hover {
	background: #666;
}

li > a:after,
li > a:only-child:after {
	content: '';
}

/* ==========================================================================
   Dropdowns (Multilevel)
   ========================================================================== */

nav ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 9999;
	width: max-content;
	min-width: 100%;
}

nav ul li:hover > ul {
	display: block;
}

nav ul ul li {
	width: 100%;
	float: none;
	display: block;
	position: relative;
	white-space: nowrap;
}

nav ul ul li.menua {
	width: 100%;
	padding-right: 0px;
}

nav ul ul a {
	background: #444;
	font-weight: 400;
	letter-spacing: 0em;
	line-height: 1.5em;
	padding: 14px 20px;
	width: 100%;
	display: block;
}

nav ul ul a:hover,
nav ul li ul li:hover {
	background: #666;
}

nav ul ul ul li {
	position: relative;
	top: -60px;
	left: 170px;
}

/* ==========================================================================
   Submenu & Edit Controls
   ========================================================================== */

.smenu,
.umenu {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0px;
	padding: 0px;
}

.smenu {
	background: #444;
	border-bottom: 1px solid #666;
}

.umenu {
	border-bottom: 1px solid #eee;
	font-size: 14px;
	line-height: 18px;
	height: 50px;
	padding: 18px 0px;
	text-align: center;
	text-decoration: none;
}

.umenu a {
	text-decoration: none;
}

/* Flexbox f&uuml;r LI im Untermen&uuml; */
.smenu ul li.menu-item-container {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

.smenu ul li.menu-item-container > a {
	flex-grow: 1;
}

/* Stift-Icon-Button */
.menu-edit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 15px;
	cursor: pointer;
	color: #aaa;
	opacity: 0.6;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.menu-edit-btn:hover {
	opacity: 1;
	color: #4caf50;
}

/* ==========================================================================
   Grid & Overlay Component (.nav1)
   ========================================================================== */

.nav1,
.nav1 div img,
.nav1 div div {
	width: 100%;
	display: block;
}

.nav1 div {
	float: left;
	width: 33.333%;
	font-size: 100%;
	position: relative;
}

.nav1 div a img {
	transition: all 0.3s;
}

.nav1 div a:hover img {
	opacity: 0.6;
}

.nav1 div div#overlay {
	min-height: 90px;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1;
	position: absolute;
	bottom: 20%;
	left: 0px;
	color: #fff;
	font-size: 90%;
	line-height: 140%;
	font-weight: 600;
}

#overlay div {
	width: auto;
	margin: 5px 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
	width: 100%;
	float: left;
	background: #000;
	justify-content: stretch;
}

.footer div.fmenu {
	padding: 50px;
}

.copy {
	color: #fff;
	font-size: 14px;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Large Desktop Specifics */
@media all and (min-width: 768px) and (min-height: 768px) {
	#footer1 {
		position: absolute;
		bottom: 0px;
	}
}

/* Tablet & Smaller Screens (<= 900px) */
@media all and (max-width: 900px) {
	.nav1 div {
		font-size: 90%;
		line-height: 140%;
	}

	#overlay div {
		margin: 10px 20px;
	}
}

/* Mobile & Tablet Screens (<= 768px) */
@media all and (max-width: 768px) {
	#logo {
		display: block;
		padding: 0;
		width: 100%;
		text-align: center;
		float: none;
	}

	nav {
		margin: 0;
		width: 100%;
	}

	nav a {
		background: #000;
	}

	.toggle + a,
	.menu {
		display: none;
		border-top: 1px solid #666;
	}

	.toggle {
		display: block;
		background: #000;
		padding: 14px 20px;	
		color: #fff;
		font-size: 17px;
		text-decoration: none;
		border: none;
	}

	nav ul {
		float: none;
	}

	nav ul li {
		display: block;
		width: 100%;
		white-space: normal;
	}

	/* Mobile Dropdown Behavior */
	nav ul ul {
		float: none;
		position: static;
		color: #fff;
		width: 100%;
	}

	[id^=drop]:checked + ul {
		display: block;
		border-top: 1px solid #666;
	}

	nav ul ul li {
		display: block;
		width: 100%;
	}

	nav ul ul ul li {
		position: static;
	}

	/* Mobile Hover Overrides */
	nav ul ul li:hover > ul,
	nav ul li:hover > ul {
		display: none;
	}

	/* Mobile Spacing & Links */
	nav ul ul a {
		line-height: 2em;
	}

	nav ul ul a:active {
		background: #fff;
	}

	nav ul ul .toggle,
	nav ul ul a {
		padding: 0 40px;
	}

	nav ul ul ul a {
		padding: 0 80px;
	}

	nav a:hover,
	nav ul ul ul a {
		background: #666;
	}

	nav ul li ul li .toggle,
	nav ul ul a,
	nav ul ul ul a {
		padding: 14px 20px;	
		color: #fff;
		font-size: 17px;
	}

	/* Content Component Adjustments */
	.umenu {
		display: inline-block;
		height: auto;
	}

	.footer div.fmenu {
		padding: 50px 20px;
	}

	.footer div.copy {
		line-height: 140%;
		padding: 0px 20px 20px 20px;
	}

	.nav1 div {
		width: 100%;
		font-size: 100%;
		line-height: 120%;
	}

	.nav1 div div#overlay {
		position: relative;
		bottom: 0px;
		left: 0px;
	}
	
	.menu-edit-btn {
		padding: 4px 18px;
	}
	
}

/* Small Mobile Devices (<= 330px) */
@media all and (max-width: 330px) {
	nav ul li {
		display: block;
		width: 94%;
	}
}
