Seville is a "no" in August. The average temperature is 100F; the record is 117F. Barcelona has milder temperatures but can be humid, so even days in the low 80s don't feel great. Munich and Berlin were both quite hot during my time there in July 2015, so there are no guarantees in Germany, either. But Spain is just about sure to be somewhere between not-wonderful (Barcelona) and miserable (Seville). Your odds are better in Germany.
Seven or eight days is a short time to spend in Greece, where moving from place to place so often requires a flight or a ferry. To me, that looks like Athens plus one island. Is that your plan?
Trying to split seven days between Germany and Spain will be painful and will lead to a trip hindered by a too-high ratio of travel time to sightseeing time. Compromises can be useful in life, but they can lead to seriously non-optimum itineraries.
How many nights will you be spending in Europe (excluding the night on the plane)? I'm assuming about 14. That will mean 13 actual full sightseeing days; the sleep-deprived/jetlagged arrival day doesn't count. What you are proposing to do is spoil (sorry) two of those days by flying first to Germany and then to Spain. Depending on your choice of Greek Island, you may also have two more flight days there. So you may end up with just nine full days of sightseeing, plus some scattered hours here or there. That's very little time when you're thinking about major cities. Those tend to need at least four nights each, and Barcelona and Berlin are among Europe's most sight-rich destinations. Either one could keep you busy for a week or longer.
Berlin is very strong on museums (art, history, ethnography) and 20th-century historical sights, especially related to the Cold War. Fascinating stuff (to me), but it's a modern city that doesn't have typical small-town-German architecture. Munich has (to me) much less of tourist interest, but there are some buildings rebuilt in traditional style. So the two cities have very different atmosphere. Munich is a good place for folks who want to take side-trips into the mountains, to Salzburg, to the nearby Austrian lake district, etc. [I really meant to reference the German lakes, but Austria has lakes, too.]
Barcelona is one of Europe's most heavily touristed cities. There are at least six sights so popular that you really have to buy timed tickets (or extra-cost wildcard tickets) in advance, else you will probably be in line for an hour or more, or might not get in at all. Including Barcelona in your itinerary means you need to do some pre-trip planning if you want to see the traditional tourist sights.
Edited to add: If this were my trip, I'd spend all the time in Greece, assuming I planned a lot of beach time. (Otherwise, I wouldn't travel there in August due to the heat.) Greece is awkward to get to and get around; it's worth the full two weeks if not longer.