Inside of you are two wolves:

One of them wants to be grammatically correct and put the punctuation inside "the quoted text."

The other one has been programming for 25 years and is howling at the top of its lungs, "I demand proper nesting!".

@andrewrk Thank you giving me a clue that is considered the correct way in US English. I am a native German speaker and was always confused why people used quotation marks in such a weird way.

I like how having the mindset of a software developer and the German language agree on that for once.