// Small progressive enhancements. Everything works without JavaScript. document.addEventListener("click", async (event) => { const button = event.target.closest("[data-copy]"); if (!button) return; const input = document.querySelector(button.dataset.copy); if (!input) return; input.select(); try { await navigator.clipboard.writeText(input.value); button.textContent = "Kopiert ✓"; } catch { button.textContent = "Bitte manuell kopieren"; } });