First things first. Your intuition is right, check the relays. According to the Bentley service manual, fuse #1 controls the power sunroof, as well as fuse #13. To find the first fuse -- notice that there are two horizontal rows of ten fuses (there are also a vertical set of sixteen to the immediate left). Pay attention to the top row of ten and pull out the fuse furthest to the left -- that is the first fuse, the one associated to the power sunroof. According to the manual, you should have a 30 amp fuse in your hand. The second fuse related to the sunroof is a 5 amp and is located amongst the horizontal row of ten below. Count three over from the left and you should have the #13 fuse. Ascertain whether both fuses are still intact and replace accordingly. As far as the windows go, see fuse #19 and #24.