function navToogle(){menuOpened?(navCon.animate({marginLeft:-$(document).width()+"px"},400,function(){$(".leftNav").css("width","50")}),searchIcon.animate({marginLeft:-$(document).width()+"px"},400,function(){$(".searchIcon").css({display:"none",marginLeft:"15px"});closeMenu($(".responsiveMenu"));closeMenu($(".responsiveSubMenu"));$("body").removeClass("no-scrolling");$(".navigation").removeClass("opened");$(".hamburgerMenuIcon").removeClass("fa-times");$(".hamburgerMenuIcon").addClass("fa-bars");menuOpened=!1})):(navCon.css("display","block"),$(".navigationEntryCon").animate({marginLeft:"0px"}),$("body").addClass("no-scrolling"),$(".navigation").addClass("opened"),$(".hamburgerMenuIcon").removeClass("fa-bars"),$(".hamburgerMenuIcon").addClass("fa-times"),menuOpened=!0,searchIcon.fadeIn(1e3),$(".leftNav").css("width","100%"))}function searchOrAnimate(){var n=$(".searchInput"),t=n.val(),i=t===""?!1:!0;i?n.closest("form").submit():$(n).is(":hidden")?(n.css("display","inline"),n.animate({width:INPUTWIDTH}),$(".searchInputLayer").width(INPUTWIDTH),n.focus()):n.animate({width:"0"},function(){n.css("display","none");$(".searchInputLayer").width("auto")})}function createSubMenu(n){var i=$(n.currentTarget).find(".navLinkHeadline"),e=$(".responsiveMenu "),v=$(n.currentTarget).find(".navigationEntryText")[0].innerText,r,c,o,s,t,u,a,f,h,l;for(e.empty(),r=document.createElement("div"),r.setAttribute("class","navigationEntryHeader flex nowrap"),r.addEventListener("click",function(){closeMenu(e)}),c=document.createElement("i"),c.setAttribute("class","fas fa-angle-left"),r.append(c),o=document.createElement("div"),o.setAttribute("class","navigationEntryHeaderTextCon"),s=document.createElement("span"),s.setAttribute("class","navigationEntryText"),s.innerText=v,o.append(s),r.append(o),e.append(r),t=0;t<i.length;t++)u=document.createElement(i[t].nodeName.toLowerCase()),u.setAttribute("class","navigationEntry"),i[t].href!==undefined&&i[t].href!==""?u.href=i[t].href:(a=t,u.addEventListener("click",function(){createSubSubMenu(i[a]);openMenu($(".responsiveSubMenu"))},!0)),f=document.createElement("div"),f.setAttribute("class","navigationEntryTextCon"),h=document.createElement("span"),h.setAttribute("class","navigationEntryText"),h.innerText=i[t].innerText,f.append(h),l=document.createElement("i"),l.setAttribute("class","fas fa-angle-right"),f.append(l),u.append(f),e.append(u)}function openMenu(n){n.css("display","block");n.animate({left:0})}function closeMenu(n){n.animate({left:"100%"},function(){n.css("display","none")})}function createSubSubMenu(n){var h=$(n).parent().find(".navLink"),u=$(".responsiveSubMenu "),l=n.innerText,t,c,f,e,i,r,o,s;for(u.empty(),t=document.createElement("div"),t.setAttribute("class","navigationEntryHeader flex nowrap"),t.addEventListener("click",function(){closeMenu(u)}),c=document.createElement("i"),c.setAttribute("class","fas fa-angle-left"),t.append(c),f=document.createElement("div"),f.setAttribute("class","navigationEntryHeaderTextCon"),e=document.createElement("span"),e.setAttribute("class","navigationEntryText"),e.innerText=l,f.append(e),t.append(f),u.append(t),i=0;i<h.length;i++)r=document.createElement("a"),r.setAttribute("class","navigationEntry"),r.setAttribute("href",h[i].href),o=document.createElement("div"),o.setAttribute("class","navigationEntryTextCon"),s=document.createElement("span"),s.setAttribute("class","navigationEntryText"),s.innerText=h[i].innerText,o.append(s),r.append(o),u.append(r)}$(document).ready(function(){$("#footer-to-top").click(function(){$(window).scrollTop(0)});$(".footerBlockHeadline").click(function(n){if($(window).width()<768){var r=$(n.currentTarget)[0],t=$($(r).parent()),i=$($(t).find("ul")[0]);i.css("display")==="none"?$(t.find(".tabArrow")).css("transform","rotate(-90deg)"):$(t.find(".tabArrow")).css("transform","rotate(90deg)");i.slideToggle()}});$(".footerItem .tabArrow").click(function(){$(this).next(".footerBlockHeadline").trigger("click")})});var INPUTWIDTH="350px",menuOpened=!1,navCon=$(".navigationEntryCon"),searchIcon=$(".searchIcon"),stillMobile=window.outerWidth>=1023?!1:!0;$(document).ready(function(){var n=$(window),t;n.resize(function(){setTimeout(function(){n.outerWidth()<1023&&stillMobile===!1?(navCon.css("margin-left",-$(document).width()+"px"),stillMobile=!0,menuOpened=!0,navToogle()):n.outerWidth()>=1023&&stillMobile===!0&&(navCon.css({marginLeft:"0px",display:"flex"}),$(".leftNav").css("width","100%"),stillMobile=!1)},100)});$(".hamburgerMenuIcon").on("click",navToogle);$("#navigationSearchIcon").click(function(){searchOrAnimate()});$(".searchInput").keydown(function(n){n.keyCode===13&&searchOrAnimate()});$("div.navigationEntry").click(function(n){$("body").width()<1023&&(createSubMenu(n),openMenu($(".responsiveMenu")))});t=window.location.href;$("a.navigationEntry").each(function(){this.href===t&&$(this).addClass("active")});$("a.navLink").each(function(){this.href===t&&($(this).addClass("active"),$(this).closest(".navigationEntry").addClass("active"))});$(".logo > img").click(function(){window.location="/"})})