function hasConsent(category) { const c = getConsent(); return c && c[category] === true; } function renderExternalEmbeds() { document.querySelectorAll('.external-embed').forEach(el => { const category = el.dataset.cookieCategory; const encoded = el.dataset.embedCode; const html = decodeURIComponent(escape(atob(encoded))); if (!hasConsent(category)) { el.innerHTML = `
Dieser Inhalt stammt von einem Drittanbieter und kann aufgrund Ihrer Cookie-Einstellungen nicht angezeigt werden.