Welcome to 21st century!
I travel with debit cards from 3 different banks for this reason.
Look for banks that issue virtual cards that can be used with Apple Pay / Google Pay. But you also need ideally two physical cards, since one bank may block your physical card for "fraud" while traveling, and now you're stuck and unable to buy a train ticket.
Credit cards are only necessary for car rentals, which is a major pain, but sometimes they can just make a reservation charge of 1000 EUR that they later cancel.
The benefit of virtual cards is that you usually get a notification (if you have internet) that your card is blocked, and details about the transaction, which makes it easier to unblock, and understand why the transaction/card was blocked.