/* =========================================================
   NEXAS Consent-Banner — eigenes CMP im Videopaket-Stil
   ========================================================= */
.nx-consent {
  position: fixed;
  z-index: 300;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  width: min(440px, calc(100vw - 24px));
  border-radius: 20px;
  background: linear-gradient(160deg, #0a0d14 0%, #1a2030 100%);
  border: 1px solid rgba(22, 224, 255, 0.28);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 0 40px rgba(22, 224, 255, 0.10);
  isolation: isolate;
  overflow: clip;
  padding: clamp(20px, 2.4vw, 28px);
  font-family: var(--font-m, 'Titillium Web', sans-serif);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s cubic-bezier(.22,.84,.16,1), transform .45s cubic-bezier(.22,.84,.16,1);
  pointer-events: none;
}
.nx-consent.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nx-consent::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(22, 224, 255, 0.26), transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.nx-consent h2 {
  font-family: var(--font-d, 'Bricolage Grotesque', sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f5f6f8;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nx-consent h2 svg { color: var(--cyan, #16e0ff); flex: none; }
.nx-consent p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(245, 246, 248, 0.85);
  margin: 0 0 16px;
}
.nx-consent p a { color: var(--cyan, #16e0ff); text-decoration: none; }
.nx-consent p a:hover { text-decoration: underline; }

.nx-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.nx-consent-actions .btn { font-size: 0.86rem; padding: 10px 16px; }
.nx-consent-settingslink {
  background: none;
  border: 0;
  padding: 10px 4px;
  font-family: inherit;
  font-size: 0.82rem;
  color: rgba(245, 246, 248, 0.75);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nx-consent-settingslink:hover { color: #ffffff; }

/* Einstellungs-Ansicht */
.nx-consent-opts { display: none; margin: 4px 0 16px; }
.nx-consent.show-opts .nx-consent-opts { display: block; }
.nx-consent.show-opts .nx-consent-intro { display: none; }
.nx-consent-opt {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.nx-consent-opt:first-child { border-top: 0; padding-top: 2px; }
.nx-consent-opt b {
  display: block;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 2px;
}
.nx-consent-opt small {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(245, 246, 248, 0.7);
}

/* Toggle */
.nx-toggle {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  margin-top: 2px;
}
.nx-toggle input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.nx-toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background .25s, border-color .25s;
  pointer-events: none;
}
.nx-toggle span::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #f5f6f8;
  transition: transform .25s cubic-bezier(.22,.84,.16,1), background .25s;
}
.nx-toggle input:checked + span {
  background: rgba(22, 224, 255, 0.35);
  border-color: rgba(22, 224, 255, 0.7);
}
.nx-toggle input:checked + span::after {
  transform: translateX(18px);
  background: var(--cyan, #16e0ff);
  box-shadow: 0 0 10px rgba(22, 224, 255, 0.7);
}
.nx-toggle input:disabled + span { opacity: 0.55; }
.nx-toggle input:disabled { cursor: not-allowed; }

@media (max-width: 520px) {
  .nx-consent { right: 8px; left: 8px; bottom: 8px; width: auto; }
  .nx-consent-actions .btn { flex: 1 1 auto; justify-content: center; }
}
