1(function(){'use strict';var lang=(document.documentElement.getAttribute('lang')||'de').slice(0,2).toLowerCase();var T=lang==='de'?{newWindow:'(öffnet in neuem Fenster)',consent:'Datenschutz-Einstellungen öffnen',scrollTop:'Nach oben',carouselPause:'Animation anhalten',carouselPlay:'Animation fortsetzen',billingCopy:'Rechnungsanschrift entspricht den Angaben oben (Anrede, Name und Adresse übernehmen)',table:'Tabelle'}:{newWindow:'(opens in new window)',consent:'Open privacy settings',scrollTop:'Back to top',carouselPause:'Pause animation',carouselPlay:'Resume animation',billingCopy:'Billing address is the same as above (copy salutation, name and address)',table:'Table'};function enhanceAccordions(){document.querySelectorAll('a.accordion-toggle[data-bs-toggle="collapse"]:not([href])').forEach(function(a){var target=a.getAttribute('data-bs-target');if(target){a.setAttribute('href',target)} 2a.setAttribute('role','button')})} 3function enhanceConsent(){document.querySelectorAll('.consent-button a:not([href])').forEach(function(a){a.setAttribute('href','#');a.setAttribute('role','button');a.setAttribute('aria-label',T.consent);a.querySelectorAll('i').forEach(function(icon){icon.setAttribute('aria-hidden','true')});a.addEventListener('click',function(event){event.preventDefault()})})} 4function enhanceMenuButton(){var nav=document.getElementById('mainnavigation');var toggle=document.querySelector('.header-btn-collapse-nav');if(!nav||!toggle){return} 5nav.addEventListener('shown.bs.collapse',function(event){if(event.target===nav){toggle.setAttribute('aria-expanded','true')}});nav.addEventListener('hidden.bs.collapse',function(event){if(event.target===nav){toggle.setAttribute('aria-expanded','false')}})} 6function markNewWindowLinks(root){(root||document).querySelectorAll('a[target="_blank"]').forEach(function(a){if(a.querySelector('.a11y-newwin')||a.hasAttribute('aria-labelledby')||a.closest('[id^="mdp-readabler"], .klaro')){return} 7var name=(a.getAttribute('aria-label')||'')+' '+a.textContent;if(/neue[nms]? (Fenster|Tab)|new (window|tab)/i.test(name)){return} 8if(a.hasAttribute('aria-label')){a.setAttribute('aria-label',a.getAttribute('aria-label')+' '+T.newWindow);return} 9var hint=document.createElement('span');hint.className='visually-hidden a11y-newwin';hint.textContent=' '+T.newWindow;a.appendChild(hint)})} 10function enhanceScrollTop(el){if(!el||el.getAttribute('data-a11y')==='1'){return} 11el.setAttribute('data-a11y','1');el.setAttribute('aria-label',T.scrollTop);el.classList.add('no-footer-css');el.querySelectorAll('i').forEach(function(icon){icon.setAttribute('aria-hidden','true')});var footer=document.getElementById('footer');if(footer&&!footer.contains(el)){footer.appendChild(el)}} 12function watchScrollTop(){enhanceScrollTop(document.querySelector('a.scroll-to-top'));if(!('MutationObserver' in window)){return} 13var observer=new MutationObserver(function(){var el=document.querySelector('a.scroll-to-top:not([data-a11y])');if(el){enhanceScrollTop(el)}});observer.observe(document.body,{childList:!0});window.setTimeout(function(){observer.disconnect()},15000)} 14function enhanceCarousels(){var $=window.jQuery;if(!$||!$.fn||!$.fn.owlCarousel){return} 15var reducedMotion=window.matchMedia&&window.matchMedia('(prefers-reduced-motion: reduce)').matches;$('.owl-carousel').each(function(){var $c=$(this);if($c.data('a11yEnhanced')){return} 16$c.data('a11yEnhanced',!0);var hideClones=function(){$c.find('.owl-item.cloned').attr('aria-hidden','true').find('a, button, input, select, textarea, [tabindex]').attr('tabindex','-1')};hideClones();$c.on('initialized.owl.carousel refreshed.owl.carousel resized.owl.carousel',function(){window.setTimeout(hideClones,0)});var options=String($c.attr('data-plugin-options')||'');if(!/['"]autoplay['"]\s*:\s*true/.test(options)){return} 17var timeoutMatch=options.match(/['"]autoplayTimeout['"]\s*:\s*(\d+)/);var timeout=timeoutMatch?parseInt(timeoutMatch[1],10):5000;var paused=reducedMotion;var button=document.createElement('button');button.type='button';button.className='a11y-carousel-toggle';var render=function(){button.innerHTML='<i class="fas '+(paused?'fa-play':'fa-pause')+'" aria-hidden="true"></i> '+(paused?T.carouselPlay:T.carouselPause)};var stop=function(){$c.trigger('stop.owl.autoplay')};var play=function(){if(!paused){$c.trigger('play.owl.autoplay',[timeout])}};button.addEventListener('click',function(){paused=!paused;if(paused){stop()}else{play()} 18render()});$c.on('mouseenter focusin',stop);$c.on('mouseleave',play);$c.on('focusout',function(event){if(!event.relatedTarget||!this.contains(event.relatedTarget)){play()}});if(paused){$c.on('initialized.owl.carousel',stop);stop();window.setTimeout(stop,1500)} 19render();$c.before(button)})} 20function enhanceBillingCopy(){var map=[['anrede','anrederechnung'],['vorname','vornamerechnung'],['nachname','namerechnung'],['adresse','adresse_01']];var target=document.getElementById('powermail_field_anrederechnung');var source=document.getElementById('powermail_field_anrede');if(!target||!source||document.getElementById('a11y-billing-copy')){return} 21var wrap=target.closest('.powermail_fieldwrap');if(!wrap||!wrap.parentNode){return} 22var box=document.createElement('div');box.className='form-check a11y-billing-copy col-sm-12 mb-3';box.innerHTML='<input class="form-check-input" type="checkbox" id="a11y-billing-copy"> '+'<label class="form-check-label" for="a11y-billing-copy"></label>';box.querySelector('label').textContent=T.billingCopy;wrap.parentNode.insertBefore(box,wrap);var checkbox=box.querySelector('input');
22var copy=function(){map.forEach(function(pair){var from=document.getElementById('powermail_field_'+pair[0]);var to=document.getElementById('powermail_field_'+pair[1]);if(from&&to&&to.value!==from.value){to.value=from.value;to.dispatchEvent(new Event('change',{bubbles:!0}))}})};checkbox.addEventListener('change',function(){if(checkbox.checked){copy()}});map.forEach(function(pair){var from=document.getElementById('powermail_field_'+pair[0]);if(from){from.addEventListener('input',function(){if(checkbox.checked){copy()}});from.addEventListener('change',function(){if(checkbox.checked){copy()}})}})} 23function enhanceMainMenu(){var nav=document.getElementById('mainNav');if(!nav){return} 24var items=nav.querySelectorAll('li.dropdown, li.dropdown-submenu');var closedByEscape=null;var closeAll=function(){items.forEach(function(li){li.classList.remove('accessibility-open')})};nav.addEventListener('focusin',function(event){if(closedByEscape&&closedByEscape.contains(event.target)){return} 25closedByEscape=null;items.forEach(function(li){li.classList.toggle('accessibility-open',li.contains(event.target))})});nav.addEventListener('focusout',function(event){if(!event.relatedTarget||!nav.contains(event.relatedTarget)){closeAll();closedByEscape=null}});nav.addEventListener('keydown',function(event){if(event.key!=='Escape'&&event.key!=='Esc'){return} 26var open=event.target.closest('#mainNav > li.dropdown');if(!open){return} 27closeAll();closedByEscape=open;var top=open.querySelector(':scope > a');if(top&&top!==document.activeElement){top.focus()}})} 28function enhanceTooltips(){var bs=window.bootstrap;if(!bs||!bs.Tooltip){return} 29document.querySelectorAll('[data-bs-toggle="tooltip"]:not([data-a11y-tooltip])').forEach(function(el){el.setAttribute('data-a11y-tooltip','1');var existing=bs.Tooltip.getInstance(el);var title=el.getAttribute('data-bs-original-title')||el.getAttribute('data-bs-title')||el.getAttribute('title')||'';if(existing){existing.dispose()} 30if(!title){return} 31var tooltip=new bs.Tooltip(el,{trigger:'manual',title:title});var hideTimer=null;var scheduleHide=function(){window.clearTimeout(hideTimer);hideTimer=window.setTimeout(function(){tooltip.hide()},400)};var show=function(){window.clearTimeout(hideTimer);tooltip.show();var tip=document.getElementById(el.getAttribute('aria-describedby')||'');if(tip&&!tip.getAttribute('data-a11y')){tip.setAttribute('data-a11y','1');tip.addEventListener('mouseenter',function(){window.clearTimeout(hideTimer)});tip.addEventListener('mouseleave',scheduleHide)}};el.addEventListener('mouseenter',show);el.addEventListener('focus',show);el.addEventListener('mouseleave',scheduleHide);el.addEventListener('blur',function(){tooltip.hide()})})} 32document.addEventListener('keydown',function(event){if((event.key==='Escape'||event.key==='Esc')&&window.bootstrap&&window.bootstrap.Tooltip){document.querySelectorAll('[data-a11y-tooltip]').forEach(function(el){var instance=window.bootstrap.Tooltip.getInstance(el);if(instance){instance.hide()}})}});function prefillBarrierForm(){var field=document.getElementById('powermail_field_seite');
32if(!field||field.value||!document.referrer){return} 33try{var ref=new URL(document.referrer);if(ref.origin===window.location.origin&&ref.pathname!==window.location.pathname){field.value=ref.href}}catch(e){}} 34function enhanceTableFigures(){document.querySelectorAll('figure.table').forEach(function(figure){if(!figure.querySelector('figcaption')&&!figure.hasAttribute('role')){figure.setAttribute('role','none')}})} 35function enhanceScrollableTables(){var update=function(){document.querySelectorAll('.table-responsive').forEach(function(box){var scrolls=box.scrollWidth>box.clientWidth+1;var marked=box.getAttribute('data-a11y-scroll')==='1';if(scrolls&&!marked&&!box.hasAttribute('tabindex')){var caption=box.querySelector('caption');box.setAttribute('tabindex','0');box.setAttribute('role','region');box.setAttribute('aria-label',caption?caption.textContent.replace(/\s+/g,' ').trim():T.table);box.setAttribute('data-a11y-scroll','1')}else if(!scrolls&&marked){['tabindex','role','aria-label','data-a11y-scroll'].forEach(function(name){box.removeAttribute(name)})}})};update();var timer=null;window.addEventListener('resize',function(){window.clearTimeout(timer);timer=window.setTimeout(update,200)})} 36function enhance(){prefillBarrierForm();enhanceTableFigures();enhanceScrollableTables();enhanceMainMenu();enhanceAccordions();enhanceConsent();enhanceMenuButton();
36markNewWindowLinks();watchScrollTop();enhanceBillingCopy();enhanceCarousels();window.addEventListener('load',function(){enhanceTooltips();enhanceCarousels();enhanceScrollTop(document.querySelector('a.scroll-to-top'));markNewWindowLinks()})} 37document.addEventListener('keydown',function(event){if((event.key===' '||event.key==='Spacebar')&&event.target.matches&&event.target.matches('a[role="button"]')){event.preventDefault();event.target.click()}});if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',enhance)}else{enhance()}})()
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.