thank you for sharing your question with the Wefugee Community!
You want to travel to Germany by plane (but you booked a transit flight) and then apply for asylum at the airport? Did I understand that correctly? Are you still living in Syria?
If you use one of the German airports to change planes, citizens of some countries must present a Airport transit visa, also known as an A visa. The visa allows the holder to stay at the airport for a maximum of 12 hours. But you are not allowed to leave the airport. Syrians usually need such a visa. But whether you need a visa depends on several factors.
It makes sense to inquire at the German visa application center, the German embassy or the German consulate in your country of residence to get more information.
You can read about the airport asylum using the following link.
Unfortunately I am not a professional regarding your question. If someone has more information or would like to correct it, it would be helpful.
I hope my answers were helpful and I would be very happy if you would contact me again with further questions. I'm a consultant with mbeon and I‘ll be glad to help you over a longer period of time. Mbeon is an online advice for migrants via the mbeon app, which you can install on your smartphone for free. Download it from App Store or Google Play Store. You can find me in the mbeon app and get confidential individual advice in a secure virtual space without other people reading our conversation. Further information: www.mbeon.de.