/*--------------------------------------------------------------
# HEADER
--------------------------------------------------------------*/

#header {
	position: absolute;
	width: 100%;
	z-index: 999;
	height: var(--header-height);
	transition: all 0.4s ease;
}

#header.scroll-up {
	position: fixed;
	top: 0px;
	background: #fff;
	box-shadow: 0 -10px 20px #0003;
}

#header.scroll-down {
	top: calc(-1 * (var(--header-height) + 30px));
}

.header-inner {
	max-width: var(--maxwidth);
	width: var(--width);
	height: 100%;
	display: grid;
	justify-content: space-between;
	gap: 40px;
	margin: auto;
	align-items: center;
	padding: var(--header-spacing) 0;
	grid-template-columns: auto 1fr;
}

.header-inner > .header-menu:first-child {
	justify-content: flex-start;
}

.header-logo {
	transition: all 0.4s ease;
	position: relative;
	z-index: 9999;
}

.header-logo * {
	height: calc(var(--header-height) - var(--header-spacing) * 2);
	width: auto;
	display: block;
}

body.h-wh #header:not(.scroll-up) .menu > li > a {
	color: #fff !important;
}

body.h-wh #header:not(.scroll-up) .header-logo:not(.active) .logo-schrift path {
	fill:#FFFFFF;
}

.menu {
	display: flex;
	justify-content: flex-end;
}

#header ul {
	padding: 0;
	list-style: none;
	margin: 0;
}

#header ul li {
	margin-right: clamp(20px, 3.5vw, 60px);
	padding: 10px 0;
}

#header .menu > li > a {
	font-size: var(--font-size);
	text-decoration: none !important;
	position: relative;
	color: #000;
}

#header ul li:last-child, #header ul li li {
	margin-right: 0px;
}


.menu > li.current-menu-item > a {
	font-weight: 600;
}

.header-menu {
	display: flex;
	justify-content: flex-end;
  	align-items: center;
}

.mobil-menu-button {
	display: none;
}


.menu li > .sub-menu {
    position: absolute;
    z-index: 999;
    background: #fff;
    opacity: 0;
    margin-top: 35px;
    visibility: hidden;
    transition: opacity 0.3s ease, margin-top 0.4s ease, visibility 0s ease 0.2s;
    box-shadow: 10px 10px 10px -10px #b39b9b4f;
	display: block;
	padding: 20px 20px 10px !important;
	width: 210px;
	margin-left: -20px !important;
	border-radius: 6px;
}

.menu li .sub-menu a {
    display: block;
    white-space: nowrap;
	color: var(--main-color);
}

.menu li .sub-menu > li:last-child a{
    margin-bottom: 0px;
}

.menu li .sub-menu a:hover {
    text-decoration: underline;
}

.mobile-back {
	display: none !important;
}


@media all and (min-width: 980px) {
	.menu li:hover .sub-menu {
		opacity: 1;
		visibility: visible;
		margin-top: 15px;
		transition: opacity 0.3s ease, margin-top 0.6s ease, visibility 0s ease 0s;
	}

	.menu > .menu-item:not(.menu-button) > a:before {
		content:"";
		display: block;
		position: absolute;
		bottom: -7px;
		left: 0;
		right: 0;
		width: 0;
		height: 2px;
		background: var(--main-color);
		margin: 0 auto;
		transition: .5s cubic-bezier(.4,-.01,0,.99);
	}
	
	.menu > .menu-item:hover > a:before, .menu > .current-menu-item > a:before{
		width: 100% !important;
	}
	
	body.h-wh #header:not(.scroll-up) .menu > .menu-item > a:before {
		background: #fff;
	}

	.header-menu .menu > .menu-item-has-children > a {
		padding-right: 15px;
	}
	
	.header-menu .menu > .menu-item-has-children > a::after {
		content: "";
		display: block;
		position: absolute;
		right: 0;
		height: 5px;
		width: 5px;
		border-style: solid;
		border-width: 0px 1.2px 1.2px 0px;
		top: 50%;
    	transform: translateY(-50%) rotate(45deg);
	}

	.header-menu.mobil .menu-left-container {
		display: none !important;
	}

	.menu-item.menu-button {
		padding: 5px 22px !important;
		background: var(--main-color);
		border: 1px solid var(--main-color);
		border-radius: 6px;
		margin: auto;
		transition: all .3s ease;
	}
	
	.menu-item.menu-button:hover {
		border: 1px solid var(--main-color);
		background: unset;
	}

	.menu-item.menu-button a {
		font-weight: 600;
		color: #fff !important;
	}

	.menu-item.menu-button:hover a{
		color: var(--main-color) !important;
	}

	body.h-wh #header:not(.scroll-up) .menu-item.menu-button {
		border: 1px solid var(--main-color);
	}

	body.h-wh #header:not(.scroll-up) .menu-item.menu-button:hover {
		border: 1px solid #fff;
		background: unset;
	}
	
	.menu-item.menu-button a {
		text-decoration: none !important;
	}
	
}


@media all and (max-width: 980px) {
	.no-scroll #header{
		position: fixed;
		top: 0px;
	}

	.header-inner {
		display: flex;
	}

	.header-menu {
		display: none;
	}

	.header-logo .custom-logo {
		height: 100%;
		width: auto;
	}

	.mobil-menu-button {
		position: absolute;
		right: calc((100% - var(--width)) / 2);
		top: 0;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		bottom: 0;
		margin: auto;
		height: 40px;
		justify-content: space-around;
		padding: 12px 0;
		cursor: pointer;
		z-index: 9;
	}

	.line--burger {
		width: 42px;
		height: 2px;
		display: block;
		background: var(--text-color);
		transition: all 0.2s ease !important;
	}

	body.h-wh #header:not(.scroll-up) .line--burger {
		background: #fff;
	}

	.line--burger:last-child {
		width: 30px;
	}

	.mobil-menu-button.active .line--burger:first-child {
		transform: rotate(-45deg);
		width: 32px !important;
	}

	.mobil-menu-button.active .line--burger:last-child {
		transform: rotate(45deg);
		margin-top: -15px;
		width: 32px !important;
	}

	.header-menu {
		background: var(--bg-color);
		position: fixed;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		padding: calc(var(--header-height) + 10px) calc((100% - var(--width)) / 2) 60px;
		display: flex;
		align-items: center;
		flex-direction: column;
		justify-content: flex-start;
		transform: translateX(110%);
		transition: all 0.45s ease;
	}

	.header-menu.active {
		transform: translateX(0);
	}

	.header-menu.mobil .header-menu-inner {
		display: flex;
		flex-direction: column;
		width: 100%;
		position: relative;
	}

	.header-menu ul {
		padding: 0;
		list-style: none;
	}

	#header .menu > li > a {
		font-size: 16px;
	}

	.menu li > .sub-menu {
		position: absolute;
		width: 100%;
		margin: 0 !important;
		padding: 0 !important;
		top: 0;
		height: 100%;
		background: var(--sub-color);
		border-radius: 0;
		opacity: 1;
		visibility: visible;
		box-shadow: unset;
		transform: translateX(100vw);
		transition: transform .45s ease;
	}

	.menu li.active > .sub-menu {
		transform: translateX(0);
	}

	.menu {
		display: block;
	}

	#header .header-menu ul li {
		margin: 0 !important;
		padding: 12px 0;
    	border-bottom: 1px solid #0003;
	}

	.header-menu ul li a {
		line-height: 1.1em;
		font-size: 16px;
		text-transform: uppercase;
		text-decoration: none !important;
		font-family: 'Montserrat', sans-serif;
		letter-spacing: 0.5px;
		display: inline-block !important;
		width: 100%;
	}

	.mobile-back {
		position: relative;
		display: flex !important;
		align-items: center;
		padding-left: 15px;
		cursor: pointer;
		text-transform: uppercase;
		font-weight: 600;
	}

	.mobile-back:before {
		content:"";
		height: 12px;
		width: 12px;
		border-left: 1px solid #fff9;
		border-bottom: 1px solid #fff9;
		transform: rotate(45deg);
		margin-right: 5px;
	}
	
	.arrow {
		border-left: 1px solid #fff3;
		right: 5px;
		position: absolute;
		z-index: 9;
    	cursor: pointer;
		height: 25px;
		width: 40px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.arrow:after {
		content:"";
		position: absolute;
		height: 12px;
		width: 12px;
		border-right: 1px solid #fff9;
		border-top: 1px solid #fff9;
		transform: rotate(45deg);
	}
}