This also differs based on state within Germany.
In Berlin for example the Grundschule is 6 years and then you go to either Gymnasium or Sekundarschule[1] for another 6, which offers either university-bound education or vocational education but generally everyone attending that wants to and is academically capable can get a highschool diploma out of it, allowing them to go to uni.
The german system works like this:
The frist 4 years of education you'll got to Grundschule where you learn the basics.
Then you'll get sorted in the 3 different "high school" types.
- Hauptschule
- Realschule - Gymnasium But after you complete Hauptschule or Realschule you can go do an apprenticeship or add on some more school years to get the better school diploma.Appranticeships can be in trades, manufacturing, IT or office jobs. There is also Duales Studium where you go to collage but also work half time at a company.
As an example take my school journy: I was sorted into the Hauptschule.
After I completet that school, I added 2 more years school time so i get a Realschul depolma, as a bonus the school I went to also touth me the frist year of electricians apprenticeship.
After that I got a apprianticeship to become a software developer which took me 3 years to complete.
edit: formating and last paragraph