In case you got stranded in the old city it is very easy for you to get back to the youth hostel/campus.
You just take line 31 from the stop „Universitätsplatz“ (picture below). It will take you directly back to campus. You get off at the stop „Jugendherberge“(youth hostel). The bus leaves every 10 minutes.