VIENNA — Left-leaning Alexander Van der Bellen and his message of moderation and tolerance prevailed in Austria’s presidential election Sunday, with preliminary results showing him with an unbeatable margin over right-wing rival Norbert Hofer. Austria’s president has mostly symbolic duties. But with Sunday’s election coming after Donald Trump’s win in the United States and the Brexit vote in Britain, the vote was being watched across Europe as an indication of how well right-wing euroskeptic figures would do next year in elections in other EU nations. The result was greeted with relief and congratulations by mainstream politicians in Austria and neighboring Germany. Vice Chancellor Sigmar Gabriel, who heads Germany’s center-left Social Democrats, told the Bild newspaper that “a load has been taken off the mind of all of Europe.” He called the result “a clear victory for good sense against right-wing populism.” Austrian Chancellor Christian Kern said Van der Bellen “will represent Austria domestically and abroad in an excellent manner” — alluding to fears by establishment politicians in Austria that a victory by Hofer, whose anti-immigrant Freedom Party is critical of the European Union, would hurt Austria’s image. Van der Bellen is pro-European Union and represents liberal to left-of-center views. Martin Schulz, the president of the European Parliament called Van der Bellen’s victory a defeat for “anti-European, backward-looking populism.” Right-wingers allied with Hofer, meanwhile, praised the losing candidate for a strong electoral fight despite his defeat. With nearly all results counted, Van der Bellen had 53.3 percent of the vote to Hofer’s 46.7 percent.