German politicians have achieved a breakthrough in talks aimed at forming a new coalition government.
A blueprint for formal negotiations was agreed between Chancellor Angela Merkel's Christian Democrats (CDU) and their former coalition partners, the Social Democrats (SPD).
Politicians stayed up all night to discuss the 28-page document, with the talks lasting more than 24 hours.
But they managed to reach agreement on key sticking points such as migration.
They plan to limit asylum-seeker arrivals to about 200,000 annually. The blueprint also speaks of capping at 1,000 a month the number of migrants who will be allowed to join their family living in Germany.
Stress on 'social cohesion'
Mrs Merkel and SPD leader Martin Schulz told a news conference they were optimistic that a new "grand coalition" could be formed.
They spoke of a "fresh start" for Germany, and Mr Schulz said that in Europe "we are determined to deploy Germany's strength". They signalled that a stronger alliance with France in the EU would be a priority.
Both stressed the need to ensure Germany's "social cohesion".