If you're going to buy a German car, buy a Porsche. @
TGS is exactly right about Porsche's support and while their maintenance is "interesting" at times, they're overwhelmingly solid cars, except for the 'known issues' in a given model which is usually one or two things; like the IMS bearing issue in the 996's, for instance. Easily addressed, expensive parts and consumables but they're supported well. You can always find a Porsche shop.
Porsche cars also have consistently the very best steering feel on the planet for their respective classes. Prices are on the rise now with older cars, but a 996TT or 997.1 TT are both fantastic values for the money spent, and can generally be trusted as a reliable car. Plus it's a fucking twin turbo 911, so it'll still be cool even if its sitting needing maintenance and the kids are bitching about climbing into the back seat
996TT's can still be found in the 40k range which again is a massive bargain. The worst thing about Porsches, honestly, are the snooty khaki-shorts visor-wearing tall-socks-new-balance pinky-up sanctimonious twats that infect local Porsche clubs. Same problem with Corvette people, really, just swap out jean shorts and dollar store aviators for the khakis and ray-bans.
911's aside, the Cayenne Turbo and Macan Turbo models can be had for surprisingly good prices at times, and as TGS said, CPO warranties are impressive from Porsche.
BMW on the other hand have spent the past 15 years becoming the masters of making everything that holds coolant out of recycled water bottles, and making their wiring is made out of sauerkraut or something. If you're interested in any BMW made after 2010 I'd lease it and only lease it. Older cars vary wildly based on maintenance, storage, and ownership history. E36 and E46 M3 hardtops with the three-pedal manual are fantastic cars and generally not turds if they're still in good shape. An E46 M3 SMG car can be converted to a 3-pedal 6MT with some ancillary parts as the gearboxes themselves are the same, you just get rid of the SMG stuff and put a normal shifter, clutch, and clutch pedal into it and convince the German ECU (called a DME in BMW speak) that all is just fine and to stop worrying about the SMG.
E39 M5's are truly a special car and possibly my favorite US delivered BMW (My #1 being a Euro market '95 M3 CSL I got to drive, that car deserves its holy status -but the E30 M3's are overrated as hell)
I've done a timing chain job on an E39 M5 among other maintenance, and holy shit was that a lot of work for what it was. Great car, miserable to maintain.
Any of the V10 M5/M6's just run away, the engines love to rod knock anywhere from 40k to 80k miles and there's no telling if one is 'good' or a time bomb. E90/E92 M3's aren't too bad with a 6MT, but I'll be honest, aside from the BMW's ~8k rev limiter music I enjoy a track-package S550 5.0L Mustang GT a lot more and you'd be surprised at how big the Mustang's back seats are.
If it's not an //M car or at least an //M sport package car, don't even fucking bother with BMW, as there's nothing special about their ho-hum offerings that can't be matched in comfort and refinement by other brands, only with superior reliability in all aspects.
In addition to the Civic Type R, WRX, Kia Stinger GT, and Macan/Cayenne - also consider an Infiniti Q50 Red Sport.
But the only flavor to get is an AWD model *without* the DAS drive-by-wire steering, and that will take some hunting to find. The engine is a 3.0L little brother of an R35 GT-R engine. The 7spd trans is strong and one of the least annoying automatics I've ever driven. The Red Sport is rated at 400hp and comes with decent Akebono 4-pot monoblock calipers and forged 19in wheels.
The steering is definitely not a German car - but be sure the run flats are matching *and* mounted the correct direction before giving up on it, because that's been a problem with many Q50's suffering from darty/weird feeling steering.
Lexus IS350's are great as well, but a little ho-hum on the HP front. A used IS-F or GS-F would be a fantastic option as well, but those are getting very hard to find and few still have warranty coverage.
If you can find one, a 2015-2017 Chevy SS sedan is simply phenomenal as a muscle sedan - it's a 6.2L LS3 powered Holden Commodore wearing Chevy badges.
Cadillac CTS-V's and ATS-V's are also worth a look if you haven't considered them too. The downside being that 6MT examples of any are rare and command a premium.