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

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

/***-------------------------------------------*** Hamburger ***-------------------------------------------***/
header #hHamburger { cursor: pointer; position: absolute; top: 50%; right: 30px; transform: translateY(-50%); display: none; }
#hHamburgerIcon { position: relative; width: 55px; height: 33px; transition: var(--transition); }
#hHamburgerIcon span { position: absolute; left: 0; display: block; width: 100%; height: 5px; background: var(--quaternary); 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: 14px; }
#hHamburgerIcon span:last-child { top: 28px; }
body.navi #hHamburgerIcon span:first-child { top: -5.5px; left: 8px; transform: rotate(45deg); }
body.navi #hHamburgerIcon span:nth-child(2) { width: 0%; opacity: 0; }
body.navi #hHamburgerIcon span:last-child { top: 33px; left: 8px; transform: rotate(-45deg); }

/***-------------------------------------------*** Close ***-------------------------------------------***/
header #hClose { cursor: pointer; position: absolute; z-index: 1; top: 30px; right: 30px; display: none; width: 50px; height: 50px; }
header #hClose > span { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(45deg); background: var(--quaternary); }
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: 0; left: 30px; }
body #logo_container > a { position: absolute; z-index: 2; inset: 0; width: 204px; height: 153px; background-color: var(--white); border-radius: 0 0 var(--border-radius-default) var(--border-radius-default); background-image: url("/pages/img/logo.svg"); background-position: center center; background-repeat: no-repeat; background-size: 159px 100px; transition: var(--transition); }

/***-------------------------------------------*** Nav Logo ***-------------------------------------------***/
body #nav_logo_container { position: absolute; z-index: 1; top: 11px; left: 30px; display: none; width: 116px; height: 73px; }
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: 40px; width: 100%; padding: 46px 0 0 234px; }
	header #hNavigation > ul > li { position: relative; display: block; }
	header #hNavigation > ul > li:not(:last-of-type):before { content: ""; position: absolute; z-index: 1; top: 50%; right: -21px; transform: translateY(-50%); width: 2px; height: 12px; background: var(--primary); }
	header #hNavigation > ul > li > a { display: block; font-family: "tasman", sans-serif; font-weight: 600; font-size: 20px; line-height: 25px; color: var(--secondary); white-space: nowrap; transition: var(--transition); }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { color: var(--primary); }
	/* End: First-Level */

	/* Start: Scrolled */
	body.scrolled #logo_container > a { width: 123px; height: 92px; background-size: 96px 60px; }
	/* 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: 92px; 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: 9px 0 0 0; }
	header #hNavigation > ul > li:not(:last-of-type):before { content: ""; position: absolute; z-index: 1; top: 0; left: 0; max-width: 21px; width: 100%; height: 2px; background: var(--tertiary); }
	header #hNavigation > ul > li > a { display: block; font-family: "tasman", sans-serif; font-weight: 600; font-size: 25px; line-height: 31px; color: var(--secondary); white-space: nowrap; transition: var(--transition); }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li > a:hover { color: var(--primary); }
	/* End: First-Level */

	/* Start: Scrolled */
	body.scrolled #logo_container > a { width: 123px; height: 92px; background-size: 96px 60px; }
	/* End: Scrolled */
}

/***-------------------------------------------*** Smartphone ***-------------------------------------------***/
@media screen and (max-width: 959px) {
	/* Start: Header */
	#cmsgrid > div:first-of-type { padding-top: 101px; }
	header { height: 101px; }
	header .cms_container_wide { height: 101px; }
	header #hHamburger { display: block; }
	header #hClose { display: block; }
	body #logo_container { top: 11px; width: 116px; height: 73px; }
	body #logo_container > a { width: 100%; height: 100%; background: center left / contain no-repeat url("/pages/img/logo.svg"); border-radius: 0; }
	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: 139px 30px 30px 30px; }
	header #hNavigation > ul > li { position: relative; display: block; padding: 9px 0 0 0; }
	header #hNavigation > ul > li:not(:last-of-type):before { content: ""; position: absolute; z-index: 1; top: 0; left: 0; max-width: 21px; width: 100%; height: 2px; background: var(--tertiary); }
	header #hNavigation > ul > li > a { display: block; font-family: "tasman", sans-serif; font-weight: 600; font-size: 25px; line-height: 31px; color: var(--secondary); white-space: nowrap; transition: var(--transition); }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li > a:hover { color: var(--primary); }
	/* End: First-Level */

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

	body.scrolled header { height: 86px; }
	body.scrolled header .cms_container_wide { height: 86px; }
	body.scrolled #logo_container { width: 98px; height: 62px; }
	body.scrolled #nav_logo_container { width: 98px; height: 62px; }
	/* End: Scrolled */
}