1var cms_combine_fn='/static/template-2421/js/nst2024-prototype.js'; 2window&&(window.nst2024=window.nst2024?window.nst2024:{});((d,w,nst)=>{"use strict";if(!d||!w){return false;} 3nst.dbg_time={_00_Start_NST:0,_9999_PERFORMANCE_PAGE:performance.now()};var nst=nst?nst:{};nst.opt={html:d.documentElement,head:d.head,body:d.body,lang:d.documentElement.lang,url:d.location.href,domain:d.location.origin,path:d.location.pathname,hash:d.location.hash,params:new URLSearchParams(d.location.search),site:d.querySelector("div#site"),header:d.querySelector("header#header"),main:d.querySelector("main#main"),footer:d.querySelector("footer#footer"),banner:d.querySelector("header .banner"),gal:d.querySelector("header .gal"),nav:d.querySelector("nav#nav_0"),bannerHeight:0,toggles:d.querySelectorAll("input[name='global-toggle'], input.global-toggle"),mq:{width:window._earlyIinnerWidth?window._earlyIinnerWidth:w.innerWidth>=320?320:w.innerWidth>=480?480:w.innerWidth>=640?640:w.innerWidth>=768?768:w.innerWidth>=959?959:w.innerWidth>=1280?1280:w.innerWidth>=1600?1600:1920,obj:d.querySelector("div#layout")},dev:d.documentElement.dataset.dev==='yes'||d.location.search.includes("dev_info"),touch:(('ontouchstart'in window)||(navigator.maxTouchPoints>0)||(navigator.msMaxTouchPoints>0)),dev_domain:d.documentElement.dataset.devDomain,connection_type:(!!navigator.connection&&navigator.connection.type)?navigator.connection.type:"unknown",bandwidth:(!!navigator.connection&&navigator.connection.downlink>0)?navigator.connection.downlink:0,prefersReducedData:w.matchMedia('(prefers-reduced-data: reduce)').matches||false,prefersReducedMotion:w.matchMedia('(prefers-reduced-motion: reduce)').matches||false,prefersReducedTransparency:w.matchMedia('(prefers-reduced-transparency: reduce)').matches||false,localStorage:false,sessionStorage:false,};function isLocalStorageAvailable(){var test='test';try{localStorage.setItem(test,test);localStorage.removeItem(test);return true;}catch(e){return false;}} 4function isSessionStorageAvailable(){var test='test';try{sessionStorage.setItem(test,test);sessionStorage.removeItem(test);return true;}catch(e){return false;}} 5isLocalStorageAvailable()&&(nst.opt.localStorage=true);isSessionStorageAvailable()&&(nst.opt.sessionStorage=true);nst.opt.videosToAutoplay=nst.opt.site.querySelectorAll('video.nst21-video-autoplay');nst.opt.variants={template:nst.opt.site.dataset.variant,header:nst.opt.header.dataset.variant,logo:nst.opt.header.dataset.variantLogo};nst.opt.smoothscroll=nst.opt.site.dataset.autoscroll;nst.dbg_time._01_NST_OPT_READY=performance.now()-nst.dbg_time._9999_PERFORMANCE_PAGE;nst.customEvents=null,nst.tmp={};nst.f={dev:()=>{if(!nst.opt.dev)return;d.querySelectorAll('img').forEach(img=>{const handleError=function(){if(img._alternateSrc)return;img._alternateSrc=true;console.log('Image '+img.src+' not found, trying to load from '+nst.opt.dev_domain);img.src=nst.opt.dev_domain+this.getAttribute('src');};img.addEventListener('error',handleError);img.addEventListener('load',()=>{if(img.naturalWidth===0){handleError.call(img);}});});},elem:(tagName,attributes,contents)=>{if(!tagName){console.log("nst.f.elem called, but no tag name given");return false;} 6attributes=typeof attributes=="object"?attributes:{};let newElem=d.createElement(tagName);for(const[key,value]of Object.entries(attributes)){if(value===false||value===undefined||value===null)continue;newElem.setAttribute(key,value);};if(contents){newElem.append(contents);} 7return newElem;},checkCssSupport:(css)=>{return CSS.supports(css);},autoscroll:()=>{if(nst.opt.smoothscroll.offsetTop>0){nst.opt.html.scroll({top:nst.opt.smoothscroll.offsetTop-nst.opt.bannerHeight,left:0,behavior:"smooth"})}},checkScrollbar:()=>{nst.scrollbarWidth=w.innerWidth-d.body.clientWidth;if(nst.scrollbarWidth>0){nst.opt.html.style.setProperty("--page-scrollbar-width",nst.scrollbarWidth+'px');}},globalToggleCheck:(e)=>{e._was_checked=e.target.checked==false;if(!e._was_checked){nst.opt.toggles.forEach(toggle=>{toggle.checked=false;});e.target.checked=true;}},scroll_handler:()=>{if(!nst.opt.gal){return;let lastKnownScrollPosition=0,ticking=false;const handleScroll=()=>{lastKnownScrollPosition=w.scrollY;if(!ticking){w.requestAnimationFrame(()=>{if(lastKnownScrollPosition>100){nst.opt.site.classList.add("scrolled");nst.opt.site.classList.add("scrolled-no-gallery");}else{nst.opt.site.classList.remove("scrolled");nst.opt.site.classList.remove("scrolled-no-gallery");} 8ticking=false;});ticking=true;}};w.addEventListener("scroll",handleScroll,{passive:true});} 9else{nst.opt.scroll_handler_observer=new IntersectionObserver((entries,observer)=>
9{entries.forEach(entry=>{if(entry.isIntersecting){nst.opt.site.classList.remove("scrolled");} 10else{nst.opt.site.classList.add("scrolled");}});},nst.opt.scroll_handler_options);nst.opt.scroll_handler_observer.observe(nst.opt.gal);}},parallax:(el,direction,multiplyer)=>{el=el.id?el:d.querySelector(el);if(!el){return false;} 11el._parallaxItem=el.querySelector("img, video, .parallax-me");if(!el._parallaxItem){return false;} 12direction=!direction?"-":"+",multiplyer=!multiplyer?0.15:multiplyer;w.addEventListener("scroll",()=>{el._y=w.innerHeight-el.getBoundingClientRect().top;if(el._y>0){el._parallaxItem.style.transform='translate3d(0, '+direction+(multiplyer*el._y)+'px ,0)'}},{passive:true});},visibilityClassToggler:(el,className,once,ioOptions)=>{if(!el)return false;className=Array.isArray(className)?className[0]:className||"visible";const passedByClassName=Array.isArray(className)?className[1]:className+"-passed-by";ioOptions=ioOptions||{root:null,rootMargin:"0px",threshold:[0.0,0.1]};if(!ioOptions.threshold)ioOptions.threshold=[0.0];if(!Array.isArray(ioOptions.threshold))ioOptions.threshold=[ioOptions.threshold];if(nst.opt.prefersReducedMotion||nst.opt.prefersReducedTransparency){if(el.nodeName){el.classList.add(className);el.classList.add(passedByClassName);} 13return;} 14let ticking=false;let classTogglerIO=new IntersectionObserver((entries)=>{entries.forEach(entry=>{var elementIsAboveViewport=entry.boundingClientRect.top<0;if(entry.isIntersecting){if(!ticking){window.requestAnimationFrame(()=>{entry.target.classList.add(className);if(once)classTogglerIO.unobserve(entry.target);ticking=false;});ticking=true;}}else if(entry.intersectionRatio<=ioOptions.threshold[0]){if(!ticking){window.requestAnimationFrame(()=>{entry.target.classList.remove(className,passedByClassName);ticking=false;});ticking=true;}} 15if(elementIsAboveViewport){if(!ticking){window.requestAnimationFrame(()=>{entry.target.classList.add(passedByClassName);ticking=false;});ticking=true;}}});},ioOptions);if(typeof el=="string"){d.querySelectorAll(el).forEach(elem=>{classTogglerIO.observe(elem);});} 16else if(el.nodeName){classTogglerIO.observe(el);} 17else if(el[0]&&el[0].nodeName){el.forEach(elem=>{classTogglerIO.observe(elem);});}},fetchURL:(url,querySelectors,asJson,options)=>{if(!url){return console.log("Fetch failed, no URL given");} 18return fetch(url,options).then(res=>{if(res.ok){if(jsonResult)return res.json();return res.text();};throw new Error('Server error. Status code: ',res.status);}).then(doc=>{if(asJson)return doc;const parser=new DOMParser();var html=parser.parseFromString(doc,'text/html');if(querySelectors){html=html.querySelectorAll(querySelectors);} 19return html;}).catch(err=>{console.log(err);});},loadingClasses:()=>{if(nst.opt.touch){nst.opt.html.classList.add("touchevents","js-active"),nst.opt.html.classList.remove("no-touchevents");} 20else{nst.opt.html.classList.add("no-touchevents","js-active"),nst.opt.html.classList.remove("touchevents");} 21nst.opt.html.dataset.prefersReducedMotion=nst.opt.prefersReducedMotion;nst.opt.html.dataset.prefersReducedData=nst.opt.prefersReducedData;nst.opt.html.dataset.prefersReducedTransparency=nst.opt.prefersReducedTransparency;},loadingFunctions:()=>{d.addEventListener("DOMContentLoaded",()=>{nst.opt.html.classList.add("dom-ready");},{passive:true});w.addEventListener("load",()=>{nst.f.checkScrollbar();nst.opt.html.classList.remove("no-animations");nst.opt.html.classList.add("load-ready");nst.opt.bannerHeight=w["scrolledBannerHeight"]?w["scrolledBannerHeight"]:nst.opt.banner?parseInt(nst.opt.banner.getBoundingClientRect().height):0;nst.opt.scroll_handler_options={root:null,rootMargin:nst.opt.bannerHeight*(-1)+"px 0px 0px 0px",threshold:[0,1]};if(!nst.opt.mq.obj){nst.opt.mq.obj=nst.f.elem('div',{id:'layout'});d.body.append(nst.opt.mq.obj);} 22nst.opt.mq.width=nst.opt.mq.obj.getBoundingClientRect().width,nst.opt.mq.portrait=w.innerHeight>w.innerWidth;},{passive:true});},masonry:(wrapper)=>{wrapper=wrapper.id?wrapper:nst.opt.site.querySelector(wrapper);nst.opt.nativeMasonrySupport=nst.opt.nativeMasonrySupport!==undefined?nst.opt.nativeMasonrySupport:CSS.supports('grid-template-rows','masonry');
22if(!wrapper||nst.opt.nativeMasonrySupport)return;if(nst.opt.dev){console.log("No native browser support for CSS Grid Masonry yet, doing JS masonry via nst.f.masonry in site.js");} 23w.addEventListener("load",()=>{if(nst.opt.mq.obj){nst.opt.mq.obj.style="position: absolute;display: block;width: 100vw; width: 100svw;";}},{passive:true});wrapper.classList.add("masonry--js");wrapper._items=wrapper.children;for(let x=0;x<wrapper._items.length;x++){wrapper._items[x].style.order=x+1;wrapper._items[x]._inner=wrapper._items[x].querySelector(":scope > .masonry__inner")||wrapper._items[x].children[0];if(!wrapper._items[x]._inner)return console.alert("Masonry Item "+x+" has no direct child .masonry__inner element! Masonry will not work.");} 24function resizeGridItem(item){item._rowSpan=Math.ceil((item._inner.clientHeight+wrapper._rowGap+parseInt(window.getComputedStyle(item).getPropertyValue('margin-top')))/(wrapper._rowHeight+wrapper._rowGap));} 25function resizeAllGridItems(){nst.dbg_time.jsMasonry=nst.dbg_time.jsMasonry||{};nst.dbg_time.jsMasonry[wrapper.id]=nst.dbg_time.jsMasonry[wrapper.id]||{};nst.dbg_time.jsMasonry[wrapper.id].start=performance.now();wrapper.classList.add("masonry--resizing");wrapper._rowHeight=parseInt(window.getComputedStyle(wrapper).getPropertyValue('grid-auto-rows'))||1,wrapper._rowGap=parseInt(window.getComputedStyle(wrapper).getPropertyValue('grid-row-gap'))||20;for(let x=0;x<wrapper._items.length;x++){resizeGridItem(wrapper._items[x],wrapper._rowHeight,wrapper._rowGap);} 26nst.dbg_time.jsMasonry[wrapper.id].calculatedAll=performance.now();w.requestAnimationFrame(()=>{for(let x=0;x<wrapper._items.length;x++){wrapper._items[x].style.gridRow="span "+wrapper._items[x]._rowSpan;}});wrapper.classList.remove("masonry--resizing");nst.dbg_time.jsMasonry[wrapper.id].finish=performance.now();nst.dbg_time.jsMasonry[wrapper.id].diff=nst.dbg_time.jsMasonry[wrapper.id].finish-nst.dbg_time.jsMasonry[wrapper.id].start;} 27w.addEventListener("mq-resize",resizeAllGridItems,{passive:true});window.dispatchEvent(new CustomEvent('mq-resize'));}} 28nst.listeners={l_autoscroll:()=>{w.addEventListener("load",()=>{if(nst.opt.hash_id&&nst.opt.hash_id.length>0&&!w.scrollY>50){const useDataScroll=!document.getElementById(nst.opt.hash_id),findScrollToElement=d.querySelector('[data-attr-sprungmarke="'+nst.opt.hash_id+'"]');if(useDataScroll&&findScrollToElement){try{findScrollToElement.scrollIntoViewIfNeeded();} 29catch(e){window.scrollTo({top:findScrollToElement.offsetTop-nst.opt.bannerHeight,left:0,behavior:"smooth"})}}} 30else if(nst.opt.smoothscroll&&!w.scrollY>50){nst.f.autoscroll();}},{passive:true});},l_toggles:()=>{nst.opt.toggles.forEach(toggle=>{toggle.addEventListener("change",nst.f.globalToggleCheck,{passive:true});});},l_resize:()=>{w.addEventListener("load",()=>{if(!nst.opt.mq.obj){return false;} 31var newMqEvent=new CustomEvent("mq-resize");const layoutResizeObserver=new ResizeObserver(entries=>{clearTimeout(nst.tmp.mqResizeEvent);nst.tmp.mqResizeEvent=setTimeout(()=>{entries.forEach(entry=>{nst.opt.mq.width=entry.contentRect.width;nst.opt.mq.portrait=window.innerHeight>window.innerWidth;w.dispatchEvent(newMqEvent);});},50);});layoutResizeObserver.observe(nst.opt.mq.obj);},{passive:true});},l_anchors:()=>{nst.opt.anchorLinks=nst.opt.site.querySelectorAll("a[href^='#']");for(let i=0;i<nst.opt.anchorLinks.length;i++){nst.opt.anchorLinks[i].addEventListener("click",nst.f.globalToggleCheck,{passive:true})}},l_scrolledClass:()=>{w.addEventListener("scroll",nst.f.scroll_handler,{passive:true});},l_videoAutoplay:(video)=>{if(!video)return false;const allowAutoplay=video._allowAutoplay!==undefined?video._allowAutoplay:(nst.allowVideoAutoplay!=undefined)?nst.allowVideoAutoplay:(nst.opt.connection_type==="ethernet"||nst.opt.connection_type==="wifi")||(w.innerWidth>w.innerHeight&&w.innerWidth>1366)||(w.innerHeight>w.innerWidth&&w.innerHeight>1366)||(video.dataset&&video.dataset.size<=25)||((video.dataset&&video.dataset.size<=120)&&(video.dataset&&video.dataset.sizeratio<=1))||(video.dataset&&video.dataset.allowAutoplay==="true");try{if(!nst.opt.prefersReducedData){const autoplayObserverOptions=nst.autoplayObserverOptions?nst.autoplayObserverOptions:{root:null,rootMargin:"0px",threshold:0} 32const autoplayObserver=new IntersectionObserver((entries)=>
32{entries.forEach(entry=>{if(entry.isIntersecting){if(allowAutoplay){if(!video.muted){video.muted=true;} 33if(entry.isIntersecting){video.classList.add("video-is-playing");video.play();} 34else{video.classList.remove("video-is-playing");video.pause();} 35if(!video.loop){video.onended=function(){video.classList.remove("video-is-playing");autoplayObserver.unobserve(video);};}} 36else{if(entry.isIntersecting){video.classList.add("video-autoplay-disabled");video.controls=true,video.muted=false;if(video.dataset.poster){video.poster=video.dataset.poster;video.removeAttribute("data-poster");} 37else{video.muted=true;video.currentTime=0.001;video.play();setTimeout(()=>{video.pause();},50);}}}} 38else{video.pause();video.classList.remove("video-is-playing");}});},{autoplayObserverOptions});autoplayObserver.observe(video);} 39else{video.muted=false;video.controls=true;video.classList.add("video-autoplay-disabled");}} 40catch(e){console.log("Error while trying to autoplay video.");}},l_globalTogglesChecked:()=>{nst.opt.toggles.forEach(toggle=>{toggle.addEventListener("change",()=>{nst.opt.html.classList.add(toggle.id+"-initialized");},{passive:true,once:true});});},l_resizeEvent:()=>{w.addEventListener("mq-resize",(e)=>{nst.opt.bannerHeight=w["scrolledBannerHeight"]?w["scrolledBannerHeight"]:nst.opt.banner?parseInt(nst.opt.banner.getBoundingClientRect().height):0;if(nst.opt.bannerHeight){nst.opt.html.style.setProperty("--scroll-margin-top",nst.opt.bannerHeight+"px");}});}} 41nst.executeListeners=()=>{nst.listeners.l_autoscroll();nst.dbg_time._21___AUTOSCROLL_DONE=performance.now()-nst.dbg_time._9999_PERFORMANCE_PAGE;nst.listeners.l_toggles();nst.dbg_time._22___TOGGLES_DONE=performance.now()-nst.dbg_time._9999_PERFORMANCE_PAGE;nst.listeners.l_resize();nst.dbg_time._23___RESIZE_DONE=performance.now()-nst.dbg_time._9999_PERFORMANCE_PAGE;nst.listeners.l_anchors();nst.dbg_time._24___ANCHORS_DONE=performance.now()-nst.dbg_time._9999_PERFORMANCE_PAGE;nst.listeners.l_scrolledClass();nst.dbg_time._25___SCROLLEDCLASS_DONE=performance.now()-nst.dbg_time._9999_PERFORMANCE_PAGE;nst.opt.videosToAutoplay.forEach(video=>{nst.listeners.l_videoAutoplay(video);});nst.dbg_time._26___VIDEOAUTOPLAY_DONE=performance.now()-nst.dbg_time._9999_PERFORMANCE_PAGE;nst.listeners.l_globalTogglesChecked();nst.dbg_time._27___GLOBALTOGGLESCHECKER_DONE=performance.now()-nst.dbg_time._9999_PERFORMANCE_PAGE;nst.listeners.l_resizeEvent();} 42nst.setup=()=>{nst.f.dev();nst.f.loadingClasses();nst.f.loadingFunctions();nst.opt.hash_id=nst.opt.hash.substring(1);nst.f.scroll_handler();if(!!nst.customEvents){nst.customEvents();}};nst.init=()=>{nst.dbg_time._10_SETUP_START=performance.now()-nst.dbg_time._9999_PERFORMANCE_PAGE;nst.setup();nst.dbg_time._20_SETUP_END_LISTENER_START=performance.now()-nst.dbg_time._9999_PERFORMANCE_PAGE;nst.executeListeners();nst.dbg_time._30_LISTENER_END=performance.now()-nst.dbg_time._9999_PERFORMANCE_PAGE;} 43nst.dbg_time._40_SITE_JS_DONE=performance.now()-nst.dbg_time._9999_PERFORMANCE_PAGE;if(nst.opt.dev){d.addEventListener("load",console.log("NST DEV INFOS: ",nst));}})(document,window,window.nst2024); 44var cms_combine_fn='/static/template-2421/js/site.js'; 45!(function(w,d,nst){"use strict";if(!w||!d||!nst){return;} 46Object.assign(nst.opt,{toolToggle:nst.opt.site.querySelector('#global-toggle-tool'),toolOverlay:nst.opt.site.querySelector('.toolicons__overlay'),toolButtonLinks:nst.opt.header.querySelectorAll('.toolbuttons a'),nav:nst.opt.site.querySelector('nav'),headlineAnchors:nst.opt.site.querySelectorAll('a.hl__anchor'),macbookMDs:nst.opt.site.querySelectorAll('figure.macbook__screen, article.macbook__content'),filterLists:nst.opt.site.querySelectorAll('div.filterlist'),shareButtons:nst.opt.site.querySelectorAll('button.share'),visibleObserverTopPercentage:nst.opt.prefersReducedMotion?'0%':w.innerHeight<700?'-20%':w.innerHeight<800?'-25%':'-30%',cssHasSupport:CSS.supports("selector(html:has(body))"),});
46nst.tmp.mouseActions=nst.tmp.mouseActions||{};nst.settings=nst.settings||{};Object.assign(nst.settings,{reducedMotion:w.matchMedia(`(prefers-reduced-motion:reduce)`)===true||w.matchMedia(`(prefers-reduced-motion:reduce)`).matches===true});Object.assign(nst.f,{detectTrackPad:()=>{if(nst.opt.touch)return;let trackpadDetected=false;const detectTrackPad=(e)=>{if(e.wheelDeltaY){if(e.wheelDeltaY===(e.deltaY*-3)){trackpadDetected=true;}}else if(e.deltaMode===0){trackpadDetected=true;} 47if(trackpadDetected){nst.opt.trackpad=true;d.documentElement.classList.add('user--trackpad');const trackpadEvent=new CustomEvent('trackpad-detected',{detail:{trackpad:true}});w.dispatchEvent(trackpadEvent);['mousewheel','DOMMouseScroll'].forEach((event)=>{d.removeEventListener(event,detectTrackPad);});}};['mousewheel','DOMMouseScroll'].forEach((event)=>{d.addEventListener(event,detectTrackPad,{passive:true});});},toolButtonLinkHandler:()=>{nst.opt.toolButtonLinks.forEach((link)=>{link.addEventListener('click',function(e){e.preventDefault();nst.opt.toggles.forEach((toggle)=>{toggle.checked=false;});setTimeout(()=>{if(link.target==='_blank'){window.open(link.href,'_blank');} 48else{window.location=link.href;}},500);});});},spotLights:()=>{if(nst.settings.reducedMotion||nst.opt.dev)return;setTimeout(()=>{var randomSpotlight={x:40,y:60} 49var randomTime=10000,randomOpacity=0.5,randomSize=50,mouseX=0,mouseY=0;const randomTimer=()=>{randomTime=Math.floor(Math.random()*10000)+20000;randomOpacity=(Math.floor(Math.random()*35)+15).toFixed(2)/100;randomSize=Math.floor(Math.random()*40)+30;} 50const randomPositioner=()=>{randomSpotlight.x=Math.floor(Math.random()*100),randomSpotlight.y=Math.floor(Math.random()*100);} 51const opacityOverlapChecker=()=>{if(Math.abs(mouseX-randomSpotlight.x)<25&&Math.abs(mouseY-randomSpotlight.y)<25){randomOpacity=0.2;}} 52let opacityInterval=setInterval(()=>{opacityOverlapChecker();},1000);const styleApplicator=()=>{randomPositioner();d.documentElement.style.setProperty('--spotlight-position-random-x',randomSpotlight.x+'%');d.documentElement.style.setProperty('--spotlight-position-random-y',randomSpotlight.y+'%');d.documentElement.style.setProperty('--spotlight-duration',randomTime-17000+'ms');d.documentElement.style.setProperty('--spotlight-opacity',randomOpacity);d.documentElement.style.setProperty('--spotlight-size',randomSize+'%');} 53const timeoutCreator=()=>{var timeout=setTimeout(()=>{randomTimer();styleApplicator();timeoutCreator();},randomTime);w.addEventListener('blur',()=>{clearTimeout(timeout);},{once:true});w.addEventListener('focus',()=>{timeoutCreator();},{once:true});};randomTimer();styleApplicator();timeoutCreator();['mousemove','touchmove'].forEach((event)=>{let mouseTimeout;d.addEventListener(event,(e)=>{if(e.type==='touchmove'){e=e.touches[0];} 54clearTimeout(mouseTimeout);mouseTimeout=setTimeout(()=>{mouseX=Math.round((e.clientX/window.innerWidth)*100);mouseY=Math.round((e.clientY/window.innerHeight)*100);d.documentElement.style.setProperty('--spotlight-position-mouse-x',mouseX+'%');d.documentElement.style.setProperty('--spotlight-position-mouse-y',mouseY+'%');}
54,100);});});},7000);},phonesParallax:()=>{if(nst.tmp.phonesParallax)return;nst.tmp.phonesParallax=true;const phonesInner=nst.opt.header.querySelector('.hero--phones'),phonesClocks=nst.opt.header.querySelectorAll('.hero__item__clock'),phoneArticle=nst.opt.header.querySelector('.hero__contentarticle--phones');if(!phonesInner)return;if(!phoneArticle){phonesInner.style.setProperty('--_phone-transition-duration','1.25s');nst.opt.site.classList.add('phones-finished');setTimeout(()=>{phonesInner.classList.add("hero--visible");},500);return;} 55nst.f.visibilityClassToggler(phonesInner,'hero--visible',false,{rootMargin:'0% 0% 50% 0%'});setTimeout(()=>{phonesInner.style.setProperty('--_phone-transition-duration',nst.opt.touch||nst.opt.trackpad?'0.1s':'0.75s');w.addEventListener('trackpad-detected',()=>{phonesInner.style.setProperty('--_phone-transition-duration','0.1s');},{once:true});nst.opt.site.classList.add('phones-finished');setTimeout(()=>{nst.f.checkScrollbar();},10);},1750);const phoneMain=phonesInner.querySelector('.hero__main'),phoneSecondary=phonesInner.querySelector('.hero__secondary');let tickingMain=false,tickingSecondary=false;const transformMain=(scrollY,chooseSize)=>{if(!tickingMain){var maxPixel=chooseSize==='mobile_small'?3:5;var boxShadowPixel=Math.min(Math.max(((scrollY-200)/70),0)-maxPixel,0)*-1;var translateX=chooseSize.includes('mobile')?Math.min(Math.min(Math.max(scrollY,0)*(-2),50),10):Math.min(Math.min(Math.max(((scrollY-200)/20),0),50),10);var translateY='calc(60px + '+(scrollY/3)+'px)';var degree=Math.min(Math.max(((scrollY-200)/100),0)-2,0)*(-1)+'deg';var shadowX=boxShadowPixel*(-1)+'px ';var shadowY=Math.min(boxShadowPixel,3)+'px ';var opacity=(scrollY>500||(chooseSize.includes('mobile')&&scrollY>250))?0:1;w.requestAnimationFrame(()=>{phoneMain.style.setProperty('--_translateX',`${translateX}%`);phoneMain.style.setProperty('--_translateY',translateY);phoneMain.style.setProperty('--_degree',degree);phoneMain.style.setProperty('--_phone-shadow-coordinates_x',shadowX);phoneMain.style.setProperty('--_phone-shadow-coordinates_y',shadowY);phoneMain.style.setProperty('--_phone-opacity',opacity);tickingMain=false;});tickingMain=true;}};const transformSecondary=(scrollY,chooseSize)=>{if(!tickingSecondary){let boxShadowPixel,translateX,translateY,degree,shadowX,shadowY,scale;if(chooseSize==='desktop'){boxShadowPixel=Math.min(Math.max(((scrollY-200)/70),0)-7,0)*-1;translateX=Math.min(Math.min(Math.max(((scrollY-200)/30),0),25)*(-1),-10)+'%';translateY=Math.min((scrollY*0.11),90)+'%';degree=Math.min(Math.max(((scrollY-200)/100),0)-3,0)+'deg';shadowX=boxShadowPixel+'px ';shadowY=Math.min(boxShadowPixel,4)+'px ';}else if(chooseSize==='tablet'){boxShadowPixel=Math.min(Math.max(((scrollY-200)/30),0)-10,0)*-1;translateX=Math.max(Math.min(((scrollY-200)/4),80),-10)+'%';translateY=Math.min((scrollY*0.2),110)+'%';degree=Math.min(Math.max(((scrollY-200)/20),0)-7,0)+'deg';shadowX=boxShadowPixel+'px ';shadowY=boxShadowPixel+'px ';}else{boxShadowPixel=Math.min(Math.max(((scrollY-200)/50),0)-10,0)*-1;if(scrollY<120){translateX=Math.max(Math.min(Math.max(scrollY*0.5,0),500),-10)+'%';translateY=Math.min((scrollY*0.1),300)+'%';degree=Math.min(Math.max((scrollY/25),0)-7,0)+'deg';shadowX=Math.min(boxShadowPixel/2,3)+'px ';shadowY=Math.min(boxShadowPixel/2,3)+'px ';scale=Math.min(Math.max((scrollY/300)+0.8,0.8),1.5);}else if(scrollY<500){translateX=Math.max(Math.min(Math.max(scrollY*0.1,0),500),60)+'%';translateY=Math.min((scrollY*0.1),70)+'%';degree=Math.min(Math.max((scrollY/25),0)-7,0)+'deg';shadowX=Math.min(boxShadowPixel/2,3)+'px ';shadowY=Math.min(boxShadowPixel/2,3)+'px ';scale=Math.min(Math.max((scrollY/300)+0.8,0.8),1.5);} 56else{translateX="60%",translateY=translateY=Math.min((scrollY*0.1),70)+'%';degree=Math.min(Math.max((scrollY/25),0)-7,0)+'deg';scale=1.5;}} 57w.requestAnimationFrame(()=>{phoneSecondary.style.setProperty('--_translateX',translateX||0);phoneSecondary.style.setProperty('--_translateY',translateY||0);phoneSecondary.style.setProperty('--_degree',degree||0);phoneSecondary.style.setProperty('--_phone-shadow-coordinates_x',shadowX||0);phoneSecondary.style.setProperty('--_phone-shadow-coordinates_y',shadowY||0);if(scale){phoneSecondary.style.setProperty('--_phone-scale',scale);} 58tickingSecondary=false;});tickingSecondary=true;}};if(phonesClocks.length){const phoneClockUpdater=()=>{var now=new Date();var hours=now.getHours();var minutes=now.getMinutes();phonesClocks.forEach((clock)=>{clock.innerHTML=hours+':'+(minutes<10?'0'+minutes:minutes);});} 59setInterval(phoneClockUpdater,10000);} 60phoneArticle&&nst.f.visibilityClassToggler(phoneArticle,'hero__contentarticle--visible',false,{rootMargin:`0%0%${nst.opt.visibleObserverTopPercentage}0%`});if(!phoneMain)return;var chooseSize=w.innerWidth>=960?'desktop':w.innerWidth>=640?'tablet':w.innerWidth>=480?'mobile':"mobile_small";var chooseSizeTimeout;w.addEventListener('mq-resize',()=>{clearTimeout(chooseSizeTimeout);chooseSizeTimeout=setTimeout(()=>{chooseSize=w.innerWidth>=960?'desktop':w.innerWidth>=640?'tablet':w.innerWidth>=480?'mobile':"mobile_small";},100);});w.addEventListener('scroll',()=>{var scrollY=window.scrollY;transformMain(scrollY,chooseSize);!!phoneSecondary&&transformSecondary(scrollY,chooseSize);},{passive:true});},visibilityTogglers:()=>
60{nst.opt.headlineAnchors.forEach((headline)=>{nst.f.visibilityClassToggler(headline,'',false,{rootMargin:'0% 0% -40% 0%'});1 61nst.f.visibilityClassToggler(headline,'initially-visible',false,{rootMargin:'0% 0% 0% 0%'});});nst.opt.macbookMDs.forEach((macbook)=>{nst.f.visibilityClassToggler(macbook,'',true,{rootMargin:'0% 0% -40% 0%'});});nst.opt.filterLists.forEach((filterList)=>{nst.f.visibilityClassToggler(filterList,'',false,{rootMargin:'0% 0% -40% 0%'});});},horizontalWheelScroll:(container,visibleClass)=>{if(!container||!container._sliderItems||!container._sliderItems.length)return;visibleClass=visibleClass||'visible';const slideWidth=()=>{const width=container._sliderItems[0].getBoundingClientRect().width;const marginLeftAndRight=parseInt(window.getComputedStyle(container._sliderItems[0]).marginLeft)+parseInt(window.getComputedStyle(container._sliderItems[0]).marginRight);return width+marginLeftAndRight;} 62container._slidesCount=container._sliderItems.length;container._currentSlide=0;container._slideWidth=slideWidth();w.addEventListener('mq-resize',()=>{container._slideWidth=slideWidth();container.scrollLeft=container._currentSlide*container._slideWidth;});let wheelTime=0;container.addEventListener('mouseenter',()=>{if(!container.querySelector('.slider__track'))return;if(!container.querySelector('.'+visibleClass))return;if(nst.opt.trackpad){container.addEventListener('wheel',(e)=>{if(!e.deltaY||e.deltaY===0)return;const maxScrollLeft=container.scrollWidth-container.clientWidth;const scrollAmount=e.deltaY*4;if((container.scrollLeft===0&&e.deltaY<0)||(container.scrollLeft===maxScrollLeft&&e.deltaY>0)){return;} 63e.preventDefault();let targetScroll=container.scrollLeft+scrollAmount;requestAnimationFrame(()=>{container.scrollLeft=targetScroll;});},{passive:false});return;} 64if(!nst.scrollbarWidth||nst.scrollbarWidth===0)return;container.addEventListener('wheel',(e)=>{if(e.timeStamp-wheelTime<700||e.deltaY===0){e.preventDefault();return;} 65wheelTime=e.timeStamp;if(container._currentSlide===0&&e.deltaY<0)return;if(container._currentSlide===container._slidesCount-1&&e.deltaY>0)return;e.preventDefault();if(e.deltaY>0){container._currentSlide++;if(container._currentSlide>=container._slidesCount){container._currentSlide=container._slidesCount-1;}} 66else{container._currentSlide--;if(container._currentSlide<0){container._currentSlide=0;}} 67window.requestAnimationFrame(()=>{container.scrollLeft=container._currentSlide*container._slideWidth;container._scrollLeft=container.scrollLeft;setTimeout(()=>{container._sliderItems.forEach((item)=>{item.classList.remove(visibleClass);});container._sliderItems[container._currentSlide].classList.add(visibleClass);},500);});},{passive:false});},{once:true});container.querySelectorAll('img').forEach((img)=>{img.setAttribute('draggable','false');});container._mouseDown=false;container._mouseDownX=0;container._scrollLeft=0;container.addEventListener('mousedown',(e)=>{if(e.target.tagName==='A'||e.target.tagName==='BUTTON'){return;} 68container._mouseDown=true;container._mouseDownX=e.clientX;container._scrollLeft=container.scrollLeft;container.style.scrollBehavior='auto';});container.addEventListener('mouseup',()=>{container._mouseDown=false;container.style.scrollBehavior='smooth';container._currentSlide=Math.round(container.scrollLeft/container._slideWidth);container.scrollLeft=container._currentSlide*container._slideWidth;});container.addEventListener('mouseleave',()=>{container._mouseDown=false;});container.addEventListener('mousemove',(e)=>{if(!container._mouseDown)return;container.scrollLeft=container._scrollLeft+(container._mouseDownX-e.clientX);});},sliderVisibilityToggler:(gallery)=>{gallery=gallery.id?gallery:nst.opt.site.querySelector(gallery);if(!gallery||nst.opt.prefersReducedMotion)return;gallery._sliderItems=gallery.querySelectorAll('.slider__item');if(!gallery._sliderItems.length)return;if(nst.opt.touch){nst.f.visibilityClassToggler(gallery,'slider--mobilevisible',true,{rootMargin:`0%0%${nst.opt.visibleObserverTopPercentage}0%`});gallery._sliderItems[0].classList.add('slider__item--visible');} 69let visibleClass='slider__item--visible';const observer=new IntersectionObserver((entries)=>
69{entries.forEach((entry)=>{if(entry.isIntersecting){gallery._sliderItems.forEach((item)=>{item.classList.remove(visibleClass);});entry.target.classList.add(visibleClass);}});},{rootMargin:'0% 0% -30% -20%',threshold:0.5});gallery._sliderItems.forEach((item)=>{observer.observe(item);});gallery._sliderMedia=gallery.querySelectorAll('.slider__media');nst.f.horizontalWheelScroll(gallery,visibleClass);const borderRadiusRandomizer=(item)=>{var randomRadius=Math.floor(Math.random()*40)+140;item.style.setProperty('--_radius-degree',randomRadius+'deg');} 70const updateIntervalTime=(item)=>{const newIntervalTime=Math.floor(Math.random()*5000)+5000;setTimeout(()=>{borderRadiusRandomizer(item);updateIntervalTime(item);},newIntervalTime);};gallery._sliderItems.forEach((item)=>{updateIntervalTime(item);});nst.f.doGlowAction(gallery._sliderMedia);},fadeSlider:(el,doGlowAction)=>{el=el.id?el:nst.opt.site.querySelector(el);if(!el)return;if(nst.opt.prefersReducedMotion){el.classList.add('visible');return;} 71if(nst.opt.touch){nst.f.visibilityClassToggler(el,'visible',false,{rootMargin:`0%0%${nst.opt.visibleObserverTopPercentage}0%`});return;} 72el._labels=el.querySelectorAll('label'),el._inputs=el.querySelectorAll('input'),el._mediaContainer=el.querySelector('.accordionfadeslider__images');el._media=el._mediaContainer.querySelectorAll('.accordionfadeslider__images > *');var fadeSliderTimeout;var mouseActive=false,mouseTimeout;el._labels.forEach((label)=>{label.addEventListener("mouseenter",function(){clearTimeout(fadeSliderTimeout);fadeSliderTimeout=setTimeout(()=>{if(!mouseActive){label.click();clearTimeout(mouseTimeout);mouseActive=true;mouseTimeout=setTimeout(()=>{mouseActive=false;},600);}},200);});});el._inputs.forEach((input)=>{input._mediaElement=el._media[input.dataset.position-1];input.addEventListener("change",function(){if(window.innerWidth>=960){el._media.forEach((media)=>{if(media.tagName==='VIDEO'&&media===input._mediaElement){media.play();} 73else if(media.tagName==='VIDEO'){media.pause();}});}});});let containerHeight,mediaContainerHeight,diffHeight,halfHeight,elementIsAboveScreen=false;containerHeight=el.getBoundingClientRect().height;mediaContainerHeight=el._mediaContainer.getBoundingClientRect().height;halfHeight=Math.floor((containerHeight-mediaContainerHeight)/2);w.addEventListener('mq-resize',()=>{if(w.innerWidth<768)return;containerHeight=el.getBoundingClientRect().height;mediaContainerHeight=el._mediaContainer.getBoundingClientRect().height;diffHeight=Math.floor(containerHeight-mediaContainerHeight);halfHeight=Math.floor(diffHeight/2);});let intersectionThreshold=[];for(let i=0;i<=1.0;i+=0.01){intersectionThreshold.push(i);};let rootMargin=Math.floor(mediaContainerHeight)+'px';const containerObserver=new IntersectionObserver((entries)=>{entries.forEach((entry)=>{if(entry.isIntersecting){elementIsAboveScreen=entry.boundingClientRect.top<0;w.requestAnimationFrame(()=>{if(!elementIsAboveScreen){el._mediaContainer.style.setProperty('--_media-translateY',halfHeight*entry.intersectionRatio+'px');} 74else{el._mediaContainer.style.setProperty('--_media-translateY',halfHeight+(halfHeight*((entry.intersectionRatio-1)*-1))+'px');}});}});},{threshold:intersectionThreshold,rootMargin:`-${Math.floor(diffHeight)||0}px 0px ${(Math.floor(diffHeight)||0)*-1}px 0px`});w.addEventListener('scroll',()=>{if(w.innerWidth<768||containerHeight<=mediaContainerHeight)return;containerObserver.observe(el);},{passive:true});nst.f.visibilityClassToggler(el,'',false,{rootMargin:`0%0%${nst.opt.visibleObserverTopPercentage}0%`});if(doGlowAction===false)return;const mediaContainer=el.querySelector('.accordionfadeslider__images');mediaContainer&&nst.f.doGlowAction([mediaContainer]);},ticker:(el)=>{el=el.id?el:nst.opt.site.querySelector(el);if(!el)return;el._tickerItems=el.querySelectorAll('.ticker__item'),el._track=el.querySelector('.ticker__track');const createClones=()=>{el._tickerItems.forEach((item)=>{var clone=item.cloneNode(true);el._track.append(clone);});};createClones();createClones();el._tickerItemsAll=el.querySelectorAll('.ticker__item');if(nst.opt.prefersReducedMotion){el.classList.add('ticker--visible');el._track.classList.add('playing');el._tickerItemsAll.forEach((item)=>{item.classList.add('ticker__item--visible');});return;} 75const tickerItemObserver=new IntersectionObserver((entries)=>
75{entries.forEach((entry)=>{if(entry.isIntersecting){entry.target.classList.add('ticker__item--visible');} 76else{entry.target.classList.remove('ticker__item--visible');}});},{rootMargin:`${nst.opt.visibleObserverTopPercentage}0%${nst.opt.visibleObserverTopPercentage}0%`});el._tickerItemsAll.forEach((item,pos)=>{let delay=Math.max((pos-el._tickerItems.length)*0.075,0);item.style.setProperty('--_logo-delay',delay.toFixed(2)+'s');tickerItemObserver.observe(item);});el.style.setProperty('--ticker-duration',el._tickerItems.length*10+'s');var tickerPlayTimeout;const tickerObserver=new IntersectionObserver((entries)=>{entries.forEach((entry)=>{if(entry.isIntersecting){el.classList.add('ticker--visible');clearTimeout(tickerPlayTimeout);tickerPlayTimeout=setTimeout(()=>{el._track.classList.add('playing');},1000);} 77else{el._track.classList.remove('playing');el.classList.remove('ticker--visible');clearTimeout(tickerPlayTimeout);}});},{rootMargin:'0% 0% 0% 0%'});tickerObserver.observe(el);const lazyObserver=new IntersectionObserver((entries)=>{entries.forEach((entry)=>{if(entry.isIntersecting){el.querySelectorAll('img').forEach((img)=>{img.removeAttribute('loading');});lazyObserver.unobserve(el);};});},{rootMargin:'300px 0px 300px 0px'});lazyObserver.observe(el);const glowItems=Array.from(el._tickerItemsAll).filter(item=>item.dataset.filetype==="jpg");glowItems&&glowItems.length>0&&nst.f.doGlowAction(glowItems);},infiniteSlider:(el)=>{el=el.id?el:nst.opt.site.querySelector(el);if(!el)return;var track=el.querySelector('.infiniteslider__track');var items=el.querySelectorAll('.infiniteslider__item');var currentSlide=0;var slideWidth=items[0].getBoundingClientRect().width;var slideInterval=7000;var slideDuration=1000;items.forEach((item)=>{var clone=item.cloneNode(true);track.append(clone);});const startAutoplay=()=>{return setInterval(()=>{el.scrollLeft=slideWidth;track.firstElementChild.classList.add('infiniteslider__item--fadeout');setTimeout(()=>{el.style.scrollBehavior='initial';track.firstElementChild.classList.remove('infiniteslider__item--fadeout');track.append(track.firstElementChild);el.scrollLeft=slideWidth*currentSlide;el.style.scrollBehavior='smooth';},slideDuration);},slideInterval);};
77let started,isPlaying,autoplayInterval;const autoplayObserver=new IntersectionObserver((entries)=>{entries.forEach((entry)=>{if(entry.isIntersecting){if(!started){entry.target.classList.add('infiniteslider--visible');started=true;} 78if(isPlaying)return;autoplayInterval=startAutoplay();isPlaying=true;} 79else{clearInterval(autoplayInterval);isPlaying=false;}});},{threshold:0.5});autoplayObserver.observe(el);["mouseenter","touchstart","focusin"].forEach((event)=>{el.addEventListener(event,()=>{clearInterval(autoplayInterval);isPlaying=false;if(event==="mouseenter"){nst.f.dragAndDrop(el);}});});["mouseleave","touchend","focusout"].forEach((event)=>{el.addEventListener(event,()=>{if(isPlaying)return;autoplayInterval=startAutoplay();isPlaying=true;});});},dragAndDrop:(el,classToAdd)=>{if(!el)return;el._mouseDown=false;var useClass=classToAdd||'dragging';el.addEventListener('mousedown',(e)=>{el._mouseDown=true;el._startX=e.clientX;el._scrollLeft=el.scrollLeft;el.classList.add(useClass);});el.addEventListener('mouseup',()=>{el._mouseDown=false;el.classList.remove(useClass);});el.addEventListener('mouseleave',()=>{el._mouseDown=false;});el.addEventListener('mousemove',(e)=>{if(!el._mouseDown)return;el.scrollLeft=el._scrollLeft+(el._startX-e.clientX);});},highslide:(el)=>{el=el.id?el:nst.opt.site.querySelector(el);if(!el)return;const mediaContainer=el.querySelector('.highslide__media');const video=mediaContainer.querySelector('video');nst.f.visibilityClassToggler(el,'highslide--visible',false,{rootMargin:`0%0%${nst.opt.visibleObserverTopPercentage}0%`});var mediaIsWide=false,mediaWideTimeout;if(video){var ioOptions=video.dataset.poster?{threshold:0}:{rootMargin:`0%0%${nst.opt.visibleObserverTopPercentage}0%`};const videoObserver=new IntersectionObserver((entries)=>{entries.forEach((entry)=>{if(entry.isIntersecting){if(video.dataset.poster){video.poster=video.dataset.poster;video.removeAttribute('data-poster');videoObserver.unobserve(video);return;} 80video.play();} 81else{video.pause();}});},ioOptions);videoObserver.observe(video);const audioBtn=el.querySelector('button.highslide__audio');audioBtn&&audioBtn.addEventListener('click',()=>{if(video.muted){video.muted=false;
81mediaContainer.classList.add('highslide__media--wide');mediaIsWide=true;audioBtn.classList.remove('highslide__audio--disabled');} 82else{video.muted=true;mediaContainer.classList.remove('highslide__media--wide');mediaIsWide=false;audioBtn.classList.add('highslide__audio--disabled');}});video.addEventListener('click',()=>{if(video.paused){video.play();} 83else{video.pause();}},{passive:true});["mouseenter","touchstart"].forEach((event)=>{video.addEventListener(event,()=>{clearTimeout(mediaWideTimeout);if(mediaIsWide)return;mediaWideTimeout=setTimeout(()=>{mediaIsWide=true;mediaContainer.classList.add('highslide__media--wide');},500);},{passive:true});});["mouseleave","touchend"].forEach((event)=>{video.addEventListener(event,()=>{clearTimeout(mediaWideTimeout);mediaIsWide=false;mediaContainer.classList.remove('highslide__media--wide');});});["mouseenter","touchstart"].forEach((event)=>{el.addEventListener(event,()=>{video.play();clearTimeout(mediaWideTimeout);if(mediaIsWide)return;mediaWideTimeout=setTimeout(()=>{mediaIsWide=true;
83mediaContainer.classList.add('highslide__media--wide');},500);});},{passive:true,once:true});}},imagetextfader:(el)=>{el=el.id?el:nst.opt.site.querySelector(el);if(!el)return;el._arrows=el.querySelectorAll('.arrow');el._arrowCurrent=el.querySelector('.arrow__current');el._articles=el.querySelectorAll('.imagetextfader__article');el._figures=el.querySelectorAll('.imagetextfader__figure');var currentIndex=0;const slider=(newPosition)=>{el._articles.forEach((article,index)=>{if(index===newPosition){article.classList.add('imagetextfader__article--visible');article.removeAttribute('tabindex');} 84else{article.classList.remove('imagetextfader__article--visible');article.tabindex=-1;}});el._figures.forEach((figure,index)=>{if(index===newPosition){figure.classList.add('imagetextfader__figure--visible');} 85else{figure.classList.remove('imagetextfader__figure--visible');}});el._arrowCurrent.innerHTML=newPosition+1;};if(nst.opt.hash){var hasHeadline;el._articles.forEach((article,index)=>{const headline=article.querySelector(nst.opt.hash);if(headline){currentIndex=index;hasHeadline=headline.id;}});slider(currentIndex);el.querySelectorAll('a, button').forEach((focusable)=>{focusable.addEventListener('focus',()=>{el._articles.forEach((article,index)=>{if(article.contains(focusable)){slider(index);}});});});} 86el._arrows.forEach((arrow)=>{arrow.addEventListener('click',()=>{var direction=arrow.classList.contains('arrow--right')?1:-1;currentIndex+=direction;if(currentIndex<0){currentIndex=el._articles.length-1;} 87else if(currentIndex>=el._articles.length){currentIndex=0;} 88slider(currentIndex);try{el.scrollIntoViewIfNeeded({behavior:'smooth',block:'start'});} 89catch(error){el.scrollIntoView({behavior:'smooth',block:'start'});}});});nst.f.visibilityClassToggler(el,'imagetextfader--visible',false,{rootMargin:`0%0%${nst.opt.visibleObserverTopPercentage}0%`});nst.f.doGlowAction(el._figures);},formBuilderHandler:()=>{nst.opt.formBuilders=nst.opt.site.querySelectorAll('.cms-form-builder');nst.opt.formBuilders.forEach((form)=>{nst.f.visibilityClassToggler(form,'',false,{rootMargin:'0% 0% -40% 0%'});});},fun:()=>{var funValue=(new Date().getDay()===0)?Math.random()*4096:0;if(location.search.includes('fun')){nst.opt.fun=parseInt(nst.opt.params.get('fun'))||0;nst.opt.funByForce=true;nst.opt.params.delete('fun');const newUrl=location.pathname+(nst.opt.params.toString()?'?'+nst.opt.params.toString():'');history.replaceState({},'',newUrl);} 90else if(sessionStorage.getItem('fun')==='null'){nst.opt.fun=null;} 91else if(sessionStorage.getItem('fun')){nst.opt.fun=parseInt(sessionStorage.getItem('fun'));if(Math.random()<0.5){sessionStorage.setItem('fun',null);}} 92else if(funValue>=4084){nst.opt.fun=Math.floor(funValue-4084);sessionStorage.setItem('fun',nst.opt.fun);}},mosaicList:(container)=>{container=container.id?container:nst.opt.main.querySelector(container);if(!container)return;nst.f.visibilityClassToggler(container,'mosaic--visible',false,{rootMargin:`0%0%${nst.opt.visibleObserverTopPercentage}0%`});const items=container.querySelectorAll('.mosaic__item');items.forEach((item)=>{item._defaultOpen=item.classList.contains('mosaic__item--open');});if(nst.opt.touch)return;let allItemsOpen=false;container.addEventListener('click',(e)=>{const target=e.target.closest('.mosaic__item');if(!target)return;items.forEach((item)=>{if(allItemsOpen&&!item._defaultOpen){item.classList.remove('mosaic__item--open');} 93else{item.classList.add('mosaic__item--open');}});allItemsOpen=!allItemsOpen;},{passive:true});},mouseOpts:(e,item)=>{if(!e)return;
93nst.tmp.mouseActions.mouseX=e.clientX;nst.tmp.mouseActions.mouseY=e.clientY;nst.tmp.mouseActions.bounds=item.getBoundingClientRect();nst.tmp.mouseActions.leftX=nst.tmp.mouseActions.mouseX-nst.tmp.mouseActions.bounds.x;nst.tmp.mouseActions.topY=nst.tmp.mouseActions.mouseY-nst.tmp.mouseActions.bounds.y;nst.tmp.mouseActions.center={x:nst.tmp.mouseActions.leftX-nst.tmp.mouseActions.bounds.width/2,y:nst.tmp.mouseActions.topY-nst.tmp.mouseActions.bounds.height/2};nst.tmp.mouseActions.distance=Math.sqrt(nst.tmp.mouseActions.center.x**2+nst.tmp.mouseActions.center.y**2);nst.tmp.mouseActions.xPercent=Math.max(33,Math.min(67,(nst.tmp.mouseActions.center.x*2+nst.tmp.mouseActions.bounds.width/2)/nst.tmp.mouseActions.bounds.width*100));nst.tmp.mouseActions.yPercent=Math.max(33,Math.min(67,(nst.tmp.mouseActions.center.y*2+nst.tmp.mouseActions.bounds.height/2)/nst.tmp.mouseActions.bounds.height*100));},foilRotationToMouse:(e,item)=>{nst.f.mouseOpts(e,item);item.style.setProperty("--_foil-background-position",`${nst.tmp.mouseActions.xPercent}%${nst.tmp.mouseActions.yPercent}%`);},foilRotationToTouch:(e,item)=>{e.preventDefault();const touch=e.touches[0];nst.f.foilRotationToMouse({clientX:touch.clientX,clientY:touch.clientY},item);},foil:(card)=>{const foilCard=card||(nst.opt.fun&&items[nst.opt.fun-1]);if(!foilCard)return;foilCard._foil=!foilCard._foil;if(foilCard._foil){foilCard.classList.add('foil');}else{foilCard.classList.remove('foil');} 94foilCard._foil&&foilCard.addEventListener('mousemove',(e)=>nst.f.foilRotationToMouse(e,foilCard));foilCard._foil&&foilCard.addEventListener('mouseleave',()=>{foilCard.style.setProperty("--_foil-background-position","50% 50%");foilCard.removeEventListener('mousemove',(e)=>nst.f.foilRotationToMouse(e,foilCard));});foilCard.addEventListener('touchstart',(e)=>{foilCard.style.setProperty("--_foil-background-position",`${nst.tmp.mouseActions.xPercent}%${nst.tmp.mouseActions.yPercent}%`);foilCard.addEventListener('touchmove',(e)=>foilRotationToTouch(e,foilCard));},{passive:false});foilCard.addEventListener('touchend',()=>{foilCard.style.setProperty("--_foil-background-position","50% 50%");foilCard.removeEventListener('touchmove',(e)=>foilRotationToTouch(e,foilCard));},{passive:true});},do3DAction:(items)=>{let bounds,resetTimeout;function rotateToMouse(e,item){nst.f.mouseOpts(e,item);item.style.transform=`scale3d(1.08,1.08,1.08) 95rotate3d(${Math.abs(nst.tmp.mouseActions.center.y/100)},${-nst.tmp.mouseActions.center.x/100},0,${Math.log(nst.tmp.mouseActions.distance)*3}deg)`;item.style.boxShadow=`${nst.tmp.mouseActions.center.x/5}px ${Math.abs(nst.tmp.mouseActions.center.y/5)}px 20px var(--shadow-color-3d,rgba(255,255,255,.25))`;};items.forEach(item=>{const allow3D=!item.classList.contains('no-3d');const handleMouseMove=(e)=>allow3D&&rotateToMouse(e,item);const handleTouchMove=(e)=>{const touch=e.touches[0];handleMouseMove({clientX:touch.clientX,clientY:touch.clientY});};item.addEventListener('mouseenter',()=>{bounds=item.getBoundingClientRect();allow3D&&d.addEventListener('mousemove',handleMouseMove);clearTimeout(resetTimeout);},{passive:true});item.addEventListener('mouseleave',(e)=>{allow3D&&d.removeEventListener('mousemove',handleMouseMove);resetTimeout=setTimeout(()=>{item.style.transform='';item.style.boxShadow='';},1000);},{passive:true});item.addEventListener('touchstart',()=>{bounds=item.getBoundingClientRect();allow3D&&d.addEventListener('touchmove',handleTouchMove);clearTimeout(resetTimeout);},{passive:true});item.addEventListener('touchend',(e)=>{allow3D&&d.removeEventListener('touchmove',handleTouchMove);resetTimeout=setTimeout(()=>{item.style.transform='';item.style.boxShadow='';},1000);},{passive:true});});},doGlowAction:(items)=>{function glowBackground(e,item){nst.f.mouseOpts(e,item);item._cardGlow.style.backgroundImage=`radial-gradient(circle at 96${nst.tmp.mouseActions.center.x*2+nst.tmp.mouseActions.bounds.width/2}px 97${nst.tmp.mouseActions.center.y*2+nst.tmp.mouseActions.bounds.height/2}px,#ffffff55,#0000000f)`;};items.forEach(item=>{const allowGlow=!item.classList.contains('no-glow');if(allowGlow){item._cardGlow=d.createElement('div');item._cardGlow.classList.add('glow');item.append(item._cardGlow);} 98var handleGlow=(e)=>
98allowGlow&&glowBackground(e,item);const handleTouchMove=(e)=>{const touch=e.touches[0];handleGlow({clientX:touch.clientX,clientY:touch.clientY});};item.addEventListener('mouseenter',()=>{allowGlow&&d.addEventListener('mousemove',handleGlow);},{passive:true});item.addEventListener('mouseleave',(e)=>{allowGlow&&d.removeEventListener('mousemove',handleGlow);},{passive:true});item.addEventListener('touchstart',()=>{allowGlow&&d.addEventListener('touchmove',handleTouchMove);},{passive:true});item.addEventListener('touchend',(e)=>{allowGlow&&d.removeEventListener('touchmove',handleTouchMove);},{passive:true});});},imageTextBox:(el)=>{el=el.id?el:nst.opt.site.querySelector(el);if(!el)return;const mediaContainer=el.querySelector('.image-text-box-image'),contentContainer=el.querySelector('.image-text-box-content');if(!mediaContainer||!contentContainer)return;nst.f.doGlowAction([mediaContainer]);if(nst.opt.fun===Math.ceil(Math.random()*24)||nst.opt.funByForce){nst.f.foil(mediaContainer);nst.f.do3DAction([mediaContainer]);} 99el.classList.add('image-text-box-animate');nst.f.visibilityClassToggler(contentContainer,'visible',false,{rootMargin:`0%0%${nst.opt.visibleObserverTopPercentage}0%`}),nst.f.visibilityClassToggler(mediaContainer,'visible',false,{rootMargin:`0%0%${nst.opt.visibleObserverTopPercentage}0%`});},masonryCards:(container)=>{container=container.id?container:nst.opt.site.querySelector(container);if(!container)return;nst.f.masonry(container);},vioLangHandler:()=>{w.viomaVio=w.viomaVio||{};w.viomaVio.lang={de:{close:"SchlieÃen",topbar:"Ist das nicht mega?",topbarCst:"Extra für Sie ausgewählt",}}},fontAwesomeLoader:()=>{const faPreloadPromises=[],head=d.head,newPreloadTags=[];const styleTag=head.querySelector('style#fa-fontfamilies');if(!styleTag)return;const preloadTags=(basePath,paths)=>{Object.values(paths).forEach((path)=>{const linkTag=document.createElement('link');linkTag.rel='preload';linkTag.as='font';linkTag.href=`${basePath}${path}`;linkTag.type='font/woff2';linkTag.crossOrigin='';linkTag.dataset.rel='added via JS';const loadPromise=new Promise((resolve)=>{linkTag.onload=resolve;});faPreloadPromises.push(loadPromise);newPreloadTags.push(linkTag);});
99newPreloadTags.forEach((tag)=>head.appendChild(tag));return Promise.all(faPreloadPromises);} 100const htmlCssSwitcher=(basePath,paths)=>{styleTag.innerHTML=styleTag.innerHTML.replace(/-subset.woff2/g,'.woff2');};const faSwitcher=()=>{if(nst.tmp.fontAwesomeLoaded)return;nst.tmp.fontAwesomeLoaded=true;const basePath="/static/template-2421/assets/fonts/";const paths={solid:"fa-solid-900.woff2",} 101preloadTags(basePath,paths);Promise.all(faPreloadPromises).then(()=>{htmlCssSwitcher(basePath,paths);nst.opt.localStorage&&localStorage.setItem('fontAwesomeLoaded',true);!nst.opt.localStorage&&nst.opt.sessionStorage&&sessionStorage.setItem('fontAwesomeLoaded',true);});} 102if((nst.opt.localStorage&&localStorage.getItem('fontAwesomeLoaded'))||(nst.opt.sessionStorage&&sessionStorage.getItem('fontAwesomeLooaded'))){faSwitcher();} 103else{const events=["touchstart","touchmove","click","scroll","keydown"];const faSwitcherWrapper=(e)=>{faSwitcher();events.forEach((event)=>{d.removeEventListener(event,faSwitcherWrapper);});nst.opt.banner&&nst.opt.banner.removeEventListener('mouseenter',faSwitcherWrapper);};events.forEach((event)=>{d.addEventListener(event,faSwitcherWrapper,{once:true,passive:true});});nst.opt.banner&&nst.opt.banner.addEventListener('mouseenter',faSwitcherWrapper,{once:true,passive:true});setTimeout(faSwitcherWrapper,5000);}},consoleChecker:()=>{if(nst.opt.touch)return;let isConsoleOpen=false,interval,i=0;const checkConsoleOpen=()=>{i++;const width=w.outerWidth-w.innerWidth;const height=w.outerHeight-w.innerHeight;if(width>200||height>200){setTimeout(()=>{w._consoleWidth=width,w._consoleHeight=height;isConsoleOpen=true;},200)};};const loadAsciiArt=()=>{let script=nst.f.elem('script',{src:'/static/template-2421/js/consolelog.js',async:true});d.head.appendChild(script);} 104interval=setInterval(()=>{checkConsoleOpen();if(isConsoleOpen){clearInterval(interval);loadAsciiArt();} 105else if(i>=10){loadAsciiArt();clearInterval(interval);}},1000);},sharer:()=>{const shareOpener=(e)=>{const shareLink=e.currentTarget.dataset.href||e.currentTarget.href;if(!shareLink)return;const shareTarget=e.currentTarget.dataset.target||"_blank";if(shareTarget==="_self"){location.href=shareLink;} 106else{w.open(shareLink);}};nst.opt.shareButtons.forEach((button)=>{button.addEventListener('click',shareOpener,{passive:true});});},inactivityClassToggler:()=>{let inactiveTimeout;let keydownWasActive=false;const setInactiveClass=()=>{d.documentElement.classList.toggle('user--inactive');} 107const resetInactiveTimeout=(keyUsed)=>{d.documentElement.classList.remove('user--inactive');clearTimeout(inactiveTimeout);if(keydownWasActive){return;} 108inactiveTimeout=setTimeout(setInactiveClass,10000);} 109resetInactiveTimeout();d.addEventListener('mousemove',resetInactiveTimeout,{passive:true});d.addEventListener('touchstart',resetInactiveTimeout,{passive:true});d.addEventListener('click',resetInactiveTimeout,{passive:true});d.addEventListener('scroll',resetInactiveTimeout,{passive:true});d.addEventListener('keydown',(e)=>{keydownWasActive=true;d.documentElement.classList.remove('user--inactive');resetInactiveTimeout();},{passive:true,once:true});},bannerColorizer:()=>{if(!nst.opt.banner)return;let banner=null,bannerHeight,windowHalfWidth,closestIsBright=false,colorizerTimeout;const newBanner=()=>{banner=w.innerWidth>=960?nst.opt.banner:d.querySelector('.banner__top');bannerHeight=banner.getBoundingClientRect().height+1;windowHalfWidth=w.innerWidth/2;} 110newBanner();const bannerColorizer=(classToggleOnResize)=>{if(classToggleOnResize===true){newBanner();} 111closestIsBright=false;clearTimeout(colorizerTimeout);colorizerTimeout=setTimeout(()=>{const bannerBgElement=document.elementFromPoint(windowHalfWidth,bannerHeight);if(!bannerBgElement)return;w.requestAnimationFrame(()=>{bannerBgElement.closest('[data-attr-hintergrund="#FFFFFF"]')?banner.classList.add('banner--light'):banner.classList.remove('banner--light');});},100);};w.addEventListener('mq-resize',()=>{bannerColorizer(true);},{passive:true});d.addEventListener('scroll',bannerColorizer,{passive:true});},imagetextboxPhoneSecondary:(el)=>{el=el.id?el:nst.opt.site.querySelector(el);if(!el)return;const secImage=el.querySelectorAll('.image-text-box-image > img');secImage.forEach((img)=>{const picture=d.createElement('picture');const source=d.createElement('source');source.srcset=img.src+' 1x';picture.append(source);img.replaceWith(picture);picture.append(img);});},oldBrowserSupport:()=>{if(nst.opt.cssHasSupport)return;alert("Ihr Browser ist veraltet und wird diese Seite nicht gut darstellen können. Wir empfehlen dringend ein Update.\n\nYour browser is outdated and will not display this page well. We strongly recommend an update.");nst.opt.toolToggle.addEventListener('click',()=>{location.href=nst.opt.toolToggle.closest('.toolicons').querySelector('a').href;});}});nst.customEventListeners=()=>{nst.f.toolButtonLinkHandler();nst.f.sharer();} 112nst.customInstantListeners=()=>{nst.f.visibilityTogglers();nst.f.bannerColorizer();nst.f.vioLangHandler();nst.f.inactivityClassToggler();nst.f.fun();nst.f.detectTrackPad();} 113nst.customDOMListeners=()=>{} 114nst.customLoadListeners=()=>{window.addEventListener('load',()=>{nst.f.spotLights();nst.f.formBuilderHandler();nst.f.fontAwesomeLoader();nst.f.consoleChecker();nst.f.oldBrowserSupport();});} 115nst.customInit=()=>{nst.customEventListeners();nst.customInstantListeners();nst.customDOMListeners();nst.customLoadListeners();
115nst.init();} 116if(nst.opt.params.get('zwinge-hintergrund')==='weiss'){d.querySelectorAll('main > *').forEach((item)=>{item.classList.add('grp-bg-#FFFFFF');item.dataset.attrHintergrund='#FFFFFF';});} 117else if(nst.opt.params.get('zwinge-hintergrund')==='schwarz'){d.querySelectorAll("[data-attr-hintergrund='#FFFFFF']").forEach((item)=>{item.classList.remove('grp-bg-#FFFFFF');item.removeAttribute('data-attr-hintergrund');});} 118nst.consentColorTesting=(color1,color2)=>{if(!color1)return;const consent=d.body.querySelector('#condeon-consentmanager');if(!consent)return;color2=color2||'';const fireMatomoEvent=(btn)=>{if(!w._paq)return;let category="Consent Button Test ("+color1+(color2?" - "+color2+")":")");let action=btn.innerText;w._paq.push(['trackEvent',category,action,1]);} 119consent.addEventListener('click',e=>{const btn=e.target.closest('button');if(!btn)return;fireMatomoEvent(btn);},{passive:true});} 120nst2024.tablist=()=>{if(nst2024.tabLists)return;nst2024.tabLists=nst.opt.site.querySelectorAll('.grp-tabs');nst2024.tabLists.forEach((tabList)=>{let contentboxes=tabList.querySelectorAll(':scope > .tab-content');let firstButtonsBlock=tabList.querySelector(':scope > .tab-buttons > .tab-buttons-block');let tabs=firstButtonsBlock?firstButtonsBlock.querySelectorAll('button'):[];const activateTab=(id)=>{contentboxes.forEach((box)=>{if(box.id===id){box.classList.add('tab-content--visible');box.setAttribute('aria-hidden','false');box.removeAttribute('hidden');box.removeAttribute('inert');} 121else{box.classList.remove('tab-content--visible');box.setAttribute('aria-hidden','true');box.setAttribute('hidden','');box.setAttribute('inert','');}});};tabs.forEach((tab,index)=>{tab.addEventListener('click',()=>{const isSelected=tab.getAttribute('aria-selected')==='true';if(isSelected){const nextIndex=(index+1)<tabs.length?index+1:0;const nextTab=tabs[nextIndex];activateTab(nextTab.getAttribute('aria-controls'));tabs.forEach((t)=>t.setAttribute('aria-selected','false'));nextTab.setAttribute('aria-selected','true');}else{activateTab(tab.getAttribute('aria-controls'));tabs.forEach((t)=>t.setAttribute('aria-selected','false'));tab.setAttribute('aria-selected','true');}},{passive:true});});});} 122nst.customInit();})(window,document,window.nst2024);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.