There is sex education at every school, details can be found in the Plan for sexual education: https://bm.rlp.de/fileadmin/mbwwk/Publikationen/Bildung/Richtlinien_zur_Sexualerziehung_2010.pdf
The legal guardians have to be informed about goals, contents and forms of sex education in a timely manner.