Horst Seehofer, German Interior Minister and Chairman of the Christian Social Union, CSU, gives a statement in the state parliament in Munich, Germany, Sunday, Oct. 14, 2018, after his party lost in he Bavarian state election. (Kerstin Joensson/Associated Press)

BERLIN — German Chancellor Angela Merkel’s conservative allies lost their absolute majority in Bavaria’s state parliament by a wide margin in a regional election Sunday, a result that could cause more turbulence within the national government.

The Christian Social Union was on course to take around 37 percent of the vote, down from 47.7 percent five years ago, projections for ARD and ZDF public television indicated. The projections were based on exit polls and a partial vote.

If they are confirmed in the final count, it would be the party’s worst performance in Bavaria, which it has traditionally dominated, since 1950. Constant squabbling in Merkel’s national government and a power struggle at home have weighed on the CSU, which is traditionally a touch more right-wing than the chancellor’s party and has taken a hard line on migration.

There were gains for parties to its left and right. The Greens were expected to win up to 18 percent to secure second place, more than double their support in 2013. And the far-right Alternative for Germany, or AfD, was set to enter the state legislature with around 11 percent of the vote.

The center-left Social Democrats, Merkel’s other coalition partner in Berlin, were on course for a disastrous fifth-place result of 10 percent or less, half of what the party received in 2013 and its worst in the state since World War II.

The CSU has governed Bavaria, the prosperous southeastern state that is home to some 13 million of Germany’s 82 million people, for more than six decades.

Needing coalition partners to govern is itself a major setback for the party, which only exists in Bavaria and held an absolute majority in the state parliament for all but five of the past 56 years.

“Of course this isn’t an easy day for the CSU,” the state’s governor, Markus Soeder, told supporters in Munich, adding that the party accepted the “painful” result “with humility.”

Pointing to goings-on in Berlin, Soeder said “it’s not so easy to uncouple yourself from the national trend completely.”

But he stressed that the CSU still emerged as the state’s strongest party with a mandate to form the next Bavarian government.

He said his preference was for a center-right coalition — which would see the CSU partner with the Free Voters, a local conservative party that was seen winning some 11.5 percent. A pro-business party, the Free Democrats, may or may not secure the 5 percent of the vote needed to hold seats in the state parliament.

The Greens, traditionally bitter opponents of the CSU, with a more liberal approach to migration and an emphasis on environmental issues, are another possible partner.

The CSU has long leveraged its strength at the state level to punch above its weight in national politics. In Berlin, the party is one of three in Merkel’s federal coalition government along with its conservative sister, Merkel’s Christian Democratic Union, and the Social Democrats.

That government has been notable largely for internal squabbling since it took office in March. The CSU leader, Interior Minister Horst Seehofer, has often played a starring role.

Back in Bavaria, a long-running CSU power struggle saw the 69-year-old Seehofer give up his job as state governor earlier this year to Soeder, a younger and sometimes bitter rival.

Seehofer has sparred with Merkel about migration on and off since 2015, when he assailed her decision to leave Germany’s borders open as refugees and others crossed the Balkans.

They argued in June over whether to turn back small numbers of asylum-seekers at the German-Austrian border, briefly threatening to bring down the national government.

The interior minister also starred in a coalition crisis last month over Germany’s domestic intelligence chief, who was accused of downplaying recent far-right violence against migrants.

Seehofer has faced widespread speculation lately that a poor Bavarian result would cost him his job. He told ZDF television his party’s election performance had causes in both Berlin and Munich.

“Of course, I as party leader bear a share of responsibility for this result,” Seehofer said, adding that he was prepared to discuss consequences for Sunday’s outcome, but not immediately.

It remains to be seen whether and how the Bavarian result will affect the national government’s stability or Merkel’s long-term future.

Any aftershocks may be delayed, because another state election is coming Oct. 28 in neighboring Hesse, where conservative Volker Bouffier is defending the 19-year hold of Merkel’s CDU on the governor’s office. Bouffier has criticized the CSU for diminishing people’s trust in Germany’s conservatives.

The CDU’s general secretary, Annegret Kramp-Karrenbauer, said the party must show “discipline” and focus on Hesse. She acknowledged that the national government’s woes have been unhelpful.

“It is totally undisputed that the way we have treated each other in the coalition, and also the way we argued with each other in the summer, was anything but inspiring for the state election in Bavaria,” she said.

Copyright 2018 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.