var jsVersionPreventCache = "ci-422-e9914d7"; var pgInit = {}; pgInit.vars = { promotions: '[{"id":"129","title":"Weihnachtsspecial","description":"Exklusives Angebot","linkLabel":"Klicken f\u00fcr zus\u00e4tzliche Informationen","link":"10","bookBtn":"https:\/\/book.sleepandnature.pt\/?gc=ed60c289d59aec076ee0122946122e26&l=de&nrNights=2&preselect=promo139&startDay=2026-12-21","image":"https:\/\/secure.guestcentric.net\/bin\/f640ed6c2e674a91\/thumb-natal2026_sleep-amp-nature-1.webp"},{"id":"131","title":"Silvester-Special","description":"Exklusives Angebot","linkLabel":"Klicken f\u00fcr zus\u00e4tzliche Informationen","link":"10","bookBtn":"https:\/\/book.sleepandnature.pt\/?gc=ed60c289d59aec076ee0122946122e26&l=de&nrNights=2&preselect=promo141&startDay=2026-12-28","image":"https:\/\/secure.guestcentric.net\/bin\/f640ed6c2e674a91\/thumb-banner_pda-sleep-2.webp"},{"id":"47","title":"Langer Aufenthalt 3 N\u00e4chte","description":"15% Rabatt bei einem Aufenthalt von mehr als 3 N\u00e4chten","linkLabel":"Klicken f\u00fcr zus\u00e4tzliche Informationen","link":"10","bookBtn":"https:\/\/book.sleepandnature.pt\/?gc=ed60c289d59aec076ee0122946122e26&l=de&nrNights=3&preselect=promo56&startDay=2026-11-12","image":"https:\/\/secure.guestcentric.net\/bin\/f640ed6c2e674a91\/thumb-img_5495-4.webp"},{"id":"48","title":"Langer Aufenthalt 5 N\u00e4chte","description":"20% Rabatt bei einem Aufenthalt von mehr als 5 N\u00e4chten","linkLabel":"Klicken f\u00fcr zus\u00e4tzliche Informationen","link":"10","bookBtn":"https:\/\/book.sleepandnature.pt\/?gc=ed60c289d59aec076ee0122946122e26&l=de&nrNights=5&preselect=promo57&startDay=2026-11-12","image":"https:\/\/secure.guestcentric.net\/bin\/f640ed6c2e674a91\/thumb-img_5965-2.webp"},{"id":"125","title":"Hello Autumn | Flexible Tarif","description":"Exklusives Angebot","linkLabel":"Klicken f\u00fcr zus\u00e4tzliche Informationen","link":"10","bookBtn":"https:\/\/book.sleepandnature.pt\/?gc=ed60c289d59aec076ee0122946122e26&l=de&nrNights=2&preselect=promo135&startDay=2026-09-15","image":"https:\/\/secure.guestcentric.net\/bin\/f640ed6c2e674a91\/thumb-smithsonian-ltd7ecl7ygs-unsplash-1.webp"},{"id":"124","title":"Hello Autumn | Nicht erstattbarer Tarif","description":"Exklusives Angebot","linkLabel":"Klicken f\u00fcr zus\u00e4tzliche Informationen","link":"10","bookBtn":"https:\/\/book.sleepandnature.pt\/?gc=ed60c289d59aec076ee0122946122e26&l=de&nrNights=2&preselect=promo134&startDay=2026-09-15","image":"https:\/\/secure.guestcentric.net\/bin\/f640ed6c2e674a91\/thumb-smithsonian-ltd7ecl7ygs-unsplash-2.webp"},{"id":"2","title":"Nicht erstattbarer Tarif","description":"Nutzen Sie unseren nicht erstattbaren Tarif und profitieren Sie von unseren exklusiven Vorteilen","linkLabel":"Klicken f\u00fcr zus\u00e4tzliche Informationen","link":"10","bookBtn":"https:\/\/book.sleepandnature.pt\/?gc=ed60c289d59aec076ee0122946122e26&l=de&nrNights=2&preselect=promo6&startDay=2026-11-12","image":"https:\/\/secure.guestcentric.net\/bin\/f640ed6c2e674a91\/thumb-policy-2--2.webp"}]', displayTime: 10, transitionTime: 1.5, frameworkPath: 'https://secure.guestcentric.net/js/yui/build/', staticHost: "https:\/\/secure.guestcentric.net" }; !function(){"use strict";if(void 0!==window.pgInit&&pgInit.vars){var e={gadget:"promotionGadget",status:"waiting",start:function(){try{if(!pgInit)return;!function(){if(window.gcGa4ClientHandoff||document.getElementById("gc-ga4-client-handoff"))return;var e="undefined"!=typeof pgInit&&pgInit.vars&&pgInit.vars.staticHost||"undefined"!=typeof securePath&&securePath||"";if(!e)return;var t="undefined"!=typeof jsVersionPreventCache&&jsVersionPreventCache||"",i=document.createElement("script");i.id="gc-ga4-client-handoff",i.async=!0,i.src=e+"/js/gadgets/ga4ClientHandoff.min.js"+(t?"?v="+encodeURIComponent(t):""),document.head.appendChild(i)}(),t(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",i):i()}catch(e){return t(),!1}}};window.gcGadgetStack?"loaded"===gcGadgetStack[gcGadgetStack.length-1].status?(e.status="loading",gcGadgetStack.push(e),e.start()):gcGadgetStack.push(e):(e.status="loading",window.gcGadgetStack=[e],e.start()),window.vars=window.vars||[]}function t(){for(var e=0,t=gcGadgetStack.length;e1){for(i=Math.floor(Math.random()*e.length);i===r.oldPromotionIndex;)i=Math.floor(Math.random()*e.length);r.oldPromotionIndex=i}return e[i]},this.openPromotion=function(){var e=r.link+"&url="+encodeURIComponent(window.location.toString()),t=window.self!==window.top,i=t?window.open("","_blank"):null;if(!t||i){!function(e,t){window.gcGa4ClientHandoff?window.gcGa4ClientHandoff.navigate(e,t):t(e)}(e,function(e){if(i)try{i.location=e}catch(t){window.open(e,"_blank")}else window.open(e,"_self")})}else window.open(e,"_blank")},this.build()}function o(e,t,i,n,o){if(n<=0)return e.style.opacity=String(i),void(o&&o());var a=null;requestAnimationFrame(function r(d){null===a&&(a=d);var s=(d-a)/n;s>1&&(s=1);var l=function(e){var t=1-e;return 1-t*t*t}(s),c=t+(i-t)*l;e.style.opacity=String(c),s<1?requestAnimationFrame(r):o&&o()})}}();