I tried recreating something like this:
The head can move on the x and y axis.
The model itself is done, but I just want to move the head in both directions and have the "arm" move along automatically, and I would like to have them constrained. I didn't find a tutorial that explains this. I never really worked with bones and constraints.