Updated

German Chancellor Angela Merkel and Hungarian Prime Minister Viktor Orban exchanged barbs Thursday on the issue of migration, underlining the split within the entire European Union over how to deal with people seeking refuge or a better life on the continent.

Speaking at a joint news conference after their meeting in Berlin, Merkel said despite recent moves by EU nations to clamp down on asylum-seekers moving across Europe's open borders, she want to ensure they are treated with "humanity" and the continent isn't turned into "fortress" Europe.

"The problem I see, and where (our) difference lies, is that we must always remember and never forget that this is about human beings," Merkel told reporters.

"Europe can't detach itself from hardship and suffering," she said, adding that illegal migration can only be stopped if there are legal avenues by which people can come to the continent to work and study.

Merkel described Hungary's stance as "a problem" during the testy 27-minute news conference that saw the leaders repeatedly rebut each other's comments.

"Germany and Hungary see the world differently," said Orban, one of the strongest critics of Merkel's migration policy since 2015, when thousands poured into Europe every day.

While he expressed a willingness to talk, Orban said his position hadn't changed over the past three years.

"We only know one solution: close the borders," he said, adding that if Europe offers support to refugees, it will be taken as an invitation.

"If people can come, they will come," he said.

He noted that that Hungary has deployed 8,000 police and soldiers to prevent migrants from entering the bloc through its southern border.

"We think it's unfair that Germany often accuses us of a lack of solidarity," Orban said.

Even though the number of migrants entering Europe this year is down sharply from the last few years, the issue of migration has strained Merkel's governing coalition and divided the 28-nation EU in general. In the last month Italy and Malta have refused to take in migrants rescued at sea by aid groups, and Merkel has had to agree with her conservative allies to turn back asylum-seekers who've registered in another of the bloc's nations.

Orban made clear that he believes asylum-seekers who register in Hungary must have come through Greece or Bulgaria first, and his country therefore won't feel obliged to take them if they are turned back by Germany.

Migrants are supposed to be returned to where they first entered the EU and applied for asylum, but those regulations have been largely unenforced.

German Interior Minister Horst Seehofer, who has pushed Merkel to take a harder line against migrants, said a new plan to establish migrant detention centers envisions sending people directly back to where they first entered the EU — primarily Greece and Italy.

Speaking after talks with Austrian Chancellor Sebastian Kurz in Vienna, Seehofer said he expects "very difficult talks" with Italy and Greece on the issue.

The interior ministers of Austria, Germany and Italy will talk in Innsbruck next week about the issue, Kurz said.

___

David Rising in Berlin and Pablo Gorondi in Budapest contributed to this report.