Mexico stun Germany as Brazil are held