/*╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗*/
/*║ HEADER I                                                                                                                                                                                                                                              ║*/
/*╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝*/
/***-------------------------------------------*** Body ***-------------------------------------------***/
body { padding-top: 270px; }

/***-------------------------------------------*** Header ***-------------------------------------------***/
header { position: absolute; z-index: 1000; inset: 0 0 auto 0; height: 270px; background: transparent; }
header:before { content: ""; position: absolute; z-index: -2; inset: 0; background: transparent linear-gradient(0deg, #FFFFFF00 0%, #FFFFFF 100%) 0% 0% no-repeat padding-box; }
header a { text-decoration: none; }
header li { list-style: none; }
header > .cms_container_wide { position: relative; height: 270px; padding: 0 30px; }

/***-------------------------------------------*** Hamburger ***-------------------------------------------***/
#nav-icon4 { cursor: pointer; position: relative; display: inline-block; width: 40px; height: 27px; transform: rotate(0deg); transition: .5s ease-in-out; }
#nav-icon4 span { position: absolute; left: 0; display: block; width: 100%; height: 3px; background: #254572; border-radius: 5px; opacity: 1; transform: rotate(0deg); transition: .25s ease-in-out; }
body.navi #nav-icon4 span { background: #FFFFFF; }
#nav-icon4 span:nth-child(1),
#nav-icon4 span:nth-child(2),
#nav-icon4 span:nth-child(3) { transform-origin: left center; }
#nav-icon4 span:nth-child(1) { top: 0px; }
#nav-icon4 span:nth-child(2) { top: 12px; }
#nav-icon4 span:nth-child(3) { top: 24px; }
body.navi #nav-icon4 span:nth-child(1) { top: -2.5px; left: 6px; transform: rotate(45deg); }
body.navi #nav-icon4 span:nth-child(2) { width: 0%; opacity: 0; }
body.navi #nav-icon4 span:nth-child(3) { top: 25.5px; left: 6px; transform: rotate(-45deg); }
header #hHamburger { cursor: pointer; position: absolute; z-index: 1; top: 85px; right: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 40px; transition: all .3s ease-in-out; }
header #hHamburger:after {
	content: "Menü";
	font-family: "Rubik", sans-serif;
	font-weight: 500;
	font-size: 15px;
	line-height: 18px;
	color: #254572;
	text-align: center;
	transition: .25s ease-in-out;
}
body.navi header #hHamburger:after { content: "Schliessen"; color: #FFFFFF; }
.hHamburger_hideForScroll { opacity: 0 !important; visibility: hidden !important; }

/***-------------------------------------------*** Logo ***-------------------------------------------***/
body #logo_container { position: absolute; z-index: 1; top: 48px; left: 30px; width: 150px; height: 95px; overflow: hidden; }
body #logo_container > a { position: absolute; z-index: 2; inset: 0; background: url("/pages/img/logo.svg"); background-repeat: no-repeat; background-position: center; background-size: contain; }
body.navi #logo_container { z-index: -1; }

/***-------------------------------------------*** Navigation ***-------------------------------------------***/
header #hHeaderNavs { position: fixed; top: 0; right: -100vW; bottom: 0; width: 100vW; background: #254572; overflow-y: auto; transition: all 0.3s; }
body.navi header #hHeaderNavs { right: 0; }

/***-------------------------------------------*** Desktop ***-------------------------------------------***/
@media screen and (min-width: 1025px) {
	/* Start: Navigation */
	header #hHeaderNavs > .cms_container_wide { display: flex; align-items: center; min-height: 100%; }
	header #hHeaderNavsBox { display: flex; justify-content: space-between; gap: 30px; width: 100%; padding: 30px; }
	header #hNavigation { flex: 1; }
	/* End: Navigation */

	/* Start: Nav First-Level */
	header #hNavigation > ul { display: flex; gap: 50px; }
	header #hNavigation > ul > li { display: flex; flex-direction: column; max-width: 350px; width: 33.3333%; }
	header #hNavigation > ul > li > span {
		font-family: "Rubik", sans-serif;
		font-weight: 500;
		font-size: 15px;
		line-height: 18px;
		color: #FFFFFF;
		letter-spacing: 0.75px;
		text-align: left;
		text-transform: uppercase;
		white-space: nowrap;
		margin: 0 0 47px 0;
		transition: all .3s ease-in-out;
	}
	header #hNavigation > ul > li.current > span,
	header #hNavigation > ul > li:hover > span { color: #E52C3B; }
	header #hNavigation > ul > li > .toggler { display: none; }
	/* End: Nav First-Level */

	/* Start: Nav Second-Level */
	header #hNavigation > ul > li > ul { display: flex; flex-direction: column; gap: 12px; }
	header #hNavigation > ul > li > ul > li { position: relative; display: block; padding: 0 0 14px 0; }
	header #hNavigation > ul > li > ul > li:before {
		content: "";
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 2px;
		background: rgba(255,255,255,0.5);
	}
	header #hNavigation > ul > li > ul > li > a {
		display: block;
		font-family: "Rubik", sans-serif;
		font-weight: 700;
		font-size: 24px;
		line-height: 28px;
		color: #FFFFFF;
		text-align: left;
		white-space: nowrap;
		transition: all .3s ease-in-out;
	}
	header #hNavigation > ul > li > ul > li.active > a,
	header #hNavigation > ul > li > ul > li > ul >li.active > a,
	header #hNavigation > ul > li > ul > li > a:hover,
	header #hNavigation > ul > li > ul > li > ul >li > a:hover { color: #E52C3B; }
	/* End: Nav Second-Level */

	/* Start: Service Navigation */
	header #hService { margin: 65px 0 0 0; }
	header #hService > ul { display: flex; flex-direction: column; gap: 25px; }
	header #hService > ul > li { display: block; }
	header #hService > ul > li > a { display: flex; align-items: center; gap: 12px; }
	header #hService > ul > li > a > i { font-size: 24px; line-height: 24px; color: #FFFFFF; transition: all .3s ease-in-out; }
	header #hService > ul > li.current > a > i,
	header #hService > ul > li:hover > a > i { color: #E52C3B; }
	header #hService > ul > li > a > span {
		font-family: "Rubik", sans-serif;
		font-weight: 500;
		font-size: 15px;
		line-height: 18px;
		color: #FFFFFF;
		letter-spacing: 0.75px;
		text-align: left;
		text-transform: uppercase;
		transition: all .3s ease-in-out;
	}
	header #hService > ul > li.current > a > span,
	header #hService > ul > li:hover > a > span { color: #E52C3B; }
	/* End: Service Navigation */
}

/***-------------------------------------------*** Tablet ***-------------------------------------------***/
@media screen and (min-width: 641px) and (max-width: 1024px) {
	/* Start: Header */
	body { padding-top: 100px; }
	header { height: 100px; }
	header > .cms_container_wide { height: 100px; }
	body #logo_container { top: 18.5px; left: 30px; width: 100px; height: 63px; }
	/* End: Header */

	/* Start: Hamburger */
	#nav-icon4 { width: 30px; height: 22px; }
	#nav-icon4 span { height: 2px; }
	#nav-icon4 span:nth-child(2) { top: 10px; }
	#nav-icon4 span:nth-child(3) { top: 20px; }
	body.navi #nav-icon4 span:nth-child(1) { top: 0; left: 3.5px; }
	body.navi #nav-icon4 span:nth-child(3) { top: 22px; left: 3.5px; }
	header #hHamburger { top: 39px; gap: unset; width: auto; }
	body.navi header #hHamburger { top: 80px; right: 80px; }
	header #hHamburger:after { content: none !important; }
	body.navi header #hHamburger:after { content: none !important; }
	/* End: Hamburger */

	/* Start: Navigation */
	header #hHeaderNavsBox { display: flex; justify-content: space-between; gap: 30px; width: 100%; padding: 80px; }
	header #hNavigation { flex: 1; }
	/* End: Navigation */

	/* Start: Nav First-Level */
	header #hNavigation > ul { display: flex; flex-direction: column; gap: 54px; }
	header #hNavigation > ul > li { display: flex; flex-direction: column; max-width: 350px; width: 100%; }
	header #hNavigation > ul > li > span {
		font-family: "Rubik", sans-serif;
		font-weight: 500;
		font-size: 15px;
		line-height: 18px;
		color: #FFFFFF;
		letter-spacing: 0.75px;
		text-align: left;
		text-transform: uppercase;
		white-space: nowrap;
		margin: 0 0 47px 0;
		transition: all .3s ease-in-out;
	}
	header #hNavigation > ul > li.current > span,
	header #hNavigation > ul > li:hover > span { color: #E52C3B; }
	header #hNavigation > ul > li > .toggler { display: none; }
	/* End: Nav First-Level */

	/* Start: Nav Second-Level */
	header #hNavigation > ul > li > ul { display: flex; flex-direction: column; gap: 12px; }
	header #hNavigation > ul > li > ul > li { position: relative; display: block; padding: 0 0 14px 0; }
	header #hNavigation > ul > li > ul > li:before {
		content: "";
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 2px;
		background: rgba(255,255,255,0.5);
	}
	header #hNavigation > ul > li > ul > li > a {
		display: block;
		font-family: "Rubik", sans-serif;
		font-weight: 700;
		font-size: 24px;
		line-height: 28px;
		color: #FFFFFF;
		text-align: left;
		white-space: nowrap;
		transition: all .3s ease-in-out;
	}
	header #hNavigation > ul > li > ul > li.active > a,
	header #hNavigation > ul > li > ul > li > ul >li.active > a,
	header #hNavigation > ul > li > ul > li > a:hover,
	header #hNavigation > ul > li > ul > li > ul >li > a:hover { color: #E52C3B; }
	/* End: Nav Second-Level */

	/* Start: Service Navigation */
	header #hService { margin: 144px 0 0 0; }
	header #hService > ul { display: flex; flex-direction: column; gap: 25px; }
	header #hService > ul > li { display: block; }
	header #hService > ul > li > a { display: flex; align-items: center; gap: 12px; }
	header #hService > ul > li > a > i { font-size: 24px; line-height: 24px; color: #FFFFFF; transition: all .3s ease-in-out; }
	header #hService > ul > li.current > a > i,
	header #hService > ul > li:hover > a > i { color: #E52C3B; }
	header #hService > ul > li > a > span {
		font-family: "Rubik", sans-serif;
		font-weight: 500;
		font-size: 15px;
		line-height: 18px;
		color: #FFFFFF;
		letter-spacing: 0.75px;
		text-align: left;
		text-transform: uppercase;
		transition: all .3s ease-in-out;
	}
	header #hService > ul > li.current > a > span,
	header #hService > ul > li:hover > a > span { color: #E52C3B; }
	/* End: Service Navigation */
}

/***-------------------------------------------*** Smartphone ***-------------------------------------------***/
@media screen and (max-width: 640px) {
	/* Start: Header */
	body { padding-top: 100px; }
	header { height: 100px; }
	header > .cms_container_wide { height: 100px; }
	body #logo_container { top: 18.5px; left: 30px; width: 100px; height: 63px; }
	/* End: Header */

	/* Start: Hamburger */
	#nav-icon4 { width: 30px; height: 22px; }
	#nav-icon4 span { height: 2px; }
	#nav-icon4 span:nth-child(2) { top: 10px; }
	#nav-icon4 span:nth-child(3) { top: 20px; }
	body.navi #nav-icon4 span:nth-child(1) { top: 0; left: 3.5px; }
	body.navi #nav-icon4 span:nth-child(3) { top: 22px; left: 3.5px; }
	header #hHamburger { top: 39px; gap: unset; width: auto; }
	body.navi header #hHamburger { top: 30px; }
	header #hHamburger:after { content: none !important; }
	body.navi header #hHamburger:after { content: none !important; }
	/* End: Hamburger */

	/* Start: Navigation */
	header #hHeaderNavsBox { display: flex; flex-direction: column; justify-content: flex-start; gap: 50px; width: 100%; padding: 113px 30px 73px 30px; }
	header #hNavigation { width: 100%; }
	/* End: Navigation */

	/* Start: Nav First-Level */
	header #hNavigation > ul { display: flex; flex-direction: column; gap: 45px; }
	header #hNavigation > ul > li { display: flex; flex-direction: column; width: 100%; }
	header #hNavigation > ul > li > span {
		font-family: "Rubik", sans-serif;
		font-weight: 500;
		font-size: 12px;
		line-height: 14px;
		color: #FFFFFF;
		letter-spacing: 0.6px;
		text-align: left;
		text-transform: uppercase;
		white-space: nowrap;
		margin: 0 0 25px 0;
		transition: all .3s ease-in-out;
	}
	header #hNavigation > ul > li.current > span,
	header #hNavigation > ul > li:hover > span { color: #E52C3B; }
	header #hNavigation > ul > li > .toggler { display: none; }
	/* End: Nav First-Level */

	/* Start: Nav Second-Level */
	header #hNavigation > ul > li > ul { display: flex; flex-direction: column; gap: 10px; }
	header #hNavigation > ul > li > ul > li { position: relative; display: block; padding: 0 0 12px 0; }
	header #hNavigation > ul > li > ul > li:before {
		content: "";
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 2px;
		background: rgba(255,255,255,0.5);
	}
	header #hNavigation > ul > li > ul > li > a {
		display: block;
		font-family: "Rubik", sans-serif;
		font-weight: 700;
		font-size: 20px;
		line-height: 24px;
		color: #FFFFFF;
		text-align: left;
		white-space: nowrap;
		transition: all .3s ease-in-out;
	}
	header #hNavigation > ul > li > ul > li.active > a,
	header #hNavigation > ul > li > ul > li > ul >li.active > a,
	header #hNavigation > ul > li > ul > li > a:hover,
	header #hNavigation > ul > li > ul > li > ul >li > a:hover { color: #E52C3B; }
	/* End: Nav Second-Level */

	/* Start: Service Navigation */
	header #hService { width: 100%; }
	header #hService > ul { display: flex; flex-direction: column; gap: 20px; }
	header #hService > ul > li { display: block; }
	header #hService > ul > li > a { display: flex; align-items: center; gap: 12px; }
	header #hService > ul > li > a > i { font-size: 24px; line-height: 24px; color: #FFFFFF; transition: all .3s ease-in-out; }
	header #hService > ul > li.current > a > i,
	header #hService > ul > li:hover > a > i { color: #E52C3B; }
	header #hService > ul > li > a > span {
		font-family: "Rubik", sans-serif;
		font-weight: 500;
		font-size: 12px;
		line-height: 14px;
		color: #FFFFFF;
		letter-spacing: 0.6px;
		text-align: left;
		text-transform: uppercase;
		transition: all .3s ease-in-out;
	}
	header #hService > ul > li.current > a > span,
	header #hService > ul > li:hover > a > span { color: #E52C3B; }
	/* End: Service Navigation */
}