/* ════════════════════════════════════════════════════════
   GP-102/GP-104: Footer-Leiste (Impressum · Datenschutz · Version)
   Fragment: templates/fragments/site-footer.html
════════════════════════════════════════════════════════ */

:root { --site-footer-h: 22px; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  line-height: 1;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  white-space: nowrap;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  border: none;
  padding: 0;
  background: none;
}
.site-footer a:hover { text-decoration: underline; }

/* Doppelte Klasse: schlägt globale Seitenregeln wie „button“, „button:hover“ (Login) */
.site-footer .site-footer-version,
.site-footer .site-footer-version:hover {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  cursor: pointer;
  white-space: nowrap;
  width: auto;          /* gegen globale button-Regeln einzelner Seiten (z. B. Login) */
}
.site-footer-build { display: none; }
.site-footer-version.offen .site-footer-build { display: inline; }

/* ── Variante „leiste“: schmal, fixiert am unteren Rand ── */
.site-footer--leiste {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--site-footer-h);
  padding: 0 14px;
  background: rgba(255,255,255,0.92);
  border-top: 1px solid #e2e8f0;
  color: #8a94a3;
  z-index: 10000;   /* über Chat-Overlay (200) und Navigation (9999) */
}

/* Inhalt nicht unter der fixierten Leiste verschwinden lassen */
body:has(> .site-footer--leiste) { padding-bottom: var(--site-footer-h); }

/* ── Variante „dunkel“: im Footer der Landing Page ── */
.site-footer--dunkel {
  background: none;  /* Landing stylt „footer“ global */
  padding: 0;
  max-width: 1100px;
  margin: 0 auto;
  color: #888;
  font-size: 0.82rem;
}

/* ── Modaler Dialog für Impressum/Datenschutz ── */
.recht-modal {
  width: min(800px, calc(100vw - 24px));
  height: min(86dvh, 900px);
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.25);
  overflow: hidden;
  background: #f5f9f6;
}
.recht-modal::backdrop { background: rgba(20,35,25,0.45); }
.recht-modal-inhalt { width: 100%; height: 100%; border: 0; display: block; }
.site-footer .recht-modal-schliessen,
.site-footer .recht-modal-schliessen:hover {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: #333;
  font-size: 1.4rem;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
}
.site-footer .recht-modal-schliessen:hover { background: rgba(0,0,0,0.12); }

@media (max-width: 480px) {
  .site-footer-copy { display: none; }
}
