BERLIN—Ukraine’s president vowed to reclaim his entire country while on his first visit to Germany since Russia attacked Ukraine last year, a trip that signaled that the tense relations between Kyiv and its biggest military and financial backer in Europe are thawing. Speaking alongside German …