Dear @Mitchell12,
Welcome to the Wefugees Community and thank you for your question.
First of all, congratulations and all the best for you and your baby!
As I am not too familiar with regulations and procedures of the "Ausbildung" (vocational training), I tried to make some research and found this helpful article (in German though). Here, they are recommending to discuss your indiviudal situation as soon as possible with your "Ausbilder/in" (the person responsible for you during your training years). Depending on your overall performance, you may be able to write your final exams earlier, for instance. This would need to be requested at the respective "Kammer", the assessing institution. In sum, there are different options and I am sure that you will find your individual and most suitable way together with your employer and trainers.
I also would like to recommend you to get in contact with a pregnancy counselling office, as they can support and advise you regarding any kind of questions and issues. Please let us know if we can help you to find a respective office close-by.
I hope this helps and don't hesitate to get back to us as well.
Regards,
Meike