/**
 * GSE Theme – Content Page Chrome (shared)
 * Byte-identical between `default.css` (document/article pages) and
 * `list.css` (category/listing pages like /schulbetrieb) — both
 * templates wrap their content in `<section id="body">`, which the
 * homepage never uses (its sections always carry their own class,
 * e.g. `.nav-groups`), so `#body` is a safe, class-free way to scope
 * this without needing a body/html class (neither template sets one
 * reliably — the list template doesn't set any body class at all).
 *
 * `document-page.css` and `list-page.css` hold what's specific to
 * each template on top of this; `.metadata .date`/`.title` and
 * `.categories` in particular differ per template and are NOT here.
 */
@import url("variables.css");

section#body {
  background-color: var(--color-light);
  color: var(--color-dark);
  margin-top: 120px;
  padding: 40px 80px;

  @media screen and (max-width: 800px) {
    padding: 20px 10px;
  }

  >.divider {
    height: 20px;
    width: 100%;
    display: flex;
    flex-direction: row;

    div {
      height: 100%;
      flex-grow: 1;
      background-color: red;

      &:nth-child(1) {
        background-color: var(--color-teal);
      }
      &:nth-child(2) {
        background-color: var(--color-green);
      }
      &:nth-child(3) {
        background-color: var(--color-yellow);
      }
      &:nth-child(4) {
        background-color: var(--color-orange);
      }
    }
  }

  .content-container {
    display: flex;
    flex-direction: row;
    margin-top: 20px;

    @media screen and (max-width: 800px) {
      flex-direction: column-reverse;
    }

    img {
      max-width: 100%;
    }
  }

  .metadata {
    color: var(--color-muted);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    @media screen and (max-width: 600px) {
      flex-direction: column;
    }

    > *:first-child {
      margin-right: 40px;

      @media screen and (max-width: 600px) {
        margin-right: 0;
      }
    }

    .fill {
      flex-grow: 1;
    }

    .breadcrumb {
      padding: 5px;
    }

    a {
      color: inherit;

      &:hover {
        text-decoration: underline;
      }
    }
  }
}
