@james2333 You can do all that. There is also an option of bildungskarenz after your PhD.
My austrian university generously contributed to second pension pillar as well.
For me the salary was great and I managed to continously save about 1/4 of it, while occasionaly eating out, going for drinks...