/* B21-Kit · foot.css · 1.1.0 · 2026-11-21 · 6194bff – Quelle: Bitcoin Offer/kit/src/foot.css (hier nicht ändern, neu mit kit/sync.mjs) */
/* ──────────────────────────────────────────────────────────────
   B21-Kit · foot.css – einheitlicher Fuß aller Projekte (docs/NEUAUFBAU-2026-11.md §7.5, Kit 1.1 „Zentrale“)

   Drei Zeilen: Pflichtzeile (Plex Mono) · Rechtliches und „Alle Projekte“ (Abstand statt Trennstrichen, ≥ 44 px hoch) ·
   Copyright. Je Projekt wechseln nur Pflichtzeile und Links (/projekte/<slug>/impressum/ …, siehe kit/README.md).
   Varianten: .b21-foot--night – wie der Fuß der Startseite: Links Inter 16 px ohne Unterstrich (#b9bcc2, Hover Marmorweiß),
              Pflichtzeile Plex Mono 14 px, Copyright Inter 15 px (#8f96a1); Linie .10 bzw. mit --filled Fläche #0b0f15
              und Linie .18. .b21-foot--light – Ratgeber-Look (Schibsted, Mono-Versalien, Unterstrich).
   Zusätze: .b21-foot--center (mittig, z. B. unter einer Anmeldekarte), --plain (ohne Linie), --filled (eigene Fläche).
   Nur .b21-Klassen und --b21-Variablen; Links im Fuß ohne eigene Klasse werden über :any-link erreicht.
   ────────────────────────────────────────────────────────────── */

.b21-foot {
  --b21-foot-bg: transparent;
  --b21-foot-text: var(--b21-ink-3, #666d78);
  --b21-foot-duty: var(--b21-ink-3, #666d78);
  --b21-foot-link: var(--b21-ink, #0f1115);
  --b21-foot-line: var(--b21-line, #e8e6e1);
  --b21-foot-under: var(--b21-line-strong, #d3d0c9);
  --b21-foot-copy-under: var(--b21-foot-under);
  --b21-foot-hover: var(--b21-accent-ink, #b54708);
  --b21-foot-hover-line: currentColor;
  --b21-foot-sans: var(--b21-font-sans, 'Schibsted Grotesk Variable', 'Helvetica Neue', Arial, system-ui, sans-serif);
  --b21-foot-mono: var(--b21-font-mono, 'IBM Plex Mono', ui-monospace, Menlo, monospace);
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding-block: 2rem max(2.5rem, env(safe-area-inset-bottom));
  padding-inline: max(16px, calc((100% - 1240px) / 2));
  border-top: 1px solid var(--b21-foot-line);
  background: var(--b21-foot-bg);
  color: var(--b21-foot-text);
  font-family: var(--b21-foot-sans);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.b21-foot--light {
  --b21-foot-text: var(--b21-ink-3, #666d78);
  --b21-foot-duty: var(--b21-ink-3, #666d78);
  --b21-foot-link: var(--b21-ink, #0f1115);
  --b21-foot-line: var(--b21-line, #e8e6e1);
  --b21-foot-under: var(--b21-line-strong, #d3d0c9);
  --b21-foot-hover: var(--b21-accent-ink, #b54708);
}
/* Fläche bleibt die der Seite (Spiele haben eigene dunkle Hintergründe); Schrift, Linie und Ton wie auf der Startseite */
.b21-foot--night {
  --b21-foot-text: #8f96a1;
  --b21-foot-duty: #b9bcc2;
  --b21-foot-link: #b9bcc2;
  --b21-foot-line: rgb(236 232 224 / 0.1);
  --b21-foot-under: transparent;
  --b21-foot-copy-under: rgb(236 232 224 / 0.18);
  --b21-foot-hover: #ece8e0;
  --b21-foot-hover-line: rgb(236 232 224 / 0.32);
  --b21-foot-sans: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --b21-foot-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  gap: 0.5rem;
  padding-inline: max(clamp(16px, 4vw, 48px), (100% - 1180px) / 2);
  font-size: 15px;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}
.b21-foot--center {
  justify-items: center;
  text-align: center;
}
/* Ohne Linie oben, z. B. direkt unter einer Anmeldekarte */
.b21-foot--plain { border-top: 0; }
/* Mit eigener Fläche (Stein bzw. Nacht), z. B. als letzter Abschnitt einer Seite */
.b21-foot--light.b21-foot--filled { --b21-foot-bg: var(--b21-bg-tint, #f7f6f3); }
.b21-foot--night.b21-foot--filled {
  --b21-foot-bg: #0b0f15;
  --b21-foot-line: rgb(236 232 224 / 0.18);
}

/* Pflichtzeile: hell Mono 12 px Versalien, Nacht Mono 14 px wie die Kennungen der Startseite */
.b21-foot-duty {
  margin: 0;
  max-width: 72ch;
  color: var(--b21-foot-duty);
  font-family: var(--b21-foot-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.b21-foot--night .b21-foot-duty {
  max-width: 96ch;
  text-wrap: balance;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-transform: none;
}

/* Rechtliches und Rückwege */
.b21-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
}
.b21-foot--center .b21-foot-links { justify-content: center; }
.b21-foot-links :any-link,
.b21-foot-copy :any-link {
  color: var(--b21-foot-link);
  text-decoration: underline;
  text-decoration-color: var(--b21-foot-under);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.b21-foot-copy :any-link { text-decoration-color: var(--b21-foot-copy-under); }
.b21-foot-links :any-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: var(--b21-fw-ui, 520);
}
.b21-foot--night .b21-foot-links :any-link {
  min-height: 44px;
  font-size: 16px;
  font-weight: 400;
  text-underline-offset: 0.35em;
}
.b21-foot-links :any-link:hover,
.b21-foot-copy :any-link:hover {
  color: var(--b21-foot-hover);
  text-decoration-color: var(--b21-foot-hover-line);
}
.b21-foot-links :any-link:focus-visible,
.b21-foot-copy :any-link:focus-visible {
  outline: 2px solid var(--b21-accent, #f7931a);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Copyright: hell Mono 12 px, Nacht Inter 15 px */
.b21-foot-copy {
  margin: 0;
  color: var(--b21-foot-text);
  font-family: var(--b21-foot-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.b21-foot--night .b21-foot-copy {
  font-family: var(--b21-foot-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

@media (max-width: 767px) {
  .b21-foot { padding-block: 1.75rem max(2rem, env(safe-area-inset-bottom)); }
  .b21-foot-duty { letter-spacing: 0.08em; }
  .b21-foot--night .b21-foot-duty { letter-spacing: 0.02em; }
  .b21-foot-links :any-link { min-height: 44px; }
  .b21-foot--night .b21-foot-links { gap: 0 1.125rem; }
}
