Hi @Gadban,
the German embassy in Budapest published a leaflet about how to proceed if Hungarian authorities kept your ID. You can find it here:
****://***.budapest.diplo.de/contentblob/4775292/Daten/6422244/MB_Wiedererlangung_Personaldokumente.pdf
They recommend to get in contact with the Hungarian embassy here in Germany and tell them about your case. The embassy will inquire where your documents are and if they find out, they will be send to them. You have to go to the embassy in person and pick them up.
Here you find contact information of the Hungarian embassy in Berlin:
Botschaft der Republik Ungarn in Berlin
Unter den Linden 74-76
10117 Berlin
phone: +49 (0)30-203 10-0
FAX: +49 (0)30-229 13 14
mail: infober@kum.hu
website: ***.mfa.gov.hu/emb/berlin
opening hours: Mo. - Fr. 09.00 - 12.00
I hope this answer was helpful to you. If anything remained unclear, feel free to ask :)
Best regards,
Thorgen