Kostenloser Content

Unsere Wissens-Datenbank
für Steuerberater

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

document.addEventListener("DOMContentLoaded", function() { if ( localStorage.getItem("webinarBannerClosed") === "true" || window.location.pathname.includes("/karriere") ) { return; } const banner = document.createElement("div"); banner.id = "webinar-banner"; banner.innerHTML = ` `; banner.style.cursor = "pointer"; banner.addEventListener("click", function() { window.open("https://newgenag.webinargeek.com/mehr-klarheit-weniger-diskussion-der-entspannte-weg-zu-ueber-20-hoeheren-honoraren-in-deiner-steuerkanzlei?cst=banner", "_blank"); }); document.body.insertAdjacentElement('afterbegin', banner); Object.assign(banner.style, { position: "fixed", top: "0", left: "0", width: "100%", backgroundColor: "#454CE7", color: "white", zIndex: "1000", cursor: "pointer", display: "flex", justifyContent: "center", padding: "12px 20px", boxSizing: "border-box" }); const bannerContent = banner.querySelector(".banner-content"); Object.assign(bannerContent.style, { display: "flex", justifyContent: "center", alignItems: "center", maxWidth: "1500px", margin: "0 auto", textAlign: "center", gap: "20px", flex: "1" }); const paragraph = banner.querySelector("p"); Object.assign(paragraph.style, { margin: "0", padding: "0" }); const button = banner.querySelector(".banner-button"); Object.assign(button.style, { backgroundColor: "white", color: "#454CE7", border: "none", borderRadius: "4px", padding: "8px 16px", cursor: "pointer", transition: "background-color 0.2s, transform 0.1s", whiteSpace: "nowrap" }); const closeButton = banner.querySelector(".close-button"); Object.assign(closeButton.style, { backgroundColor: "transparent", color: "white", border: "none", fontSize: "24px", cursor: "pointer", padding: "0", width: "30px", height: "30px", display: "flex", alignItems: "center", justifyContent: "center", marginLeft: "10px" }); button.addEventListener("mouseover", function() { this.style.backgroundColor = "#f0f0f0"; }); button.addEventListener("mouseout", function() { this.style.backgroundColor = "white"; }); button.addEventListener("mousedown", function() { this.style.transform = "scale(0.98)"; }); button.addEventListener("mouseup", function() { this.style.transform = "scale(1)"; }); button.addEventListener("click", function(e) { e.stopPropagation(); window.open("https://newgenag.webinargeek.com/mehr-klarheit-weniger-diskussion-der-entspannte-weg-zu-ueber-20-hoeheren-honoraren-in-deiner-steuerkanzlei?cst=banner", "_blank"); }); closeButton.addEventListener("click", function(e) { e.stopPropagation(); banner.style.display = "none"; localStorage.setItem("webinarBannerClosed", "true"); const navbar = document.querySelector(".navbar12_component.w-nav"); if (navbar) navbar.style.marginTop = "0"; const mainWrapper = document.querySelector("main.main-wrapper"); if (mainWrapper) mainWrapper.style.paddingTop = "4.5rem"; }); const styleElement = document.createElement("style"); styleElement.textContent = ` @media (max-width: 768px) { #webinar-banner .banner-content { flex-direction: column; gap: 10px; } #webinar-banner p { margin-bottom: 8px; } } `; document.head.appendChild(styleElement); function updateLayout() { const bannerHeight = banner.offsetHeight; const layoutStyle = document.createElement("style"); layoutStyle.id = "banner-layout-adjustments"; layoutStyle.textContent = ` .navbar12_component.w-nav { margin-top: ${bannerHeight}px; } main.main-wrapper { padding-top: calc(4.5rem + ${bannerHeight}px); } `; const existingStyle = document.getElementById("banner-layout-adjustments"); if (existingStyle) { existingStyle.remove(); } document.head.appendChild(layoutStyle); } updateLayout(); window.addEventListener("resize", updateLayout); window.addEventListener("load", updateLayout); });