By law, pregnant women may not be dismissed during their entire pregnancy and up to four months after the birth of their child (Section 9 of the Maternity Protection Act). This protection against dismissal also applies during the probationary period.
If the employer was not informed of the pregnancy and therefore terminates your employment, you can counter this termination by informing them of your pregnancy within a period of two weeks. If you only find out about your pregnancy after this period has expired, you can still notify the employer immediately after becoming aware of it. In this respect, there is an extended deadline.