/* Consent-Banner (eigene Lösung) – nutzt die Design-Werte aus assets/styles/src/_variables.scss */
.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 2147483000;
  width: calc(100% - 2rem);
  max-width: 960px;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-x: hidden;
  overflow-y: auto;
  transform: translateX(-50%);
  background: #ffffff;
  color: #333333;
  border: 1px solid rgba(175, 151, 120, 0.35);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(93, 64, 55, 0.18);
  font-family: 'Montserrat', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner__inner {
  padding: 1.5rem 1.75rem;
}

.consent-banner__title {
  margin: 0 0 0.5rem;
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
  color: #5d4037;
}

.consent-banner__title:focus {
  outline: none;
}

.consent-banner__title:focus-visible {
  outline: 3px solid #5d4037;
  outline-offset: 3px;
}

.consent-banner__text {
  margin: 0 0 1rem;
}

.consent-banner a {
  color: #5d4037;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-banner__categories {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.consent-banner__category {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid #E6E6E6;
}

.consent-banner__category input {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: #5d4037;
}

.consent-banner__category label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  cursor: pointer;
}

.consent-banner__category input:disabled + label {
  cursor: default;
}

.consent-banner__category strong {
  color: #5d4037;
  font-weight: 600;
}

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* "Alle ablehnen" und "Alle akzeptieren" bewusst identisch gestaltet (gleichwertig) */
.consent-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid rgb(137, 113, 81);
  background-color: rgb(137, 113, 81);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.consent-banner__button:hover {
  background-color: #5d4037;
  border-color: #5d4037;
}

.consent-banner__button:focus-visible,
.consent-banner__category input:focus-visible {
  outline: 3px solid #5d4037;
  outline-offset: 3px;
}

.consent-banner__button[hidden] {
  display: none;
}

.consent-banner__button--link {
  background-color: transparent;
  border-color: rgba(175, 151, 120, 0.5);
  color: #5d4037;
}

.consent-banner__button--link:hover {
  background-color: rgba(175, 151, 120, 0.12);
  border-color: rgb(137, 113, 81);
  color: #5d4037;
}

@media (max-width: 600px) {
  .consent-banner {
    bottom: 0.5rem;
    width: calc(100% - 1rem);
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .consent-banner {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .consent-banner__inner {
    padding: 1rem 1rem 1.1rem;
  }

  .consent-banner__title {
    font-size: 1.15rem;
  }

  .consent-banner__text {
    margin-bottom: 0.85rem;
  }

  .consent-banner__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .consent-banner__button {
    width: 100%;
    padding: 0.6rem 1rem;
  }
}

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

@media print {
  .consent-banner {
    display: none !important;
  }
}
