Tax question for the germans

How does the tax matter work? Do I need to hold for one year since listing, or how does it work?