The state court in Schleswig ruled on Thursday that there was no reason to believe Catalonia's former leader Carles Puigdemont risked persecution in Spain. It set bail at €75,000 ($92,000) pending a decision on his possible extradition to Spain.

In a heavy blow to the Spanish government, the court in northern Germany ruled that the main charge of rebellion against Puigdemont could not be used as grounds for extradition, since the comparable German charge of treason specifies violence. The court will therefore consider his extradition on the basis of the lesser charge of misuse of public funds.

Read more: Who is former Catalan President Carles Puigdemont?

Puigdemont can leave prison as soon as he posts the bail, a court spokeswoman said on Thursday.

A tweet posted from Puigdemont's account late Thursday read: "See you tomorrow. Thank you very much to everybody!"

The former Catalan separatist leader was detained in Germany last month on an international arrest warrant issued by Spain when he was driving back from Finland through Denmark on his way to Belgium.

He had been living there after being charged by Spanish authorities with rebellion and misuse of public funds in last year's Catalan independence referendum, which the Spanish central government deems to have been illegal.

Puigdemont's defense team welcomes court decision

The former Catalan leader's German defense team welcomed the court's decision to dismiss the Spanish government's "outrageous" rebellion charge, adding that the case had a "trend-setting significance for the European understanding of democracy."

Puigdemont's Barcelona-based lawyer Jaime Alonso-Cuevillas tweeted: "[Puigdemont] always said that he had full confidence in the German judiciary."

Read more: Opinion: Carles Puigdemont belongs in Spanish court

Spanish Justice Minister Rafael Catala said Madrid "respected" the German court's decision to rule out the rebellion charge from the extradition request, but conceded that "some judicial decisions please us; others less so."

Catala added that the government would wait and see whether the German prosecution would launch an appeal.

Read more: Catalan independence - What you need to know

"Little 'risk of flight'

The Schleswig court considered him to be less of a flight risk because he is being considered for the corruption, not rebellion, charges. "There is a risk of flight," the court said in its explanation. "But since extradition on rebellion charges is impermissible, the risk of flight is substantially lessened."

In addition to the payment, the terms of Puigdemont's bail are that he may not leave Germany; he has to advise if he changes address; he has to report to the court once a week and must obey orders from the Higher Regional Court.

dm, jm/ng (dpa, Reuters, EFE)

Each evening at 1830 UTC, DW's editors send out a selection of the day's hard news and quality feature journalism. You can sign up to receive it directly here.