/* FOOTER */
.site-footer {
  position: relative;
  padding-top: 0px;
  margin-top: 100px;
  color: #fff;
  background-color: #00365e;
  /* font-size: clamp(16px, 1.667vw, 22px); */
  /* 960: 16px; 1600: 22px; */
  font-size: clamp(1rem, 0.938vw + 0.438rem, 1.375rem);
  padding-bottom: 1em;
}

.site-footer__container {
  position: relative;
  padding-inline: 2em;
  margin: auto;
  max-width: var(--container-width-wide, 76rem);
}

.site-footer a,
.site-footer a:visited {
  color: #fff;
}
.site-footer a {
  text-decoration: underline;
  text-underline-offset: 1px;
  text-decoration-color: rgba(255, 255, 255, 0);

  transition: color 0.3s ease-out,
              text-underline-offset 300ms ease-out,
              text-decoration-color 300ms ease-out;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #fff;
  text-underline-offset: 5px;
  text-decoration-color: #6f8da4;
}

.site-footer__image {
  width: 100%;
  margin-top: 5rem;
  background-color: #ffffff; /* Ohne das ist Nacht. */
}

@media screen and (max-width: 800px) {
  .site-footer__image.--big {
    display: none;
  }
  .site-footer__image.--small {
    display: block;
  }
}

@media screen and (min-width: 800.001px) {
  .site-footer__image.--big {
    display: block;
  }
  .site-footer__image.--small {
    display: none;
  }
}

@media screen and (max-width: 440px) {
  .site-footer__small {
    margin-bottom: 60px;
  }
}

@media screen and (min-width: 1600px) {
  .site-footer__small {
    font-size: 1rem;
    margin-bottom: 0.625rem;
  }
}

/* site-info */

.site-info {
  padding-top: 1.6rem;
  padding-bottom: 1rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-info__text {
  font-size: 1rem;
  text-align: center;
  margin: 3px;
  margin-inline: auto;
}

.site-info__text span {
  white-space: nowrap;
}

@media screen and (max-width: 570px) {
  .site-info__text {
    max-width: 400px;
  }
}


/* =================== */
/*  FOOTER NAVIGATION  */

.site-footer__row {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "menu"
                       "side";
  row-gap: 4em;
  margin-bottom: 3em;
  margin-top: 2em;
  justify-content: center;
}
@media screen and (min-width: 500px) {
  .site-footer__row {
    align-items: stretch;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "menu side";
  }
}
@media screen and (min-width: 960px) {
  .site-footer__row {
    grid-template-columns: 1fr max-content;
    grid-template-areas: "menu side";
  }
}
@media screen and (min-width: 1200px) {
  .site-footer__row {
    grid-template-columns: 1fr max-content;
    grid-template-areas: "menu side";
  }
}


.site-footer__menu-columns {
  grid-area: menu;
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
  row-gap: 3em;
  list-style: none;
  padding: 0;
  margin: 0;
  margin: auto;
  width: 100%;
  justify-content: center;
  height: 100%;
}
@media screen and (min-width: 500px) {
  .site-footer__menu-columns {
    margin-left: 0;
    text-align: left;
    grid-template-columns: max-content;
  }
}
@media screen and (min-width: 960px) {
  .site-footer__menu-columns {
    justify-content: space-between;
    grid-template-columns: repeat(4, max-content);
    padding-right: 1em;
  }
}

.site-footer__menu-column {
  padding: 0 1.25em;
  display: none;
}
.site-footer__menu-column:last-child {
  display: block;
}
@media screen and (min-width: 960px) {
  .site-footer__menu-column {
    display: block;
  }
}


.site-footer__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.site-footer__menu-title {
  font-size: 1.2em;
  font-weight: 500;
  margin-bottom: 1em;
  margin-top: 0;
}
.site-footer__menu-link {
  text-decoration: none;
  display: none;
  padding: 0.5em 0;
  font-size: 1em;
  line-height: 1.15;
  font-weight: 300;
  text-wrap: balance;
  white-space: nowrap;
}
.site-footer__menu-link:visited {
  color: #d9e4ec;
}
.site-footer__menu-link:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #6f8da4;
}
.site-footer__menu-link:focus-visible {
  outline: 2px dashed #fff;
  outline-offset: 2px;
}
@media screen and (min-width: 500px) {
  .site-footer__menu-link {
    display: block;
  }
}

.site-footer__menu-imageentry {
  margin-top: auto;
  max-width: 8em;
  align-self: center;
}
.site-footer__menu-imagelink {
  display: block;
  width: 100%;
  font-size: 1em;
  padding: 0.5em 0;
}
.site-footer__menu-image {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer__aside {
  grid-area: side;
  display: block;
  max-width: 16em;
  justify-self: center;
  text-align: center;
}

@media screen and (min-width: 500px) {
  .site-footer__aside {
    text-align: left;
    border-left: 1px solid #6f8da4;
    padding-left: 2.25em;
  }
}

.site-footer__aside > :first-child {
  margin-top: 0.25em;
}
.site-footer__aside a {
  color: #fff;
}

.site-footer__imprint {
  margin-top: 1em;
  text-align: center;
  font-size: 16px;
}
.site-footer__imprint p {
  margin-bottom: 0;
}
.site-footer__imprint a {
  font-weight: 600;
}
