I try to find a context free grammar for the language $L = \{u\#v \mid u,v \in \{a,b\}^* , \vert u \vert_a \neq \vert v \vert_a \text{ or } \vert u \vert_b \neq \vert v \vert_b\}$. There is a hint in the task that one should first construct the context free grammar for cases such as $L_1 = \{u\#v \mid u,v \in \{a,b\}^* , \vert u \vert_a > \vert v \vert_a\}$ and later combine all of these.
I would appreciate a hint to come up with $L_1$. I do not know how construct $u\#v$ such that $u$ and $v$ are free independent from each other except of the fact that $u$ has more $a$'s than $v$. I tried to build my language around the $\#$ and also tried to move the $\#$ in the direction of the most appearing $a$'s but none of my attempts worked.
What is the proper way to tackle such constructions in general?