Was just talking about the Swiss goal with a friend, that it was offside. He noticed that none of the spaniards were actually protesting the offside. When you review the whole situation there's Casillas who absolutely torpedoes Derdiyok, then Pique handles the ball and finally Fernandes shoves it in.
The ref either didn't see everything or decided to take the path of least resistance and just gave the Swiss a goal.
But imagine that the one Spaniard on the goalline (i think it was 11, Silva?) handled the ball to prevent the goal. That would create the following situation:
Casillas torpedoes a man and takes away a goal scoring opportunity (red card), advantage to the attacking side, Pique handles the ball somewhat unintentionally (yellow), but still advantage, then a Spaniard performs some unregulatory goalkeeping (red and penal)
Now imagine a ref doing it by the book, rofl.