Hey Chou
National tickets can be purchased online a maximum of 30 days in advance.
For international connections it is up to 4 months in advance, depending on the train type and country which is involved.
Generally, you can determine the approximate prices by entering an earlier date.
Rergards Kilian