Here's a (simplified) diagram of how it works, for anyone who's interested: https://www.edudoc.ch/static/web/bildungssystem/grafik_bildu...