Weird step-climbs

I’ve planned a B737-800 flight from LZIB to LEBL, which resulted in the following route:
TOVK1A TOVKA DCT TRAUN L856 TRA DCT LUTIX DCT BENOT DCT NEMOS DCT GVA DCT INCUS DCT BALSI UN852 DIVKO UN975 BISBA BISB2Y

However the step-climbs are weird:
LZIB/0340/TRAUN/0120/KPT/0320/SIXWA/0340/AKABI/0330

First climb to 340, then down to 120 and then up to 320?

The segment from TRAUN to KPT, in the RW validator, shows a Critical Yoyo as the MAA for that segment is 12000 ft.

This validates, capped at FL340

TOVKA1K TOVKA DCT DETSA DCT GEKBA DCT VAMTU UM984 DIVKO UN975 BISBA BISBA2X