html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body > main {
    flex: 1;
}

body > footer {
    background-color: var(--primary-blue);
    padding: 1rem;
    flex: 0;
    margin-top: 2rem;
}

#footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

#footer-links > * {
    background-color: var(--primary-bright-blue);
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
}

#footer-links hr {
    color: white;
}

#footer-links ul {
    padding: 0;
    list-style: none;
}

.follow-sites li {
    margin-bottom: 0.5rem;
}

.follow-sites li a {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.follow-sites li a:hover {
    text-decoration: underline;
}

.follow-sites li a img {
    margin-right: 0.25rem;
    height: initial;
}

:root {
  --footer-bg-color: var(--primary-blue);
  --footer-text-color: var(--surface-0);
  --footer-divider-color: rgba(255, 255, 255, 0.1);
  --footer-link-color: var(--surface-0);
  --footer-link-hover-color: var(--primary-blue-light);
}

.footer-bottom {
  background-color: var(--footer-bg-color);
  padding: 1.5rem 0;
  border-top: 1px solid var(--footer-divider-color);
}

.footer-bottom-container {
  display: flex;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 200px;
}

.copyright-section {
  flex: 1;
  text-align: center;
}

.copyright-text {
  color: var(--footer-text-color);
  font-size: 0.9rem;
}

.made-in-section {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.germany-flag {
  height: 17px;
}

.made-link {
  color: var(--footer-link-color);
  text-decoration: none;
  font-size: 0.9rem;
}

.made-link:hover {
  color: var(--footer-link-hover-color);
}

.web4nature-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.web4nature-badge {
  height: 72px;
  width: 72px;
}

.web4nature-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.web4nature-content span {
  color: var(--footer-text-color);
  font-size: 0.8rem;
}

.web4nature-link {
  color: var(--footer-link-color);
  text-decoration: none;
  font-size: 0.8rem;
}

.web4nature-link:hover {
  color: var(--footer-link-hover-color);
}

.ssl-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ssl-logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ssl-logo {
  height: 50px;
}

.ssl-domain {
  color: var(--footer-text-color);
  font-size: 0.9rem;
}

.ssl-text {
  color: var(--footer-text-color);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 1023px) {
  .footer-bottom-container {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .footer-bottom-section {
    flex-direction: column;
    align-items: center;
  }

  .made-in-section {
    flex-direction: column;
  }

  .ssl-logo-container {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .footer-bottom-container {
    padding: 0 1rem;
  }

  .footer-bottom-section {
    min-width: 100%;
  }
}
