* Centre-left SPD and Greens win by single seat
* Merkel's CDU loses ground but FDP allies defy doomsayers
* Swing state was testing ground for Merkel's 3rd term bid
By Erik Kirschbaum
HANOVER, Jan 20 (Reuters) - Germany's centre-left opposition edged Chancellor Angela Merkel's conservatives from power in a regional vote in Lower Saxony on Sunday, reviving its flagging hopes of defeating her in September's national election.
The Social Democrats (SPD) and Greens won by a single seat after a close race for power in Germany's fourth most populous state. Merkel's Christian Democrats (CDU) lost ground but their Free Democrat (FDP) allies defied forecasts that they would be ejected from the state assembly in Hanover.
"A one-vote majority can be very stable," said Stephan Weil, Hanover mayor and SPD state premier candidate after a nail-biting six-hour wait for results that were long too close to call.
The outcome will be a setback for Merkel, but the 58-year-old Chancellor still enjoys high personal popularity for her leadership role in the euro crisis where she defended Germany's economic interests. She might also cite the success of the FDP as a good omen for September polls she hopes will return her centre-right coalition.
The SPD had been dreading the results, their own candidate for chancellor, Peer Steinbrueck, struggling to rally support after a series of gaffes.
Steinbrueck acknowledged "shared responsibility" for a patchy campaign in Lower Saxony, a major agricultural and industrial centre, but said the result proved that the SPD was clearly still in the race for September.
"This means a change of government and of power are possible this year," said Steinbrueck.
SPD chairman Sigmar Gabriel - a former state premier of Lower Saxony himself - said with a smile: "If we get a result like this when we mess up, we can do anything."
The SPD and Greens won 46.3 percent against 45.9 percent for the CDU and their Free Democrat partners - who easily cleared the five percent hurdle to enter the assembly with a vote of 9.9 percent - twice what had been expected.
The CDU remained the biggest party in the swing state but suffered their 13th local election setback in a row - and lost their fifth state government to the SPD since 2009.
The result was an anti-climax for David McAllister, the half-Scottish state premier who has been spoken about as a potential successor to Merkel when the opinion polls were still predicting a win for the CDU.
His colourful campaign - complete with bagpipes and seven personal appearances from Merkel - was not enough to stop the CDU dropping six percentage points from the last election in a state where its standing was damaged by the previous premier.
Christian Wulff was hand-picked as German head of state by Merkel but resigned last year in disgrace over his personal finances. The popular 42-year-old McAllister undid some of the damage - and may yet keep his status as Merkel's favourite.
But the surprise of the contest was the FDP. Mirroring its decline on the federal stage, it had been thought the FDP would be lucky to keep a seat in the state assembly in Hanover.
Its tendency to prove the pollsters wrong in state votes may give Merkel hope for the September elections, when she wants to renew the centre-right coalition rather than seek a 'grand coalition' with the SPD, as she did in 2005-2009.
FDP leader and economy minister Philipp Roesler will have won a reprieve from calls for him to step down.
But the unspoken strategy in the Lower Saxony vote of quietly encouraging CDU voters to split their ballot - one for their own constituency candidate and one for the party - to save the FDP's hide appeared to have backfired for Merkel's party.
"What is astonishing is that it looks like the CDU had a hidden campaign to get voters to use their second vote for the FDP so they could hold on to power," said politics professor Gero Neugebauer at Berlin's Free University.
"Yet the FDP didn't pick up all the votes lost to the CDU. As a whole the centre-right bloc lost support in Lower Saxony."
The cliffhanger contest turned Germany's fourth most populous state, which is the size of the Netherlands and stretches from the Dutch border to the former East Germany, into an election battleground watched by the whole country.
Wolfgang Rausch, 56, a master craftsman, split his ballot between the CDU and FDP - the first for his CDU constituency candidate, the second for the liberal party.
"The CDU and FDP are better for Lower Saxony," he said.
The CDU's plight has stood in stark contrast to Merkel's own high approval ratings, .
The euro crisis did not play much of a role in the vote, with local issues like education, infrastructure and state spending dominating Germany's industrial and farming heartland.
"The CDU is doing a good job," said Peter Pietschmann, 68, a retired lathe operator, outside a polling station in the snow-covered state capital, Hanover. "Merkel's leading the country well, better than the SPD could."