After your lawful residence in the Netherlands has terminated you have 28 days (4 weeks) to leave the Netherlands. This means that, if your residence permit expires on DD of MM, you must leave the Netherlands within 28 days after the expiration date. Please be aware of the fact that during those 28 days you no longer have lawful stay in the Netherlands and therefore you could be detained by the police.
由此可见,从德国转机走是有相当的风险的。