@LorisGross
The seats are distributed to political parties based on their strength in the constituency in the initial allocation - Grossratswahlen 2021. The parties' seats in the constituency are divided to the sub-constituencies in the second distribution (districts).
https://grossratswahlen2021.ch/