Hi Junus,
complementary to FvM`s reply I like to remind you on the phase margin definition:
The phase margin applies to the loop gain of a system with feedback (remember: loop gain is the gain of the open loop).
Thus, it depends on the feedback factor and is worst for maximum feedback of 100% (as in your case).
Here we have a feedback factor of "1" which means: Loop gain identical to the opamp´s open loop gain Ao.
Thus, only the first graph of your attachement gives the correct phase margin (for the worst case, which is buffer operation).
The 2nd graph gives gain and phase of the closed-loop system.
It looks interesting - but does not tell you something about the margin (just a rough estimate as indicated by gain peaking).