Only for removing luggage compartment lid lock (trunk lid lock upper part):
Remove tailgate trim panel, refer to 51 49 008 REMOVING AND INSTALLING (ENTIRE) TAILGATE TRIM (Z3 COUPE, M COUPE)
Lift out actuating rod (1).
Unfasten screws (2).
Push luggage compartment lid lock (3) into tailgate and to right.