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

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

/***-------------------------------------------*** Hamburger ***-------------------------------------------***/
header #hHamburger { cursor: pointer; position: absolute; top: 50%; right: 30px; transform: translateY(-50%); }
#hHamburgerIcon { position: relative; cursor: pointer; width: 40px; height: 14px; }
#hHamburgerIcon span { position: absolute; left: 0; display: block; width: 100%; height: 2px; background: var(--primary); transform: rotate(0deg); transition: var(--transition); }
body.scrolled #hHamburgerIcon span { background: var(--primary); }
#hHamburgerIcon span:nth-child(1),
#hHamburgerIcon span:nth-child(2) { transform-origin: left center; }
#hHamburgerIcon span:nth-child(1) { top: 0px; }
#hHamburgerIcon span:nth-child(2) { top: 12px; }
body.navi #hHamburgerIcon span:nth-child(1) { top: -8px; left: 6px; transform: rotate(45deg); }
body.navi #hHamburgerIcon span:nth-child(2) { top: 20px; left: 6px; transform: rotate(-45deg); }

/***-------------------------------------------*** Close ***-------------------------------------------***/
header #hClose { cursor: pointer; position: absolute; z-index: 1; top: 30px; right: 30px; width: 39px; height: 39px; }
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: 14px; left: 30px; width: 280px; height: 122px; }
body #logo_container > a { position: absolute; z-index: 1; inset: 0; background: center left / contain no-repeat url("/pages/img/logo.png"); }

/***-------------------------------------------*** Datenschutz und Impressum ***-------------------------------------------***/
header #hDataImp { display: flex; justify-content: flex-end; width: 100%; padding: 30px 0 0 0; margin: auto 0 0 0; }
header #hDataImp strong { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px; width: 100%; }
header #hDataImp a { color: var(--white); transition: var(--transition); }
header #hDataImp a:hover { color: var(--primary); }

/***-------------------------------------------*** Hide on Desktop ***-------------------------------------------***/
@media screen and (min-width: 914px) {
	header #hHamburger { display: none; }
	header #hClose { display: none; }
	header #hDataImp { display: none; }
}

/***-------------------------------------------*** Desktop ***-------------------------------------------***/
@media screen and (min-width: 914px) {
	/* Start: First-Level */
	header #hNavigation > ul { display: flex; justify-content: flex-end; align-items: center; gap: 50px; width: 100%; padding: 45px 0 0 310px; }
	header #hNavigation > ul > li { display: block; }
	header #hNavigation > ul > li > a { display: block; font-family: var(--font-family-2); font-weight: 800; font-size: 16px; line-height: 22px; letter-spacing: 3.2px; text-transform: uppercase; color: var(--black); 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 */
	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 { top: 11px; width: 200px; height: 87px; }
	body.scrolled header #hNavigation > ul { padding: 29px 0 0 230px; }
	/* End: Scrolled */
}

@media screen and (min-width: 914px) and (max-width: 1200px) {
	/* Start: First-Level */
	header #hNavigation > ul { padding: 46px 0 0 310px; }
	header #hNavigation > ul > li > a { font-weight: 700; font-size: 15px; line-height: 21px; letter-spacing: 3px; }
	/* End: First-Level */
}

/***-------------------------------------------*** Tablet ***-------------------------------------------***/
@media screen and (min-width: 641px) and (max-width: 913px) {
	/* Start: Navigation */
	header #hNavigation { position: fixed; z-index: 1; top: 0; right: -100%; bottom: 0; display: flex; flex-direction: column; min-width: 393px; padding: 108px 30px 15px 30px; background: #4A4A4A; 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 15px 0; border-bottom: 1px solid rgba(255,255,255,0.3); }
	header #hNavigation > ul > li > a { display: block; font-family: var(--font-family-3); font-weight: 200; font-size: 26px; line-height: 34px; color: var(--white); white-space: nowrap; transition: var(--transition); will-change: transform; }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { color: var(--primary); }
	/* 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 { top: 11px; width: 200px; height: 87px; }
	/* 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 { top: 12px; width: 160px; height: 69px; }
	/* 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: 108px 30px 15px 30px; background: #4A4A4A; 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 15px 0; border-bottom: 1px solid rgba(255,255,255,0.3); }
	header #hNavigation > ul > li > a { display: block; font-family: var(--font-family-3); font-weight: 200; font-size: 26px; line-height: 34px; color: var(--white); white-space: nowrap; transition: var(--transition); will-change: transform; }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { color: var(--primary); }
	/* End: First-Level */
}