/*╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗*/
/*║ HEADER I                                                                                                                                                                                                                                              ║*/
/*╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝*/
/***-------------------------------------------*** Space for Header ***-------------------------------------------***/
#cmsgrid > div:first-of-type { padding-top: 125px; }

/***-------------------------------------------*** Header ***-------------------------------------------***/
header { position: fixed; z-index: 1000; inset: 0 0 auto 0; height: 125px; background: var(--white); transition: var(--transition); }
body.scrolled header { box-shadow: 0 5px 15px 0 rgba(0,0,0,0.2); }
header .cms_container_wide { position: relative; height: 125px; padding: 0 30px; }

/***-------------------------------------------*** Hamburger ***-------------------------------------------***/
header #hHamburger { cursor: pointer; position: absolute; top: 50%; right: 30px; transform: translateY(-50%); display: none; }
#hHamburgerIcon { position: relative; width: 48px; height: 37px; transition: var(--transition); }
#hHamburgerIcon span { position: absolute; left: 0; display: block; width: 100%; height: 5px; background: var(--secondary); border-radius: 5px; transform: rotate(0deg); transition: var(--transition); will-change: transform; }
#hHamburgerIcon span:first-child,
#hHamburgerIcon span:nth-child(2),
#hHamburgerIcon span:last-child { transform-origin: left center; }
#hHamburgerIcon span:first-child { top: 0px; }
#hHamburgerIcon span:nth-child(2) { top: 16px; }
#hHamburgerIcon span:last-child { top: 32px; }
body.navi #hHamburgerIcon span:first-child { top: -0.5px; left: 7px; transform: rotate(45deg); }
body.navi #hHamburgerIcon span:nth-child(2) { width: 0%; opacity: 0; }
body.navi #hHamburgerIcon span:last-child { top: 33px; left: 7px; transform: rotate(-45deg); }

/***-------------------------------------------*** Close ***-------------------------------------------***/
header #hClose { cursor: pointer; position: absolute; z-index: 1; top: 15px; right: 30px; display: none; width: 55px; height: 55px; }
header #hClose > span { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(45deg); background: var(--secondary); border-radius: 5px; }
header #hClose > span:first-of-type { width: 100%; height: 5px; }
header #hClose > span:last-of-type { width: 5px; height: 100%; }

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

/***-------------------------------------------*** Nav Logo ***-------------------------------------------***/
body #nav_logo_container { position: absolute; z-index: 1; top: 23px; left: 30px; display: none; width: 198px; height: 41px; }
body #nav_logo_container > a { position: absolute; z-index: 2; inset: 0; background: center left / contain no-repeat url("/pages/img/logo.svg"); }

/***-------------------------------------------*** Desktop ***-------------------------------------------***/
@media screen and (min-width: 1201px) {
	/* Start: First-Level */
	header #hNavigation > ul { display: flex; justify-content: flex-end; align-items: center; gap: 26px; width: 100%; padding: 73px 0 0 268px; }
	header #hNavigation > ul > li { display: block; }
	header #hNavigation > ul > li > a { position: relative; display: block; font-weight: 300; font-size: 17px; line-height: 20px; letter-spacing: 0.85px; text-transform: uppercase; color: var(--black); white-space: nowrap; padding: 0 0 0 8px; transition: var(--transition); }
	header #hNavigation > ul > li > a:before { content: ""; position: absolute; z-index: 1; top: 50%; left: 0; transform: translateY(-50%); width: 2px; height: 17px; background: var(--primary); }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { color: var(--secondary); }
	/* End: First-Level */

	/* Start: Scrolled */
	header,
	header .cms_container_wide,
	body #logo_container,
	header #hNavigation > ul { transition: var(--transition); }

	body.scrolled header { height: 89px; }
	body.scrolled header .cms_container_wide { height: 89px; }
	body.scrolled #logo_container { top: 34px; width: 204px; height: 41px; }
	body.scrolled header #hNavigation > ul { padding: 51px 0 0 234px; }
	/* End: Scrolled */
}

/***-------------------------------------------*** Tablet ***-------------------------------------------***/
@media screen and (min-width: 960px) and (max-width: 1200px) {
	/* Start: Header */
	header #hHamburger { display: block; }
	/* End: Header */

	/* Start: Navigation */
	header #hNavigation { position: fixed; top: 125px; right: -100%; bottom: 0; overflow-y: auto; transition: var(--transition); }
	body.navi header #hNavigation { right: 0; }
	/* End: Navigation */

	/* Start: First-Level */
	header #hNavigation > ul { display: flex; flex-direction: column; gap: 35px; padding: 30px; background: var(--white); }
	header #hNavigation > ul > li { position: relative; display: block; padding: 0 0 7px 0; }
	header #hNavigation > ul > li:before { content: ""; position: absolute; z-index: 1; bottom: 0; left: 0; max-width: 26px; width: 100%; height: 2px; background: var(--primary); }
	header #hNavigation > ul > li > a { display: block; font-weight: 300; font-size: 23px; line-height: 28px; letter-spacing: 1.15px; text-transform: uppercase; color: var(--black); white-space: nowrap; transition: var(--transition); }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li > a:hover { color: var(--secondary); }
	/* End: First-Level */

	/* Start: Scrolled */
	header,
	header .cms_container_wide,
	body #logo_container,
	header #hNavigation { transition: var(--transition); }

	body.scrolled header { height: 89px; }
	body.scrolled header .cms_container_wide { height: 89px; }
	body.scrolled #logo_container { top: 34px; width: 204px; height: 41px; }
	body.scrolled header #hNavigation { top: 89px; }
	/* End: Scrolled */
}

/***-------------------------------------------*** Smartphone ***-------------------------------------------***/
@media screen and (max-width: 959px) {
	/* Start: Header */
	#cmsgrid > div:first-of-type { padding-top: 90px; }
	header { height: 90px; }
	header .cms_container_wide { height: 90px; }
	header #hHamburger { display: block; }
	header #hClose { display: block; }
	body #logo_container { top: 23px; width: 198px; height: 41px; }
	body.navi #nav_logo_container { display: block; }
	/* End: Header */

	/* Start: Navigation */
	header #hNavigation { position: fixed; z-index: 1; top: 0; right: -100vW; bottom: 0; width: 100vW; overflow-y: auto; background: var(--white); transition: var(--transition); }
	body.navi header #hNavigation { right: 0; }
	/* End: Navigation */

	/* Start: First-Level */
	header #hNavigation > ul { display: flex; flex-direction: column; gap: 35px; padding: 142px 30px 30px 30px; }
	header #hNavigation > ul > li { position: relative; display: block; padding: 0 0 7px 0; }
	header #hNavigation > ul > li:before { content: ""; position: absolute; z-index: 1; bottom: 0; left: 0; max-width: 26px; width: 100%; height: 2px; background: var(--primary); }
	header #hNavigation > ul > li > a { display: block; font-weight: 300; font-size: 23px; line-height: 28px; letter-spacing: 1.15px; text-transform: uppercase; color: var(--black); white-space: nowrap; transition: var(--transition); }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li > a:hover { color: var(--secondary); }
	/* End: First-Level */

	/* Start: Scrolled */
	header,
	header .cms_container_wide,
	body #logo_container { transition: var(--transition); }

	body.scrolled header { height: 69px; }
	body.scrolled header .cms_container_wide { height: 69px; }
	body.scrolled #logo_container { top: 17px; width: 183px; height: 38px; }
	/* End: Scrolled */
}