/* SyncVault — Matomo-Consent-Banner. Schmale Leiste am unteren Rand;
   body bekommt Platz nach unten, damit die Leiste keinen Inhalt verdeckt.
   Farben aus den Tokens in styles.css. */
body.matomo-consent-shown {
  padding-bottom: 6rem;
}

.matomo-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 600;
  background: var(--ink-800);
  color: var(--text);
  border-top: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--body);
}

.matomo-consent-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-dim);
  flex: 1;
  min-width: 16rem;
}

.matomo-consent-link {
  color: var(--azure);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.matomo-consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.matomo-consent-btn {
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}

.matomo-consent-btn:hover {
  border-color: var(--azure);
}

.matomo-consent-btn:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 2px;
}

.matomo-consent-ok {
  background: var(--azure);
  border-color: var(--azure);
  color: var(--ink-900);
}

.matomo-consent-ok:hover {
  background: var(--mint);
  border-color: var(--mint);
}

@media (max-width: 580px) {
  .matomo-consent-banner {
    padding: 0.625rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .matomo-consent-text {
    min-width: 0;
  }
  .matomo-consent-actions {
    justify-content: flex-end;
  }
  body.matomo-consent-shown {
    padding-bottom: 9rem;
  }
}
