Foreigners can apply for Ausbildung in Germany from abroad by...

How to Stay in Germany After Losing Your Job
Staying in Germany after losing your job is possible—but only if you act fast and follow the correct steps. Notify immigration, keep health insurance, and switch to a valid status like a job seeker, student, freelance, or family visa. Permanent residents can stay without changes.