There are two types of health insurance: statutory (GKV) and private (PKV).
In most cases, your mandatory health insurance coverage ends with the semester in which you turn 30. However, it may continue if certain circumstances justify exceeding the age limit, such as the type of education or training, family or personal reasons, completing qualifications at a second-chance education institution, or an extended period of specialized study.
If you’re working alongside your studies or completing an internship, be sure to check in with your health insurance provider ahead of time and discuss any specific details with your employer if needed.
You can find more information about student health insurance here.