/*╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗*/
/*║ HEADER I                                                                                                                                                                                                                                              ║*/
/*╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝*/
/***-------------------------------------------*** Space for Header ***-------------------------------------------***/
#cmsgrid > div:first-of-type { padding-top: 120px; }

/***-------------------------------------------*** Header ***-------------------------------------------***/
header { position: fixed; z-index: 1000; inset: 0 0 auto 0; height: 120px; 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: 120px; padding: 0 30px; }

/***-------------------------------------------*** Hamburger ***-------------------------------------------***/
header #hHamburger { cursor: pointer; position: absolute; top: 50%; right: 30px; transform: translateY(-50%); }
@media screen and (min-width: 1201px) { header #hHamburger { display: none; } }
#hHamburgerIcon { position: relative; width: 39px; height: 29px; }
#hHamburgerIcon span { position: absolute; left: 0; display: block; width: 100%; height: 2px; background: var(--primary); transform: rotate(0deg); transition: var(--transition); will-change: transform; }
#hHamburgerIcon span:first-child,
#hHamburgerIcon span:last-child { transform-origin: left center; }
#hHamburgerIcon span:first-child { top: 10.5px; }
#hHamburgerIcon span:last-child { top: 18.5px; }
body.navi #hHamburgerIcon span:first-child { top: -1px; left: 6px; transform: rotate(45deg); }
body.navi #hHamburgerIcon span:last-child { top: 27px; left: 6px; transform: rotate(-45deg); }

/***-------------------------------------------*** Close ***-------------------------------------------***/
header #hClose { cursor: pointer; position: absolute; z-index: 1; top: 30px; right: 30px; width: 45px; height: 45px; }
@media screen and (min-width: 1201px) { header #hClose { display: none; } }
header #hClose > span { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(45deg); background: var(--white); }
header #hClose > span:first-of-type { width: 100%; height: 2px; }
header #hClose > span:last-of-type { width: 2px; height: 100%; }

/***-------------------------------------------*** Logo ***-------------------------------------------***/
body #logo_container { position: absolute; z-index: 1; top: 50%; left: 30px; transform: translateY(-50%); width: 220px; height: 78px; }
body #logo_container > a { position: absolute; z-index: 2; inset: 0; background: center left / contain no-repeat url("/pages/img/logo.svg"); }

/***-------------------------------------------*** Footer Article ***-------------------------------------------***/
#hFooterArt { margin-top: auto; }
@media screen and (min-width: 1201px) { #hFooterArt { display: none; } }
#hFooterArt .small-text { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px 38px; }
#hFooterArt a { color: var(--white); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: var(--transition); }
#hFooterArt a:hover { color: var(--white); text-decoration-color: var(--white); }

/***-------------------------------------------*** 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: 49px 0 0 250px; }
	header #hNavigation > ul > li { display: block; }
	header #hNavigation > ul > li > a { display: block; font-weight: 600; font-size: 16px; line-height: 24px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--primary); white-space: nowrap; transition: var(--transition); }
	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: 80px; }
	body.scrolled header .cms_container_wide { height: 80px; }
	body.scrolled #logo_container { width: 120px; height: 43px; }
	body.scrolled header #hNavigation > ul { padding: 32px 0 0 150px; }
	/* End: Scrolled */
}

/***-------------------------------------------*** Tablet ***-------------------------------------------***/
@media screen and (min-width: 641px) and (max-width: 1200px) {
	/* Start: Navigation */
	header #hNavigation { position: fixed; z-index: 1; top: 0; right: -100%; bottom: 0; display: flex; flex-direction: column; min-width: 393px; padding: 105px 30px 15px 30px; background: var(--primary); 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: 21px; }
	header #hNavigation > ul > li { display: block; padding: 0 0 21px 0; border-bottom: 2px solid var(--white); }
	header #hNavigation > ul > li > a { display: block; font-weight: 600; font-size: 24px; line-height: 29px; color: var(--white); white-space: nowrap; transition: var(--transition); }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { color: var(--link-color); }
	/* End: First-Level */

	/* Start: Scrolled */
	header,
	header .cms_container_wide,
	body #logo_container { transition: var(--transition); }

	body.scrolled header { height: 80px; }
	body.scrolled header .cms_container_wide { height: 80px; }
	body.scrolled #logo_container { width: 120px; height: 43px; }
	/* End: Scrolled */
}

/***-------------------------------------------*** Smartphone ***-------------------------------------------***/
@media screen and (max-width: 640px) {
	/* Start: Header */
	#cmsgrid > div:first-of-type { padding-top: 70px; }
	header { height: 70px; }
	header .cms_container_wide { height: 70px; }
	body #logo_container { width: 120px; height: 43px; }
	/* End: Header */

	/* Start: Navigation */
	header #hNavigation { position: fixed; z-index: 1; top: 0; right: -100vW; bottom: 0; display: flex; flex-direction: column; width: 100vW; padding: 105px 30px 15px 30px; background: var(--primary); 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: 21px; }
	header #hNavigation > ul > li { display: block; padding: 0 0 21px 0; border-bottom: 2px solid var(--white); }
	header #hNavigation > ul > li > a { display: block; font-weight: 600; font-size: 24px; line-height: 29px; color: var(--white); white-space: nowrap; transition: var(--transition); }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { color: var(--link-color); }
	/* End: First-Level */
}