// source --> https://www.sdm-gutzmann.de/wp-content/plugins/divi-switch/includes/output/script.js?ver=1772409533 
jQuery(document).ready(function($){        $unformattednum = $('#et-info-phone').text();
        $formattednum = $unformattednum.replace(/-|\s/g,"");
        $("#et-info-phone").wrapInner("<a href=tel:" + $formattednum + "></a>");
                var menuItem = $('#top-menu > li > a');
        var menuItemBottomPadding = menuItem.innerHeight() - menuItem.height();
        var menuItemBorderHeight = 1
        var menuItemOffset = (menuItemBottomPadding * 65) / 100;
        var menuItemBottomValue = Math.abs(menuItemBottomPadding - menuItemOffset + menuItemBorderHeight);

        
            var menuItemBottomValue = Math.abs(menuItem.height() + menuItemBorderHeight);
            var menuItemHorizontalPosition = (menuItemBorderHeight + menuItemBorderHeight + 20);

            var css = "#top-menu > li:not(.menu-item-has-children) > a:hover:before { top: " + ( - menuItemBottomValue ) + "px; left: " + ( - menuItemHorizontalPosition ) + "px;  }";
            css += "#top-menu > li:not(.menu-item-has-children) > a:hover:after { bottom: " + ( menuItemBottomPadding - menuItemBottomValue ) + "px;  right: " + ( - menuItemHorizontalPosition ) + "px; }";

            
                css += "#top-menu >  li:not(.menu-item-has-children).current-menu-item > a:before { top: " + ( - menuItemBottomValue ) + "px; left: " + ( - menuItemHorizontalPosition ) + "px; }";
                css += "#top-menu > li:not(.menu-item-has-children).current-menu-item > a:after { bottom: " + ( menuItemBottomPadding - menuItemBottomValue ) + "px; right: " + ( - menuItemHorizontalPosition ) + "px; }";

            
        
        function ds_divi_switch_add_css(css) {
            var $style = jQuery('#ds-divi-switch-js-css');
            if (!$style.length) {
                $style = jQuery('<style id="ds-divi-switch-js-css">').appendTo('head');
            }
            $style.append(css);
        }

        if(typeof css !== 'undefined') {
            ds_divi_switch_add_css(css);
        }
        });