/* Neurovexa — Cookie-Einwilligung (includes/nvx-consent.php, js/nvx-consent.js)
   Eigenständig (eigene Farben/Schrift), damit Banner und Dialog auf Website und im Kundencenter gleich aussehen.
   "Alle ablehnen" und "Alle akzeptieren" sind bewusst gleich gestaltet (keine Bevorzugung einer Wahl).
*/
.nvx-consent,
.nvx-consent-modal {
  --nvx-c-bg: rgba(9, 13, 38, 0.97);
  --nvx-c-border: rgba(66, 151, 249, 0.35);
  --nvx-c-text: rgba(220, 230, 255, 0.82);
  --nvx-c-cyan: #3de0f5;
  --nvx-c-sky: #4297f9;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: normal;
  text-transform: none;
}

.nvx-consent[hidden],
.nvx-consent-modal[hidden] {
  display: none !important;
}

/* ---- Banner ---- */
.nvx-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 2147483000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nvx-consent-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 1180px;
  padding: 1.2rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(var(--nvx-c-bg), var(--nvx-c-bg)) padding-box,
    linear-gradient(120deg, rgba(66, 151, 249, 0.8), rgba(61, 224, 245, 0.45) 45%, rgba(168, 85, 247, 0.8)) border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(66, 151, 249, 0.18);
  color: var(--nvx-c-text);
  pointer-events: auto;
  animation: nvx-consent-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes nvx-consent-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.nvx-consent-copy {
  flex: 1;
  min-width: 0;
}

.nvx-consent .nvx-consent-title,
.nvx-consent-modal .nvx-consent-title {
  margin: 0 0 0.3rem;
  color: #fff;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
}

.nvx-consent .nvx-consent-text,
.nvx-consent-modal .nvx-consent-text {
  margin: 0;
  color: var(--nvx-c-text);
  font-family: inherit;
  font-size: 0.88rem;
}

.nvx-consent a {
  color: var(--nvx-c-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 224, 245, 0.35);
}

.nvx-consent a:hover {
  color: #fff;
}

.nvx-consent-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* gleichwertige Buttons für Ablehnen / Speichern / Akzeptieren */
.nvx-consent-btn {
  min-width: 9.5rem;
  margin: 0;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--nvx-c-sky) 0%, var(--nvx-c-cyan) 100%);
  color: #041018;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nvx-consent-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(61, 224, 245, 0.28);
}

.nvx-consent-btn:focus-visible,
.nvx-consent-x:focus-visible,
.nvx-consent-switch input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.nvx-consent-btn--link {
  min-width: 0;
  padding: 0.7rem 0.6rem;
  background: none;
  color: var(--nvx-c-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nvx-consent-btn--link:hover {
  box-shadow: none;
  color: #fff;
}

/* ---- Einstellungen ---- */
.nvx-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(3, 4, 18, 0.72);
  backdrop-filter: blur(4px);
}

.nvx-consent-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid var(--nvx-c-border);
  border-radius: 18px;
  background: var(--nvx-c-bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  color: var(--nvx-c-text);
}

.nvx-consent-x {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.nvx-consent-dialog > .nvx-consent-text {
  margin-bottom: 1.1rem;
}

.nvx-consent-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(66, 151, 249, 0.2);
  border-radius: 12px;
  background: rgba(6, 7, 34, 0.55);
}

.nvx-consent-modal .nvx-consent-cat-title {
  margin: 0 0 0.2rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
}

.nvx-consent-modal .nvx-consent-cat-title label {
  margin: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nvx-consent-modal .nvx-consent-cat-text {
  margin: 0;
  color: var(--nvx-c-text);
  font-family: inherit;
  font-size: 0.8rem;
}

.nvx-consent-always {
  flex-shrink: 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Schalter */
.nvx-consent-switch {
  position: relative;
  flex-shrink: 0;
  width: 2.8rem;
  height: 1.55rem;
  margin: 0;
  cursor: pointer;
}

.nvx-consent-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.nvx-consent-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(120, 135, 175, 0.4);
  transition: background 0.2s ease;
}

.nvx-consent-switch span::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.nvx-consent-switch input:checked + span {
  background: linear-gradient(120deg, var(--nvx-c-sky), var(--nvx-c-cyan));
}

.nvx-consent-switch input:checked + span::after {
  transform: translateX(1.25rem);
}

.nvx-consent-actions--modal {
  justify-content: flex-end;
  margin-top: 1.1rem;
}

.nvx-consent-actions--modal .nvx-consent-btn {
  min-width: 0;
  flex: 1 1 8rem;
  padding: 0.7rem 0.8rem;
  white-space: nowrap;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .nvx-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .nvx-consent-actions {
    justify-content: stretch;
  }

  .nvx-consent-actions .nvx-consent-btn:not(.nvx-consent-btn--link) {
    flex: 1 1 9rem;
    min-width: 0;
  }

  .nvx-consent-btn--link {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nvx-consent {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
  }

  .nvx-consent-inner {
    padding: 1rem;
  }
}

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

  .nvx-consent-btn,
  .nvx-consent-switch span,
  .nvx-consent-switch span::after {
    transition: none;
  }
}
