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

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

#header.fixed {
	box-shadow: unset;
	border-bottom: 1px solid #ccc;
	position: fixed;
	top: 0 !important;
	background: #fff;
}


#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;
}

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

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

#header ul li {
	margin-right: 60px;
	padding: 15px 0;
}

#header .menu > li > a {
	text-decoration: none !important;
	position: relative;
	color: #000;
	transition: color .3s ease;
  	font-size: 20px;
}

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


body #header .header-inner .menu > li.current-menu-item > a, .menu > li:hover > a, body #header .header-inner .menu > .current-page-ancestor > a {
	z-index: 2;
}

.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;
	visibility: hidden;
	transition: opacity 0.3s ease, margin-top 0.4s ease, visibility 0s ease 0.2s;
	display: flex;
  	gap: 30px;
	padding: 40px 40px 80px !important;
	width: 86vw;
	left: 0px !important;
	right: 0;
	max-width: var(--maxwidth);
	margin: auto !important;
	box-shadow: 0 10px 40px -20px #0000008f;
  	border-radius: 30px;
	margin-top: 30px !important;
}

.menu li .sub-menu a {
    display: block;
}

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

.karriere .sub-menu {
	display: grid !important;
	grid-template-columns: 1fr 1fr 1fr 1.5fr;
}

.karriere .sub-menu .menu-thumb {
	display: block;
	margin-bottom: 10px;
	position: relative;
}

.karriere .sub-menu .menu-thumb img {
	height: 250px;
	object-fit: cover;
	border-radius: 20px;
}

.karriere .sub-menu .menu-excerpt {
	display: block;
	margin: 5px 0;
}

.karriere .menu-thumb .button {
	position: absolute;
	right: 10px;
	top: 10px;
	height: 40px;
	width: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 100%;
	background: #fff;
}

.karriere .menu-thumb .button img {
	height: 15px;
  	border-radius: 0;
  	filter: brightness(0);
	object-fit: contain;
}

.karriere .sub-menu li {
	padding: 0 !important;
}

.karriere .sub-menu .menu-banner {
	background: var(--color-1);
	border-radius: 20px;
	padding: 30px !important;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.karriere .sub-menu .menu-banner .text {
	margin-bottom: 30px;
}

.karriere .sub-menu div.button {
	margin-top: auto;
}

.karriere .sub-menu a.button {
	display: inline-flex !important;
}

@media all and (min-width: 980px) {
	.menu li:hover .sub-menu {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.3s ease, margin-top 0.6s ease, visibility 0s ease 0s;
	}
	
	.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: -5px;
		height: 6px;
		width: 6px;
		border-style: solid;
		border-width: 0px 1.5px 1.5px 0px;
		top: calc(50% - 2px);
    	transform: translateY(-50%) rotate(45deg);
	}

	.header-menu .menu > .menu-item-has-children > .sub-menu::before {
		content:"";
		position: absolute;
		width: 100%;
		height: 15px;
		top: -15px;
	}

	.header-menu.mobil .menu-left-container {
		display: 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: #000;
		transition: all 0.2s ease !important;
	}

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

	.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(--color-4) !important;
		position: fixed;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		padding: calc(var(--header-height) + 10px) 7vw 60px;
		display: flex;
		align-items: center;
		flex-direction: column;
		justify-content: flex-start;
		transform: translateX(110%);
		transition: all 0.45s ease;
		width: 100vw;
		overflow: scroll;
  		height: 100%;
	}

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

	.menu-main-container {
		width: 100%;
	}

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

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

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

	.menu li > .sub-menu {
		position: absolute;
		width: 100%;
		margin: 0 !important;
		top: calc(var(--header-height) + 10px);
		background: var(--color-4);
		padding: 11px calc((100% - var(--width)) / 2) !important;
		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);
	}

	.karriere .sub-menu {
		grid-template-columns: 1fr;
		gap: 0px !important;
	}

	.karriere .sub-menu .menu-thumb {
		display: none !important;
	}

	.karriere .sub-menu .menu-excerpt {
		display: none !important;
	}

	.karriere .sub-menu .menu-banner {
		background: #fff;
		margin-top: 20px !important;
	}

	.menu-links {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0px;
	}

	#header .header-menu ul .menu-item .menu-title {
		line-height: 1.1em;
		font-size: 16px !important;
		font-weight: 400;
		margin: 0 !important;
	}

	.menu--links {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px 50px;
	}

	.menu {
		display: block;
	}

	#header .header-menu ul .menu-item {
		margin: 0 !important;
		padding: 15px 0;
    	border-bottom: 1px solid #0003;
		display: flex;
    	align-items: center;
    	flex-wrap: wrap;
	}

	#header .header-menu .sub-sub-menu .menu-item {
    	border-bottom: 0 !important;
		padding-left: 25px;
	}

	#header .header-menu .sub-menu .menu-item a {
		font-weight: 400;
	}

	#header .header-menu ul .menu-item a {
		line-height: 1.1em;
		font-size: 16px !important;
		text-decoration: none !important;
		display: block !important;
		width: 100%;
	}


	.karriere .sub-menu li {
		margin: 0 !important;
		padding: 15px 0 !important;
		border-bottom: 1px solid #0003 !important;
	}


	#header .header-menu .menu-item.menu-button {
		border-bottom: 0 !important;
		margin-top: 15px !important;
	}

	#header .header-menu ul .menu-item.menu-button a {
		width: fit-content !important;
		display: inline-flex !important;
	}

	.mobile-back {
		position: relative;
		display: flex !important;
		align-items: center;
		cursor: pointer;
		white-space: nowrap;
		border-bottom: 1px solid #0003;
		padding-bottom: 5px !important;
	}

	.mobile-back span {
		height: 34px;
		width: 34px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: #fff;
		border-radius: 100%;
		margin-right: 10px;
	}

	.mobile-back span:before {
		content:"";
		height: 9px;
		width: 9px;
		border-left: 1px solid #000;
		border-bottom: 1px solid #000;
		transform: rotate(45deg);
		margin-left: 3px;
	}
	
	.arrow {
		right: 7vw;
		position: absolute;
		z-index: 9;
    	cursor: pointer;
		height: 34px;
		width: 34px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: #fff;
		border-radius: 100%;
	}

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

	#header .header-menu ul .menu-item a.button {
		display: inline-flex !important;
		width: fit-content;
	}
}