Recommendation
Best overall (most travellers): Air — it’s typically the best blend of time, reliability, and price for DE → Spain, especially if your exact city pair has direct or 1-stop connections into major airports like Barcelona (BCN), Madrid (MAD), Málaga (AGP), Valencia (VLC), or Palma (PMI). For most dates, flying will beat rail/bus by a wide margin, and can be surprisingly affordable when booked early.
If you share your exact German origin city (e.g., Berlin, Frankfurt, Munich, Hamburg, Cologne) and your exact Spanish destination city (e.g., Barcelona, Madrid, Valencia, Málaga, Seville, Bilbao), plus your travel dates and whether you need checked baggage, I can narrow this to the best concrete itineraries and more precise cost/frequency ranges.
Pro Tip: For DE→Spain flights, check fares into two nearby Spanish airports (e.g., Barcelona BCN vs Girona GRO, or Madrid MAD vs Valencia VLC/Málaga AGP). Sometimes a “secondary” airport plus a short train transfer inside Spain is cheaper than flying directly into the city you originally targeted—while keeping the total travel time close to a direct flight.