From 1D to 4D: Towards a gravity-wave parameterization for NWP and climate models beyond the wave-dissipation paradigm