Hi @sanya14
As you correctly assumed, you have to buy two single tickets since return tickets are also valid for one day only (until 5 AM).
Single tickets are also valid until 5 AM the next day. Note, point-to-point tickets do not include local public transport in Lucerne. For this you would have to choose the “City-Ticket” option.