The equations of motion for a classical field $\phi$ can be obtained using the Lagrange:
$$ \frac{\partial \mathcal{L}}{\partial \phi} - \partial_\mu \bigg ( \frac{\partial \mathcal{L}}{\partial(\partial_\mu \phi)} \bigg )=0 \tag{1}$$
A simple Lagrangian: $$ \mathcal{L} = \frac{1}{2} \partial_\mu \phi \partial^\mu \phi $$
Has the following equations of motion: $$ \partial_\mu \bigg (\frac{\partial \mathcal{L}}{\partial(\partial_\mu \phi)} \bigg ) = 0$$
My confusion is at the moment of calculating: $\frac{\partial \mathcal{L}}{\partial(\partial_\mu \phi)}$, I would think that since we are taking a partial derivative, the result would be: $$ \frac{\partial \mathcal{L}}{\partial(\partial_\mu \phi)} = \frac{\partial }{\partial(\partial_\mu \phi)} \frac{1}{2} \partial_\mu \phi \partial^\mu \phi =\frac{1}{2} \partial^\mu \phi$$
But I know it is $\partial^\mu \phi$. I understand this is a notation confusion, but what is an intuitive way to understand the correct process to take the partial derivative?