• Gratis-Proben zu jeder Bestellung
  • Kostenloser Versand innerhalb Deutschlands
  • Gratis-Proben zu jeder Bestellung
  • Kostenloser Versand innerhalb Deutschlands

    Dein THALGO Adventskalender wird geladen …

    (function () { var BASE = 'https://cdn02.plentyone.com/viot5jxvarl6/frontend/adventskalender_2026/'; var VERSION = '7'; var NAVY = '#062d55', TEAL = '#0d6a88', GOLD = '#e8c16f'; var root = document.getElementById('thalgo-advent-2026'); if (!root || root.getAttribute('data-ready') === '1') { return; } root.setAttribute('data-ready', '1'); var TEST = /[?\u0026]adventtest=1/.test(window.location.search); var STORE = 'thalgo-advent-opened-2026'; var GAMES = { 3: 'Von der Alge zur Pflege', 4: 'Weihnachts-Fangspiel', 6: 'Nikolaussocke', 9: 'Texture Match', 10: 'Thallys Waschtag', 11: 'Hauttyp-Test', 12: 'Weihnachts-Rubbellos', 13: 'Kerzenzauber', 16: 'Lieblingswirkstoff', 17: 'Glücksrad', 19: 'Thallys Weihnachtsmission', 21: 'Algen-Wissen', 22: 'Weihnachtsbaum schmücken', 23: 'Weihnachts-Memory', 24: 'Weihnachtsgeschichte' }; var DOORS = [ { day: 1, title: 'Eine schöne Weihnachtszeit', text: 'Schreibe einer Herzensperson eine liebevolle Nachricht und überrasche sie mit einem THALGO Gutscheincode.', inlineForm: true }, { day: 2, title: 'Gratis Handcreme', text: 'Zarte Hände für die Winterzeit: Ab einem Einkaufswert von 50 € schenken wir dir unsere Feuchtigkeitsspendende Handcreme aus der Cold Cream Marine Serie.', steps: ['Lege die Feuchtigkeitsspendende Handcreme in deinen Warenkorb.', 'Ergänze deinen Einkauf auf einen Warenwert von mindestens 50 €.', 'Gib an der Kasse den Gutscheincode HANDCREME ein. Die Handcreme ist dann gratis.'], code: 'HANDCREME', cta: 'Zur Handcreme', url: 'https://www.thalgo.de/feuchtigkeitsspendende-handcreme_791_1748/', legal: 'Gültig am 02.12.2026 auf thalgo.de ab 50 € Einkaufswert. Die Handcreme muss sich im Warenkorb befinden. Solange der Vorrat reicht.' }, { day: 5, title: 'Gratis Lagunenbad', text: 'Heute wartet ein kleiner Wohlfühlmoment auf dich: Zu deiner Bestellung legen wir dir gratis ein Lagunenbad mit ins Paket. Perfekt für eine entspannte Auszeit in der Badewanne.', steps: ['Lege deine Lieblingsprodukte in den Warenkorb.', 'Das Lagunenbad kommt automatisch zu deiner Bestellung dazu.'], image: 'bild-lagunenbad.webp', imageAlt: 'THALGO Lagunenbad Badetabletten', cta: 'Jetzt shoppen', url: 'https://www.thalgo.de/', legal: 'Gültig am 05.12.2026 bei Bestellungen auf thalgo.de. Das Lagunenbad wird automatisch beigelegt. Solange der Vorrat reicht.' }, { day: 7, title: 'Doppelte Bonuspunkte', text: 'Heute lohnt sich dein Einkauf doppelt: Für jede Bestellung schreiben wir dir die doppelte Anzahl an Bonuspunkten gut.', steps: ['Melde dich in deinem Kundenkonto auf thalgo.de an.', 'Bestelle heute deine Lieblingsprodukte.', 'Die doppelten Bonuspunkte werden deinem Konto automatisch gutgeschrieben.'], image: 'bild-bonuspunkte.webp', imageAlt: 'Doppelte Bonuspunkte', cta: 'Jetzt shoppen', url: 'https://www.thalgo.de/', legal: 'Gültig am 07.12.2026 für Bestellungen auf thalgo.de mit Kundenkonto.' }, { day: 8, title: '10 % auf Nahrungs­ergänzung', text: 'Schönheit, die von innen kommt: Heute erhältst du 10 % Rabatt auf alle THALGO Nahrungsergänzungsmittel.', steps: ['Lege deine Lieblingsprodukte aus der Nahrungsergänzung in den Warenkorb.', 'Gib an der Kasse den Gutscheincode VONINNENSCHÖN ein.'], image: 'bild-activminceur.webp', imageAlt: 'THALGO Activ Minceur Nahrungsergänzung mit einem Glas Wasser', imagePhoto: true, code: 'VONINNENSCHÖN', cta: 'Zur Nahrungsergänzung', url: 'https://www.thalgo.de/nahrungsergaenzung/', legal: 'Gültig am 08.12.2026 auf thalgo.de für Produkte aus der Kategorie Nahrungsergänzung.' }, { day: 14, title: 'Zwei Rezepte zum Genießen', text: 'Heute warten zwei weihnachtliche Genussmomente auf dich: Sablés Bretons und ein Beauty-Collagène-Kakao. Beide Rezepte kannst du direkt herunterladen.', recipes: true }, { day: 15, title: 'Gratis Konjac-Schwamm', text: 'Sanft gereinigt in die Feiertage: Zu jeder Bestellung ab 50 € schenken wir dir heute den Reinigenden Konjac-Schwamm in Muschelform. Er reinigt und peelt deine Haut ganz sanft.', steps: ['Lege den Konjac-Schwamm in deinen Warenkorb.', 'Ergänze deinen Einkauf auf einen Warenwert von mindestens 50 €.', 'Gib an der Kasse den Gutscheincode WEIHNACHTSSCHWAMM ein. Der Konjac-Schwamm ist dann gratis.'], image: 'bild-konjac.webp', imageAlt: 'THALGO Reinigender Konjac-Schwamm in Muschelform mit Verpackung', code: 'WEIHNACHTSSCHWAMM', cta: 'Zum Konjac-Schwamm', url: 'https://www.thalgo.de/konjac-schwamm_1147_2104/', legal: 'Gültig am 15.12.2026 auf thalgo.de ab 50 € Einkaufswert. Der Konjac-Schwamm muss sich im Warenkorb befinden. Solange der Vorrat reicht.' }, { day: 18, title: 'Meine Advents-Auszeit', text: 'Zwischen Lichterglanz und Weihnachtszauber darfst du dir Zeit für dich nehmen. Unsere Selfcare-Checkliste schenkt dir 10 kleine Momente nur für dich. Einfach herunterladen, ausdrucken und Tag für Tag abhaken.', image: 'bild-selfcare.webp', imageAlt: 'Vorschau der Selfcare-Checkliste Meine Advents-Auszeit', imageDoc: true, download: { label: 'Checkliste herunterladen', file: 'selfcare-checkliste.pdf' } }, { day: 20, title: '10 % auf alles', text: 'Noch auf der Suche nach dem passenden Weihnachtsgeschenk? Heute erhältst du 10 % Rabatt auf das gesamte THALGO Sortiment.', steps: ['Lege deine Lieblingsprodukte in den Warenkorb.', 'Gib an der Kasse den Gutscheincode WEIHNACHTSGESCHENK ein.'], code: 'WEIHNACHTSGESCHENK', cta: 'Jetzt shoppen', url: 'https://www.thalgo.de/', legal: 'Gültig am 20.12.2026 auf thalgo.de.' } ]; var DOOR_ORDER = [7, 19, 2, 24, 11, 5, 16, 1, 22, 9, 14, 3, 20, 8, 17, 12, 4, 23, 10, 6, 21, 15, 13, 18]; function el(tag, css, attrs, kids) { var e = document.createElement(tag); if (css) { e.style.cssText = css; } if (attrs) { Object.keys(attrs).forEach(function (k) { var v = attrs[k]; if (k === 'text') { e.textContent = v; } else if (k.indexOf('on') === 0) { e[k] = v; } else { e.setAttribute(k, v); } }); } (kids || []).forEach(function (c) { if (c) { e.appendChild(c); } }); return e; } function css(e, o) { Object.keys(o).forEach(function (k) { e.style[k] = o[k]; }); } function clamp(min, v, max) { return Math.max(min, Math.min(max, v)); } function pad(n) { return (n > 9 ? '' : '0') + n; } var opened = []; try { opened = JSON.parse(localStorage.getItem(STORE) || '[]'); } catch (e) { opened = []; } function isOpened(day) { return opened.indexOf(day) !== -1; } function available(day) { if (TEST) { return true; } var d = new Date(); return d.getFullYear() === 2026 && d.getMonth() === 11 && d.getDate() >= day; } /* ---------- Kalender ---------- */ var BG = BASE + 'hintergrund.webp'; var POP = root.getAttribute('data-popup') === '1'; root.style.cssText = (POP ? 'width:100%;max-width:none;margin:0;' : 'width:100vw;max-width:none;margin:0 0 0 calc(50% - 50vw);') + 'padding:0;box-sizing:border-box;overflow:hidden;position:relative;background-color:#03192d;color:#fff;line-height:1.5;font-size:16px;text-align:left;font-family:inherit;'; var blur = el('div', 'position:absolute;inset:-40px;z-index:0;background:linear-gradient(rgba(2,18,35,.35),rgba(2,18,35,.55)),url(' + BG + ') center/cover no-repeat;filter:blur(18px);pointer-events:none;'); var stage = el('div', 'position:relative;z-index:1;box-sizing:border-box;margin:0 auto;'); var head = el('div', 'position:relative;isolation:isolate;text-align:center;box-sizing:border-box;'); var headGlow = el('div', 'position:absolute;z-index:-1;left:50%;top:50%;width:min(118%,1000px);height:165%;transform:translate(-50%,-50%);background:radial-gradient(ellipse at center,rgba(2,16,34,.72) 0%,rgba(2,16,34,.5) 42%,rgba(2,16,34,0) 72%);pointer-events:none;'); var SH = '0 1px 3px rgba(0,0,0,.8),0 2px 14px rgba(0,0,0,.6)'; var eyebrow = el('p', 'margin:0 0 .45em;padding:0;text-transform:uppercase;letter-spacing:.2em;font-weight:600;color:#dff5f7;text-shadow:' + SH + ';font-family:inherit;line-height:1.3;max-width:none;', { text: 'Ein Hauch von Meer zu Weihnachten' }); var h1 = el('h1', 'margin:0;padding:0;font-family:Georgia,serif;font-weight:400;line-height:1.04;color:#fff;text-transform:none;letter-spacing:0;text-shadow:0 2px 4px rgba(0,0,0,.6),0 4px 26px rgba(0,0,0,.65);', { text: 'Dein THALGO Adventskalender' }); var intro = el('p', 'margin:.7em auto 0;padding:0;line-height:1.5;font-weight:500;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.85),0 2px 14px rgba(0,0,0,.6);font-family:inherit;', { text: 'Öffne jeden Tag ein neues Türchen und entdecke exklusive Beauty-Momente.' }); head.appendChild(headGlow); head.appendChild(eyebrow); head.appendChild(h1); head.appendChild(intro); var grid = el('div', 'display:grid;box-sizing:border-box;align-items:center;', { role: 'list', 'aria-label': 'THALGO Adventskalender mit 24 Türchen' }); var aiNote = el('p', 'margin:0 auto;padding:0;text-align:center;line-height:1.4;color:rgba(255,255,255,.75);text-shadow:0 1px 8px rgba(0,0,0,.6);font-family:inherit;', { text: 'Dieser Adventskalender wurde mit Unterstützung von KI erstellt.' }); var frame = el('div', 'position:relative;z-index:1;box-sizing:border-box;overflow:hidden;margin:0 auto;'); stage.style.position = 'absolute'; stage.appendChild(grid); frame.appendChild(stage); root.replaceChildren(blur, head, frame, aiNote); var doorEls = []; var mode = ''; var BASE_FILTER = 'drop-shadow(0 13px 16px rgba(0,0,0,.32))'; function doorFilter(b) { return BASE_FILTER; } function renderDoors() { grid.replaceChildren(); doorEls = DOOR_ORDER.map(function (day) { var locked = !available(day); var img = el('img', 'display:block;margin:0 auto;height:auto;object-fit:contain;border:0;max-width:100%;box-shadow:none;background:none;padding:0;', { src: BASE + 'tuer-' + pad(day) + '.webp', alt: 'Türchen ' + day, width: '380', height: '474', loading: 'lazy', draggable: 'false' }); var check = el('span', 'position:absolute;right:8%;top:6%;display:' + (isOpened(day) ? 'flex' : 'none') + ';align-items:center;justify-content:center;border-radius:50%;background:' + GOLD + ';color:' + NAVY + ';font-weight:800;box-shadow:0 5px 15px rgba(0,0,0,.3);line-height:1;pointer-events:none;', { text: '✓', 'aria-hidden': 'true' }); var b = el('button', 'appearance:none;-webkit-appearance:none;border:0;background:transparent;padding:0;margin:0;cursor:' + (locked ? 'not-allowed' : 'pointer') + ';position:relative;transition:transform .22s ease,filter .22s ease;box-shadow:none;outline-offset:5px;border-radius:12px;min-width:0;', { type: 'button', role: 'listitem', 'aria-label': 'Türchen ' + day + (locked ? ' (noch geschlossen)' : ''), 'data-day': String(day), 'data-locked': locked ? '1' : '0' }, [img, check]); b.style.filter = doorFilter(b); b.onclick = function () { openDoor(day, b); }; b.onpointerenter = function (e) { if (e.pointerType === 'mouse' && b.getAttribute('data-locked') !== '1') { b.style.transform = 'translateY(-7px) scale(1.025)'; b.style.filter = 'drop-shadow(0 18px 20px rgba(0,0,0,.42)) brightness(1.05)'; } }; b.onpointerleave = function () { b.style.transform = ''; b.style.filter = doorFilter(b); }; b.onfocus = function () { b.style.outline = '3px solid ' + GOLD; }; b.onblur = function () { b.style.outline = 'none'; }; grid.appendChild(b); return { b: b, img: img, check: check }; }); mode = ''; layout(); } function layout() { var W = root.clientWidth || window.innerWidth, VH = Number(root.getAttribute('data-vh')) || window.innerHeight; var AR = 1198 / 1914; var portrait = W < 600 || W < VH * 0.95; var phone = W < 700, small = W < 420; var S, fw, fh, sl, st, inside; if (!portrait) { S = Math.min(W, Math.max(640, (VH - 24) / AR)); inside = S >= 860; if (!inside) { S = Math.min(W, Math.max(640, (VH - 150) / AR)); } fw = S; fh = S * AR; sl = 0; st = 0; } else { var CL = 0.225, CW = 0.55, CT = 0.125; S = W / CW; fw = W; fh = S * AR * (1 - CT); sl = -CL * S; st = -CT * S * AR; inside = false; } var cq = S / 100; css(root, { height: 'auto', background: '#03192d', paddingTop: '0', paddingBottom: '0' }); blur.style.display = 'block'; css(frame, { width: Math.round(fw) + 'px', height: Math.round(fh) + 'px' }); var mask = (!portrait && S + 2 >= W) ? 'none' : (portrait ? 'none' : 'linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent)'); css(stage, { left: Math.round(sl) + 'px', top: Math.round(st) + 'px', width: Math.round(S) + 'px', height: Math.round(S * AR) + 'px', padding: '0', margin: '0', background: 'url(' + BG + ') center/100% 100% no-repeat', webkitMaskImage: mask, maskImage: mask, minHeight: '0' }); if (inside) { if (head.parentNode !== stage) { stage.insertBefore(head, grid); } if (aiNote.parentNode !== stage) { stage.appendChild(aiNote); } css(head, { position: 'absolute', left: '0', right: '0', top: (1.3 * cq) + 'px', margin: '0 auto', padding: '0', maxWidth: (70 * cq) + 'px', background: 'none', border: '0', borderRadius: '0', boxShadow: 'none', backdropFilter: 'none', webkitBackdropFilter: 'none' }); headGlow.style.display = 'block'; css(eyebrow, { fontSize: clamp(11, .95 * cq, 17) + 'px', letterSpacing: '.2em' }); css(h1, { fontSize: clamp(26, 3.5 * cq, 68) + 'px' }); css(intro, { fontSize: clamp(13, 1.2 * cq, 22) + 'px', maxWidth: (52 * cq) + 'px', marginTop: (.5 * cq) + 'px' }); css(aiNote, { position: 'absolute', left: '0', right: '0', bottom: (.7 * cq) + 'px', fontSize: clamp(10, .72 * cq, 14) + 'px', marginTop: '0', marginBottom: '0', maxWidth: 'none' }); } else { if (head.parentNode !== root) { root.insertBefore(head, frame); } if (aiNote.parentNode !== root) { root.appendChild(aiNote); } var card = portrait && phone; css(head, { position: 'relative', left: 'auto', right: 'auto', top: 'auto', zIndex: '2', maxWidth: card ? '520px' : '900px', margin: card ? '12px 10px 6px' : '0 auto', padding: card ? '14px 16px 16px' : clamp(14, W * .02, 26) + 'px 16px 8px', background: card ? 'rgba(3,22,44,.62)' : 'none', border: card ? '1px solid rgba(255,255,255,.16)' : '0', borderRadius: card ? '18px' : '0', boxShadow: card ? '0 10px 30px rgba(0,0,0,.3)' : 'none', backdropFilter: card ? 'blur(6px)' : 'none', webkitBackdropFilter: card ? 'blur(6px)' : 'none' }); headGlow.style.display = card ? 'none' : 'block'; css(eyebrow, { fontSize: (phone ? 11.5 : clamp(11, W * .012, 15)) + 'px', letterSpacing: phone ? '.14em' : '.2em' }); css(h1, { fontSize: (small ? 30 : (phone ? clamp(28, W * .086, 40) : clamp(28, W * .045, 54))) + 'px' }); css(intro, { fontSize: (phone ? 15 : clamp(14, W * .015, 19)) + 'px', maxWidth: phone ? 'none' : '720px', marginTop: phone ? '8px' : '.5em' }); css(aiNote, { position: 'relative', zIndex: '2', left: 'auto', right: 'auto', bottom: 'auto', fontSize: '12px', margin: '0 auto', padding: '10px 16px 16px', maxWidth: '1180px' }); } css(grid, { position: 'absolute', left: '28.47%', top: '25.46%', width: '43.36%', height: '60.52%', maxWidth: 'none', margin: '0', gridTemplateColumns: 'repeat(6,minmax(0,1fr))', gridTemplateRows: 'repeat(4,minmax(0,1fr))', gap: (.45 * cq) + 'px ' + (.5 * cq) + 'px', alignItems: 'stretch' }); doorEls.forEach(function (d) { css(d.b, { display: 'flex', alignItems: 'center', justifyContent: 'center', width: '100%', height: '100%', minHeight: '0' }); css(d.img, { width: '100%', height: '100%', maxHeight: 'none' }); css(d.check, { width: Math.max(16, 1.5 * cq) + 'px', height: Math.max(16, 1.5 * cq) + 'px', fontSize: Math.max(10, .85 * cq) + 'px', right: '6%', top: '4%' }); }); mode = portrait ? 'crop' : (inside ? 'scene' : 'scene-s'); } /* ---------- Popup ---------- */ var overlay = el('div', 'position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;background:rgba(0,15,30,.72);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);font-family:inherit;line-height:1.5;text-align:left;', { 'aria-hidden': 'true' }); var box = el('div', 'position:relative;box-sizing:border-box;width:100%;max-width:720px;overflow-y:auto;overflow-x:hidden;border-radius:24px;background:#fff;color:' + NAVY + ';box-shadow:0 30px 90px rgba(0,0,0,.5);-webkit-overflow-scrolling:touch;', { role: 'dialog', 'aria-modal': 'true', 'aria-labelledby': 'thalgo-advent-title' }); var closeBtn = el('button', 'position:absolute;z-index:5;right:14px;top:14px;width:42px;height:42px;padding:0;margin:0;border-radius:50%;border:1px solid rgba(255,255,255,.45);background:rgba(3,31,56,.58);color:#fff;font-size:26px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:Arial,sans-serif;', { type: 'button', 'aria-label': 'Popup schließen', text: '×' }); var media = el('div', 'display:none;width:100%;'); var content = el('div', 'box-sizing:border-box;'); box.appendChild(closeBtn); box.appendChild(media); box.appendChild(content); overlay.appendChild(box); var toast = el('div', 'position:fixed;z-index:2147483001;left:50%;bottom:78px;transform:translate(-50%,200%);opacity:0;transition:transform .25s,opacity .25s;background:' + NAVY + ';color:#fff;padding:10px 16px;border-radius:999px;box-shadow:0 20px 50px rgba(0,0,0,.35);font-family:inherit;font-size:15px;line-height:1.4;max-width:calc(100% - 24px);text-align:center;box-sizing:border-box;pointer-events:none;', { role: 'status', 'aria-live': 'polite' }); document.body.appendChild(overlay); document.body.appendChild(toast); function showToast(t) { toast.textContent = t; toast.style.transform = 'translate(-50%,0)'; toast.style.opacity = '1'; clearTimeout(showToast.t); showToast.t = setTimeout(function () { toast.style.transform = 'translate(-50%,200%)'; toast.style.opacity = '0'; }, 2600); } var prevOverflow = '', isOpen = false, gameMode = false, lastFocus = null; function sizeBox() { var VH = window.innerHeight, ph = window.innerWidth < 700; overlay.style.padding = ph ? '10px' : '16px'; if (gameMode) { box.style.maxWidth = '1120px'; box.style.height = Math.min(820, VH - (ph ? 20 : 40)) + 'px'; box.style.maxHeight = 'none'; box.style.background = '#061827'; box.style.borderRadius = ph ? '18px' : '24px'; box.style.overflowY = 'hidden'; } else { box.style.maxWidth = '720px'; box.style.height = 'auto'; box.style.maxHeight = (VH - (ph ? 20 : 32)) + 'px'; box.style.background = '#fff'; box.style.borderRadius = ph ? '18px' : '24px'; box.style.overflowY = 'auto'; } closeBtn.style.right = ph ? '10px' : '14px'; closeBtn.style.top = ph ? '10px' : '14px'; content.style.padding = ph ? '58px 20px 24px' : clamp(22, window.innerWidth * .05, 42) + 'px'; } function openOverlay() { lastFocus = document.activeElement; prevOverflow = document.documentElement.style.overflow; document.documentElement.style.overflow = 'hidden'; overlay.style.display = 'flex'; overlay.setAttribute('aria-hidden', 'false'); isOpen = true; sizeBox(); box.scrollTop = 0; setTimeout(function () { try { closeBtn.focus({ preventScroll: true }); } catch (e) { closeBtn.focus(); } }, 30); } function closeOverlay() { if (!isOpen) { return; } overlay.style.display = 'none'; overlay.setAttribute('aria-hidden', 'true'); isOpen = false; document.documentElement.style.overflow = prevOverflow; media.replaceChildren(); content.replaceChildren(); if (lastFocus && lastFocus.focus) { try { lastFocus.focus({ preventScroll: true }); } catch (e) {} } } closeBtn.onclick = closeOverlay; overlay.onclick = function (e) { if (e.target === overlay) { closeOverlay(); } }; document.addEventListener('keydown', function (e) { if (isOpen && e.key === 'Escape') { closeOverlay(); } }); /* Spiele werden aus dem Webspace nachgeladen */ var gameCache = {}, wanted = 0; window.THALGO_ADVENT_GAME = function (day, html) { gameCache[day] = html; if (wanted === day && isOpen) { showGame(day); } }; function showGame(day) { var f = el('iframe', 'display:block;width:100%;height:100%;border:0;background:#061827;margin:0;padding:0;', { title: 'THALGO ' + GAMES[day], allow: 'clipboard-write' }); f.srcdoc = gameCache[day]; media.replaceChildren(f); } function loadGame(day) { gameMode = true; wanted = day; content.style.display = 'none'; media.style.display = 'block'; media.style.height = '100%'; openOverlay(); if (gameCache[day]) { showGame(day); return; } media.replaceChildren(el('div', 'height:100%;display:flex;align-items:center;justify-content:center;color:#dff5f7;font-size:16px;font-family:inherit;', { text: 'Türchen ' + day + ' wird geladen …' })); var s = document.createElement('script'); s.src = BASE + 'tuerchen-' + pad(day) + '.js?v=' + VERSION; s.async = true; s.onerror = function () { if (wanted === day) { media.replaceChildren(el('div', 'height:100%;display:flex;align-items:center;justify-content:center;color:#fff;padding:24px;text-align:center;font-family:inherit;', { text: 'Das Türchen konnte gerade nicht geladen werden. Bitte versuche es gleich noch einmal.' })); } }; document.head.appendChild(s); } var P = 'margin:0 0 1em;padding:0;color:' + NAVY + ';font-family:inherit;max-width:none;'; function btnCss(primary) { return 'display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:44px;padding:12px 20px;border-radius:999px;font-weight:700;font-size:16px;line-height:1.2;cursor:pointer;text-decoration:none;font-family:inherit;' + (primary ? 'border:0;background:' + NAVY + ';color:#fff;' : 'border:2px solid ' + NAVY + ';background:#fff;color:' + NAVY + ';'); } function copyText(t) { if (navigator.clipboard && window.isSecureContext) { return navigator.clipboard.writeText(t).then(function () { return true; }, function () { return fallback(); }); } return Promise.resolve(fallback()); function fallback() { var ta = el('textarea', 'position:fixed;top:0;left:0;opacity:0;', { readonly: '' }); ta.value = t; box.appendChild(ta); ta.select(); var ok = false; try { ok = document.execCommand('copy'); } catch (e) {} ta.remove(); return ok; } } function openContent(d) { gameMode = false; media.style.display = 'none'; media.replaceChildren(); content.style.display = 'block'; var ph = window.innerWidth < 700; var kids = []; if (d.image) { var imCss = ph ? 'display:block;float:none;width:auto;max-width:100%;height:auto;max-height:min(210px,28vh);margin:0 auto 14px;border:0;padding:0;background:none;' : 'display:block;float:right;width:min(38%,230px);height:auto;margin:4px 0 14px 24px;border:0;padding:0;background:none;'; imCss += d.imagePhoto ? 'border-radius:18px;box-shadow:0 12px 26px rgba(6,45,85,.22);' : (d.imageDoc ? 'border-radius:6px;box-shadow:0 12px 26px rgba(6,45,85,.22);' : 'filter:drop-shadow(0 12px 16px rgba(6,45,85,.18));box-shadow:none;'); kids.push(el('img', imCss, { src: BASE + d.image, alt: d.imageAlt || '', width: '460', height: '460' })); } kids.push(el('div', 'text-transform:uppercase;letter-spacing:' + (ph ? '.14em' : '.18em') + ';font-size:' + (ph ? 11 : 12) + 'px;color:' + TEAL + ';font-weight:600;', { text: 'Türchen ' + d.day })); kids.push(el('h2', 'margin:.25em 0 .6em;padding:0;font-family:Georgia,serif;font-weight:400;font-size:' + (ph ? clamp(30, window.innerWidth * .1, 42) : clamp(30, window.innerWidth * .05, 48)) + 'px;line-height:1.08;color:' + NAVY + ';text-transform:none;letter-spacing:0;', { id: 'thalgo-advent-title', text: d.title })); kids.push(el('p', P + 'font-size:' + (ph ? 15 : 16) + 'px;line-height:' + (ph ? 1.55 : 1.65) + ';', { text: d.text })); if (d.steps) { kids.push(el('ol', 'margin:14px 0 0;padding:0 0 0 1.3em;line-height:1.6;color:' + NAVY + ';font-size:' + (ph ? 15 : 16) + 'px;list-style:decimal;', null, d.steps.map(function (s) { return el('li', 'margin:3px 0;padding:0;color:' + NAVY + ';', { text: s }); }))); } if (d.code) { var codeSpan = el('span', 'display:inline-block;box-sizing:border-box;padding:' + (ph ? '12px 10px' : '12px 22px') + ';border:2px dashed ' + TEAL + ';border-radius:14px;background:#eef6fa;color:' + NAVY + ';font-weight:800;font-size:' + (ph ? clamp(16, window.innerWidth * .05, 22) : clamp(22, window.innerWidth * .03, 28)) + 'px;line-height:1.2;letter-spacing:' + (ph ? '.08em' : '.14em') + ';white-space:nowrap;max-width:100%;overflow:hidden;-webkit-user-select:all;user-select:all;box-shadow:0 8px 22px rgba(6,45,85,.12);' + (ph ? 'width:100%;max-width:260px;text-align:center;' : ''), { text: d.code }); var copyBtn = el('button', btnCss(true) + 'padding:10px 16px;' + (ph ? 'width:100%;max-width:260px;' : ''), { type: 'button', text: 'Code kopieren' }); copyBtn.onclick = function () { copyText(d.code).then(function (ok) { copyBtn.textContent = ok ? 'Kopiert ✓' : 'Bitte manuell kopieren'; copyBtn.style.background = ok ? TEAL : NAVY; clearTimeout(copyBtn.t); copyBtn.t = setTimeout(function () { copyBtn.textContent = 'Code kopieren'; copyBtn.style.background = NAVY; }, 2200); }); }; kids.push(el('div', 'margin-top:16px;', null, [ el('div', 'font-size:12px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:' + TEAL + ';margin-bottom:10px;', { text: 'Dein Gutscheincode' }), el('div', 'display:flex;flex-wrap:wrap;gap:' + (ph ? '10px' : '12px') + ';align-items:' + (ph ? 'flex-start' : 'center') + ';flex-direction:' + (ph ? 'column' : 'row') + ';', null, [codeSpan, copyBtn]) ])); setTimeout(function () { var fs = parseFloat(codeSpan.style.fontSize); while (codeSpan.scrollWidth > codeSpan.clientWidth && fs > 12) { fs -= 1; codeSpan.style.fontSize = fs + 'px'; } }, 0); } if (d.download) { kids.push(el('div', 'margin-top:18px;', null, [el('a', btnCss(true) + (ph ? 'width:100%;max-width:260px;' : ''), { href: BASE + d.download.file, target: '_blank', rel: 'noopener', download: '', text: d.download.label + ' ↓' })])); } if (d.cta) { kids.push(el('div', 'margin-top:18px;', null, [el('a', btnCss(false) + (ph ? 'width:100%;max-width:260px;' : ''), { href: d.url, target: '_blank', rel: 'noopener', text: d.cta + ' →' })])); } if (d.legal) { kids.push(el('p', 'margin:18px 0 0;padding:0;font-size:12px;line-height:1.5;color:' + NAVY + ';opacity:.65;font-family:inherit;max-width:none;', { text: d.legal })); } if (d.recipes) { var card = function (t, sub, file) { return el('div', 'border:1px solid #c8dce7;border-radius:18px;padding:18px;background:#f7fbfd;box-sizing:border-box;', null, [ el('h3', 'margin:0 0 8px;padding:0;font-family:Georgia,serif;font-size:22px;font-weight:500;line-height:1.2;color:' + NAVY + ';text-transform:none;', { text: t }), el('p', P + 'margin:0 0 14px;font-size:14px;line-height:1.5;', { text: sub }), el('a', btnCss(true) + 'width:100%;', { href: BASE + file, target: '_blank', rel: 'noopener', download: '', text: 'Rezept herunterladen' }) ]); }; kids.push(el('div', 'display:grid;grid-template-columns:' + (ph ? '1fr' : 'repeat(2,minmax(0,1fr))') + ';gap:14px;margin-top:24px;', null, [ card('Sablés Bretons', 'Französische Butterplätzchen als Rezept zum Herunterladen.', 'rezept-sables-bretons.pdf'), card('Beauty-Collagène-Kakao', 'Wärmender Genussmoment als Rezept zum Herunterladen.', 'rezept-beauty-collagene-kakao.pdf') ])); } if (d.inlineForm) { kids.push(mailForm()); } kids.push(el('div', 'clear:both;')); content.replaceChildren.apply(content, kids); openOverlay(); } function mailForm() { var IN = 'display:block;width:100%;box-sizing:border-box;padding:14px;margin:7px 0;border:1px solid #b8d5da;border-radius:12px;font-size:16px;font-family:inherit;color:' + NAVY + ';background:#fff;height:auto;box-shadow:none;'; var email = el('input', IN, { type: 'email', placeholder: 'E-Mail-Adresse deiner Herzensperson', 'aria-label': 'E-Mail-Adresse deiner Herzensperson' }); var name = el('input', IN, { type: 'text', placeholder: 'Dein Name', 'aria-label': 'Dein Name' }); var msg = el('textarea', IN + 'resize:vertical;', { rows: '5', placeholder: 'Deine persönliche Weihnachtsnachricht', 'aria-label': 'Deine persönliche Weihnachtsnachricht' }); var go = el('button', btnCss(true) + 'margin-top:10px;', { type: 'button', text: 'E-Mail mit Gutscheincode erstellen' }); go.onclick = function () { var e = email.value.trim(), s = name.value.trim(), m = msg.value.trim(); if (!e || !s || !m) { showToast('Bitte fülle alle Felder aus 💌'); return; } var body = 'Hallo,\n\n' + m + '\n\nAls kleine Überraschung erhältst du einen exklusiven THALGO Gutscheincode:\n\nFUERMICH10\n\nDu kannst deinen Gutscheincode ganz einfach an der Kasse auf www.thalgo.de einlösen.\n\nLiebe Grüße\n' + s; window.location.href = 'mailto:' + encodeURIComponent(e) + '?subject=' + encodeURIComponent('❄️ Eine schöne Weihnachtszeit ❄️') + '\u0026body=' + encodeURIComponent(body); }; return el('div', 'margin-top:18px;', null, [email, name, msg, go, el('p', P + 'margin:10px 0 0;font-size:13px;opacity:.7;', { text: 'Hinweis: Die E-Mail öffnet sich in deinem E-Mail-Programm. Dort musst du nur noch auf „Senden“ klicken.' })]); } function openDoor(day, b) { if (!available(day)) { showToast('Dieses Türchen kann erst am ' + day + '. Dezember geöffnet werden.'); return; } if (!isOpened(day)) { opened.push(day); try { localStorage.setItem(STORE, JSON.stringify(opened)); } catch (e) {} } var d = doorEls[DOOR_ORDER.indexOf(day)]; if (d) { d.check.style.display = 'flex'; } if (GAMES[day]) { loadGame(day); return; } var data = DOORS.filter(function (x) { return x.day === day; })[0]; if (data) { openContent(data); } } var rt = 0; window.addEventListener('resize', function () { clearTimeout(rt); rt = setTimeout(function () { layout(); if (isOpen) { sizeBox(); } }, 80); }); renderDoors(); if (TEST) { showToast('Testmodus: alle 24 Türchen sind freigeschaltet.'); } })();
    • Offizieller Herstellershop
      direkt & sicher einkaufen
    • Gratisproben bei jeder Bestellung
    • Kostenloser Versand
      innerhalb Deutschlands**
    • Sichere Zahlungsarten