// source --> https://losamigos-rawhill.de/wp-content/plugins/embed-privacy/assets/js/embed-privacy.min.js?ver=1.12.3 
(()=>{function e(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var c=r[n];" "==c.charAt(0);)c=c.substring(1,c.length);if(0==c.indexOf(t))return c.substring(t.length,c.length)}return null}function t(e,t,r){var n="";if(r){var c=new Date;c.setTime(c.getTime()+24*r*60*60*1e3),n="; expires="+c.toUTCString()}document.cookie=e+"="+(t||"")+n+"; path=/"}document.addEventListener("DOMContentLoaded",(function(){var r=document.querySelectorAll(".embed-privacy-inner .embed-privacy-input"),n=document.querySelectorAll(".embed-privacy-inner .embed-privacy-label"),c=document.querySelectorAll(".embed-privacy-overlay"),i=document.querySelectorAll(".embed-privacy-overlay a");function o(r){const n=r.closest(".embed-privacy-container");var c=r.getAttribute("data-embed-provider"),i=e("embed-privacy")?JSON.parse(e("embed-privacy")):"";r.checked?(null!==i&&0!==Object.keys(i).length&&i.constructor===Object?(i[c]=!0,t("embed-privacy",JSON.stringify(i),365)):t("embed-privacy",'{"'+c+'":true}',365),a(document.querySelectorAll(".embed-privacy-overlay")),n&&document.activeElement!==n&&n.querySelector(".embed-privacy-content > :first-child").focus()):null!==i&&(delete i[c],0!==Object.keys(i).length?t("embed-privacy",JSON.stringify(i),365):("embed-privacy",document.cookie="embed-privacy=; expires=0; path=/"))}function a(t){const r=document.activeElement;var n=e("embed-privacy")?JSON.parse(e("embed-privacy")):"";if(t||(t=c),null!==n&&Object.keys(n).length){for(var i=Object.keys(n),o=0;o<t.length;o++){var a=t[o].parentNode.getAttribute("data-embed-provider");i.includes(a)&&t[o].click()}setTimeout((()=>r.focus()),50)}}function d(e,t,r,n){for(var c=0;c<e.length;c++){e[c].addEventListener("click",(function(e){"INPUT"!==e.currentTarget.tagName&&l(e.currentTarget,!0)}));const t=e[c].parentNode.querySelector(".embed-privacy-enable");t&&(t.addEventListener("click",(function(e){l(e.currentTarget.parentNode.querySelector(".embed-privacy-overlay")),e.currentTarget.parentNode.removeChild(e.currentTarget)})),t.addEventListener("keypress",(function(e){"Enter"!==e.code&&"Space"!==e.code||(e.preventDefault(),l(e.currentTarget.parentNode.querySelector(".embed-privacy-overlay")),e.currentTarget.parentNode.removeChild(e.currentTarget))})))}for(c=0;c<t.length;c++)t[c].addEventListener("click",(function(e){e.stopPropagation()}));for(c=0;c<r.length;c++)r[c].addEventListener("click",(function(e){e.stopPropagation(),o(e.currentTarget,e.currentTarget.closest(".embed-privacy-overlay"))}));for(c=0;c<n.length;c++)n[c].addEventListener("click",(function(e){e.stopPropagation()}));a(e)}function l(e,t=!1){var r=e.parentNode,n=e.nextElementSibling;r.classList.remove("is-disabled"),r.classList.add("is-enabled"),e.style.display="none";var c,i,o=JSON.parse(window["_"+e.parentNode.getAttribute("data-embed-id")]);n.innerHTML=(c=o.embed,(i=document.createElement("textarea")).innerHTML=c,i.value);var a=r.parentNode;a.classList.contains("wp-block-embed__wrapper")&&a.style.removeProperty("height");for(var d=n.querySelectorAll("script"),l=0;l<d.length;l++){var s=document.createElement("script");d[l].src?s.src=d[l].src:s.innerHTML=d[l].innerHTML,n.appendChild(s)}if(t||r.querySelector(".embed-privacy-content > :first-child").focus(),"undefined"!=typeof jQuery){const e=jQuery(".wp-video-shortcode");e.length&&e.mediaelementplayer()}if("instagram"===r.getAttribute("data-embed-provider")){const e=setInterval((()=>{window.instgrm&&(window.instgrm.Embeds.process(),clearInterval(e))}),100)}}function s(){for(var e=0;e<c.length;e++){var t=c[e].parentNode.parentNode;t.classList.contains("wp-block-embed__wrapper")&&(t.style.removeProperty("height"),t.offsetHeight<c[e].offsetHeight&&(t.style.height=c[e].offsetHeight+"px"))}}d(c,i,r,n),function(){const e=new MutationObserver((e=>{for(const t of e)for(const e of t.addedNodes){const t=e.querySelectorAll(".embed-privacy-overlay");if(t.length){const r=e.querySelectorAll(".embed-privacy-inner .embed-privacy-input"),n=e.querySelectorAll(".embed-privacy-inner .embed-privacy-label");d(t,e.querySelectorAll(".embed-privacy-overlay a"),r,n)}}}));e.observe(document.body,{childList:!0})}(),function(){const t=document.querySelector(".embed-privacy-opt-out");if(!t)return;var r=t.querySelectorAll(".embed-privacy-opt-out-input");const n="1"===t.getAttribute("data-show-all");if(!r)return;const c=function(){const t=e("embed-privacy")?JSON.parse(e("embed-privacy")):"";return t?Object.keys(t):[]}();for(var i=0;i<r.length;i++){if(-1!==c.indexOf(r[i].getAttribute("data-embed-provider")))r[i].checked=!0;else if(!n){r[i].parentNode.parentNode.classList.add("is-hidden");continue}r[i].addEventListener("click",(function(e){var t=e.currentTarget;t&&o(t)}))}const a=t.querySelectorAll(".embed-privacy-provider:not(.is-hidden)");n||a.length||t.remove()}(),s(),window.addEventListener("resize",(function(){s()}))}))})();
// source --> https://losamigos-rawhill.de/wp-content/plugins/strato-assistant/js/cookies.js?ver=1744825876 
function switchFeature( name ) {
	var feature = getCookie( '_pre-assistant-config-' + name );

	if ( ! feature || feature === '0' ) {
		setCookie( '_pre-assistant-config-' + name, 1 );
	} else {
		setCookie( '_pre-assistant-config-' + name, 0 );
	}
	window.location.reload();
}

function setCookie( param, value, exdays ) {
	var date = new Date();
	date.setTime( date.getTime() + ( exdays * 24 * 60 * 60 * 1000 ) );

	var expires = 'expires=' + date.toUTCString();

	document.cookie = param + '=' + value + ';' + expires + ';path=/';
}

function getCookie( param ) {
	var name = param + '=';
	var cookie_list = document.cookie.split( ';' );

	for ( var i = 0; i < cookie_list.length; i++ ) {
		var cookie = cookie_list[ i ];

		while ( cookie.charAt( 0 ) === ' ' ) {
			cookie = cookie.substring( 1 );
		}
		if ( cookie.indexOf( name ) === 0 ) {
			return cookie.substring( name.length, cookie.length );
		}
	}
	return '';
};