/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
/* main navigation first layer */

input#hamburg { display: none; }
.site-branding { padding-top:8px; }

ul#menu-topmenu ul.sub-menu li {
	background-repeat: no-repeat;
}


/* ------------------------------------------------------------
## Kleine Monitore bis 1259 mit Hamburger-Navigation
--------------------------------------------------------------*/
@media only screen and (max-width: 1259px) {
	.metaslider,
	.site-featured-image {
		margin-top: 0
	}
	label.hamburg {
		display: block;
		background: #555;
		width: 60px; 
		min-width:60px;
		height: 45px; 
		position: relative;
		border-radius: 4px;
		transition: border-radius .5s;
		margin-right: 0.5rem;
	}
	
	label.hamburg .line { 
		position: absolute; 
		height: 4px; 
		background: #fff;
		border-radius: 2px;
		width: 48px; 
		display: block; 
		left:6px;
		transition: 0.5s; 
		transform-origin: center; 
	}

	label.hamburg .line:nth-child(1) { top: 10px; }
	label.hamburg .line:nth-child(2) { top: 22px; }
	label.hamburg .line:nth-child(3) { top: 34px; }

	#hamburg:checked + .hamburg .line:nth-child(1) {
		transform: translateY(12px) rotate(-45deg);
	}
	#hamburg:checked + .hamburg .line:nth-child(2) {
		opacity:0;
	}
	#hamburg:checked + .hamburg .line:nth-child(3) {
		transform: translateY(-12px) rotate(45deg);
	}
	
	#hamburg:checked + .hamburg { background: #333; }	
	#hamburg:checked ~ .main-navigation ul {max-height: 800px;}

	.main-navigation ul {
		list-style-type: none;
		margin-left: 0;
		padding-left: 0;
		height: auto;
		max-height: 0;
		overflow: hidden;
		transition: 0.3s;
		font-size: 0.9rem;
		margin-top: 0;
		
	}
	
	.main-navigation ul:first-child {
		background-color: hsla(0,0%,60%,0.8);
	}

	ul.main-menu li { margin: 0 6px; text-transform:uppercase;  }
	ul.main-menu li a { display: block; padding-left: 1em; padding-right: 1em}
	ul.main-menu li.menu-item-has-children li { padding-left: 1rem; }
	body {
		font-size: 0.96em;
	}
	
	#site-extra-navigation {
		width: 86%
	}
}	


/* ------------------------------------------------------------
## Alle Monitore
--------------------------------------------------------------*/
.over-the-top {
	background-color: gray;
	color: white;
	display: flex;
	gap: 18px;
	align-items: center;
}

.over-the-top a {
	color: #fff;
}

.over-the-top a:hover {
	color: yellow;
}

#menu-over-the-top {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	list-style-type: none;
	max-width:920px;
}

#menu-over-the-top li {
	width: 45%;
}

@media (min-width: 500px) {
	#menu-over-the-top li {
		width: 31%;
	}
}

@media (min-width: 900px) {
	#menu-over-the-top li {
		width: 15%;
	}
}

@media (min-width: 1260px) {
	#menu-over-the-top li {
		width: auto;
		margin-right: 32px
	}
}

#menu-over-the-top li.home a {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.featured-alt, 
.featured-title {
	display:none;
}

.seachloupe {
	cursor: pointer;
}

.topsearch {
	padding-top: 0;
	padding-bottom: 0;
	height: auto;
	max-height: 0;
	overflow: hidden;
	transition: 1s;
	max-width: 0;
}

.topsearch.open {
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	max-height: 100px;
	transition: 1s;
}

.site-description {
	display: none;
}

.site-branding-container {
	position: sticky;
}

.site-branding {
	display: flex;
	margin-top:0;
	position: sticky;
	padding-left: 1rem;
	padding-right:1rem;
	box-sizing: border-box;
	width: 100%;
	z-index:9999;
	padding-bottom: 4px;
	background: hsla(0,0%,100%,0.7);
	justify-content: space-between;
}

.custom-logo {
	width: 220px;
}

/* ------------------------------------------------------------
## Kleine Monitore bis 1259px Breite mit Hamburger-Navigation
--------------------------------------------------------------*/

@media (max-width: 1259px) {
	.metaslider,
	.site-featured-image {
		margin-top: 0px !Important
	}
	
	.menu-topmenu-container a {
		color: white;
	}

	.custom-logo-link {
		width: 95%;
	}
	.menu-topmenu-container {
		width: 100%;
		left: 0;
		top: 56px;
		position: absolute;
	}
}


/* ------------------------------------------------------------
## Große Monitore ab 1260px Breite mit ausgeschriebener Navigation
--------------------------------------------------------------*/

@media (min-width:1260px) {
	.metaslider,
	.site-featured-image {
		margin-top: -80px
	}
	.main-navigation {
		width: calc(100vw - 255px);
	}

	.menu-topmenu-container {
		background-color: none; 
	}
	.custom-logo-link {
		width: 240px;
		padding-left: 14px;
		box-sizing: border-box;
		margin-top: -10px;
	}
	
	ul#menu-topmenu {
		display: flex;
		list-style-type: none;
		justify-content: center;
		font-size: 1em;
		margin-bottom: 0;
		margin-top: 0;
		background-color: transparent;
	}

	ul#menu-topmenu > li {
		text-transform: uppercase;
		width: 12em;
		min-width: 9em;
		font-weight: 400;
		margin-left: 4px;
		margin-right:4px;
	}

	ul#menu-topmenu ul.sub-menu {
		height: auto;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transition: max-height  0.3s 0.1s;

		z-index: 1000;
		width: 100%;
		left: 0;
		top: 0;
		background: hsla(0,0%,100%,0.5);
		border-bottom: 2px solid gainsboro;
		list-style-type: none;
		display: flex;
		justify-content: center;
		padding-left: 0;
		border-top: 2px solid gainsboro;
		border-bottom: 2px solid gainsboro;
	}

	ul#menu-topmenu ul.sub-menu li {
		width: 175px;
		height: 175px;
		background-size: 80% 80%;
		background-repeat: no-repeat;
		margin-left: 10px;
		margin-right: 10px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-end;
		text-align:center;
		background-position: center top;
	}
	
	ul#menu-topmenu ul.sub-menu li a {
		width: 175px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		font-weight:bold;
		font-size:0.9em;
		background-color:hsla(0,0%,0%,0.3);
		color: white;
	}

	ul#menu-topmenu ul.sub-menu.toggleopen {
		max-height: 800px;
		transition: all 0.5s;
		opacity:1;
		top:5rem;
		left:0;
		width: 1160px;
		padding-top: 10px;
		padding-bottom: 10px;
		position: absolute;
		margin-left: calc((100% - 1160px) / 2);
	}
	
	.site-branding {
		position: sticky; 
		top:0px;
		width:100vw;
		height: 80px;
		padding-top:29px;
		box-shadow: 0 2px 4px #999;
		/**
		
		background-color: hsla(30,0%,100%,0.6);
		**/
	}


	li.menu-item-has-children>a::after {
		content: url("data:image/svg+xml; utf8,%3Csvg%20width='20'%20height='12'%20viewBox='0%200%2010%206'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='m1.631%202.14%203.615%203%203.615-3'%20fill='none'%20stroke='gray'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E"); 
		font-weight: bold;
		padding-left:1em;
	}

	li.chevron-open.menu-item-has-children>a::after {
		content: url("data:image/svg+xml; utf8,%3Csvg%20width='20'%20height='12'%20viewBox='0%200%2010%206'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='m1.631%205.071%203.615-3%203.615%203'%20fill='none'%20stroke='gray'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E"); 
	}
	
	.logged-in.admin-bar .site-branding {
	}
}
