document.addEventListener('DOMContentLoaded', function () { // Mobile Menü Toggle var toggle = document.getElementById('menuToggle'); var nav = document.getElementById('siteNav'); if (toggle && nav) { toggle.addEventListener('click', function () { nav.classList.toggle('open'); }); } // Lazy Loading für ältere Browser if ('loading' in HTMLImageElement.prototype) return; document.querySelectorAll('img[loading="lazy"]').forEach(function (img) { img.src = img.src; }); });