.footer-list {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  z-index: 100;
  max-height: 100%;
  overflow: scroll;
}

.footer-list .footer-item {
  display: flex;
}

.content-offset {
  padding-left: var(--offset-left);
  padding-right: var(--offset-left);
}

.footer-section {
  width: 100%;
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 40px 0 0 0;
  border-style: none;
  text-align: left;
}

.static-handle-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.footer-section.static {
  display: inline-block;
}
.footer-section.static-mobile {
  display: none;
}

/* For mobile phones: */
@media only screen and (max-width: 768px) {
  .content-offset {
    padding-left: var(--offset-left-mobile);
    padding-right: var(--offset-left-mobile);
  }
  .footer-section.static-mobile {
    display: inline-block;
  }
  .footer-section.static {
    display: none;
  }
}

footer button.blau {
  border-radius: 40px 0 0 0;
  color: var(--white);
  background: linear-gradient(180deg, #5386ba 0%, #97c2e1 100%);
}
footer .blau a {
  text-decoration: none;
  color: var(--white);
}

footer button.braun {
  border-radius: 40px 0 0 0;
  color: var(--white);
  background: linear-gradient(180deg, #816854 0%, #a48063 100%);
}
footer .braun a {
  text-decoration: none;
  color: var(--white);
}

footer button.weiß {
  border-radius: 40px 0 0 0;
  color: var(--dark-blue);
  background-color: var(--white);
}
footer .weiß a {
  text-decoration: none;
  color: var(--dark-blue);
}

li.blau + li {
  background-color: #97c2e1;
}

li.braun + li {
  background-color: #a48063;
}

li.weiß + li {
  background-color: var(--white);
}

.footer-panel {
  max-height: 0;
  transition: max-height 0.2s ease-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.footer-panel * {
  max-height: 0;
  margin: 0;
}

.active .footer-panel *,
.always-active .footer-panel * {
  max-height: fit-content;
  margin: revert;
}

.always-active .footer-panel {
  max-height: unset;
}

.always-active .footer-panel .footer-icon {
  display: flex;
  justify-content: end;
}

.footer-panel a {
  color: var(--white);
}

.white .footer-panel a {
  color: var(----dark-blue);
}

.footer-panel ul {
  list-style: outside;
  padding-left: 16px;
}

.fullscreen {
  position: absolute;
  bottom: 0;
  z-index: 100;
  padding-bottom: 60px;
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.25);
  transition:
    box-shadow,
    0.4s ease-out;
}

.fullscreen .footer-section-handle {
  clip-path: inset(10px 0px -100px 0px);
  mix-blend-mode: hard-light;
  transition:
    box-shadow,
    0.4s ease-out;
  margin-bottom: 1px; /* fix for mobile shadow offset  */
}

.impressum-container {
  max-height: 0;
  overflow-y: scroll;
  transition: max-height 0.3s ease-out;
}

#impressum {
  max-height: 100%;
  padding-top: 40px;
  padding-bottom: 0;
  padding-bottom: 0;
}

.fullscreen.active,
.fullscreen.always-active {
  box-shadow: 0px -4px 4px 0px rgba(0, 0, 0, 0.25);
}

@media only screen and (max-width: 768px) {
  /* For mobile phones: */
  .always-active .footer-panel .footer-icon {
    justify-content: start;
  }
}
