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

/***-------------------------------------------*** Header ***-------------------------------------------***/
header { position: fixed; z-index: 1000; inset: 0 0 auto 0; height: 150px; transition: var(--transition); }
body:not(.home) header,
body.scrolled header { background: var(--white); }
body.scrolled header { box-shadow: 0 4px 4px 0 rgba(0,0,0,0.25); }
header li { list-style: none; }
header a { text-decoration: none; }
header .cms_container_wide { position: relative; height: 150px; padding: 0 30px; }

/***-------------------------------------------*** Hamburger ***-------------------------------------------***/
header #hHamburger { cursor: pointer; position: absolute; top: 50%; right: 30px; transform: translateY(-50%); display: flex; flex-direction: column; justify-content: space-between; width: 24px; height: 18px; }
header #hHamburger > div { width: 100%; height: 2px; background: var(--black); border-radius: var(--border-radius-small); }
body.home:not(.scrolled) header #hHamburger > div { background: var(--white); }

/***-------------------------------------------*** Close ***-------------------------------------------***/
header #hClose { cursor: pointer; position: absolute; top: 30px; right: 30px; display: block; width: 24px; height: 24px; }
header #hClose > div { position: absolute; z-index: 1; top: 50%; left: 50%; width: 100%; height: 2px; background: var(--white); border-radius: var(--border-radius-small); }
header #hClose > div:first-of-type { transform: translate(-50%,-50%) rotate(45deg); }
header #hClose > div:last-of-type { transform: translate(-50%,-50%) rotate(-45deg); }

/***-------------------------------------------*** Logo ***-------------------------------------------***/
header #logo_container { position: absolute; z-index: 1; top: 43px; left: 30px; display: flex; align-items: center; gap: 16px; width: 298px; height: 64px; }
header #hLogo1 { width: 82px; height: 53px; background: center left / contain no-repeat url("/pages/img/logo1.svg"); }
header #hLogo2 { width: 200px; height: 64px; background: center right / contain no-repeat url("/pages/img/logo2.svg"); }
body.home:not(.scrolled) header #hLogo1 { background: center left / contain no-repeat url("/pages/img/logo1white.svg"); }
body.home:not(.scrolled) header #hLogo2 { background: center left / contain no-repeat url("/pages/img/logo2white.svg"); }

/***-------------------------------------------*** Ausblenden auf Desktop ***-------------------------------------------***/
@media screen and (min-width: 1201px) {
	header #hHamburger { display: none; }
	header #hClose { display: none; }
	/*header #hSocialIcons { display: none; }*/
	header #hFooterArt { display: none; }
}

/***-------------------------------------------*** Social Icons ***-------------------------------------------***/
/*header #hSocialIcons { padding: 0 30px; }
header #hSocialIcons rect { fill: var(--primary-75); fill-opacity: 1; }
header #hSocialIcons path { fill: var(--white); }
header #hSocialIcons a:hover rect { fill: var(--white); }
header #hSocialIcons a:hover path { fill: var(--primary-75); }*/

/***-------------------------------------------*** Footer Art ***-------------------------------------------***/
header #hFooterArt { padding: 30px; margin: auto 0 0 0; }
#hFooterArt p { font-family: "Poppins", sans-serif; font-weight: 300; font-size: 16px; line-height: 22px; color: var(--white); text-align: left !important; }
#hFooterArt p:last-of-type { padding: 0; }
#hFooterArt a { color: var(--white); }
@media screen and (max-width: 767px) { #hFooterArt p { font-weight: 300 !important; font-size: 16px !important; line-height: 22px !important; } }

/***-------------------------------------------*** Desktop ***-------------------------------------------***/
@media screen and (min-width: 1201px) {
	/* Start: First-Level */
	header #hNavigation > ul { display: flex; justify-content: flex-end; align-items: baseline; gap: 50px; width: 100%; padding: 50px 0 0 328px; }
	header #hNavigation > ul > li { position: relative; display: block; padding: 0 0 69px 0; }
	header #hNavigation > ul > li:before { content: ""; position: absolute; z-index: 1; bottom: 8px; left: 0; width: 100%; height: 6px; background: transparent; transition: var(--transition); }
	header #hNavigation > ul > li.current:before,
	header #hNavigation > ul > li:hover:before { background: var(--primary); }
	header #hNavigation > ul > li > a { display: block; font-family: "Poppins", sans-serif; font-weight: 500; font-size: 17px; line-height: 27px; color: var(--black); transition: var(--transition); }
	body.home:not(.scrolled) header #hNavigation > ul > li:not(:last-of-type) > a { color: var(--white); }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { color: var(--primary); }
	body.home:not(.scrolled) header #hNavigation > ul > li:not(:last-of-type).current:before,
	body.home:not(.scrolled) header #hNavigation > ul > li:not(:last-of-type):hover:before { background: var(--white); }
	header #hNavigation > ul > li > .toggler { display: none; }
	/* End: First-Level */

	/* Start: Last Element (First-Level) */
	header #hNavigation > ul > li:last-of-type { padding: 0; }
	header #hNavigation > ul > li:last-of-type:before { content: none; }
	header #hNavigation > ul > li:last-of-type > a { font-size: 18px; line-height: 30px; color: var(--white); padding: 10px 35px; background: var(--primary); border-radius: 50px; }
	header #hNavigation > ul > li:last-of-type.current > a,
	header #hNavigation > ul > li:last-of-type:hover > a { background: var(--primary-75); }
	header #hNavigation > ul > li:last-of-type > ul { display: none !important; }
	/* End: Last Element (First-Level) */

	/* Start: Second-Level */
	header #hNavigation > ul > li > ul { display: none; flex-direction: column; position: absolute; left: 0; top: 96px; min-width: 100%; background: var(--white); border-radius: var(--border-radius-small); box-shadow: 0 0 40px 0 rgba(0,0,0,0.15); overflow: clip; }
	header #hNavigation > ul > li:hover > ul { display: flex; }
	header #hNavigation > ul > li > ul > li { display: block; }
	header #hNavigation > ul > li > ul > li > a { display: block; font-family: "Poppins", sans-serif; font-weight: 500; font-size: 18px; line-height: 29px; color: var(--black); white-space: nowrap; padding: 13px 20px; transition: var(--transition); }
	header #hNavigation > ul > li > ul > li > a { border-bottom: 1px solid var(--primary-25); }
	header #hNavigation > ul > li > ul > li:last-of-type > a { border: none; }
	header #hNavigation > ul > li > ul > li.current > a,
	header #hNavigation > ul > li > ul > li:hover > a { color: var(--primary); background: var(--primary-10); }
	/* End: Second-Level */

	/* Start: Scrolled */
	header,
	header .cms_container_wide,
	header #logo_container,
	header #hLogo2,
	header #hNavigation > ul,
	header #hNavigation > ul > li,
	header #hNavigation > ul > li > ul { transition: var(--transition); }
	body.scrolled header { height: 80px; }
	body.scrolled header .cms_container_wide { height: 80px; }
	body.scrolled header #logo_container { top: 9px; }
	body.scrolled header #hLogo2 { opacity: 0; visibility: hidden; }
	body.scrolled header #hNavigation > ul { padding: 15px 0 0 328px; }
	body.scrolled header #hNavigation > ul > li { padding: 0 0 34px 0; }
	body.scrolled header #hNavigation > ul > li > ul { top: 61px; }
	/* End: Scrolled */
}

/***-------------------------------------------*** Tablet ***-------------------------------------------***/
@media screen and (min-width: 960px) and (max-width: 1200px) {
	/* Start: Allgemein */
	header #hNavigation { position: fixed; z-index: 1; top: 0; right: -100%; bottom: 0; display: flex; flex-direction: column; background: var(--primary); overflow-y: auto; transition: var(--transition); }
	body.navi header #hNavigation { right: 0; }
	/* End: Allgemein */

	/* Start: First-Level */
	header #hNavigation > ul { display: flex; flex-direction: column; gap: 27px; padding: 84px 30px 30px 30px; }
	header #hNavigation > ul > li { position: relative; display: block; }
	header #hNavigation > ul > li:before { content: ""; position: absolute; z-index: 1; bottom: -14px; left: 0; width: 100%; height: 1px; background: var(--primary-75); }
	header #hNavigation > ul > li > a { position: relative; display: block; font-family: "Poppins", sans-serif; font-weight: 500; font-size: 24px; line-height: 31px; color: var(--white); transition: var(--transition); }
	header #hNavigation > ul > li > a:has(+ .toggler) { padding: 0 35px 0 0; }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { color: var(--primary-75); }
	/* End: First-Level */

	/* Start: Toggler */
	header #hNavigation > ul > li > .toggler { cursor: pointer; position: absolute; z-index: 1; top: 10px; right: 0; width: 20px; height: 11px; }
	header #hNavigation > ul > li > .toggler > svg { display: flex; width: 20px; height: 11px; }
	header #hNavigation > ul > li.open > .toggler > svg { transform: rotate(180deg); }
	header #hNavigation > ul > li > .toggler > svg > path { transition: var(--transition); }
	header #hNavigation > ul > li.current > .toggler > svg > path,
	header #hNavigation > ul > li:hover > .toggler > svg > path { stroke: var(--primary-75); }
	/* End: Toggler */

	/* Start: Last Element (First-Level) */
	header #hNavigation > ul > li:last-of-type:before { content: none; }
	header #hNavigation > ul > li:last-of-type > a { display: inline-flex; font-size: 18px; line-height: 30px; color: var(--white); padding: 10px 35px; margin: 17px 0 0 0; border-radius: 40px; background: var(--primary-75); }
	header #hNavigation > ul > li:last-of-type.current > a,
	header #hNavigation > ul > li:last-of-type:hover > a { color: var(--primary-75); background: var(--white); }
	/* End: Last Element (First-Level) */

	/* Start: Second-Level */
	header #hNavigation > ul > li > ul { display: none; flex-direction: column; gap: 20px; padding: 14px 0 8px 0; }
	header #hNavigation > ul > li.open > ul { display: flex; }
	header #hNavigation > ul > li > ul > li { display: block; }
	header #hNavigation > ul > li > ul > li > a { display: block; font-family: "Poppins", sans-serif; font-weight: 500; font-size: 18px; line-height: 23px; color: var(--white); transition: var(--transition); }
	header #hNavigation > ul > li > ul > li.current > a,
	header #hNavigation > ul > li > ul > li:hover > a { color: var(--primary-75); }
	/* End: Second-Level */

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

	body.scrolled header { height: 80px; }
	body.scrolled header .cms_container_wide { height: 80px; }
	body.scrolled header #logo_container { top: 9px; }
	body.scrolled header #hLogo2 { opacity: 0; visibility: hidden; }
	/* End: Scrolled */
}

/***-------------------------------------------*** Smartphone ***-------------------------------------------***/
@media screen and (max-width: 959px) {
	/* Start: Allgemein */
	header #hNavigation { position: fixed; z-index: 1; top: 0; right: -100vW; bottom: 0; display: flex; flex-direction: column; width: 100vW; background: var(--primary); overflow-y: auto; transition: var(--transition); }
	body.navi header #hNavigation { right: 0; }
	/* End: Allgemein */

	/* Start: Header */
	#cmsgrid > div:first-of-type { padding-top: 80px; }
	header { height: 80px; }
	header .cms_container_wide { height: 80px; }
	header #logo_container { width: 82px; height: 53px; }
	header #logo_container { top: 9px; }
	header #hLogo2 { display: none; }
	/* End: Header */

	/* Start: First-Level */
	header #hNavigation > ul { display: flex; flex-direction: column; gap: 27px; padding: 84px 30px 30px 30px; }
	header #hNavigation > ul > li { position: relative; display: block; }
	header #hNavigation > ul > li:before { content: ""; position: absolute; z-index: 1; bottom: -14px; left: 0; width: 100%; height: 1px; background: var(--primary-75); }
	header #hNavigation > ul > li > a { position: relative; display: block; font-family: "Poppins", sans-serif; font-weight: 500; font-size: 24px; line-height: 31px; color: var(--white); transition: var(--transition); }
	header #hNavigation > ul > li > a:has(+ .toggler) { padding: 0 35px 0 0; }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { color: var(--primary-75); }
	/* End: First-Level */

	/* Start: Toggler */
	header #hNavigation > ul > li > .toggler { cursor: pointer; position: absolute; z-index: 1; top: 10px; right: 0; width: 20px; height: 11px; }
	header #hNavigation > ul > li > .toggler > svg { display: flex; width: 20px; height: 11px; }
	header #hNavigation > ul > li.open > .toggler > svg { transform: rotate(180deg); }
	header #hNavigation > ul > li > .toggler > svg > path { transition: var(--transition); }
	header #hNavigation > ul > li.current > .toggler > svg > path,
	header #hNavigation > ul > li:hover > .toggler > svg > path { stroke: var(--primary-75); }
	/* End: Toggler */

	/* Start: Last Element (First-Level) */
	header #hNavigation > ul > li:last-of-type:before { content: none; }
	header #hNavigation > ul > li:last-of-type > a { display: inline-flex; font-size: 18px; line-height: 30px; color: var(--white); padding: 10px 35px; margin: 17px 0 0 0; border-radius: 40px; background: var(--primary-75); }
	header #hNavigation > ul > li:last-of-type.current > a,
	header #hNavigation > ul > li:last-of-type:hover > a { color: var(--primary-75); background: var(--white); }
	/* End: Last Element (First-Level) */

	/* Start: Second-Level */
	header #hNavigation > ul > li > ul { display: none; flex-direction: column; gap: 20px; padding: 14px 0 8px 0; }
	header #hNavigation > ul > li.open > ul { display: flex; }
	header #hNavigation > ul > li > ul > li { display: block; }
	header #hNavigation > ul > li > ul > li > a { display: block; font-family: "Poppins", sans-serif; font-weight: 500; font-size: 18px; line-height: 23px; color: var(--white); transition: var(--transition); }
	header #hNavigation > ul > li > ul > li.current > a,
	header #hNavigation > ul > li > ul > li:hover > a { color: var(--primary-75); }
	/* End: Second-Level */

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

	body.scrolled header { height: 80px; }
	body.scrolled header .cms_container_wide { height: 80px; }
	body.scrolled header #logo_container { top: 9px; }
	body.scrolled header #hLogo2 { opacity: 0; visibility: hidden; }*/
	/* End: Scrolled */
}