“From protoplanetary disks through planetary system architecture to planetary atmospheres and habitability”