You can take your bicycles aboard the S-Bahn, U-Bahn and regional trains (with a bike ticket). But bicycles are not allowed on any buses in Germany.