/* Einwilligungsbanner. Nutzt die Farb- und Typo-Tokens der Seite, mit
   Rückfallwerten, falls dieses Stylesheet vor den Tokens geladen wird. */

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--blue-900, #1c3a5a);
  color: var(--blue-50, #f2f7fb);
  border-top: 3px solid var(--sand, #d9a441);
  box-shadow: 0 -4px 24px rgba(18, 41, 63, 0.25);
  font-family: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.consent.is-open {
  transform: translateY(0);
}

.consent__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.consent__text {
  margin: 0;
  max-width: 68ch;
}

.consent__title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.consent__text a {
  color: var(--blue-300, #a8c4dd);
  text-decoration: underline;
}

.consent__text a:hover {
  color: #fff;
}

.consent__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Beide Schaltflächen sind gleich gross und gleich auffällig — Ablehnen darf
   nicht schwerer zu treffen sein als Zustimmen. */
.consent__btn {
  font: inherit;
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.consent__btn--accept {
  background: var(--sand, #d9a441);
  border: 1px solid var(--sand, #d9a441);
  color: var(--blue-900, #1c3a5a);
}

.consent__btn--accept:hover {
  background: var(--sand-soft, #ebcb86);
  border-color: var(--sand-soft, #ebcb86);
}

.consent__btn--reject {
  background: transparent;
  border: 1px solid var(--blue-300, #a8c4dd);
  color: var(--blue-50, #f2f7fb);
}

.consent__btn--reject:hover {
  background: rgba(168, 196, 221, 0.15);
}

.consent__btn:focus-visible {
  outline: 2px solid var(--sand-soft, #ebcb86);
  outline-offset: 2px;
}

/* Link zum nachträglichen Ändern der Entscheidung */
.consent-reopen {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 860px) {
  .consent__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem 1rem;
  }

  .consent__actions {
    flex-direction: column-reverse;
  }

  .consent__btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent {
    transition: none;
  }
}
