/* Layout only: task text and embedded program source remain unchanged. */
iframe { max-width: 100%; }
img { max-width: 100%; height: auto; }
textarea { max-width: 100%; box-sizing: border-box; }
.table-scroll { overflow-x: auto; }
:focus-visible { outline: 3px solid #a65f00; outline-offset: 3px; }
.lesson-navigation { font: 16px/1.5 Arial, sans-serif; padding: .6rem 0; }

.exercise-navigation > .fillius-button { margin-inline-end: auto; }
.fillius-nav.exercise-navigation > .nav-button { gap: .35rem; min-height: 44px; }

@media screen and (max-width: 650px) {
  .fillius-page > .fillius-nav.exercise-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exercise-navigation > .fillius-button { grid-column: 1 / -1; justify-self: start; }
  .exercise-navigation > [rel="prev"] { justify-self: start; }
  .exercise-navigation > [rel="next"] { grid-column: 2; justify-self: end; }
}

@media screen and (min-width: 80rem) {
  .fillius-nav.exercise-navigation > .nav-button {
    position: fixed;
    top: calc(var(--fillius-header-size) + 4.5rem);
    z-index: 10;
  }

  .exercise-navigation > [rel="prev"] { right: calc(50% + var(--fillius-width) / 2 + .75rem); }
  .exercise-navigation > [rel="next"] { left: calc(50% + var(--fillius-width) / 2 + .75rem); }
}

@media (max-width: 650px) {
  body { overflow-wrap: break-word; }
  #aufgabe { max-width: 100%; box-sizing: border-box; }
  iframe { width: 100%; }
  table.table2, table.tableErgeb { width: 100%; }
  button { min-height: 44px; }
}
