const navContent = `
`; document.addEventListener("DOMContentLoaded", function() { const navContainer = document.getElementById('global-nav'); if(navContainer) { navContainer.innerHTML = navContent; // Markiert automatisch die aktuelle Seite const currentPage = window.location.pathname.split("/").pop() || 'index.html'; const links = navContainer.querySelectorAll('.pill'); links.forEach(link => { if (link.getAttribute('href') === currentPage) { link.style.borderColor = "var(--accent)"; link.style.background = "rgba(79,124,255,0.1)"; } }); } });