Edit the paragraph to be less complicated:
Soon the Elbe reaches Hamburg, and then passes through Holstein until it flows into the North Sea at Cuxhaven.
Then it goes through much of Germany and finally it flows into the North Sea.