Basically, you have a free choice at which school type you want to register your child. Pupils aged 16-18 should seek advice on which type of school is suitable for them.
If the child is to be registered after a move to Hamburg at a secondary school, the school finder of the Authority for School and Vocational Training helps on: http://www.hamburg.de/weiterfuehrende-schulen/.