Austria travel guide
Use Vienna for the historic center, palace collections and coffeehouses. A longer trip can add Salzburg as a separate rail base.

With 3–4 full days
Keep Schönbrunn apart from the Ring walk and the Belvedere. Check the current Vienna airport route before assuming the CAT runs as a train.
With 6–8 full days
Compare a rail trip and nights in Salzburg with staying in Vienna for day outings. For an early flight, check where you will be the evening before.