/* SWISS footer and language switch. No style attributes, no script needed. */

.foot {
  --ft-line: var(--line, #2a2a2a);
  --ft-text: var(--text, #f2f2f0);
  --ft-muted: var(--text-muted, #a3a3a3);
  --ft-subtle: var(--text-subtle, #8a8a8a);
  --ft-brand: var(--brand, #c2272b);
  --ft-link: #7fb3d5;

  border-top: 1px solid var(--ft-line);
  background: var(--surface-1, #1b1b1b);
  color: var(--ft-muted);
}

.foot__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1.3fr;
  gap: 40px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

.foot__logo { display: block; width: auto; height: 30px; margin-bottom: 18px; }
.foot__text { margin: 0 0 14px; font-size: 0.9375rem; line-height: 1.65; }
.foot__note { margin: 0; color: var(--ft-subtle); font-size: 0.875rem; line-height: 1.6; }

.foot__title {
  margin: 0 0 16px;
  color: var(--ft-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.foot__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.foot__item { display: inline-flex; align-items: flex-start; gap: 10px; color: inherit; text-decoration: none; line-height: 1.5; }
.foot__item svg { flex: none; margin-top: 2px; color: var(--ft-subtle); }
a.foot__item:hover { color: var(--ft-text); }

.foot__list--links a { color: inherit; text-decoration: none; }
.foot__list--links a:hover { color: var(--ft-text); text-decoration: underline; text-underline-offset: 4px; }
.foot__list--legal { gap: 8px; color: var(--ft-subtle); font-size: 0.875rem; line-height: 1.55; }

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--ft-line);
  font-size: 0.875rem;
}

.foot__copy, .foot__made { margin: 0; }

.foot__author {
  color: var(--ft-link);
  font-weight: 600;
  text-decoration: none;
}

.foot__author:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot a:focus-visible { outline: 2px solid var(--focus, #f2f2f0); outline-offset: 2px; }

@media (max-width: 999px) {
  .foot__inner { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 16px 32px; }
  .foot__col--about { grid-column: 1 / -1; }
  .foot__bar { padding: 16px; }
}

@media (max-width: 599px) {
  .foot__inner { grid-template-columns: 1fr; }
}

/* ---------- language switch: the current language is always the filled side ---------- */

.langs {
  display: inline-flex;
  align-items: stretch;
  flex: none;
  margin: 0;
  border: 1px solid var(--brand, #c2272b);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.langs__on,
.langs__off {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  min-height: 36px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

.langs__on { background: var(--brand, #c2272b); color: #ffffff; }
.langs__off { background: transparent; color: var(--text, #f2f2f0); }
.langs__off:hover { background: rgba(194, 39, 43, 0.16); }

/* German pages: the filled side turns white with red text */
.langs--de { border-color: #ffffff; }
.langs--de .langs__on { background: #ffffff; color: var(--brand, #c2272b); }
.langs--de .langs__off:hover { background: rgba(255, 255, 255, 0.12); }

.langs__off:focus-visible { outline: 2px solid var(--focus, #f2f2f0); outline-offset: -2px; }

@media (max-width: 999px) {
  .langs__on, .langs__off { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
}
