One trick would have been to, once I had arrived in Berlin, remove the previous leg from the travel day and instead add the next one. Does the app check that you aren't mysteriously teleporting from one city to another several hundreds of kilometres away? "Yeah, I used a helicopter between Hamburg and Berlin".
Sure, for this specific case there probably aren't any suitable overnight trains that could be involved, but still.
(continues)