
/* =========================================================
   FOOTER – ajordi.ch
   Vollständig neu aufgebaut
   ========================================================= */

.site-footer {
  width: 100%;
  margin: 0;
  padding: 0;

  background: #263f4a;
  color: #263f4a;
  box-sizing: border-box;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

/* =========================================================
   Gemeinsame Breite
   ========================================================= */

.site-footer .container,
.footer-version {
  width: min(100% - 2rem, var(--container, 1180px));
  max-width: var(--container, 1180px);
  margin-inline: auto;
}

/* =========================================================
   Hauptbereich
   ========================================================= */

.footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, auto);
  align-items: center;

  gap: 48px;

  padding-top: 32px;
  padding-bottom: 24px;
}

/* =========================================================
   Unternehmensbereich links
   ========================================================= */

.footer-company {
  width: 100%;
  min-width: 0;
  max-width: 560px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin: 0 0 16px;
  padding: 0;

  color: #263f4a;
  text-decoration: none;
}

.footer-brand .brand-logo {
  display: block;

  width: auto;
  height: 42px;
  max-width: 100%;

  object-fit: contain;
}

.footer-brand .brand-text {
  display: inline-flex;
  align-items: baseline;

  margin: 0;
  padding: 0;

  font-size: 17px;
  font-weight: 700;
  line-height: 1;

  color: #ffffff;
}

.footer-brand .brand-text-black {
  color: #ffffff;
}

.footer-brand .brand-text-red {
  color: #e63b18;
}

.footer-description {
  max-width: 540px;
  margin: 0;

  color: #ffffff;

  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

/* =========================================================
   Regionale Information
   Format: CH | 6300 | 213.255.9.37
   ========================================================= */

.region-footer-info {
  display: block;

  min-height: 18px;
  margin-top: 12px;

  color: rgba(255, 255, 255, 0.74);

  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.03em;

  text-align: left;
  white-space: nowrap;
}

.region-footer-info span {
  color: inherit;
  font: inherit;
}

/* =========================================================
   Footer-Navigation
   ========================================================= */

.footer-links {
  display: flex;
  flex-wrap: wrap;

  justify-content: flex-end;
  align-items: center;

  width: 100%;
  min-width: 0;

  margin: 0;
  padding: 0;

  gap: 14px 20px;

  text-align: right;
  transform: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 5px 0;

  color: #ffffff;

  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;

  text-decoration: none;
  text-align: center;
  white-space: nowrap;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #e63b18;
}

.footer-links a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 2px;
}

/* =========================================================
   Versionszeile
   ========================================================= */

.footer-version {
  padding: 0 0 18px;

  color: rgba(255, 255, 255, 0.72);

  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;

  text-align: center;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1050px) {
  .footer-inner {
    grid-template-columns: minmax(240px, 1fr) minmax(300px, 1fr);
    gap: 32px;
  }

  .footer-links {
    justify-content: flex-end;
    gap: 10px 16px;
  }
}

/* =========================================================
   Smartphone und schmale Fenster
   ========================================================= */

@media (max-width: 760px) {
  .site-footer .container,
  .footer-version {
    width: min(100% - 2rem, var(--container, 1180px));
    max-width: var(--container, 1180px);
    margin-inline: auto;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);

    gap: 24px;

    width: 100%;

    padding-top: 28px;
    padding-bottom: 22px;
  }

  .footer-company {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .footer-brand {
    margin-bottom: 14px;
  }

  .footer-description {
    max-width: none;
  }

  .region-footer-info {
    white-space: normal;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    align-items: center;
    align-content: center;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0 auto;
    padding: 0;

    column-gap: 18px;
    row-gap: 10px;

    text-align: center;
    overflow: visible;
  }

  .footer-links a {
    display: inline-flex;

    width: auto;
    max-width: 100%;

    justify-content: center;
    align-items: center;

    margin: 0;
    padding: 5px 0;

    text-align: center;
    white-space: nowrap;
  }

  .footer-version {
    padding-bottom: 16px;
    text-align: center;
  }
}

/* =========================================================
   Sehr kleine Displays
   ========================================================= */

@media (max-width: 420px) {
  .site-footer .container,
  .footer-version {
    width: calc(100% - 24px);
    max-width: var(--container, 1180px);
  }

  .footer-inner {
    gap: 20px;

    padding-top: 24px;
    padding-bottom: 20px;
  }

  .footer-brand .brand-logo {
    height: 38px;
  }

  .footer-brand .brand-text {
    font-size: 16px;
  }

  .footer-description {
    font-size: 15px;
    line-height: 1.5;
  }

  .region-footer-info {
    font-size: 11px;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    align-items: center;

    column-gap: 14px;
    row-gap: 8px;
  }

  .footer-links a {
    font-size: 14px;
    white-space: nowrap;
  }

  .footer-version {
    font-size: 10px;
  }
}

/* =========================================================
   DATENSCHUTZ- UND STANDORT-EINSTELLUNGEN
   ========================================================= */

.footer-settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 5px 0;

  border: 0;
  background: transparent;

  color: #ffffff;

  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;

  text-decoration: none;
  text-align: center;
  white-space: nowrap;

  cursor: pointer;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.footer-settings-button:hover,
.footer-settings-button:focus-visible {
  color: #e63b18;
}

.footer-settings-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 420px) {

  .footer-settings-button {
    font-size: 14px;
  }
}