You need to remove the sunroof lid.
Open the roof a few inches.
Carefully pop the liner off at the front edge and allow it to slide back into its cavity.
Close the roof and put it to full tilt position.
Examine the sides of the mech now exposed and you will see three torx-headed screws on each side.
Remove these and lift the panel off.
Seals are available as a one piece and a two piece(front and back)The one piece is far less painfull to buy than the two piece.
Fitting is a simple remove the old and press the new on.
Re-assembly to the car is a Mr Haynes reversal of the above.....
Except
1.The 6 mounting screws allow adjustment of the lid,level at the front and a touch low at the back.
2.When offering up the liner to it's fixing,lift the back of it slightly so that it engages on the tilt levers and allows the liner fully forward.
Job should take an hour or so,enjoy.
Youth is wasted on the young.