/* Mercury — Cookie consent (minimal, EU-only when tracking is active) */

.footer-cookie-notice {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-mid, #4a4a4a);
  max-width: 18rem;
}

/* Unterhalb der Footer-Spalten (ersetzt früheres „Admin“) */
.footer-cookie-notice--below {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0.75rem 0 0;
  padding: 0.35rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-mid, #666);
  opacity: 0.85;
}

.footer-cookie-notice a {
  color: inherit;
  text-decoration: underline;
}

.cookie-settings-note {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-mid, #4a4a4a);
}

.cookie-settings-trigger {
  max-width: 280px;
  margin-top: 0.25rem;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  font-size: 14px;
  line-height: 1.5;
  z-index: 9999;
  animation: cookieFadeIn 0.3s ease;
  font-family: var(--font-body, "Inter", sans-serif);
}

.cookie-banner[hidden] {
  display: none !important;
}

@keyframes cookieFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cookieFadeOut {
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.cookie-banner.is-leaving {
  animation: cookieFadeOut 0.3s ease forwards;
}

.cookie-banner__text {
  margin: 0 0 15px;
  color: #333;
}

.cookie-banner__icon {
  font-size: 18px;
  margin-right: 6px;
}

.cookie-banner__link {
  color: #2a5298;
  text-decoration: underline;
}

.cookie-banner__link:hover {
  color: #1e3c72;
}

.cookie-banner__buttons {
  display: flex;
  gap: 10px;
}

.cookie-banner__btn {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cookie-banner__btn--accept {
  background: #2a5298;
  color: #fff;
  border-color: #2a5298;
}

.cookie-banner__btn--accept:hover {
  background: #1e3c72;
  border-color: #1e3c72;
}

.cookie-banner__btn--decline:hover {
  background: #f5f5f5;
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid #2a5298;
  outline-offset: 2px;
}

@media (max-width: 400px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    width: auto;
  }
}
