Everyone is entitled to two semesters of leave. During the duration of the semester of leave, the number of semesters is frozen, which can be decisive for BAföG, for example. You cannot register for exams during the leave of absence. Repeat examinations can still be taken, however. You can find more information on the university website.