For example, for the first term, using integration by part
$$\int_{-L}^L f(x) \cos \bigg(\frac{n\pi x}{L}\bigg) dx = - \frac{L}{n\pi} \int_{-L}^L f'(x) \cos \bigg(\frac{n\pi x}{L}\bigg) dx $$
Note that now you have an $n$ at the bottom.
The integral on the right can be bounded:
$$\bigg| \int_{-L}^L f'(x) \cos \bigg(\frac{n\pi x}{L}\bigg) dx \bigg| \leq \int_{-L}^L \bigg| f'(x) \cos \bigg(\frac{n\pi x}{L}\bigg)\bigg| dx \leq \int_{-L}^L | f'(x)| dx$$