#set page(footer: context {
  let page-num = counter(page).get().first()
  let inner-text = [Innerer Text]
  let middle-text = [Mittlerer Text]
  let outer-text = [#page-num]
  if calc.even(page-num) {
    grid(columns: (1fr, 1fr, 1fr), align(left, inner-text), align(center, middle-text), align(right, outer-text))
  } else {
    grid(columns: (1fr, 1fr, 1fr), align(left, outer-text), align(center, middle-text), align(right, inner-text))
  }})

