/* =========================================================
   FOOTER – ajordi.ch
   Darstellung gemäss Referenz
   ========================================================= */

.site-footer {
  width: 100%;
  margin-top: 2.5rem;
  padding: 2rem 0 2.25rem;
  color: #ffffff;
  background-color: #1d3f4a;
}


/* ---------------------------------------------------------
   Footer-Inhalt
   --------------------------------------------------------- */

.site-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}


/* ---------------------------------------------------------
   Linke Spalte
   --------------------------------------------------------- */

.site-footer .footer-inner > div:first-child {
  flex: 1 1 auto;
  max-width: 540px;
}


/* ---------------------------------------------------------
   Logo und Markenname
   --------------------------------------------------------- */

.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  color: #ffffff;
  text-decoration: none;
}

.site-footer .footer-brand:hover,
.site-footer .footer-brand:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.site-footer .brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.site-footer .brand-text {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}


/* ---------------------------------------------------------
   Beschreibung
   --------------------------------------------------------- */

.site-footer p {
  max-width: 540px;
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}


/* ---------------------------------------------------------
   Navigation rechts
   --------------------------------------------------------- */

.site-footer .footer-links {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.95rem;
  min-width: 0;
}


/* ---------------------------------------------------------
   Navigationslinks
   --------------------------------------------------------- */

.site-footer .footer-links a {
  display: inline-block;
  margin: 0;
  padding: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible {
  color: var(--red, #e64016);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.site-footer .footer-links a[aria-current="page"] {
  color: #ffffff;
}

.site-footer .footer-version a {
  color: rgb(255, 255, 255);
  font-size: small;
}

/* Keine Symbole vor externen Links */

.site-footer .footer-links a[target="_blank"]::before,
.site-footer .footer-links a[target="_blank"]::after {
  content: none;
}


/* ---------------------------------------------------------
   Tastatur-Fokus
   --------------------------------------------------------- */

.site-footer a:focus-visible {
  border-radius: 2px;
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 1050px) {
  .site-footer .footer-inner {
    gap: 2rem;
  }

  .site-footer .footer-inner > div:first-child {
    max-width: 480px;
  }

  .site-footer .footer-links {
    gap: 0.75rem;
  }

  .site-footer .footer-links a {
    font-size: 0.95rem;
  }
}


/* ---------------------------------------------------------
   Schmale Tablets
   --------------------------------------------------------- */

@media (max-width: 850px) {
  .site-footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }

  .site-footer .footer-inner > div:first-child {
    width: 100%;
    max-width: 600px;
  }

  .site-footer .footer-links {
    width: 100%;
    justify-content: flex-start;
  }
}


/* ---------------------------------------------------------
   Smartphones
   --------------------------------------------------------- */

@media (max-width: 600px) {
  .site-footer {
    margin-top: 2rem;
    padding: 2rem 0;
  }

  .site-footer .footer-inner {
    gap: 1.5rem;
  }

  .site-footer .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .site-footer .brand-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .site-footer .brand-text {
    font-size: 1rem;
  }

  .site-footer p,
  .site-footer .footer-links a {
    font-size: 0.95rem;
  }
}


/* ---------------------------------------------------------
   Druckansicht
   --------------------------------------------------------- */

@media print {
  .site-footer {
    margin-top: 2rem;
    padding: 1rem 0;
    color: #000000;
    background: transparent;
    border-top: 1px solid #000000;
  }

  .site-footer .footer-inner {
    display: block;
  }

  .site-footer .brand-logo {
    display: none;
  }

  .site-footer .brand-text,
  .site-footer p {
    color: #000000;
  }

  .site-footer .footer-links {
    display: none;
  }
}


/* ---------------------------------------------------------
   Datum Version und Copyright
   --------------------------------------------------------- */
.footer-version {
  width: 100%;
  margin-top: 24px;
  padding: 12px 20px 4px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 400;
  color: #b8b8b8;
}